ss-component-new 1.2.210 → 1.2.211
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-CMQuFz2U.js → MTLLoader-67H7fk80.js} +1 -1
- package/dist/{MTLLoader-Dn7qvdQE.cjs → MTLLoader-CL8XSHGp.cjs} +1 -1
- package/dist/{OrbitControls-BwOP9BCH.js → OrbitControls-C6M2yrLB.js} +1 -1
- package/dist/{OrbitControls-CKmqHTFG.cjs → OrbitControls-CnIsW8aw.cjs} +1 -1
- package/dist/{URDFLoader-LcNMUu2Q.cjs → URDFLoader-BX5IuzJ8.cjs} +1 -1
- package/dist/{URDFLoader-B4mwog0r.js → URDFLoader-DoVjA77Z.js} +2 -2
- package/dist/{animationData-CF8iySCX.js → animationData-BjKOHbzr.js} +1 -1
- package/dist/{animationData-CttWJgEw.cjs → animationData-DwRMSEcR.cjs} +1 -1
- package/dist/{array-D7pDQ0ai.cjs → array-CJjaF-30.cjs} +1 -1
- package/dist/{array-BjZvjLNf.js → array-Cmui25df.js} +1 -1
- package/dist/{iconfont-DLz03Pua.js → iconfont-C6xrTLDV.js} +2 -2
- package/dist/{iconfont-v_9e6_Wr.cjs → iconfont-alw7deIH.cjs} +1 -1
- package/dist/{index-D2BxLiKo.cjs → index-0ZaO0N8Y.cjs} +1 -1
- package/dist/{index-DXOFx4Js.js → index-3e98Utf1.js} +2 -2
- package/dist/{index-D5o0yFsY.js → index-B16xvnZZ.js} +1 -1
- package/dist/{index-BQcDZ9zY.cjs → index-B6eyscWd.cjs} +1 -1
- package/dist/{index-9ygxLpV4.cjs → index-BA5lzuZs.cjs} +1 -1
- package/dist/{index-CzgAT9P9.js → index-BJ607Cgr.js} +2 -2
- package/dist/{index-D9VJiqIr.js → index-BJ6EviJu.js} +1 -1
- package/dist/{index-CTXsrOke.js → index-BWYzx9On.js} +1 -1
- package/dist/{index-CTVosZpD.cjs → index-BXqsy0Nl.cjs} +1 -1
- package/dist/{index-P7IneBeG.js → index-BZWgeRjN.js} +3 -3
- package/dist/{index-dVe4jXXP.cjs → index-BiZxAQWz.cjs} +1 -1
- package/dist/index-BlzC7uD8.js +3577 -0
- package/dist/{index-rat8ooKP.cjs → index-BmVUsjsm.cjs} +1 -1
- package/dist/{index-C5mK6G4B.js → index-C251JILB.js} +8 -8
- package/dist/{index-CfvIJnQ4.js → index-CAi-JNl0.js} +1 -1
- package/dist/{index-Ccucb-4Z.cjs → index-CN4uUlDb.cjs} +1 -1
- package/dist/{index-C_IeP5sH.js → index-CqyCNXc9.js} +1 -1
- package/dist/{index-CZpCcMJo.cjs → index-Ct9aTte1.cjs} +1 -1
- package/dist/{index-C5rlnhuB.cjs → index-Ct_sBp18.cjs} +1 -1
- package/dist/index-CvD54iz8.cjs +1 -0
- package/dist/{index-DUWL4jpR.js → index-CwI3-CUs.js} +1 -1
- package/dist/{index-NSTwCJrr.cjs → index-D-nlJ3o0.cjs} +1 -1
- package/dist/{index-C6epDMmF.cjs → index-D737Q5uV.cjs} +1 -1
- package/dist/{index-DqpK4iid.js → index-D9R32sv-.js} +4 -4
- package/dist/index-DA6AZg6p.cjs +1 -0
- package/dist/{index-np8quoQc.cjs → index-DAkcroe-.cjs} +1 -1
- package/dist/{index-4xWViEpw.js → index-DBP65bJO.js} +1 -1
- package/dist/{index-Co21kVZ9.cjs → index-DEFMo4Ss.cjs} +1 -1
- package/dist/{index-BOo0k-6s.cjs → index-DHbfeZj9.cjs} +2 -2
- package/dist/{index-FamU_pWj.js → index-DOvORsix.js} +1 -1
- package/dist/{index-2kxli95n.cjs → index-DTCncP0c.cjs} +1 -1
- package/dist/{index-BFmB_GNc.js → index-DcxH1zsA.js} +1 -1
- package/dist/{index-O1tZfdsI.js → index-DgqJP4cy.js} +16 -16
- package/dist/{index-ywaZJRUe.js → index-DjhgSTgp.js} +1 -1
- package/dist/{index-Gx0qq15p.js → index-DlWLHCf4.js} +1 -1
- package/dist/{index-B3ES4Imr.cjs → index-DuLX_CSd.cjs} +1 -1
- package/dist/{index-DtC6p78s.cjs → index-Dymvy1ct.cjs} +1 -1
- package/dist/index-RlPP0mDo.js +12475 -0
- package/dist/{index-Dgk4f0E3.js → index-VDplKeDq.js} +4 -4
- package/dist/{index-CRPwb5Di.cjs → index-XIKgdyQI.cjs} +1 -1
- package/dist/{index-BV2AdsW7.js → index-bAoJwc65.js} +7 -7
- package/dist/{index-CZmf9W1N.cjs → index-d8S_KBKB.cjs} +1 -1
- package/dist/{index-BqLlm8pl.cjs → index-kFQ6-6dk.cjs} +1 -1
- package/dist/{index-BM6eQMuj.js → index-li-CtQ8f.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B1f3iFI0.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BvTCBcSN.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CLOMtzqw.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CMQ255im.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CgpQQnQo.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bz8QgjF-.js} +26750 -26754
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BbQEEyFK.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLa0ds0U.cjs} +265 -265
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-yEFItRs3.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-2KtqLt8T.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-C5U5tv8m.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BQTgA0X7.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-Qda9sMCN.js → index.vue_vue_type_style_index_1_lang-B3X_PfQc.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_1_lang-D3s2wGtB.cjs → index.vue_vue_type_style_index_1_lang-YbKSvTqR.cjs} +2 -2
- package/dist/{main-B4kLVLRo.js → main-Cor_kytv.js} +3 -3
- package/dist/{main-ZKhN5hVB.cjs → main-DDz9fSdf.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-C6-ohRly.cjs → threeModel-2290Sh5Q.cjs} +1 -1
- package/dist/{threeModel-CCD_TCIt.js → threeModel-ml0tLJ6d.js} +4 -4
- package/dist/{threePreview--ajzp9ef.js → threePreview-2xz8Hw38.js} +3 -3
- package/dist/{threePreview-C_GqKG7E.cjs → threePreview-C3CVwE-Y.cjs} +1 -1
- package/dist/{threeSceneView-BuDjh1PW.cjs → threeSceneView-B4nKIou-.cjs} +1 -1
- package/dist/{threeSceneView-2SkyZMLQ.js → threeSceneView-DDpsp26F.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-BAHntlai.js → threeSceneViewForCPMPIP-9PDSLEqZ.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-PKZiN1Hi.cjs → threeSceneViewForCPMPIP-yuW3lgix.cjs} +1 -1
- package/dist/{threeTrackPathView-DQXfAyfj.js → threeTrackPathView-BH4W5aAJ.js} +3 -3
- package/dist/{threeTrackPathView-CaZJjtlj.cjs → threeTrackPathView-_RjI4stL.cjs} +1 -1
- package/dist/{threeViewerHost-BnEGRoC_.js → threeViewerHost-CdKrfyfa.js} +2 -2
- package/dist/{threeViewerHost-wJDeMzT0.cjs → threeViewerHost-Di0GKXwU.cjs} +1 -1
- package/dist/{urdfTree-CY-l53qd.js → urdfTree-DkFmyNMl.js} +1 -1
- package/dist/{urdfTree-Bvjb6fr9.cjs → urdfTree-MhNihTDQ.cjs} +1 -1
- package/dist/{workpieceTreePanel-WyflfVY-.js → workpieceTreePanel-BFPFWqV3.js} +4 -4
- package/dist/{workpieceTreePanel-Y4Qc_oSv.cjs → workpieceTreePanel-BeRnxO8B.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-CaHvkH1f.js +0 -3385
- package/dist/index-Cbbw4bt5.cjs +0 -1
- package/dist/index-DDJsccuu.cjs +0 -1
- package/dist/index-DZYnK5D6.js +0 -12425
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -0,0 +1,3577 @@
|
|
|
1
|
+
import { ref as z, watch as $l, nextTick as Ia, resolveComponent as dl, createBlock as el, openBlock as le, withCtx as H, createElementVNode as ye, renderSlot as Xr, onMounted as Tr, createElementBlock as Te, normalizeStyle as ea, normalizeClass as pn, toDisplayString as Ye, createCommentVNode as Ze, createVNode as ee, unref as Rl, Fragment as Ql, renderList as Xl, createTextVNode as kl, defineComponent as fn, reactive as Fa, computed as vr, inject as Ni, provide as wi, onBeforeUnmount as Ri, onUnmounted as Bi, resolveDirective as Mi, createSlots as Fi, withModifiers as gr, withDirectives as br, vShow as Zr } from "vue";
|
|
2
|
+
import { bh as Yr, as as Ir, c as Z, E as Xe, bD as tn, g as da, p as ua, s as ma, u as Ki, c3 as zi, f as Ji, b as sa, bv as Wi, bt as Vr, e as qi, c4 as Gi } from "./index-7MBVUN82.js";
|
|
3
|
+
import { $ as Ta, aI as Hi, aJ as Ka, aK as Qi, g as _a, b as Xi, a as Zi, _ as Yi, u as Ii, aL as en, aM as ln, aN as an, aO as Vi, d as Aa, X as kr, q as rn, l as eu, aP as nn, a7 as lu, aQ as au, aR as ru, aS as nu, Z as iu, aT as uu } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bz8QgjF-.js";
|
|
4
|
+
import { d as Oa, _ as un, j as su, e as sn, E as Sr, u as ou } from "./index-C251JILB.js";
|
|
5
|
+
import { a as du, T as cu } from "./threeViewerHost-CdKrfyfa.js";
|
|
6
|
+
import { u as pu, a as fu, E as on } from "./index-3oQGURYh.js";
|
|
7
|
+
import { c as tu } from "./index.vue_vue_type_style_index_1_lang-B3X_PfQc.js";
|
|
8
|
+
import { _ as Va } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
import { s as oa } from "./index-B16xvnZZ.js";
|
|
10
|
+
import "./index-DfFq9kkn.js";
|
|
11
|
+
import { i as dn } from "./isString-D70CzuJZ.js";
|
|
12
|
+
const mr = (J) => J.match(/\((.*)\)/)[1], cn = {
|
|
13
|
+
__name: "index",
|
|
14
|
+
props: {
|
|
15
|
+
isVisible: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
title: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
placement: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "bottom"
|
|
26
|
+
},
|
|
27
|
+
width: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 200
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
setup(J) {
|
|
33
|
+
const fe = J, de = z(null), B = z(!1), M = z(null);
|
|
34
|
+
return $l(
|
|
35
|
+
() => fe == null ? void 0 : fe.isVisible,
|
|
36
|
+
() => {
|
|
37
|
+
B.value = fe == null ? void 0 : fe.isVisible;
|
|
38
|
+
},
|
|
39
|
+
{ deep: !0, immediate: !0 }
|
|
40
|
+
), $l(
|
|
41
|
+
() => M.value,
|
|
42
|
+
() => {
|
|
43
|
+
Ia(() => {
|
|
44
|
+
var u, te;
|
|
45
|
+
(te = (u = de.value) == null ? void 0 : u.updatePopper) == null || te.call(u);
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
{ deep: !0, immediate: !0 }
|
|
49
|
+
), (u, te) => {
|
|
50
|
+
const Ee = dl("el-popover");
|
|
51
|
+
return le(), el(Ee, {
|
|
52
|
+
visible: B.value,
|
|
53
|
+
title: fe == null ? void 0 : fe.title,
|
|
54
|
+
placement: fe == null ? void 0 : fe.placement,
|
|
55
|
+
width: fe == null ? void 0 : fe.width,
|
|
56
|
+
ref_key: "popOverRef",
|
|
57
|
+
ref: de
|
|
58
|
+
}, {
|
|
59
|
+
reference: H(() => [
|
|
60
|
+
ye("div", null, [
|
|
61
|
+
Xr(u.$slots, "reference", {
|
|
62
|
+
ref_key: "referenceRef",
|
|
63
|
+
ref: M
|
|
64
|
+
})
|
|
65
|
+
])
|
|
66
|
+
]),
|
|
67
|
+
default: H(() => [
|
|
68
|
+
ye("div", null, [
|
|
69
|
+
Xr(u.$slots, "content")
|
|
70
|
+
])
|
|
71
|
+
]),
|
|
72
|
+
_: 3
|
|
73
|
+
}, 8, ["visible", "title", "placement", "width"]);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}, yu = {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: "extra-button-content"
|
|
79
|
+
}, hu = { class: "table-operator-wrap" }, vu = {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: "extra-button-filter"
|
|
82
|
+
}, gu = { class: "form-content-value" }, bu = {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: "extra-header"
|
|
85
|
+
}, ku = {
|
|
86
|
+
class: "drop-menu",
|
|
87
|
+
style: { width: "120px" }
|
|
88
|
+
}, Su = { key: 0 }, mu = { key: 1 }, Au = {
|
|
89
|
+
key: 1,
|
|
90
|
+
class: "extra-button-content tabs-button-wrapper"
|
|
91
|
+
}, _u = { class: "table-operator-wrap" }, Tu = { class: "extra-button-filter" }, Ou = { class: "form-content-value" }, Cu = {
|
|
92
|
+
key: 0,
|
|
93
|
+
class: "extra-header"
|
|
94
|
+
}, Du = {
|
|
95
|
+
class: "drop-menu",
|
|
96
|
+
style: { width: "120px" }
|
|
97
|
+
}, Uu = { key: 0 }, xu = { key: 1 }, Eu = {
|
|
98
|
+
__name: "header",
|
|
99
|
+
props: {
|
|
100
|
+
pageLayout: {
|
|
101
|
+
type: String,
|
|
102
|
+
default: "vertical"
|
|
103
|
+
},
|
|
104
|
+
lockingPage: Boolean,
|
|
105
|
+
level: {
|
|
106
|
+
type: Number,
|
|
107
|
+
default: 1
|
|
108
|
+
},
|
|
109
|
+
compName: {
|
|
110
|
+
type: String,
|
|
111
|
+
default: "表格名称",
|
|
112
|
+
required: !1
|
|
113
|
+
},
|
|
114
|
+
filterShow: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: !1
|
|
117
|
+
},
|
|
118
|
+
isDevMode: Boolean,
|
|
119
|
+
selectNums: Number,
|
|
120
|
+
dataNums: Number,
|
|
121
|
+
filterValues: Array,
|
|
122
|
+
buttons: {
|
|
123
|
+
type: Array,
|
|
124
|
+
default: () => []
|
|
125
|
+
},
|
|
126
|
+
columns: {
|
|
127
|
+
type: Array,
|
|
128
|
+
default: () => []
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
emits: ["buttonClick", "filter", "getImportData"],
|
|
132
|
+
setup(J, { emit: fe }) {
|
|
133
|
+
const de = fe, B = J, M = z(""), u = z(!1), te = z([]), Ee = z([{ label: "取消", background: "#999999" }, {
|
|
134
|
+
label: "清空",
|
|
135
|
+
background: "#999999"
|
|
136
|
+
}, { label: "确认" }]), qe = [
|
|
137
|
+
{
|
|
138
|
+
label: "新增",
|
|
139
|
+
icon: "Plus"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
label: "导入",
|
|
143
|
+
icon: "import"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
label: "导出",
|
|
147
|
+
icon: "export"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
label: "OCR识别",
|
|
151
|
+
icon: "ocr"
|
|
152
|
+
}
|
|
153
|
+
], je = (me) => {
|
|
154
|
+
const Re = me.raw;
|
|
155
|
+
if (!Re) return;
|
|
156
|
+
const Ie = new FileReader();
|
|
157
|
+
Ie.onload = (he) => {
|
|
158
|
+
try {
|
|
159
|
+
const ze = new Uint8Array(he.target.result), hl = Hi(ze, { type: "array" }), Ge = hl.SheetNames[0], ce = hl.Sheets[Ge], vl = Ka.decode_range(ce["!ref"]).e.c + 1, Y = new Array(vl).fill(""), O = [];
|
|
160
|
+
for (const X in ce) {
|
|
161
|
+
if (X[0] === "!") continue;
|
|
162
|
+
const { r: ke, c: Pe } = Ka.decode_cell(X);
|
|
163
|
+
let gl = ce[X].v;
|
|
164
|
+
if (ce[X].t === "n" && gl > 0 && gl < 1e6 && (gl = new Date((gl - 25569) * 86400 * 1e3).toISOString().split("T")[0]), (gl == null || gl === "") && (gl = ""), ke === 0)
|
|
165
|
+
Y[Pe] = gl;
|
|
166
|
+
else {
|
|
167
|
+
if (!O[ke - 1]) {
|
|
168
|
+
O[ke - 1] = {};
|
|
169
|
+
for (let Ml = 0; Ml < vl; Ml++)
|
|
170
|
+
O[ke - 1][`col_${Ml}`] = "";
|
|
171
|
+
}
|
|
172
|
+
O[ke - 1][`col_${Pe}`] = gl;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
for (let X = 0; X < vl; X++)
|
|
176
|
+
Y[X] === void 0 && (Y[X] = "");
|
|
177
|
+
const Je = O == null ? void 0 : O[0];
|
|
178
|
+
if (!(Je != null && Je.hasOwnProperty("col_0"))) return Xe.error("导入的数据列不匹配,请检查是否错位");
|
|
179
|
+
de("getImportData", Y, O);
|
|
180
|
+
} catch (ze) {
|
|
181
|
+
throw Xe.error(ze.message), new Error(ze.message);
|
|
182
|
+
}
|
|
183
|
+
}, Ie.readAsArrayBuffer(Re);
|
|
184
|
+
}, Cl = (me) => {
|
|
185
|
+
var Ie;
|
|
186
|
+
const Re = (Ie = te.value) == null ? void 0 : Ie.reduce((he, ze, hl) => (hl === 0 ? he[ze.label] = me : he[ze.label] = ze == null ? void 0 : ze.value, he), {});
|
|
187
|
+
de("filter", Re, me, !0);
|
|
188
|
+
}, Wl = (me) => {
|
|
189
|
+
de("buttonClick", me);
|
|
190
|
+
}, la = (me) => {
|
|
191
|
+
var Re, Ie;
|
|
192
|
+
te.value = (Ie = (Re = Ta(Z(me))) == null ? void 0 : Re.filter((he) => (he == null ? void 0 : he.label) !== "" && (he == null ? void 0 : he.label) !== "操作")) == null ? void 0 : Ie.map((he) => ({
|
|
193
|
+
label: (he == null ? void 0 : he.label) ?? "",
|
|
194
|
+
value: "",
|
|
195
|
+
name: (he == null ? void 0 : he.label) ?? "",
|
|
196
|
+
isFormColHidden: he == null ? void 0 : he.isTableColHidden,
|
|
197
|
+
width: 2
|
|
198
|
+
}));
|
|
199
|
+
}, ql = z(!1), aa = (me) => {
|
|
200
|
+
var Re;
|
|
201
|
+
if ((me == null ? void 0 : me.buttonName) === "确认" && (de("filter", me == null ? void 0 : me.content), ql.value = (me == null ? void 0 : me.content) && Object.values(me == null ? void 0 : me.content).length > 0), (me == null ? void 0 : me.buttonName) === "清空") {
|
|
202
|
+
const Ie = Z(me == null ? void 0 : me.content);
|
|
203
|
+
for (const he in Ie)
|
|
204
|
+
Ie[he] = "";
|
|
205
|
+
te.value = (Re = te.value) == null ? void 0 : Re.map((he) => ({
|
|
206
|
+
...he,
|
|
207
|
+
value: ""
|
|
208
|
+
})), de("filter", Ie), ql.value = !1;
|
|
209
|
+
}
|
|
210
|
+
u.value = !1;
|
|
211
|
+
}, yl = () => {
|
|
212
|
+
var Re, Ie;
|
|
213
|
+
te.value = (Re = te.value) == null ? void 0 : Re.map((he) => ({
|
|
214
|
+
...he,
|
|
215
|
+
value: ""
|
|
216
|
+
}));
|
|
217
|
+
const me = (Ie = te.value) == null ? void 0 : Ie.reduce((he, ze) => (he[ze.label] = ze.value, he), {});
|
|
218
|
+
de("filter", me);
|
|
219
|
+
};
|
|
220
|
+
return Tr(() => {
|
|
221
|
+
la(B.columns);
|
|
222
|
+
}), $l(
|
|
223
|
+
() => B.columns,
|
|
224
|
+
() => {
|
|
225
|
+
la(B.columns);
|
|
226
|
+
},
|
|
227
|
+
{ deep: !0, immediate: !0 }
|
|
228
|
+
), (me, Re) => {
|
|
229
|
+
var ce, I, vl, Y;
|
|
230
|
+
const Ie = dl("el-icon"), he = dl("svg-icon"), ze = dl("el-input"), hl = dl("el-button"), Ge = dl("el-upload");
|
|
231
|
+
return J.pageLayout === "vertical" ? (le(), Te("div", yu, [
|
|
232
|
+
ye("div", {
|
|
233
|
+
class: pn(J.compName ? "table-name-wrap" : ""),
|
|
234
|
+
style: ea({
|
|
235
|
+
background: (B == null ? void 0 : B.level) > 1 ? "transparent" : "var(--ssgroup-background)",
|
|
236
|
+
paddingLeft: ((B == null ? void 0 : B.level) - 1) * 12 + "px",
|
|
237
|
+
fontWeight: 600 - ((B == null ? void 0 : B.level) - 1) * 100 >= 400 ? 600 - ((B == null ? void 0 : B.level) - 1) * 100 : 400,
|
|
238
|
+
fontSize: 17 - (B == null ? void 0 : B.level) >= 14 ? 17 - (B == null ? void 0 : B.level) + "px" : "14px"
|
|
239
|
+
})
|
|
240
|
+
}, Ye(J.compName), 7),
|
|
241
|
+
ye("div", hu, [
|
|
242
|
+
B != null && B.filterShow ? (le(), Te("div", vu, [
|
|
243
|
+
ee(cn, {
|
|
244
|
+
title: "",
|
|
245
|
+
width: 800,
|
|
246
|
+
placement: "bottom-start",
|
|
247
|
+
isVisible: u.value
|
|
248
|
+
}, {
|
|
249
|
+
reference: H(() => {
|
|
250
|
+
var O, Je, X, ke;
|
|
251
|
+
return [
|
|
252
|
+
ee(ze, {
|
|
253
|
+
modelValue: M.value,
|
|
254
|
+
"onUpdate:modelValue": Re[1] || (Re[1] = (Pe) => M.value = Pe),
|
|
255
|
+
style: { "min-width": "80px" },
|
|
256
|
+
placeholder: ql.value ? (X = (Je = (O = J.filterValues) == null ? void 0 : O.filter((Pe) => Pe)) == null ? void 0 : Je.slice(0, 3)) == null ? void 0 : X.join("/") : "搜索",
|
|
257
|
+
"prefix-icon": Rl(Yr),
|
|
258
|
+
clearable: "",
|
|
259
|
+
onInput: Cl,
|
|
260
|
+
disabled: ((ke = te.value) == null ? void 0 : ke.length) === 0
|
|
261
|
+
}, {
|
|
262
|
+
suffix: H(() => {
|
|
263
|
+
var Pe, gl;
|
|
264
|
+
return [
|
|
265
|
+
!M.value && ((gl = (Pe = J.filterValues) == null ? void 0 : Pe.filter((Ml) => Ml)) != null && gl.join("/")) ? (le(), el(Ie, {
|
|
266
|
+
key: 0,
|
|
267
|
+
style: { cursor: "pointer" },
|
|
268
|
+
onClick: yl
|
|
269
|
+
}, {
|
|
270
|
+
default: H(() => [
|
|
271
|
+
ee(Rl(Ir))
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
})) : Ze("", !0)
|
|
275
|
+
];
|
|
276
|
+
}),
|
|
277
|
+
append: H(() => [
|
|
278
|
+
ye("span", {
|
|
279
|
+
title: "条件查询",
|
|
280
|
+
onClick: Re[0] || (Re[0] = (Pe) => u.value = !u.value)
|
|
281
|
+
}, [
|
|
282
|
+
ee(he, {
|
|
283
|
+
name: "query",
|
|
284
|
+
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
285
|
+
})
|
|
286
|
+
])
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
}, 8, ["modelValue", "placeholder", "prefix-icon", "disabled"])
|
|
290
|
+
];
|
|
291
|
+
}),
|
|
292
|
+
content: H(() => [
|
|
293
|
+
ye("div", gu, [
|
|
294
|
+
(le(), el(Oa, {
|
|
295
|
+
rowContents: te.value,
|
|
296
|
+
buttonValue: Ee.value,
|
|
297
|
+
isRowFlex: !0,
|
|
298
|
+
isEnableWrap: !1,
|
|
299
|
+
isButtonRow: !1,
|
|
300
|
+
key: Ee.value,
|
|
301
|
+
isStartJustify: !1,
|
|
302
|
+
onOnButtonClick: aa
|
|
303
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
304
|
+
])
|
|
305
|
+
]),
|
|
306
|
+
_: 1
|
|
307
|
+
}, 8, ["isVisible"])
|
|
308
|
+
])) : Ze("", !0),
|
|
309
|
+
J.buttons && ((ce = J.buttons) == null ? void 0 : ce.length) > 0 ? (le(), Te("div", bu, [
|
|
310
|
+
(le(!0), Te(Ql, null, Xl((I = J.buttons) == null ? void 0 : I.filter((O) => J.isDevMode || (O == null ? void 0 : O.label) !== "修改模板"), (O, Je) => (le(), Te("div", {
|
|
311
|
+
class: "extra-contents",
|
|
312
|
+
key: Je
|
|
313
|
+
}, [
|
|
314
|
+
(O == null ? void 0 : O.type) === "upload" ? (le(), el(Ge, {
|
|
315
|
+
key: 0,
|
|
316
|
+
class: "upload-button-wrap",
|
|
317
|
+
"on-change": je,
|
|
318
|
+
accept: ".xlsx,.xls",
|
|
319
|
+
"auto-upload": !1,
|
|
320
|
+
action: "#",
|
|
321
|
+
"show-file-list": !1,
|
|
322
|
+
disabled: !!J.lockingPage
|
|
323
|
+
}, {
|
|
324
|
+
default: H(() => [
|
|
325
|
+
ee(hl, {
|
|
326
|
+
disabled: !!J.lockingPage,
|
|
327
|
+
style: ea({ background: (O == null ? void 0 : O.background) ?? "var(--ssbutton-theme-bg)", color: (O == null ? void 0 : O.color) ?? "var(--ssbutton-theme-color)" })
|
|
328
|
+
}, {
|
|
329
|
+
default: H(() => [
|
|
330
|
+
kl(Ye(O == null ? void 0 : O.label), 1)
|
|
331
|
+
]),
|
|
332
|
+
_: 2
|
|
333
|
+
}, 1032, ["disabled", "style"])
|
|
334
|
+
]),
|
|
335
|
+
_: 2
|
|
336
|
+
}, 1032, ["disabled"])) : Ze("", !0),
|
|
337
|
+
(O == null ? void 0 : O.type) === "popover" ? (le(), el(un, { key: 1 }, {
|
|
338
|
+
dropTitle: H(() => [
|
|
339
|
+
(O == null ? void 0 : O.type) === "popover" ? (le(), el(hl, {
|
|
340
|
+
key: 0,
|
|
341
|
+
disabled: !!J.lockingPage,
|
|
342
|
+
style: ea({ background: (O == null ? void 0 : O.background) ?? "var(--ssbutton-theme-bg)", color: (O == null ? void 0 : O.color) ?? "var(--ssbutton-theme-color)" })
|
|
343
|
+
}, {
|
|
344
|
+
default: H(() => [
|
|
345
|
+
kl(Ye(O == null ? void 0 : O.label), 1)
|
|
346
|
+
]),
|
|
347
|
+
_: 2
|
|
348
|
+
}, 1032, ["disabled", "style"])) : Ze("", !0)
|
|
349
|
+
]),
|
|
350
|
+
dropMenu: H(() => [
|
|
351
|
+
ye("div", ku, [
|
|
352
|
+
(le(!0), Te(Ql, null, Xl(O == null ? void 0 : O.contents, (X) => (le(), el(hl, {
|
|
353
|
+
key: X == null ? void 0 : X.label,
|
|
354
|
+
disabled: !!J.lockingPage,
|
|
355
|
+
style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
|
|
356
|
+
onClick: (ke) => Wl(X == null ? void 0 : X.label)
|
|
357
|
+
}, {
|
|
358
|
+
default: H(() => {
|
|
359
|
+
var ke, Pe;
|
|
360
|
+
return [
|
|
361
|
+
kl(Ye(X == null ? void 0 : X.label), 1),
|
|
362
|
+
(ke = X == null ? void 0 : X.label) != null && ke.includes("选中") ? (le(), Te("span", Su, "(" + Ye(J.selectNums) + ")", 1)) : Ze("", !0),
|
|
363
|
+
(Pe = X == null ? void 0 : X.label) != null && Pe.includes("全部") ? (le(), Te("span", mu, "(" + Ye(J.dataNums) + ")", 1)) : Ze("", !0)
|
|
364
|
+
];
|
|
365
|
+
}),
|
|
366
|
+
_: 2
|
|
367
|
+
}, 1032, ["disabled", "onClick"]))), 128))
|
|
368
|
+
])
|
|
369
|
+
]),
|
|
370
|
+
_: 2
|
|
371
|
+
}, 1024)) : Ze("", !0),
|
|
372
|
+
O != null && O.type ? Ze("", !0) : (le(), el(hl, {
|
|
373
|
+
key: 2,
|
|
374
|
+
id: "themeButton",
|
|
375
|
+
disabled: !!J.lockingPage,
|
|
376
|
+
style: ea({ background: (O == null ? void 0 : O.background) ?? "var(--ssbutton-theme-bg)", color: (O == null ? void 0 : O.color) ?? "var(--ssbutton-theme-color)" }),
|
|
377
|
+
onClick: (X) => Wl(O == null ? void 0 : O.label)
|
|
378
|
+
}, {
|
|
379
|
+
default: H(() => [
|
|
380
|
+
kl(Ye(O == null ? void 0 : O.label), 1)
|
|
381
|
+
]),
|
|
382
|
+
_: 2
|
|
383
|
+
}, 1032, ["disabled", "style", "onClick"]))
|
|
384
|
+
]))), 128))
|
|
385
|
+
])) : Ze("", !0)
|
|
386
|
+
])
|
|
387
|
+
])) : (le(), Te("div", Au, [
|
|
388
|
+
ye("div", _u, [
|
|
389
|
+
ye("div", Tu, [
|
|
390
|
+
ee(cn, {
|
|
391
|
+
title: "",
|
|
392
|
+
width: 800,
|
|
393
|
+
placement: "bottom-start",
|
|
394
|
+
isVisible: u.value
|
|
395
|
+
}, {
|
|
396
|
+
reference: H(() => {
|
|
397
|
+
var O, Je, X, ke;
|
|
398
|
+
return [
|
|
399
|
+
ee(ze, {
|
|
400
|
+
modelValue: M.value,
|
|
401
|
+
"onUpdate:modelValue": Re[3] || (Re[3] = (Pe) => M.value = Pe),
|
|
402
|
+
style: { "min-width": "80px" },
|
|
403
|
+
placeholder: ql.value ? (X = (Je = (O = J.filterValues) == null ? void 0 : O.filter((Pe) => Pe)) == null ? void 0 : Je.slice(0, 3)) == null ? void 0 : X.join("/") : "搜索",
|
|
404
|
+
"prefix-icon": Rl(Yr),
|
|
405
|
+
clearable: "",
|
|
406
|
+
onInput: Cl,
|
|
407
|
+
disabled: ((ke = te.value) == null ? void 0 : ke.length) === 0
|
|
408
|
+
}, {
|
|
409
|
+
suffix: H(() => {
|
|
410
|
+
var Pe, gl;
|
|
411
|
+
return [
|
|
412
|
+
!M.value && ((gl = (Pe = J.filterValues) == null ? void 0 : Pe.filter((Ml) => Ml)) != null && gl.join("/")) ? (le(), el(Ie, {
|
|
413
|
+
key: 0,
|
|
414
|
+
style: { cursor: "pointer" },
|
|
415
|
+
onClick: yl
|
|
416
|
+
}, {
|
|
417
|
+
default: H(() => [
|
|
418
|
+
ee(Rl(Ir))
|
|
419
|
+
]),
|
|
420
|
+
_: 1
|
|
421
|
+
})) : Ze("", !0)
|
|
422
|
+
];
|
|
423
|
+
}),
|
|
424
|
+
append: H(() => [
|
|
425
|
+
ye("span", {
|
|
426
|
+
title: "条件查询",
|
|
427
|
+
onClick: Re[2] || (Re[2] = (Pe) => u.value = !u.value)
|
|
428
|
+
}, [
|
|
429
|
+
ee(he, {
|
|
430
|
+
name: "query",
|
|
431
|
+
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
432
|
+
})
|
|
433
|
+
])
|
|
434
|
+
]),
|
|
435
|
+
_: 1
|
|
436
|
+
}, 8, ["modelValue", "placeholder", "prefix-icon", "disabled"])
|
|
437
|
+
];
|
|
438
|
+
}),
|
|
439
|
+
content: H(() => [
|
|
440
|
+
ye("div", Ou, [
|
|
441
|
+
(le(), el(Oa, {
|
|
442
|
+
rowContents: te.value,
|
|
443
|
+
buttonValue: Ee.value,
|
|
444
|
+
isRowFlex: !0,
|
|
445
|
+
isEnableWrap: !1,
|
|
446
|
+
isButtonRow: !1,
|
|
447
|
+
key: Ee.value,
|
|
448
|
+
isStartJustify: !1,
|
|
449
|
+
onOnButtonClick: aa
|
|
450
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
451
|
+
])
|
|
452
|
+
]),
|
|
453
|
+
_: 1
|
|
454
|
+
}, 8, ["isVisible"])
|
|
455
|
+
]),
|
|
456
|
+
J.buttons && ((vl = J.buttons) == null ? void 0 : vl.length) > 0 ? (le(), Te("div", Cu, [
|
|
457
|
+
(le(!0), Te(Ql, null, Xl((Y = J.buttons) == null ? void 0 : Y.filter((O) => J.isDevMode || (O == null ? void 0 : O.label) !== "修改模板"), (O, Je) => (le(), Te("div", {
|
|
458
|
+
class: "extra-contents",
|
|
459
|
+
key: Je
|
|
460
|
+
}, [
|
|
461
|
+
(O == null ? void 0 : O.type) === "upload" ? (le(), el(Ge, {
|
|
462
|
+
key: 0,
|
|
463
|
+
class: "upload-button-wrap",
|
|
464
|
+
"on-change": je,
|
|
465
|
+
accept: ".xlsx,.xls",
|
|
466
|
+
"auto-upload": !1,
|
|
467
|
+
action: "#",
|
|
468
|
+
"show-file-list": !1
|
|
469
|
+
}, {
|
|
470
|
+
default: H(() => [
|
|
471
|
+
ee(hl, { style: { background: "transparent", color: "#666666" } }, {
|
|
472
|
+
icon: H(() => {
|
|
473
|
+
var X;
|
|
474
|
+
return [
|
|
475
|
+
ee(he, {
|
|
476
|
+
name: (X = qe == null ? void 0 : qe.find((ke) => (ke == null ? void 0 : ke.label) === (O == null ? void 0 : O.label))) == null ? void 0 : X.icon
|
|
477
|
+
}, null, 8, ["name"])
|
|
478
|
+
];
|
|
479
|
+
}),
|
|
480
|
+
default: H(() => [
|
|
481
|
+
kl(" " + Ye(O == null ? void 0 : O.label), 1)
|
|
482
|
+
]),
|
|
483
|
+
_: 2
|
|
484
|
+
}, 1024)
|
|
485
|
+
]),
|
|
486
|
+
_: 2
|
|
487
|
+
}, 1024)) : Ze("", !0),
|
|
488
|
+
(O == null ? void 0 : O.type) === "popover" ? (le(), el(un, { key: 1 }, {
|
|
489
|
+
dropTitle: H(() => [
|
|
490
|
+
(O == null ? void 0 : O.type) === "popover" ? (le(), el(hl, {
|
|
491
|
+
key: 0,
|
|
492
|
+
style: { background: "transparent", color: "#666666" }
|
|
493
|
+
}, {
|
|
494
|
+
icon: H(() => {
|
|
495
|
+
var X;
|
|
496
|
+
return [
|
|
497
|
+
ee(he, {
|
|
498
|
+
name: (X = qe == null ? void 0 : qe.find((ke) => (ke == null ? void 0 : ke.label) === (O == null ? void 0 : O.label))) == null ? void 0 : X.icon
|
|
499
|
+
}, null, 8, ["name"])
|
|
500
|
+
];
|
|
501
|
+
}),
|
|
502
|
+
default: H(() => [
|
|
503
|
+
kl(" " + Ye(O == null ? void 0 : O.label), 1)
|
|
504
|
+
]),
|
|
505
|
+
_: 2
|
|
506
|
+
}, 1024)) : Ze("", !0)
|
|
507
|
+
]),
|
|
508
|
+
dropMenu: H(() => [
|
|
509
|
+
ye("div", Du, [
|
|
510
|
+
(le(!0), Te(Ql, null, Xl(O == null ? void 0 : O.contents, (X) => (le(), el(hl, {
|
|
511
|
+
key: X == null ? void 0 : X.label,
|
|
512
|
+
style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
|
|
513
|
+
onClick: (ke) => Wl(X == null ? void 0 : X.label)
|
|
514
|
+
}, {
|
|
515
|
+
default: H(() => {
|
|
516
|
+
var ke, Pe;
|
|
517
|
+
return [
|
|
518
|
+
kl(Ye(X == null ? void 0 : X.label), 1),
|
|
519
|
+
(ke = X == null ? void 0 : X.label) != null && ke.includes("选中") ? (le(), Te("span", Uu, "(" + Ye(J.selectNums) + ")", 1)) : Ze("", !0),
|
|
520
|
+
(Pe = X == null ? void 0 : X.label) != null && Pe.includes("全部") ? (le(), Te("span", xu, "(" + Ye(J.dataNums) + ")", 1)) : Ze("", !0)
|
|
521
|
+
];
|
|
522
|
+
}),
|
|
523
|
+
_: 2
|
|
524
|
+
}, 1032, ["onClick"]))), 128))
|
|
525
|
+
])
|
|
526
|
+
]),
|
|
527
|
+
_: 2
|
|
528
|
+
}, 1024)) : Ze("", !0),
|
|
529
|
+
O != null && O.type ? Ze("", !0) : (le(), el(hl, {
|
|
530
|
+
key: 2,
|
|
531
|
+
id: "themeButton",
|
|
532
|
+
style: ea({ background: "transparent", color: (O == null ? void 0 : O.label) === "新增" ? "var(--ssbutton-theme-bg)" : "#666666" }),
|
|
533
|
+
onClick: (X) => Wl(O == null ? void 0 : O.label)
|
|
534
|
+
}, {
|
|
535
|
+
icon: H(() => {
|
|
536
|
+
var X;
|
|
537
|
+
return [
|
|
538
|
+
ee(he, {
|
|
539
|
+
name: (X = qe == null ? void 0 : qe.find((ke) => (ke == null ? void 0 : ke.label) === (O == null ? void 0 : O.label))) == null ? void 0 : X.icon
|
|
540
|
+
}, null, 8, ["name"])
|
|
541
|
+
];
|
|
542
|
+
}),
|
|
543
|
+
default: H(() => [
|
|
544
|
+
kl(" " + Ye(O == null ? void 0 : O.label), 1)
|
|
545
|
+
]),
|
|
546
|
+
_: 2
|
|
547
|
+
}, 1032, ["style", "onClick"]))
|
|
548
|
+
]))), 128))
|
|
549
|
+
])) : Ze("", !0)
|
|
550
|
+
])
|
|
551
|
+
]));
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
}, ju = /* @__PURE__ */ Va(Eu, [["__scopeId", "data-v-03b0d8fa"]]), Lu = /* @__PURE__ */ fn({
|
|
555
|
+
__name: "batch",
|
|
556
|
+
props: {
|
|
557
|
+
lockingPage: Boolean,
|
|
558
|
+
buttons: {
|
|
559
|
+
type: Array,
|
|
560
|
+
default: () => []
|
|
561
|
+
},
|
|
562
|
+
selectTableItems: {
|
|
563
|
+
type: Array,
|
|
564
|
+
default: () => []
|
|
565
|
+
},
|
|
566
|
+
columns: {
|
|
567
|
+
type: Array,
|
|
568
|
+
default: () => []
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
emits: ["buttonClick"],
|
|
572
|
+
setup(J, { emit: fe }) {
|
|
573
|
+
const de = J, B = fe, M = (te) => {
|
|
574
|
+
B("buttonClick", te);
|
|
575
|
+
}, u = (te) => {
|
|
576
|
+
var Ee;
|
|
577
|
+
return te != null && te.includes("删除") ? ((Ee = de.selectTableItems) == null ? void 0 : Ee.length) > 0 ? "warning-active-type" : "warning-type" : "default-type";
|
|
578
|
+
};
|
|
579
|
+
return (te, Ee) => {
|
|
580
|
+
const qe = dl("el-button");
|
|
581
|
+
return le(), Te("div", null, [
|
|
582
|
+
(le(!0), Te(Ql, null, Xl(J.buttons, (je) => (le(), el(qe, {
|
|
583
|
+
key: je == null ? void 0 : je.label,
|
|
584
|
+
disabled: !!J.lockingPage,
|
|
585
|
+
class: pn(u(je == null ? void 0 : je.label)),
|
|
586
|
+
onClick: (Cl) => M(je == null ? void 0 : je.label)
|
|
587
|
+
}, {
|
|
588
|
+
default: H(() => [
|
|
589
|
+
kl(Ye(je == null ? void 0 : je.label), 1)
|
|
590
|
+
]),
|
|
591
|
+
_: 2
|
|
592
|
+
}, 1032, ["disabled", "class", "onClick"]))), 128))
|
|
593
|
+
]);
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
}), Pu = /* @__PURE__ */ Va(Lu, [["__scopeId", "data-v-70b12973"]]), $u = tn("formToTableComp", {
|
|
597
|
+
state: () => ({
|
|
598
|
+
selectArray: [],
|
|
599
|
+
selectString: ""
|
|
600
|
+
}),
|
|
601
|
+
actions: {
|
|
602
|
+
setSelectArray(J) {
|
|
603
|
+
this.selectArray = J;
|
|
604
|
+
},
|
|
605
|
+
setSelectString(J) {
|
|
606
|
+
this.selectString = J;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}), Nu = { class: "calculator-content" }, wu = { class: "calculator-child" }, Ru = { class: "calculator-child" }, Bu = /* @__PURE__ */ fn({
|
|
610
|
+
__name: "calculator",
|
|
611
|
+
setup(J) {
|
|
612
|
+
const fe = z(), de = z();
|
|
613
|
+
return Tr(() => {
|
|
614
|
+
fe.value = [
|
|
615
|
+
{
|
|
616
|
+
type: "Upload",
|
|
617
|
+
label: "输入",
|
|
618
|
+
name: "input"
|
|
619
|
+
}
|
|
620
|
+
], de.value = [
|
|
621
|
+
{
|
|
622
|
+
type: "Upload",
|
|
623
|
+
label: "输出",
|
|
624
|
+
name: "output"
|
|
625
|
+
}
|
|
626
|
+
];
|
|
627
|
+
}), (B, M) => (le(), Te("div", Nu, [
|
|
628
|
+
ye("div", wu, [
|
|
629
|
+
ee(Oa, {
|
|
630
|
+
rowContents: fe.value,
|
|
631
|
+
isRowFlex: !0
|
|
632
|
+
}, null, 8, ["rowContents"])
|
|
633
|
+
]),
|
|
634
|
+
ye("div", Ru, [
|
|
635
|
+
ee(Oa, {
|
|
636
|
+
rowContents: de.value,
|
|
637
|
+
isEdit: !1,
|
|
638
|
+
isRowFlex: !0
|
|
639
|
+
}, null, 8, ["rowContents"])
|
|
640
|
+
])
|
|
641
|
+
]));
|
|
642
|
+
}
|
|
643
|
+
}), Mu = /* @__PURE__ */ Va(Bu, [["__scopeId", "data-v-73db0fe7"]]), _r = (J, fe) => {
|
|
644
|
+
let de = J, B = fe;
|
|
645
|
+
return Array.isArray(de) && (de = de == null ? void 0 : de.map((M, u) => {
|
|
646
|
+
if (Array.isArray(M)) {
|
|
647
|
+
let te = {};
|
|
648
|
+
return M = M == null ? void 0 : M.forEach((Ee, qe) => {
|
|
649
|
+
var je;
|
|
650
|
+
(je = B == null ? void 0 : B[qe]) != null && je.prop ? te[B[qe].prop] = Ee : Array.isArray(Ee) && (te.children = _r(Ee, B));
|
|
651
|
+
}), Object.assign(te, { id: u });
|
|
652
|
+
} else
|
|
653
|
+
return M;
|
|
654
|
+
})), de;
|
|
655
|
+
}, yn = (J, fe, de) => {
|
|
656
|
+
let B = J, M = fe;
|
|
657
|
+
return B = B == null ? void 0 : B.map((u, te) => {
|
|
658
|
+
var Ee, qe;
|
|
659
|
+
return !Array.isArray(u) || !((Ee = M == null ? void 0 : M[te]) != null && Ee.label) && !de || (u.unshift(((qe = M == null ? void 0 : M[te]) == null ? void 0 : qe.label) ?? ""), u.some((je) => Array.isArray(je)) && (u = u == null ? void 0 : u.map((je) => {
|
|
660
|
+
var Cl;
|
|
661
|
+
return Array.isArray(je) && (je = yn(je, (Cl = M == null ? void 0 : M[te]) == null ? void 0 : Cl.children, de)), je;
|
|
662
|
+
}))), u;
|
|
663
|
+
}), B;
|
|
664
|
+
}, Fu = (J, fe, de) => {
|
|
665
|
+
if (fe === "")
|
|
666
|
+
return J == null ? void 0 : J.filter((B) => (B == null ? void 0 : B.id) !== de);
|
|
667
|
+
{
|
|
668
|
+
const B = fe.split("-");
|
|
669
|
+
return Ku(J, B, de);
|
|
670
|
+
}
|
|
671
|
+
}, Ku = (J, fe, de) => {
|
|
672
|
+
let B = J, M = fe;
|
|
673
|
+
return (M == null ? void 0 : M.length) === 0 ? B = B == null ? void 0 : B.filter((u) => u.id !== de) : B = B == null ? void 0 : B.map((u) => (u.id.toString() === (M == null ? void 0 : M[0]) && (M == null || M.shift(), u = hn(u, M, de)), u)), B;
|
|
674
|
+
}, hn = (J, fe, de) => {
|
|
675
|
+
var u, te;
|
|
676
|
+
let B = J, M = fe;
|
|
677
|
+
return (M == null ? void 0 : M.length) === 0 ? B.children = (u = B.children) == null ? void 0 : u.filter((Ee) => Ee.id !== de) : B.children = (te = B.children) == null ? void 0 : te.map((Ee) => (Ee.id.toString() === (M == null ? void 0 : M[0]) && (M == null || M.shift(), Ee = hn(Ee, M, de)), Ee)), B;
|
|
678
|
+
}, zu = (J, fe, de) => {
|
|
679
|
+
if (fe === "")
|
|
680
|
+
return de;
|
|
681
|
+
{
|
|
682
|
+
const B = fe.split("-");
|
|
683
|
+
return Ju(J, B, de);
|
|
684
|
+
}
|
|
685
|
+
}, Ju = (J, fe, de) => {
|
|
686
|
+
let B = J, M = fe;
|
|
687
|
+
return (M == null ? void 0 : M.length) === 0 ? B = de : B = B == null ? void 0 : B.map((u) => (u.id.toString() === (M == null ? void 0 : M[0]) && (M == null || M.shift(), u = vn(u, M, de)), u)), B;
|
|
688
|
+
}, vn = (J, fe, de) => {
|
|
689
|
+
var u;
|
|
690
|
+
let B = J, M = fe;
|
|
691
|
+
return (M == null ? void 0 : M.length) === 0 ? B.children = de : B.children = (u = B.children) == null ? void 0 : u.map((te) => (te.id.toString() === (M == null ? void 0 : M[0]) && (M == null || M.shift(), te = vn(te, M, de)), te)), B;
|
|
692
|
+
}, Wu = tn("formComp", {
|
|
693
|
+
state: () => ({
|
|
694
|
+
objUrl: [],
|
|
695
|
+
blobUrls: []
|
|
696
|
+
}),
|
|
697
|
+
actions: {
|
|
698
|
+
setObjUrl(J) {
|
|
699
|
+
this.objUrl = J;
|
|
700
|
+
},
|
|
701
|
+
setBlobUrls(J) {
|
|
702
|
+
this.blobUrls = J;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
}), Ar = async (J, fe) => {
|
|
706
|
+
var te, Ee, qe, je, Cl, Wl, la, ql, aa, yl, me, Re, Ie, he, ze, hl, Ge;
|
|
707
|
+
let de = (Ee = (te = Z(J)) == null ? void 0 : te.optionUrl) == null ? void 0 : Ee.menuSelect, B = [];
|
|
708
|
+
de == null || de.forEach((ce) => {
|
|
709
|
+
});
|
|
710
|
+
let M = "", u = await Qi(de);
|
|
711
|
+
if (u == null || u.forEach((ce) => {
|
|
712
|
+
var I, vl, Y, O;
|
|
713
|
+
(ce == null ? void 0 : ce.name) === (((O = (Y = (vl = (I = Z(J)) == null ? void 0 : I.optionUrl) == null ? void 0 : vl.groupSelect) == null ? void 0 : Y[0]) == null ? void 0 : O.replaceAll("'", "")) ?? "") && (M = ce == null ? void 0 : ce.id);
|
|
714
|
+
}), fe) {
|
|
715
|
+
M = fe;
|
|
716
|
+
const ce = await da({
|
|
717
|
+
id: M
|
|
718
|
+
}), I = (Wl = (Cl = (je = (qe = ce == null ? void 0 : ce.data) == null ? void 0 : qe.result) == null ? void 0 : je[0]) == null ? void 0 : Cl.key) == null ? void 0 : Wl.pageKey;
|
|
719
|
+
u = await _a(I, sessionStorage.getItem("systemKey"), "");
|
|
720
|
+
}
|
|
721
|
+
if (M !== "") {
|
|
722
|
+
let ce;
|
|
723
|
+
fe ? ce = (la = u == null ? void 0 : u.find((Y) => (Y == null ? void 0 : Y.id) === fe)) == null ? void 0 : la.compData : ce = (ql = u == null ? void 0 : u.find((Y) => {
|
|
724
|
+
var O, Je, X, ke;
|
|
725
|
+
return (Y == null ? void 0 : Y.name) === (((Je = (O = J == null ? void 0 : J.groupSelect) == null ? void 0 : O.split(":")) == null ? void 0 : Je[0]) || ((ke = (X = J == null ? void 0 : J.optionUrl) == null ? void 0 : X.groupSelect) == null ? void 0 : ke[0]));
|
|
726
|
+
})) == null ? void 0 : ql.compData;
|
|
727
|
+
let I = (yl = (aa = ce == null ? void 0 : ce.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : aa.contents) == null ? void 0 : yl.map((Y) => Y == null ? void 0 : Y.label);
|
|
728
|
+
(Re = (me = ce == null ? void 0 : ce.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : me.contents) != null && Re.every((Y) => Array.isArray(Y)) && (I = (ze = Ta((he = (Ie = ce == null ? void 0 : ce.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : Ie.contents) == null ? void 0 : he[0])) == null ? void 0 : ze.map((Y) => Y == null ? void 0 : Y.prop));
|
|
729
|
+
let vl = (Ge = (hl = ce == null ? void 0 : ce.find((Y) => (Y == null ? void 0 : Y.key) === "tableContents")) == null ? void 0 : hl.contents) == null ? void 0 : Ge.map((Y) => {
|
|
730
|
+
if (Array.isArray(Y))
|
|
731
|
+
Y = Y == null ? void 0 : Y.filter((O) => !(O != null && O.id));
|
|
732
|
+
else {
|
|
733
|
+
let O = {};
|
|
734
|
+
for (let Je in Y)
|
|
735
|
+
Je !== "id" && (O[Je] = Y == null ? void 0 : Y[Je]);
|
|
736
|
+
Y = O;
|
|
737
|
+
}
|
|
738
|
+
return Y;
|
|
739
|
+
});
|
|
740
|
+
vl == null || vl.forEach((Y) => {
|
|
741
|
+
Array.isArray(Y) ? B.push(Xi(Y, I)) : B.push(Y);
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
return B;
|
|
745
|
+
}, qu = { class: "table-content" }, Gu = { class: "menu-config-wrap" }, Hu = ["onClick"], Qu = {
|
|
746
|
+
key: 0,
|
|
747
|
+
class: "viewport-wrap"
|
|
748
|
+
}, Xu = ["onClick"], Zu = { title: "选择显示列信息" }, Yu = {
|
|
749
|
+
class: "menu-config-wrap",
|
|
750
|
+
style: { padding: "0 0 0 16px", "box-sizing": "border-box", "min-height": "200px", width: "400px", overflow: "auto", position: "relative" }
|
|
751
|
+
}, Iu = ["title"], Vu = { class: "col-operate-wrap" }, es = {
|
|
752
|
+
title: "拖拽排序列",
|
|
753
|
+
style: { cursor: "move", color: "grey", position: "absolute", right: "15px" }
|
|
754
|
+
}, ls = {
|
|
755
|
+
key: 0,
|
|
756
|
+
style: { display: "flex", "justify-content": "center", "align-items": "center" }
|
|
757
|
+
}, as = { class: "pop-view" }, rs = { class: "pop-wrapper" }, ns = { class: "file-list-pop" }, is = ["title", "onClick"], us = ["onClick"], ss = ["onClick"], os = { class: "form-content" }, ds = {
|
|
758
|
+
key: 0,
|
|
759
|
+
class: "dialog-footer"
|
|
760
|
+
}, cs = { class: "dialog-footer" }, ps = { style: { display: "flex", "justify-content": "space-between", width: "100%", "align-items": "center" } }, fs = ["title"], ts = {
|
|
761
|
+
class: "icon",
|
|
762
|
+
style: { display: "flex", gap: "8px" }
|
|
763
|
+
}, ys = { class: "dialog-footer" }, hs = { class: "ocr-preview-content" }, vs = { class: "ocr-preview-tip" }, gs = { class: "ocr-preview-table" }, bs = { class: "dialog-footer" }, ks = { class: "form-content" }, Ss = {
|
|
764
|
+
__name: "index",
|
|
765
|
+
props: {
|
|
766
|
+
pageLayout: {
|
|
767
|
+
type: String,
|
|
768
|
+
default: "vertical"
|
|
769
|
+
},
|
|
770
|
+
level: {
|
|
771
|
+
type: Number,
|
|
772
|
+
default: 1
|
|
773
|
+
},
|
|
774
|
+
compName: {
|
|
775
|
+
type: String,
|
|
776
|
+
default: "",
|
|
777
|
+
required: !1
|
|
778
|
+
},
|
|
779
|
+
compNames: {
|
|
780
|
+
type: Array,
|
|
781
|
+
default: () => [],
|
|
782
|
+
required: !1
|
|
783
|
+
},
|
|
784
|
+
compItem: {
|
|
785
|
+
type: Object,
|
|
786
|
+
default: () => {
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
operatingForm: {
|
|
790
|
+
type: Object,
|
|
791
|
+
default: () => {
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
cacheNewData: {
|
|
795
|
+
type: Object,
|
|
796
|
+
default: () => {
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
config: Object,
|
|
800
|
+
parentTableId: {
|
|
801
|
+
type: Number,
|
|
802
|
+
default: 0
|
|
803
|
+
},
|
|
804
|
+
itemData: {
|
|
805
|
+
type: Array,
|
|
806
|
+
default: () => []
|
|
807
|
+
},
|
|
808
|
+
childItemData: {
|
|
809
|
+
type: Array,
|
|
810
|
+
default: () => []
|
|
811
|
+
},
|
|
812
|
+
index: Number,
|
|
813
|
+
isDevMode: Boolean,
|
|
814
|
+
changedContent: {
|
|
815
|
+
type: Object,
|
|
816
|
+
default: () => {
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
showHeader: {
|
|
820
|
+
type: Boolean,
|
|
821
|
+
default: !0
|
|
822
|
+
},
|
|
823
|
+
allowSelect: {
|
|
824
|
+
type: Boolean,
|
|
825
|
+
default: !1
|
|
826
|
+
},
|
|
827
|
+
allowOperate: {
|
|
828
|
+
type: Boolean,
|
|
829
|
+
default: !0
|
|
830
|
+
},
|
|
831
|
+
allMapContents: {
|
|
832
|
+
type: Object,
|
|
833
|
+
default: () => {
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
emits: ["getSliceContLength", "clickMainKey", "change", "contentChange", "onButtonClick", "contentClick", "pageChange", "rowClick", "routeUrl"],
|
|
838
|
+
setup(J, { emit: fe }) {
|
|
839
|
+
var Qr;
|
|
840
|
+
const de = z([]), B = Wu(ua), M = z(null), u = J, te = z(u == null ? void 0 : u.allowSelect), Ee = z((Qr = u == null ? void 0 : u.config) == null ? void 0 : Qr.showIndex), qe = z(), je = z(!0), Cl = z(!1), Wl = z([
|
|
841
|
+
{
|
|
842
|
+
label: "排序",
|
|
843
|
+
value: "sortable",
|
|
844
|
+
checked: !1
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
label: "筛选",
|
|
848
|
+
value: "filterable",
|
|
849
|
+
checked: !1
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
label: "合计",
|
|
853
|
+
value: "showSummary",
|
|
854
|
+
checked: !1
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
label: "编辑",
|
|
858
|
+
value: "operable",
|
|
859
|
+
checked: !1
|
|
860
|
+
}
|
|
861
|
+
]), la = Zi(ua);
|
|
862
|
+
let ql = "$R";
|
|
863
|
+
const { originalPath: aa } = ma(la), yl = aa.value, me = z(!1), Re = z(!1), Ie = z(!1), he = z(!0), ze = z([]), hl = Fa({
|
|
864
|
+
column: {},
|
|
865
|
+
status: !1,
|
|
866
|
+
text: "合计"
|
|
867
|
+
}), Ge = Fa({
|
|
868
|
+
currentPage: 1,
|
|
869
|
+
pageSize: 10,
|
|
870
|
+
total: 0,
|
|
871
|
+
pageSizes: [5, 10, 20, 50, 100]
|
|
872
|
+
}), ce = fe, I = z([]), vl = z([]), Y = Fa({ prop: "", order: null }), O = z([]), Je = z(!1), X = z(!1), ke = z(null), { isUseBackdrop: Pe, initTrackFileType: gl, getFileExtension: Ml, setData: er, getFileInfo: Or, getFilesInfo: gn } = du(), lr = z([]), ra = z(!1), ca = z(), cl = pu(), { importLoading: ms, activeMenuPath: Be, contentLoading: As, linkMenuInfo: bn } = ma(cl), kn = Yi(ua), al = fu(ua), { extraContents: Ke, cacheUpdatingData: Ca, tableViewContents: Da, tableLoading: _s, pageMapState: pa, lockingPage: za } = ma(al), ae = z([]), Zl = z([]), fa = z(/* @__PURE__ */ new Map());
|
|
873
|
+
z(!1);
|
|
874
|
+
const Gl = z("");
|
|
875
|
+
z();
|
|
876
|
+
const Ja = z(!0), ta = z(0), Cr = z(!0), Dl = z(""), Hl = z(!1), Sn = z({
|
|
877
|
+
label: "查看三维模型"
|
|
878
|
+
}), Wa = z(!1), ar = z(), Bl = z([]), Il = z([]), qa = z(!1), Ua = z([]), Nl = z([]), wl = z([]), Ae = z([]), Ga = z(!1), ya = z(!1), Yl = z([]), mn = z(null), Ha = z(!1), Qa = z([]), Dr = z(""), rr = z(""), nr = z(!1), ha = z([]), ir = z([]), ur = z([]), sr = z(null), xa = tu(), An = vr(() => xa.getConfig()), Fl = z(), _l = z(), _n = $u(ua), Ea = z(), or = z(0), Tn = Ii(ua), { selectIndex: On, selectMenu: ja, selectTitle: Ts } = ma(Tn), { selectString: na } = ma(_n), Cn = Ki(ua), { loginUserInfo: va } = ma(Cn), Dn = z(720), Kl = z(!1), Xa = z(!1), zl = z([]), Jl = z(), La = z(!0), Ur = z(!0), ia = z([]), Un = Ni("contentRef");
|
|
879
|
+
wi("contentRef", Un), $l(() => {
|
|
880
|
+
var e;
|
|
881
|
+
return (e = ae.value) == null ? void 0 : e.length;
|
|
882
|
+
}, (e) => {
|
|
883
|
+
Ge.total = e;
|
|
884
|
+
}), $l(
|
|
885
|
+
() => Da.value,
|
|
886
|
+
async () => {
|
|
887
|
+
var o, p, i, f, k, C, c, m, E, U, L, D, R, W, F, s, S, v;
|
|
888
|
+
if (((o = Da.value) == null ? void 0 : o.length) === 0 || !((p = u == null ? void 0 : u.itemData) != null && p.find((_) => (_ == null ? void 0 : _.key) === "columnPath")) || !((i = u == null ? void 0 : u.itemData) != null && i.find((_) => (_ == null ? void 0 : _.key) === "pageColumn"))) return;
|
|
889
|
+
let e = (E = (m = (c = (C = (k = (f = u == null ? void 0 : u.itemData) == null ? void 0 : f.find((_) => (_ == null ? void 0 : _.key) === "pageColumn")) == null ? void 0 : k.contents) == null ? void 0 : C.split("[")) == null ? void 0 : c[1]) == null ? void 0 : m.split("]")) == null ? void 0 : E[0], l = ((R = (D = (L = (U = u == null ? void 0 : u.itemData) == null ? void 0 : U.find((_) => (_ == null ? void 0 : _.key) === "pageColumn")) == null ? void 0 : L.contents) == null ? void 0 : D.split("[")) == null ? void 0 : R[0]) + ((F = (W = Da.value) == null ? void 0 : W.find((_) => (_ == null ? void 0 : _.key) === e)) == null ? void 0 : F.value), a = ((S = (s = u == null ? void 0 : u.itemData) == null ? void 0 : s.find((_) => (_ == null ? void 0 : _.key) === "pageGroup")) == null ? void 0 : S.contents) ?? "", r = await _a(l, sessionStorage.getItem("systemKey"), ""), n = (v = r == null ? void 0 : r.find((_) => (_ == null ? void 0 : _.name) === (a === "" ? u == null ? void 0 : u.compName : a))) == null ? void 0 : v.compData;
|
|
890
|
+
Gr(n, u.allMapContents);
|
|
891
|
+
},
|
|
892
|
+
{ deep: !0 }
|
|
893
|
+
);
|
|
894
|
+
const xn = async (e, l) => {
|
|
895
|
+
var a, r, n, o, p;
|
|
896
|
+
try {
|
|
897
|
+
const i = await da({ id: (u == null ? void 0 : u.parentTableId) || (u == null ? void 0 : u.index) });
|
|
898
|
+
let f;
|
|
899
|
+
((a = i == null ? void 0 : i.data) == null ? void 0 : a.code) === 200 && (f = ((n = (r = i == null ? void 0 : i.data) == null ? void 0 : r.result) == null ? void 0 : n[0]) || null);
|
|
900
|
+
const k = {
|
|
901
|
+
type: "data",
|
|
902
|
+
pageKey: u != null && u.parentTableId ? (o = f == null ? void 0 : f.key) == null ? void 0 : o.pageKey : Be.value,
|
|
903
|
+
tableId: (u == null ? void 0 : u.parentTableId) || (u == null ? void 0 : u.index),
|
|
904
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
905
|
+
}, C = l == null ? void 0 : l.map((E) => {
|
|
906
|
+
const U = Object.keys(E), L = {};
|
|
907
|
+
return U.forEach((D, R) => {
|
|
908
|
+
L[e[R]] = E[D];
|
|
909
|
+
}), L;
|
|
910
|
+
}), c = C == null ? void 0 : C.map((E) => ({
|
|
911
|
+
key: k,
|
|
912
|
+
value: {
|
|
913
|
+
tableData: E
|
|
914
|
+
}
|
|
915
|
+
})), m = await Vr({ dataList: c });
|
|
916
|
+
((p = m == null ? void 0 : m.data) == null ? void 0 : p.code) === 200 ? (al.setRefreshCurStructure(!0), Xe.success("导入数据成功")) : Xe.error("导入数据响应失败");
|
|
917
|
+
} catch (i) {
|
|
918
|
+
throw Xe.error("导入数据处理失败"), new Error(i);
|
|
919
|
+
}
|
|
920
|
+
}, En = async (e) => {
|
|
921
|
+
var o, p, i, f, k, C, c;
|
|
922
|
+
let l = vl.value;
|
|
923
|
+
l != null && l.find((m) => (e == null ? void 0 : e.key) === (m == null ? void 0 : m.key)) && (l = l == null ? void 0 : l.filter((m) => (e == null ? void 0 : e.key) !== (m == null ? void 0 : m.key))), l.push({
|
|
924
|
+
key: e == null ? void 0 : e.key,
|
|
925
|
+
value: [(p = e == null ? void 0 : e.value) == null ? void 0 : p[((o = e == null ? void 0 : e.value) == null ? void 0 : o.length) - 1]]
|
|
926
|
+
});
|
|
927
|
+
let a = Ae.value;
|
|
928
|
+
a = a == null ? void 0 : a.map((m) => {
|
|
929
|
+
var E, U;
|
|
930
|
+
return (m == null ? void 0 : m.type) === "Select" && (e == null ? void 0 : e.key) === (m == null ? void 0 : m.prop) && Array.isArray(m.value) && (E = m.value) != null && E.every((L) => typeof L == "string") && (m.selectValue = (U = l == null ? void 0 : l.find((L) => (L == null ? void 0 : L.key) === (m == null ? void 0 : m.prop))) == null ? void 0 : U.value), m;
|
|
931
|
+
});
|
|
932
|
+
let r = (f = (i = a == null ? void 0 : a.find((m) => (m == null ? void 0 : m.prop) === (e == null ? void 0 : e.key))) == null ? void 0 : i.optionUrl) == null ? void 0 : f.menuId, n = a == null ? void 0 : a.find((m) => (m == null ? void 0 : m.prop) === (e == null ? void 0 : e.key));
|
|
933
|
+
if (r) {
|
|
934
|
+
let m = await Ar(n == null ? void 0 : n.optionUrl, r), E, U = ze.value, L = (c = (C = (k = Ae.value) == null ? void 0 : k.find((D) => {
|
|
935
|
+
var R;
|
|
936
|
+
return (R = n == null ? void 0 : n.optionUrl) == null ? void 0 : R.menuId;
|
|
937
|
+
})) == null ? void 0 : C.selectValue) == null ? void 0 : c[0];
|
|
938
|
+
if (m == null || m.forEach((D) => {
|
|
939
|
+
var R, W, F, s, S, v, _, b, q, P;
|
|
940
|
+
if (r) {
|
|
941
|
+
let Q = (W = (R = Ae.value) == null ? void 0 : R.find((x) => {
|
|
942
|
+
var pe, w;
|
|
943
|
+
return ((pe = n == null ? void 0 : n.optionUrl) == null ? void 0 : pe.menuId) === ((w = x == null ? void 0 : x.optionUrl) == null ? void 0 : w.menuId);
|
|
944
|
+
})) == null ? void 0 : W.prop, d = (s = (F = a == null ? void 0 : a.find((x) => (x == null ? void 0 : x.prop) === Q)) == null ? void 0 : F.selectValue) == null ? void 0 : s[0];
|
|
945
|
+
Q != null && Q.includes("·") && (Q = (S = Q == null ? void 0 : Q.split("·")) == null ? void 0 : S[0], d = (q = (b = (_ = e == null ? void 0 : e.value) == null ? void 0 : _[((v = e == null ? void 0 : e.value) == null ? void 0 : v.length) - 1]) == null ? void 0 : b.split(" ")) == null ? void 0 : q[0]), U != null && U.find((x) => (x == null ? void 0 : x.value) === L) ? E = (P = U == null ? void 0 : U.find((x) => (x == null ? void 0 : x.value) === L)) == null ? void 0 : P.objectValue : D[Q] === d && (E = D);
|
|
946
|
+
}
|
|
947
|
+
}), E) {
|
|
948
|
+
let D = a;
|
|
949
|
+
D = D == null ? void 0 : D.map((R) => {
|
|
950
|
+
var W, F, s, S, v, _;
|
|
951
|
+
return r && (E != null && E[R == null ? void 0 : R.prop]) && Dl.value === "新增" && (R == null ? void 0 : R.prop) !== (n == null ? void 0 : n.prop) ? R.value = (E == null ? void 0 : E[R == null ? void 0 : R.prop]) || (E == null ? void 0 : E[(S = (s = (F = (W = R == null ? void 0 : R.optionUrl) == null ? void 0 : W.groupSelect) == null ? void 0 : F[1]) == null ? void 0 : s.replaceAll("[", "")) == null ? void 0 : S.replaceAll("]", "")]) : R.value = (_ = (v = Ae.value) == null ? void 0 : v.find((b) => (b == null ? void 0 : b.prop) === (R == null ? void 0 : R.prop))) == null ? void 0 : _.value, R;
|
|
952
|
+
}), Ae.value = D;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
vl.value = l;
|
|
956
|
+
}, jn = async (e) => {
|
|
957
|
+
var l, a, r, n, o;
|
|
958
|
+
if ((l = e == null ? void 0 : e.toString()) != null && l.includes(".txt") || (a = e == null ? void 0 : e.toString()) != null && a.includes(".cpt") || (r = e == null ? void 0 : e.toString()) != null && r.includes(".cyd")) {
|
|
959
|
+
const p = await sa.get(e, {
|
|
960
|
+
responseType: "blob",
|
|
961
|
+
// 必须设置
|
|
962
|
+
headers: {
|
|
963
|
+
"Content-Type": "application/json"
|
|
964
|
+
}
|
|
965
|
+
}), i = new Blob([p.data], {
|
|
966
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
967
|
+
});
|
|
968
|
+
let f = URL.createObjectURL(i);
|
|
969
|
+
ca.value = [{
|
|
970
|
+
name: (o = e == null ? void 0 : e.split("/")) == null ? void 0 : o[((n = e == null ? void 0 : e.split("/")) == null ? void 0 : n.length) - 1],
|
|
971
|
+
blobUrl: f
|
|
972
|
+
}], ra.value = !0;
|
|
973
|
+
}
|
|
974
|
+
};
|
|
975
|
+
Ri(() => {
|
|
976
|
+
Ur.value = !1;
|
|
977
|
+
let e = or.value;
|
|
978
|
+
or.value = e + 1;
|
|
979
|
+
});
|
|
980
|
+
const xr = vr(() => {
|
|
981
|
+
var r, n;
|
|
982
|
+
const e = (Ge.currentPage - 1) * Ge.pageSize, l = e + Ge.pageSize, a = (r = I.value) == null ? void 0 : r.find((o) => {
|
|
983
|
+
var p;
|
|
984
|
+
return (o == null ? void 0 : o.sortable) && ((p = o == null ? void 0 : o.label) == null ? void 0 : p.includes("时间"));
|
|
985
|
+
});
|
|
986
|
+
return a && (Y.order = "descending", Y.prop = a == null ? void 0 : a.prop), ce("getSliceContLength", Ge), (n = ae.value) == null ? void 0 : n.slice(e, l);
|
|
987
|
+
}), Ln = (e) => {
|
|
988
|
+
Ge.currentPage = e, ce("getSliceContLength", Ge);
|
|
989
|
+
}, Pn = (e) => {
|
|
990
|
+
var l;
|
|
991
|
+
Ge.pageSize = e, e * Ge.currentPage > ((l = ae.value) == null ? void 0 : l.length) && (Ge.currentPage = 1, Ge.pageSize = 10, Xe.warning("分页无效,返回第一页")), ce("getSliceContLength", Ge);
|
|
992
|
+
}, $n = (e, l) => {
|
|
993
|
+
var p, i;
|
|
994
|
+
const a = (i = (p = I.value) == null ? void 0 : p.map((f) => f == null ? void 0 : f.prop)) == null ? void 0 : i.filter((f) => f !== "operate");
|
|
995
|
+
let r;
|
|
996
|
+
const n = (e == null ? void 0 : e.length) === (a == null ? void 0 : a.length);
|
|
997
|
+
if (e != null && e.includes("序号")) return Xe.error("导入的数据不需要包含序号列");
|
|
998
|
+
if (r = n ? e : e.slice(0, a == null ? void 0 : a.length), !(r == null ? void 0 : r.every((f) => a == null ? void 0 : a.find((k) => f === k)))) return Xe.error("导入的数据表头不匹配");
|
|
999
|
+
xn(r, l);
|
|
1000
|
+
}, Nn = (e, l) => {
|
|
1001
|
+
var a;
|
|
1002
|
+
al.setRefreshCurStructure(!1), ((a = I.value) == null ? void 0 : a.length) === 0 || $n(e, l);
|
|
1003
|
+
}, wn = (e, l, a, r) => {
|
|
1004
|
+
const n = [], o = [], p = (k) => Object.keys(k).length;
|
|
1005
|
+
for (const k in e)
|
|
1006
|
+
if (e[k] !== void 0) {
|
|
1007
|
+
const C = e[k], c = [];
|
|
1008
|
+
for (const [m, E] of Object.entries(C))
|
|
1009
|
+
c.push(E), o.length < p(C) && o.push(m);
|
|
1010
|
+
n.push(c);
|
|
1011
|
+
}
|
|
1012
|
+
n.unshift(o);
|
|
1013
|
+
const i = Ka.aoa_to_sheet(n), f = Ka.book_new();
|
|
1014
|
+
Ka.book_append_sheet(f, i, r), nu(f, `${l}.xlsx`), zl.value = [];
|
|
1015
|
+
}, Za = async (e, l, a, r = !1, n) => {
|
|
1016
|
+
var o, p, i, f, k, C, c, m;
|
|
1017
|
+
try {
|
|
1018
|
+
al.setRefreshCurStructure(!1);
|
|
1019
|
+
const E = await da({
|
|
1020
|
+
id: u == null ? void 0 : u.index
|
|
1021
|
+
});
|
|
1022
|
+
if (((o = E == null ? void 0 : E.data) == null ? void 0 : o.code) === 200) {
|
|
1023
|
+
let U = (k = (f = (i = (p = E == null ? void 0 : E.data) == null ? void 0 : p.result) == null ? void 0 : i[0]) == null ? void 0 : f.value) == null ? void 0 : k.pageData;
|
|
1024
|
+
r ? U = {
|
|
1025
|
+
...U,
|
|
1026
|
+
compData: (c = U == null ? void 0 : U.compData) == null ? void 0 : c.map((D) => {
|
|
1027
|
+
var R;
|
|
1028
|
+
return (D == null ? void 0 : D.key) === "header" ? {
|
|
1029
|
+
...D,
|
|
1030
|
+
contents: (R = D == null ? void 0 : D.contents) == null ? void 0 : R.map((W) => ({
|
|
1031
|
+
...W,
|
|
1032
|
+
[e]: a
|
|
1033
|
+
}))
|
|
1034
|
+
} : D;
|
|
1035
|
+
})
|
|
1036
|
+
} : U = {
|
|
1037
|
+
...U,
|
|
1038
|
+
compData: (C = U == null ? void 0 : U.compData) == null ? void 0 : C.map((D) => {
|
|
1039
|
+
var R, W;
|
|
1040
|
+
return (D == null ? void 0 : D.key) === "header" ? {
|
|
1041
|
+
...D,
|
|
1042
|
+
contents: (R = D == null ? void 0 : D.contents) == null ? void 0 : R.map((F) => (F == null ? void 0 : F.prop) === (l == null ? void 0 : l.prop) ? {
|
|
1043
|
+
...F,
|
|
1044
|
+
[e]: a
|
|
1045
|
+
} : F)
|
|
1046
|
+
} : (D == null ? void 0 : D.key) === "tableToForm" && n ? {
|
|
1047
|
+
...D,
|
|
1048
|
+
contents: (W = D == null ? void 0 : D.contents) == null ? void 0 : W.map((F) => (F == null ? void 0 : F.prop) === (l == null ? void 0 : l.prop) ? {
|
|
1049
|
+
...F,
|
|
1050
|
+
[n]: a
|
|
1051
|
+
} : F)
|
|
1052
|
+
} : D;
|
|
1053
|
+
})
|
|
1054
|
+
};
|
|
1055
|
+
const L = await qi({
|
|
1056
|
+
id: u == null ? void 0 : u.index,
|
|
1057
|
+
value: {
|
|
1058
|
+
pageData: U
|
|
1059
|
+
}
|
|
1060
|
+
});
|
|
1061
|
+
((m = L == null ? void 0 : L.data) == null ? void 0 : m.code) === 200 ? (Xe.success("编辑成功"), al.setRefreshCurStructure(!0)) : Xe.error("编辑响应失败");
|
|
1062
|
+
}
|
|
1063
|
+
} catch (E) {
|
|
1064
|
+
Xe.error(E);
|
|
1065
|
+
}
|
|
1066
|
+
}, Rn = async (e, l) => {
|
|
1067
|
+
await Za("label", l, e);
|
|
1068
|
+
}, Bn = async (e, l) => {
|
|
1069
|
+
await Za("columnType", l, e, !1, "type");
|
|
1070
|
+
}, Mn = () => {
|
|
1071
|
+
Ca.value ? Kl.value = !1 : Hr();
|
|
1072
|
+
}, Fn = (e) => {
|
|
1073
|
+
zl.value = e;
|
|
1074
|
+
}, Kn = (e, l) => {
|
|
1075
|
+
Jl.value === l ? La.value = !1 : La.value = !0, Jl.value = l == null ? void 0 : l.changeProp;
|
|
1076
|
+
}, zn = (e) => {
|
|
1077
|
+
if (!e)
|
|
1078
|
+
return;
|
|
1079
|
+
const { item: l, value: a } = e, r = Ae.value.find((n) => n.prop == l.prop);
|
|
1080
|
+
r && r.contents.push({
|
|
1081
|
+
label: a,
|
|
1082
|
+
value: a
|
|
1083
|
+
});
|
|
1084
|
+
}, Pa = vr(() => {
|
|
1085
|
+
var a, r, n;
|
|
1086
|
+
const e = (a = I.value) == null ? void 0 : a.some((o) => o == null ? void 0 : o.filterable);
|
|
1087
|
+
return document.documentElement.style.setProperty("--ssTable-header-filter-display", e ? "inline-block" : "none"), (n = (r = I.value) == null ? void 0 : r.filter((o) => (o == null ? void 0 : o.label) !== "操作")) == null ? void 0 : n.map((o) => ({
|
|
1088
|
+
...o,
|
|
1089
|
+
filterable: !!(o != null && o.filterable),
|
|
1090
|
+
showSummary: !!(o != null && o.showSummary),
|
|
1091
|
+
operable: !!(o != null && o.operable)
|
|
1092
|
+
}));
|
|
1093
|
+
}), Jn = async (e, l, a) => {
|
|
1094
|
+
const r = Z(I.value);
|
|
1095
|
+
await Ia(), I.value = r == null ? void 0 : r.map((n) => (a == null ? void 0 : a.label) === (n == null ? void 0 : n.label) ? {
|
|
1096
|
+
...n,
|
|
1097
|
+
[l]: e
|
|
1098
|
+
} : n), await Za(l, a, e);
|
|
1099
|
+
}, dr = async (e, l) => {
|
|
1100
|
+
await Za(l, null, e, !0);
|
|
1101
|
+
}, Wn = () => {
|
|
1102
|
+
Hl.value = !1;
|
|
1103
|
+
}, qn = (e) => {
|
|
1104
|
+
ce("clickTrigger", e);
|
|
1105
|
+
}, Er = async (e) => {
|
|
1106
|
+
var o, p, i, f, k, C, c, m, E, U, L, D, R, W, F;
|
|
1107
|
+
const l = e == null ? void 0 : e.row, a = e == null ? void 0 : e.rowData, r = e == null ? void 0 : e.suffix;
|
|
1108
|
+
if ((o = l == null ? void 0 : l.toString()) != null && o.includes(".urdf") || e != null && e.isUrdf || r != null && r.includes(".urdf")) {
|
|
1109
|
+
if (l.includes(",")) {
|
|
1110
|
+
Xe.error("当前版本仅允许单个urdf预览!");
|
|
1111
|
+
return;
|
|
1112
|
+
}
|
|
1113
|
+
if (Pe(l)) {
|
|
1114
|
+
const S = {
|
|
1115
|
+
files: [Or(l)],
|
|
1116
|
+
data: {}
|
|
1117
|
+
};
|
|
1118
|
+
er(S);
|
|
1119
|
+
return;
|
|
1120
|
+
}
|
|
1121
|
+
Ua.value = [{
|
|
1122
|
+
url: l,
|
|
1123
|
+
extension: Ml(l)
|
|
1124
|
+
}], X.value = !0, ke.value = {
|
|
1125
|
+
data: Z(a)
|
|
1126
|
+
}, Je.value = !0;
|
|
1127
|
+
return;
|
|
1128
|
+
}
|
|
1129
|
+
let n = [];
|
|
1130
|
+
if ((p = l == null ? void 0 : l.toString()) != null && p.includes(".stl") || (i = l == null ? void 0 : l.toString()) != null && i.includes(".STL") || (f = l == null ? void 0 : l.toString()) != null && f.includes(".obj") || (k = l == null ? void 0 : l.toString()) != null && k.includes(".mtl")) {
|
|
1131
|
+
const s = (C = l == null ? void 0 : l.toString()) == null ? void 0 : C.split(","), S = gn(s), v = S == null ? void 0 : S[0];
|
|
1132
|
+
if (Pe(v == null ? void 0 : v.extension)) {
|
|
1133
|
+
er({
|
|
1134
|
+
files: S,
|
|
1135
|
+
data: {}
|
|
1136
|
+
});
|
|
1137
|
+
return;
|
|
1138
|
+
}
|
|
1139
|
+
Ua.value = S, X.value = !1, Je.value = !0;
|
|
1140
|
+
return;
|
|
1141
|
+
}
|
|
1142
|
+
if ((c = l == null ? void 0 : l.toString()) != null && c.includes(".stl") || (m = l == null ? void 0 : l.toString()) != null && m.includes(".STL") || (E = l == null ? void 0 : l.toString()) != null && E.includes(".obj") || (U = l == null ? void 0 : l.toString()) != null && U.includes(".mtl") || r != null && r.includes(".stl") || r != null && r.includes(".STL") || r != null && r.includes(".obj") || r != null && r.includes(".mtl")) {
|
|
1143
|
+
let s, S = [], v = {};
|
|
1144
|
+
if (Array.isArray(l) ? s = l : s = l == null ? void 0 : l.split(","), s == null || s.forEach((_) => {
|
|
1145
|
+
_.includes(".mtl") ? S.push(_) : v.blob = v.blob ? v.blob + "," + _ : _;
|
|
1146
|
+
}), (S == null ? void 0 : S.length) > 0 && (v.mtlBlobs = S), r && (v.suffix = r), (D = (L = Object.values(v)) == null ? void 0 : L[0]) != null && D.includes("http:"))
|
|
1147
|
+
n.push(v);
|
|
1148
|
+
else {
|
|
1149
|
+
const _ = new Blob([v.blob], {
|
|
1150
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
1151
|
+
});
|
|
1152
|
+
let b = URL.createObjectURL(_), q = "";
|
|
1153
|
+
(R = l == null ? void 0 : l.split("/")) == null || R.forEach((P, Q) => {
|
|
1154
|
+
var d;
|
|
1155
|
+
Q === ((d = l == null ? void 0 : l.split("/")) == null ? void 0 : d.length) - 1 && (q = P);
|
|
1156
|
+
}), (W = v.blob) != null && W.includes(".stl") && (q = (q == null ? void 0 : q.replaceAll(">", "")) + ".urdf"), ca.value = [{
|
|
1157
|
+
name: q,
|
|
1158
|
+
blobUrl: b
|
|
1159
|
+
}], ra.value = !0;
|
|
1160
|
+
}
|
|
1161
|
+
} else {
|
|
1162
|
+
const s = await sa.get(l, {
|
|
1163
|
+
responseType: "blob",
|
|
1164
|
+
headers: {
|
|
1165
|
+
"Content-Type": "application/json"
|
|
1166
|
+
}
|
|
1167
|
+
}), S = new Blob([s.data], {
|
|
1168
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
1169
|
+
});
|
|
1170
|
+
let v = URL.createObjectURL(S), _ = "";
|
|
1171
|
+
if ((F = l == null ? void 0 : l.split("/")) == null || F.forEach((b, q) => {
|
|
1172
|
+
var P;
|
|
1173
|
+
q === ((P = l == null ? void 0 : l.split("/")) == null ? void 0 : P.length) - 1 && (_ = b);
|
|
1174
|
+
}), Pe(_)) {
|
|
1175
|
+
const b = gl(_), q = Or(l);
|
|
1176
|
+
er({
|
|
1177
|
+
files: [q],
|
|
1178
|
+
data: {
|
|
1179
|
+
trackFileType: b
|
|
1180
|
+
}
|
|
1181
|
+
});
|
|
1182
|
+
return;
|
|
1183
|
+
}
|
|
1184
|
+
ca.value = [{
|
|
1185
|
+
name: _,
|
|
1186
|
+
blobUrl: v
|
|
1187
|
+
}], ra.value = !0;
|
|
1188
|
+
}
|
|
1189
|
+
(n == null ? void 0 : n.length) > 0 && B.setBlobUrls(n);
|
|
1190
|
+
}, $a = (e) => {
|
|
1191
|
+
var r, n, o, p;
|
|
1192
|
+
if (e != null && e.downloadUrl)
|
|
1193
|
+
return e == null ? void 0 : e.name;
|
|
1194
|
+
const l = (p = (r = e == null ? void 0 : e.url) == null ? void 0 : r.split(".")) == null ? void 0 : p[((o = (n = e == null ? void 0 : e.url) == null ? void 0 : n.split(".")) == null ? void 0 : o.length) - 1];
|
|
1195
|
+
return (e == null ? void 0 : e.name) + "." + l;
|
|
1196
|
+
}, cr = (e) => {
|
|
1197
|
+
if (!e) return "未知文件";
|
|
1198
|
+
try {
|
|
1199
|
+
const r = $a(e);
|
|
1200
|
+
if (typeof r == "string" && r.includes(".")) return r;
|
|
1201
|
+
} catch {
|
|
1202
|
+
}
|
|
1203
|
+
const l = (e == null ? void 0 : e.fileName) || (e == null ? void 0 : e.name) || "未知文件", a = (e == null ? void 0 : e.suffix) || "";
|
|
1204
|
+
return l.includes(".") ? l : `${l}${a}`;
|
|
1205
|
+
}, jr = (e) => {
|
|
1206
|
+
if (e == null || typeof e == "number" || typeof e != "string") return e;
|
|
1207
|
+
const l = e.match(/^(\d+)\_(\d+)$/);
|
|
1208
|
+
if (!l) return e;
|
|
1209
|
+
const a = Number(l[1]), r = Number(l[2]);
|
|
1210
|
+
return !Number.isFinite(a) || !Number.isFinite(r) ? e : String(a * 1e3 + r);
|
|
1211
|
+
}, Lr = async (e) => {
|
|
1212
|
+
let l = null, a = null;
|
|
1213
|
+
if (e != null && e.id) {
|
|
1214
|
+
const n = Sr.service({
|
|
1215
|
+
lock: !0,
|
|
1216
|
+
text: "Loading",
|
|
1217
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
1218
|
+
});
|
|
1219
|
+
try {
|
|
1220
|
+
const o = await Aa(e);
|
|
1221
|
+
l = URL.createObjectURL(o.data), a = cr(e);
|
|
1222
|
+
} finally {
|
|
1223
|
+
n.close();
|
|
1224
|
+
}
|
|
1225
|
+
} else if (e != null && e.downloadUrl) {
|
|
1226
|
+
const n = await pr(), o = Sr.service({
|
|
1227
|
+
lock: !0,
|
|
1228
|
+
text: "Loading",
|
|
1229
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
1230
|
+
}), p = await sa.post(e == null ? void 0 : e.url, null, {
|
|
1231
|
+
responseType: "blob",
|
|
1232
|
+
// 必须设置
|
|
1233
|
+
headers: {
|
|
1234
|
+
Authorization: n,
|
|
1235
|
+
baseURL: "http://139.196.154.85:20025",
|
|
1236
|
+
"Content-Type": "application/json"
|
|
1237
|
+
}
|
|
1238
|
+
}).finally(() => {
|
|
1239
|
+
o.close();
|
|
1240
|
+
}), i = new Blob([p.data], {
|
|
1241
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
1242
|
+
});
|
|
1243
|
+
l = URL.createObjectURL(i), a = e == null ? void 0 : e.name;
|
|
1244
|
+
} else {
|
|
1245
|
+
const n = await Aa({
|
|
1246
|
+
url: e == null ? void 0 : e.url
|
|
1247
|
+
});
|
|
1248
|
+
!e.url.toUpperCase().includes(".OBJ") && !e.url.toUpperCase().includes(".STL") && !e.url.toUpperCase().includes(".MTL") && !e.url.toUpperCase().includes(".URDF") ? (l = URL.createObjectURL(n.data), a = $a(e)) : l = e == null ? void 0 : e.url;
|
|
1249
|
+
}
|
|
1250
|
+
if (Pe(l)) {
|
|
1251
|
+
const n = {
|
|
1252
|
+
row: `${l}`,
|
|
1253
|
+
suffix: Ml(a)
|
|
1254
|
+
};
|
|
1255
|
+
Er(n);
|
|
1256
|
+
return;
|
|
1257
|
+
}
|
|
1258
|
+
const r = {
|
|
1259
|
+
name: a,
|
|
1260
|
+
blobUrl: l
|
|
1261
|
+
};
|
|
1262
|
+
ca.value = [r], ra.value = !0;
|
|
1263
|
+
}, Gn = async (e) => {
|
|
1264
|
+
let l = null, a = null;
|
|
1265
|
+
if (e != null && e.id) {
|
|
1266
|
+
const o = await Aa(e);
|
|
1267
|
+
l = URL.createObjectURL(o.data), a = cr(e);
|
|
1268
|
+
} else if (e != null && e.downloadUrl) {
|
|
1269
|
+
const o = await pr(), p = await sa.post(e == null ? void 0 : e.url, null, {
|
|
1270
|
+
responseType: "blob",
|
|
1271
|
+
// 必须设置
|
|
1272
|
+
headers: {
|
|
1273
|
+
Authorization: o,
|
|
1274
|
+
baseURL: "http://139.196.154.85:20025",
|
|
1275
|
+
"Content-Type": "application/json"
|
|
1276
|
+
}
|
|
1277
|
+
}), i = new Blob([p.data], {
|
|
1278
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
1279
|
+
});
|
|
1280
|
+
l = URL.createObjectURL(i), a = e == null ? void 0 : e.name;
|
|
1281
|
+
} else {
|
|
1282
|
+
const o = await Aa({
|
|
1283
|
+
url: e == null ? void 0 : e.url
|
|
1284
|
+
});
|
|
1285
|
+
l = URL.createObjectURL(o.data), a = $a(e);
|
|
1286
|
+
}
|
|
1287
|
+
const r = {
|
|
1288
|
+
name: a,
|
|
1289
|
+
blobUrl: l
|
|
1290
|
+
}, n = document.createElement("a");
|
|
1291
|
+
n.href = r.blobUrl, n.download = r.name, n.style.display = "none", document.body.appendChild(n), n.click(), setTimeout(() => {
|
|
1292
|
+
document.body.removeChild(n);
|
|
1293
|
+
}, 100);
|
|
1294
|
+
}, Hn = (e, l) => {
|
|
1295
|
+
var r;
|
|
1296
|
+
if (Object.values(l).length === 0) return;
|
|
1297
|
+
let a = e;
|
|
1298
|
+
return Object.values(l).find((n) => {
|
|
1299
|
+
var o, p, i;
|
|
1300
|
+
return ((o = n == null ? void 0 : n.toString()) == null ? void 0 : o.includes(".txt")) || ((p = n == null ? void 0 : n.toString()) == null ? void 0 : p.includes(".cpt")) || ((i = n == null ? void 0 : n.toString()) == null ? void 0 : i.includes(".obj"));
|
|
1301
|
+
}) ? a = [...e, Sn.value] : (r = u == null ? void 0 : u.config) != null && r.allowMove && (a = [...e, { label: "迁移" }]), a;
|
|
1302
|
+
}, Qn = (e, l = {}) => [...e == null ? void 0 : e.values()].filter((a) => Object.keys(l).every((r) => {
|
|
1303
|
+
var p;
|
|
1304
|
+
const n = a[r], o = (p = l[r]) == null ? void 0 : p.toLowerCase();
|
|
1305
|
+
return o && n && typeof n == "string" ? n.toLowerCase().includes(o) : !0;
|
|
1306
|
+
})), Xn = () => {
|
|
1307
|
+
Cl.value = !0;
|
|
1308
|
+
}, Pr = z([]), Zn = async (e, l, a = !1) => {
|
|
1309
|
+
var r;
|
|
1310
|
+
if (e) {
|
|
1311
|
+
if (al.setTableLoading(!0), Pr.value = Object.values(e), e && ((r = Object.values(e)) != null && r.every((n) => !n)))
|
|
1312
|
+
return ae.value = Zl.value;
|
|
1313
|
+
if (a) {
|
|
1314
|
+
ae.value = [...fa.value.values()].filter((n) => Object.values(n).some((o) => typeof o == "string" ? o == null ? void 0 : o.toLowerCase().includes(l == null ? void 0 : l.toLowerCase()) : !1));
|
|
1315
|
+
return;
|
|
1316
|
+
}
|
|
1317
|
+
ae.value = Qn(fa.value, e), al.setTableLoading(!1);
|
|
1318
|
+
}
|
|
1319
|
+
}, Yn = async (e) => {
|
|
1320
|
+
}, $r = async (e, l, a, r) => {
|
|
1321
|
+
var n, o, p, i, f, k, C, c, m, E, U, L, D, R, W, F, s, S, v, _;
|
|
1322
|
+
if (ce("clickMainKey", a), (r == null ? void 0 : r.isExistChild) === !0) {
|
|
1323
|
+
let b = (n = r == null ? void 0 : r.columnType) == null ? void 0 : n.prop, q = r == null ? void 0 : r.data;
|
|
1324
|
+
if (ia.value = await _a(Be.value, sessionStorage.getItem("systemKey"), ""), !ia.value) {
|
|
1325
|
+
let Q = (i = (p = (o = Be.value) == null ? void 0 : o.split("/")) == null ? void 0 : p.filter((d, x) => {
|
|
1326
|
+
var pe, w;
|
|
1327
|
+
return x !== ((w = (pe = Be.value) == null ? void 0 : pe.split("/")) == null ? void 0 : w.length) - 1;
|
|
1328
|
+
})) == null ? void 0 : i.join("/");
|
|
1329
|
+
ia.value = await _a(Q, sessionStorage.getItem("systemKey"), "");
|
|
1330
|
+
}
|
|
1331
|
+
let P = (f = ia.value) == null ? void 0 : f.filter((Q) => (Q == null ? void 0 : Q.name) === b);
|
|
1332
|
+
ia.value = P == null ? void 0 : P.map((Q) => {
|
|
1333
|
+
var d;
|
|
1334
|
+
return Q.compData = (d = Q.compData) == null ? void 0 : d.map((x) => {
|
|
1335
|
+
var pe, w;
|
|
1336
|
+
return (x == null ? void 0 : x.key) === "tableContents" && (pe = x == null ? void 0 : x.contents) != null && pe.every((A) => A == null ? void 0 : A.find((j) => j == null ? void 0 : j.id)) && (x.contents = (w = x == null ? void 0 : x.contents) == null ? void 0 : w.filter((A) => (A == null ? void 0 : A[1]) === q)), x;
|
|
1337
|
+
}), Q;
|
|
1338
|
+
}), ce("routeUrl", ia.value, {
|
|
1339
|
+
isEdit: !0,
|
|
1340
|
+
routerUrl: Be.value
|
|
1341
|
+
});
|
|
1342
|
+
return;
|
|
1343
|
+
}
|
|
1344
|
+
if ((r == null ? void 0 : r.data) === "查看" && (e != null && e.every((b) => (b == null ? void 0 : b.url) && (b == null ? void 0 : b.name)))) {
|
|
1345
|
+
let b = Z(e);
|
|
1346
|
+
b = await ((k = Z(b)) == null ? void 0 : k.map(async (P) => {
|
|
1347
|
+
var x, pe, w, A;
|
|
1348
|
+
const Q = await Aa({
|
|
1349
|
+
url: P == null ? void 0 : P.url
|
|
1350
|
+
});
|
|
1351
|
+
let d = URL.createObjectURL(Q.data);
|
|
1352
|
+
return {
|
|
1353
|
+
name: (P == null ? void 0 : P.name) + "." + ((A = (x = P == null ? void 0 : P.url) == null ? void 0 : x.split(".")) == null ? void 0 : A[((w = (pe = P == null ? void 0 : P.url) == null ? void 0 : pe.split(".")) == null ? void 0 : w.length) - 1]),
|
|
1354
|
+
blobUrl: d
|
|
1355
|
+
};
|
|
1356
|
+
}));
|
|
1357
|
+
let q = await Promise.all(b);
|
|
1358
|
+
ca.value = q, ra.value = !0;
|
|
1359
|
+
}
|
|
1360
|
+
if (Z(I.value), (r == null ? void 0 : r.isMainKey) === !0) {
|
|
1361
|
+
cl.setActiveMenuPath(void 0), al.setRouteToChildPath(void 0), al.setFixMenuStatus(!0);
|
|
1362
|
+
let b = (c = (C = u.itemData) == null ? void 0 : C.find((P) => (P == null ? void 0 : P.key) === "contentTableId")) == null ? void 0 : c.contents, q = (E = (m = u.itemData) == null ? void 0 : m.find((P) => (P == null ? void 0 : P.key) === "relatedFilter")) == null ? void 0 : E.index;
|
|
1363
|
+
if (q !== 0) {
|
|
1364
|
+
let P = (L = (U = I.value) == null ? void 0 : U[q]) == null ? void 0 : L.prop;
|
|
1365
|
+
if ((a == null ? void 0 : a[P]) === (r == null ? void 0 : r.data)) {
|
|
1366
|
+
let Q = await da({
|
|
1367
|
+
id: b
|
|
1368
|
+
}), d = (F = (W = (R = (D = Q == null ? void 0 : Q.data) == null ? void 0 : D.result) == null ? void 0 : R[0]) == null ? void 0 : W.key) == null ? void 0 : F.pageKey;
|
|
1369
|
+
cl.setActiveMenuPath(d + "/" + (r == null ? void 0 : r.data));
|
|
1370
|
+
} else {
|
|
1371
|
+
let Q = await da({
|
|
1372
|
+
key: {
|
|
1373
|
+
pageKey: Z(Be).value + "/" + (r == null ? void 0 : r.data),
|
|
1374
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
1375
|
+
}
|
|
1376
|
+
});
|
|
1377
|
+
((S = (s = Q == null ? void 0 : Q.data) == null ? void 0 : s.result) == null ? void 0 : S.length) > 0 && cl.setActiveMenuPath(Z(Be).value + "/" + (r == null ? void 0 : r.data));
|
|
1378
|
+
}
|
|
1379
|
+
} else {
|
|
1380
|
+
let P = await da({
|
|
1381
|
+
key: {
|
|
1382
|
+
pageKey: Z(Be).value + "/" + (r == null ? void 0 : r.data),
|
|
1383
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
1384
|
+
}
|
|
1385
|
+
});
|
|
1386
|
+
((_ = (v = P == null ? void 0 : P.data) == null ? void 0 : v.result) == null ? void 0 : _.length) > 0 && cl.setActiveMenuPath(Z(Be).value + "/" + (r == null ? void 0 : r.data));
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
}, In = () => {
|
|
1390
|
+
ra.value = !1;
|
|
1391
|
+
}, Vn = (e) => {
|
|
1392
|
+
ce("rowClick", e);
|
|
1393
|
+
};
|
|
1394
|
+
$l(
|
|
1395
|
+
() => u.changedContent,
|
|
1396
|
+
() => {
|
|
1397
|
+
var a, r;
|
|
1398
|
+
if (!u.changedContent) return;
|
|
1399
|
+
let e = (a = ae.value) == null ? void 0 : a.map((n) => {
|
|
1400
|
+
var o;
|
|
1401
|
+
return n.id === ((o = u.changedContent) == null ? void 0 : o.id) && (n = {
|
|
1402
|
+
...u.changedContent,
|
|
1403
|
+
id: u.changedContent.newId ? u.changedContent.newId : u.changedContent.id
|
|
1404
|
+
}, delete n.newId), n;
|
|
1405
|
+
});
|
|
1406
|
+
const l = (r = u.itemData) == null ? void 0 : r.map((n) => ((n == null ? void 0 : n.key) === "tableContents" && (n.contents = e), n));
|
|
1407
|
+
ae.value = e, ce("contentChange", {
|
|
1408
|
+
contents: l,
|
|
1409
|
+
index: u.index
|
|
1410
|
+
}), ce("change", {
|
|
1411
|
+
content: e,
|
|
1412
|
+
index: u == null ? void 0 : u.index,
|
|
1413
|
+
buttonName: "",
|
|
1414
|
+
id: u == null ? void 0 : u.index
|
|
1415
|
+
});
|
|
1416
|
+
},
|
|
1417
|
+
{ deep: !0, immediate: !0 }
|
|
1418
|
+
);
|
|
1419
|
+
const ei = () => {
|
|
1420
|
+
}, li = async () => {
|
|
1421
|
+
const e = Be.value, l = sessionStorage.getItem("systemKey"), a = await _a(e, l, ""), r = (a == null ? void 0 : a.find((i) => (i == null ? void 0 : i.name) === "方法明细")) || (a == null ? void 0 : a[0]), n = (r == null ? void 0 : r.compData) || [], o = n == null ? void 0 : n.find((i) => {
|
|
1422
|
+
const f = i == null ? void 0 : i.key;
|
|
1423
|
+
return f === "formContent" || f === "tableContents";
|
|
1424
|
+
});
|
|
1425
|
+
return o == null ? void 0 : o.contents;
|
|
1426
|
+
}, pr = async () => `Bearer ${Gi.get("access-token")}`, ai = async (e, { token: l, inputData: a } = {}) => await sa.post(e, a, {
|
|
1427
|
+
headers: {
|
|
1428
|
+
Authorization: l
|
|
1429
|
+
}
|
|
1430
|
+
}).catch((n) => (cl.setImportLoading(!1), Promise.reject(n))), ri = (e) => {
|
|
1431
|
+
var r;
|
|
1432
|
+
let l = {};
|
|
1433
|
+
const a = [];
|
|
1434
|
+
return l.form = {}, (r = Z(e)) == null || r.forEach((n, o) => {
|
|
1435
|
+
var p, i, f, k, C, c, m, E, U, L, D, R, W, F;
|
|
1436
|
+
if ((n == null ? void 0 : n.comp) === "Table") {
|
|
1437
|
+
(i = (p = n == null ? void 0 : n.compData) == null ? void 0 : p.find((_) => (_ == null ? void 0 : _.key) === "header")) == null || i.contents;
|
|
1438
|
+
let s = (C = (k = (f = n == null ? void 0 : n.compData) == null ? void 0 : f.find((_) => (_ == null ? void 0 : _.key) === "tableContents")) == null ? void 0 : k.contents) == null ? void 0 : C.map((_) => _.slice(1));
|
|
1439
|
+
(L = (U = (E = (m = (c = n == null ? void 0 : n.compData) == null ? void 0 : c.find((_) => (_ == null ? void 0 : _.key) === "header")) == null ? void 0 : m.contents) == null ? void 0 : E[0]) == null ? void 0 : U[0]) == null || L.label;
|
|
1440
|
+
let S = (R = (D = n == null ? void 0 : n.compData) == null ? void 0 : D.find((_) => (_ == null ? void 0 : _.key) === "header")) == null ? void 0 : R.contents, v = [];
|
|
1441
|
+
s == null || s.forEach((_) => {
|
|
1442
|
+
let b = [];
|
|
1443
|
+
_ == null || _.forEach((q, P) => {
|
|
1444
|
+
var d;
|
|
1445
|
+
let Q = {};
|
|
1446
|
+
((d = S[P]) == null ? void 0 : d.label) !== "操作" && (Q[S[P].label] = q, b.push(Q));
|
|
1447
|
+
}), v.push(b);
|
|
1448
|
+
}), l[n.name] = v;
|
|
1449
|
+
} else {
|
|
1450
|
+
const s = (F = (W = n.compData) == null ? void 0 : W.find((S) => (S == null ? void 0 : S.key) === "formContent")) == null ? void 0 : F.contents;
|
|
1451
|
+
s == null || s.forEach((S) => {
|
|
1452
|
+
var v, _;
|
|
1453
|
+
if (S.prop !== "") {
|
|
1454
|
+
let b = S == null ? void 0 : S.value;
|
|
1455
|
+
Array.isArray(b) ? b = ((v = b == null ? void 0 : b[0]) == null ? void 0 : v.oldUrl) || "http://222.92.178.198:62001/" + ((_ = b == null ? void 0 : b[0]) == null ? void 0 : _.url) : b = b.toString(), S = {
|
|
1456
|
+
key: (S == null ? void 0 : S.prop) ?? (S == null ? void 0 : S.label),
|
|
1457
|
+
value: b
|
|
1458
|
+
}, a.push(S);
|
|
1459
|
+
}
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1462
|
+
}), l.form = uu(a), l;
|
|
1463
|
+
}, ni = (e) => {
|
|
1464
|
+
const l = [], a = (r) => {
|
|
1465
|
+
r && typeof r == "object" && !Array.isArray(r) ? Object.values(r).forEach(a) : l.push(r);
|
|
1466
|
+
};
|
|
1467
|
+
return a(e), l;
|
|
1468
|
+
}, ii = async (e, l, a) => {
|
|
1469
|
+
var S, v, _, b, q, P, Q, d, x, pe, w;
|
|
1470
|
+
cl.setImportLoading(!0), al.setFreshContent(!1);
|
|
1471
|
+
let r = await li().catch((A) => (cl.setImportLoading(!1), Promise.reject(A)));
|
|
1472
|
+
r = r == null ? void 0 : r.filter((A) => {
|
|
1473
|
+
var j;
|
|
1474
|
+
return ((j = A == null ? void 0 : A.find((ne) => ne == null ? void 0 : ne.id)) == null ? void 0 : j.id) === (l == null ? void 0 : l.id);
|
|
1475
|
+
});
|
|
1476
|
+
let n = nn([(S = I.value) == null ? void 0 : S.filter((A) => (A == null ? void 0 : A.label) !== "操作")]);
|
|
1477
|
+
const o = (_ = (v = lu(r, n)) == null ? void 0 : v[0]) == null ? void 0 : _.find((A) => {
|
|
1478
|
+
const j = A == null ? void 0 : A.key;
|
|
1479
|
+
return j === "Interface" || j === "方法体";
|
|
1480
|
+
}), p = o == null ? void 0 : o.value;
|
|
1481
|
+
if (!p) {
|
|
1482
|
+
console.log("未搜索到isMain, 缺少算法执行接口"), cl.setImportLoading(!1);
|
|
1483
|
+
return;
|
|
1484
|
+
}
|
|
1485
|
+
const i = I.value ? nn([I.value]) : [], f = i.find((A) => {
|
|
1486
|
+
const j = A == null ? void 0 : A.prop;
|
|
1487
|
+
return j === "Input1" || j === "输入数据.输入1" || j === "样本输入数据";
|
|
1488
|
+
}), k = f == null ? void 0 : f.prop;
|
|
1489
|
+
let C = l == null ? void 0 : l[k];
|
|
1490
|
+
const c = await pr().catch((A) => (cl.setImportLoading(!1), Promise.reject(A)));
|
|
1491
|
+
let m = !0, E = "";
|
|
1492
|
+
(b = I.value) == null || b.forEach((A) => {
|
|
1493
|
+
(A == null ? void 0 : A.prop) === k && (m = !!(A != null && A.childPath), E = A == null ? void 0 : A.childPath);
|
|
1494
|
+
});
|
|
1495
|
+
let U = "";
|
|
1496
|
+
if (m) {
|
|
1497
|
+
let A = (P = (q = I.value) == null ? void 0 : q.find((ve) => (ve == null ? void 0 : ve.isMainKey) === !0)) == null ? void 0 : P.prop;
|
|
1498
|
+
U = l == null ? void 0 : l[A];
|
|
1499
|
+
let j = E == null ? void 0 : E.split(yl), ne = [];
|
|
1500
|
+
j == null || j.forEach((ve, _e) => {
|
|
1501
|
+
(j == null ? void 0 : j.length) - 1 === _e && ne.push(U), ne.push(ve);
|
|
1502
|
+
}), ne = ne == null ? void 0 : ne[0];
|
|
1503
|
+
let re = await _a(ne, sessionStorage.getItem("systemKey"), ""), V = re == null ? void 0 : re.filter((ve) => (ve == null ? void 0 : ve.name) === k);
|
|
1504
|
+
V = V == null ? void 0 : V.map((ve) => {
|
|
1505
|
+
var _e;
|
|
1506
|
+
return ve.compData = (_e = ve == null ? void 0 : ve.compData) == null ? void 0 : _e.map((G) => {
|
|
1507
|
+
var oe;
|
|
1508
|
+
return (G == null ? void 0 : G.key) === "tableContents" && (G.contents = (oe = G == null ? void 0 : G.contents) == null ? void 0 : oe.filter((De) => (De == null ? void 0 : De[1]) === (l == null ? void 0 : l[k]))), G;
|
|
1509
|
+
}), ve;
|
|
1510
|
+
}), (!V || (V == null ? void 0 : V.length) === 0) && (V = re, V = V == null ? void 0 : V.map((ve) => {
|
|
1511
|
+
var _e;
|
|
1512
|
+
return ve.compData = (_e = ve == null ? void 0 : ve.compData) == null ? void 0 : _e.map((G) => {
|
|
1513
|
+
var oe;
|
|
1514
|
+
return (G == null ? void 0 : G.key) === "tableContents" && (G.contents = (oe = G == null ? void 0 : G.contents) == null ? void 0 : oe.filter((De) => {
|
|
1515
|
+
var g, N;
|
|
1516
|
+
return (De == null ? void 0 : De[1]) === (l == null ? void 0 : l[(N = (g = I == null ? void 0 : I.value) == null ? void 0 : g[0]) == null ? void 0 : N.prop]);
|
|
1517
|
+
})), G;
|
|
1518
|
+
}), ve;
|
|
1519
|
+
})), C = ri(V);
|
|
1520
|
+
}
|
|
1521
|
+
const L = await ai(p, {
|
|
1522
|
+
token: c,
|
|
1523
|
+
inputData: C
|
|
1524
|
+
}).catch((A) => (cl.setImportLoading(!1), Promise.reject(A))), D = (Q = L == null ? void 0 : L.data) == null ? void 0 : Q.data, R = i.find((A) => (A == null ? void 0 : A.prop) === "Output1"), W = R == null ? void 0 : R.prop;
|
|
1525
|
+
let F = [], s = [];
|
|
1526
|
+
if (D && ((d = Object.values(D)) == null ? void 0 : d.length) > 0) {
|
|
1527
|
+
let A = [];
|
|
1528
|
+
const j = new FormData(), ne = (x = ni(D)) == null ? void 0 : x.map(async (V) => {
|
|
1529
|
+
var ve, _e;
|
|
1530
|
+
if (!Array.isArray(V) && (V != null && V.includes("http"))) {
|
|
1531
|
+
let G = await sa.get(V, { responseType: "blob" }), oe = (_e = V == null ? void 0 : V.split("/")) == null ? void 0 : _e[((ve = V == null ? void 0 : V.split("/")) == null ? void 0 : ve.length) - 1];
|
|
1532
|
+
j.append("files", G.data, oe);
|
|
1533
|
+
} else
|
|
1534
|
+
A.push(V);
|
|
1535
|
+
});
|
|
1536
|
+
if (await Promise.all(ne), !au(j)) {
|
|
1537
|
+
let V = await ru(j), ve = (w = (pe = V == null ? void 0 : V.data) == null ? void 0 : pe.result) == null ? void 0 : w.map((_e) => {
|
|
1538
|
+
var G, oe, De, g, N, ue;
|
|
1539
|
+
return {
|
|
1540
|
+
name: (ue = (N = (g = (G = _e == null ? void 0 : _e.url) == null ? void 0 : G.split("/")) == null ? void 0 : g[((De = (oe = _e == null ? void 0 : _e.url) == null ? void 0 : oe.split("/")) == null ? void 0 : De.length) - 1]) == null ? void 0 : N.split(".")) == null ? void 0 : ue[0],
|
|
1541
|
+
url: _e == null ? void 0 : _e.url
|
|
1542
|
+
};
|
|
1543
|
+
});
|
|
1544
|
+
A = [...A, ...ve];
|
|
1545
|
+
}
|
|
1546
|
+
let re = {};
|
|
1547
|
+
for (let V in l)
|
|
1548
|
+
V !== "id" && (re[V] = l[V]);
|
|
1549
|
+
re[W] = A, s.push({
|
|
1550
|
+
id: l == null ? void 0 : l.id,
|
|
1551
|
+
value: {
|
|
1552
|
+
tableData: re
|
|
1553
|
+
}
|
|
1554
|
+
});
|
|
1555
|
+
}
|
|
1556
|
+
(s == null ? void 0 : s.length) > 0 && await Wi({
|
|
1557
|
+
dataList: s
|
|
1558
|
+
}), (F == null ? void 0 : F.length) > 0 && await Vr({
|
|
1559
|
+
dataList: F
|
|
1560
|
+
}), Ra(!0), cl.setImportLoading(!1), al.setFreshContent(!0);
|
|
1561
|
+
}, Nr = (e, l) => (e = e == null ? void 0 : e.map((a) => {
|
|
1562
|
+
var r, n;
|
|
1563
|
+
return a != null && a.children && ((r = a.children) != null && r.find((o) => o.id === (l == null ? void 0 : l.id)) ? a.children = (n = a.children) == null ? void 0 : n.filter((o) => (o == null ? void 0 : o.id) !== (l == null ? void 0 : l.id)) : a.children = Nr(a.children, l)), a;
|
|
1564
|
+
}), e), rl = Fa({
|
|
1565
|
+
title: "迁移至",
|
|
1566
|
+
show: !1,
|
|
1567
|
+
width: "20%",
|
|
1568
|
+
selectRow: null,
|
|
1569
|
+
from: u == null ? void 0 : u.index,
|
|
1570
|
+
to: null,
|
|
1571
|
+
contents: [],
|
|
1572
|
+
formRules: {
|
|
1573
|
+
groupName: [
|
|
1574
|
+
{ required: !0, message: "输入不能为空", trigger: "blur" },
|
|
1575
|
+
{
|
|
1576
|
+
validator: (e, l, a) => {
|
|
1577
|
+
l === (u == null ? void 0 : u.index) ? a(new Error("选择源不能和目标源一致")) : a();
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
]
|
|
1581
|
+
},
|
|
1582
|
+
buttonValue: [{ label: "取消", background: "#999999", color: "var(--ssbutton-theme-color)" }, {
|
|
1583
|
+
label: "确认",
|
|
1584
|
+
background: "var(--ssbutton-theme-bg)",
|
|
1585
|
+
color: "var(--ssbutton-theme-color)"
|
|
1586
|
+
}]
|
|
1587
|
+
}), ui = () => {
|
|
1588
|
+
rl.show = !1;
|
|
1589
|
+
}, si = (e) => {
|
|
1590
|
+
var l, a;
|
|
1591
|
+
if ((e == null ? void 0 : e.buttonName) === "取消") return rl.show = !1;
|
|
1592
|
+
rl.to = e == null ? void 0 : e.content, !(!(u != null && u.index) || !((l = rl.to) != null && l.groupName)) && (u == null ? void 0 : u.index) !== ((a = rl.to) == null ? void 0 : a.groupName) && (ce("change", {
|
|
1593
|
+
buttonName: "迁移",
|
|
1594
|
+
value: {
|
|
1595
|
+
from: rl.from,
|
|
1596
|
+
to: rl.to,
|
|
1597
|
+
data: rl.selectRow
|
|
1598
|
+
}
|
|
1599
|
+
}), rl.show = !1);
|
|
1600
|
+
}, oi = (e) => {
|
|
1601
|
+
if (e) {
|
|
1602
|
+
if (!xa.validateFileSize(e.raw)) {
|
|
1603
|
+
Xe.warning(`文件大小不能超过 ${An.value.maxSize}MB`);
|
|
1604
|
+
return;
|
|
1605
|
+
}
|
|
1606
|
+
if (!xa.validateFileType(e.raw)) {
|
|
1607
|
+
Xe.warning("请上传图片文件");
|
|
1608
|
+
return;
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
}, di = async () => {
|
|
1612
|
+
var e, l;
|
|
1613
|
+
if (Yl.value.length === 0) {
|
|
1614
|
+
Xe.warning("请先选择要上传的图片");
|
|
1615
|
+
return;
|
|
1616
|
+
}
|
|
1617
|
+
ya.value = !0;
|
|
1618
|
+
try {
|
|
1619
|
+
const a = Yl.value.map(async (c) => {
|
|
1620
|
+
var U;
|
|
1621
|
+
const m = new FormData();
|
|
1622
|
+
m.append("file", c.raw, c.name);
|
|
1623
|
+
const E = await ou(m);
|
|
1624
|
+
return ((U = E == null ? void 0 : E.data) == null ? void 0 : U.result) || {
|
|
1625
|
+
name: c.name,
|
|
1626
|
+
url: "",
|
|
1627
|
+
fileName: c.name
|
|
1628
|
+
};
|
|
1629
|
+
}), r = await Promise.all(a), n = xa.extractTableHeaders(I.value), o = r.map((c) => ({
|
|
1630
|
+
name: (c == null ? void 0 : c.fileName) || (c == null ? void 0 : c.name),
|
|
1631
|
+
url: (c == null ? void 0 : c.url) || ""
|
|
1632
|
+
})), p = await xa.recognize(o, n), i = Array.isArray(p == null ? void 0 : p.result) ? p.result : [];
|
|
1633
|
+
if (i.length === 0) {
|
|
1634
|
+
Xe.warning("OCR识别未返回有效数据");
|
|
1635
|
+
return;
|
|
1636
|
+
}
|
|
1637
|
+
const f = /* @__PURE__ */ new Set(), k = [];
|
|
1638
|
+
i.forEach((c, m) => {
|
|
1639
|
+
const E = c != null && c.数据 && typeof (c == null ? void 0 : c.数据) == "object" ? c.数据 : {}, U = {
|
|
1640
|
+
_index: m,
|
|
1641
|
+
_certType: (c == null ? void 0 : c.证书类型) || "",
|
|
1642
|
+
_certNo: (c == null ? void 0 : c.证书编号) || ""
|
|
1643
|
+
};
|
|
1644
|
+
Object.entries(E).forEach(([L, D]) => {
|
|
1645
|
+
Array.isArray(D) && D.length >= 2 ? (U[L] = D[0] ?? "", U[`${L}_accuracy`] = D[1] ?? 0, f.add(L)) : (U[L] = D ?? "", U[`${L}_accuracy`] = 0, f.add(L));
|
|
1646
|
+
}), k.push(U);
|
|
1647
|
+
});
|
|
1648
|
+
const C = [];
|
|
1649
|
+
f.forEach((c) => {
|
|
1650
|
+
C.push({
|
|
1651
|
+
prop: c,
|
|
1652
|
+
label: c,
|
|
1653
|
+
editable: !0,
|
|
1654
|
+
minWidth: 120
|
|
1655
|
+
}), C.push({
|
|
1656
|
+
prop: `${c}_accuracy`,
|
|
1657
|
+
label: `${c}准确率`,
|
|
1658
|
+
editable: !1,
|
|
1659
|
+
minWidth: 100,
|
|
1660
|
+
isAccuracy: !0
|
|
1661
|
+
});
|
|
1662
|
+
}), ir.value = C, ha.value = k, ur.value = r, sr.value = p, Ga.value = !1, Yl.value = [], ya.value = !1, nr.value = !0;
|
|
1663
|
+
} catch (a) {
|
|
1664
|
+
console.error("OCR处理失败:", a), Xe.error(((l = (e = a == null ? void 0 : a.response) == null ? void 0 : e.data) == null ? void 0 : l.message) || "OCR识别失败,请重试"), ya.value = !1;
|
|
1665
|
+
}
|
|
1666
|
+
}, ci = () => {
|
|
1667
|
+
var k, C;
|
|
1668
|
+
const e = ur.value, l = sr.value, a = ha.value;
|
|
1669
|
+
if (!a || a.length === 0) {
|
|
1670
|
+
Xe.warning("暂无数据可添加");
|
|
1671
|
+
return;
|
|
1672
|
+
}
|
|
1673
|
+
const r = (k = an(I.value) || []) == null ? void 0 : k.filter((c) => (c == null ? void 0 : c.type) !== "operate" && (c == null ? void 0 : c.label) !== "操作" && (c == null ? void 0 : c.prop) !== "operate"), n = /* @__PURE__ */ new Map(), o = (C = r == null ? void 0 : r.find((c) => (c == null ? void 0 : c.label) === "OCR图片")) == null ? void 0 : C.prop;
|
|
1674
|
+
r == null || r.forEach((c) => {
|
|
1675
|
+
c != null && c.label && (c != null && c.prop) && n.set(c.label, c.prop);
|
|
1676
|
+
});
|
|
1677
|
+
const p = Date.now(), i = (c) => String(p * 1e3 + c), f = a.map((c, m) => {
|
|
1678
|
+
const E = { id: i(m), _isOCRRow: !0 };
|
|
1679
|
+
for (const [U, L] of n.entries())
|
|
1680
|
+
Object.prototype.hasOwnProperty.call(c, U) && (E[L] = c[U]);
|
|
1681
|
+
if (o && e[m]) {
|
|
1682
|
+
const U = e[m];
|
|
1683
|
+
E[o] = [{
|
|
1684
|
+
...U,
|
|
1685
|
+
name: (U == null ? void 0 : U.fileName) || (U == null ? void 0 : U.name),
|
|
1686
|
+
url: (U == null ? void 0 : U.url) || ""
|
|
1687
|
+
}];
|
|
1688
|
+
}
|
|
1689
|
+
return E;
|
|
1690
|
+
});
|
|
1691
|
+
ae.value = [...ae.value || [], ...f], Zl.value = [...Zl.value || [], ...f], f.forEach((c) => {
|
|
1692
|
+
var m, E;
|
|
1693
|
+
return (E = (m = fa.value) == null ? void 0 : m.set) == null ? void 0 : E.call(m, c.id, c);
|
|
1694
|
+
}), Ea.value = ae.value, Xe.success(`成功添加 ${f.length} 条OCR识别数据`), ce("change", {
|
|
1695
|
+
buttonName: "OCR批量新增",
|
|
1696
|
+
content: ae.value,
|
|
1697
|
+
index: u == null ? void 0 : u.index,
|
|
1698
|
+
parentTableId: u == null ? void 0 : u.parentTableId,
|
|
1699
|
+
column: I.value,
|
|
1700
|
+
ocrRows: f,
|
|
1701
|
+
uploadedFiles: e,
|
|
1702
|
+
ocrResult: l
|
|
1703
|
+
}), fr();
|
|
1704
|
+
}, fr = () => {
|
|
1705
|
+
nr.value = !1, ha.value = [], ir.value = [], ur.value = [], sr.value = null;
|
|
1706
|
+
}, pi = (e, l, a) => {
|
|
1707
|
+
ha.value[e] && (ha.value[e][l] = a);
|
|
1708
|
+
}, fi = (e) => e == null || e === 0 ? "-" : `${(Number(e) * 100).toFixed(1)}%`, ti = (e) => {
|
|
1709
|
+
if (e == null || e === 0)
|
|
1710
|
+
return "#909399";
|
|
1711
|
+
const l = Number(e);
|
|
1712
|
+
return l >= 0.9 ? "#67c23a" : l >= 0.7 ? "#e6a23c" : "#f56c6c";
|
|
1713
|
+
}, wr = () => {
|
|
1714
|
+
Ga.value = !1, Yl.value = [], mn.value = null;
|
|
1715
|
+
}, yi = async (e) => {
|
|
1716
|
+
Dr.value = e == null ? void 0 : e.name;
|
|
1717
|
+
const l = e.raw;
|
|
1718
|
+
rr.value = URL.createObjectURL(l), Qa.value = [{
|
|
1719
|
+
name: Dr.value,
|
|
1720
|
+
blobUrl: rr.value
|
|
1721
|
+
}], Ha.value = !0;
|
|
1722
|
+
}, hi = async (e) => {
|
|
1723
|
+
const l = Pi(e);
|
|
1724
|
+
if (!l || l.length === 0) {
|
|
1725
|
+
Xe.warning("暂无图片");
|
|
1726
|
+
return;
|
|
1727
|
+
}
|
|
1728
|
+
if (l.length === 1) {
|
|
1729
|
+
await Lr(l[0]);
|
|
1730
|
+
return;
|
|
1731
|
+
}
|
|
1732
|
+
try {
|
|
1733
|
+
const a = Sr.service({
|
|
1734
|
+
lock: !0,
|
|
1735
|
+
text: "Loading",
|
|
1736
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
1737
|
+
}), r = await Promise.all(
|
|
1738
|
+
l.map(async (n) => {
|
|
1739
|
+
const o = await Aa(n), p = URL.createObjectURL(o.data);
|
|
1740
|
+
return {
|
|
1741
|
+
name: cr(n),
|
|
1742
|
+
blobUrl: p
|
|
1743
|
+
};
|
|
1744
|
+
})
|
|
1745
|
+
);
|
|
1746
|
+
a.close(), Qa.value = r, Ha.value = !0;
|
|
1747
|
+
} catch (a) {
|
|
1748
|
+
console.error("预览图片失败:", a), Xe.error("预览图片失败,请重试");
|
|
1749
|
+
}
|
|
1750
|
+
}, vi = () => {
|
|
1751
|
+
Ha.value = !1, Qa.value = [], rr.value = "";
|
|
1752
|
+
}, gi = (e) => {
|
|
1753
|
+
Yl.value = Yl.value.filter((l, a) => a !== e);
|
|
1754
|
+
}, Ya = async (e, l, a) => {
|
|
1755
|
+
var r, n, o, p, i, f, k, C, c, m, E, U, L, D, R;
|
|
1756
|
+
if (Gl.value = "", qa.value = !0, Ja.value = !0, ce("onButtonClick", e, l), ze.value = [], e === "删除")
|
|
1757
|
+
on.confirm("是否确认删除", "温馨提示", {
|
|
1758
|
+
confirmButtonText: "确认",
|
|
1759
|
+
cancelButtonText: "取消",
|
|
1760
|
+
type: "warning"
|
|
1761
|
+
}).then(() => {
|
|
1762
|
+
var W, F;
|
|
1763
|
+
(W = ae.value) != null && W.find((s) => (s == null ? void 0 : s.id) === (l == null ? void 0 : l.id)) ? ae.value = (F = Z(ae.value)) == null ? void 0 : F.filter((s) => (s == null ? void 0 : s.id) !== (l == null ? void 0 : l.id)) : ae.value = Nr(Z(ae.value), l), Fu(Ea.value, ja.value, l == null ? void 0 : l.id), al.setTableLoading(u == null ? void 0 : u.index), ce("change", {
|
|
1764
|
+
content: ae.value,
|
|
1765
|
+
singleContent: l,
|
|
1766
|
+
index: u == null ? void 0 : u.index,
|
|
1767
|
+
type: "delete",
|
|
1768
|
+
buttonName: e,
|
|
1769
|
+
column: I.value
|
|
1770
|
+
});
|
|
1771
|
+
});
|
|
1772
|
+
else if (e === "批量删除") {
|
|
1773
|
+
if (((r = zl.value) == null ? void 0 : r.length) === 0)
|
|
1774
|
+
return Xe.warning("请先勾选操作的数据");
|
|
1775
|
+
on.confirm("是否确认删除", "温馨提示", {
|
|
1776
|
+
confirmButtonText: "确认",
|
|
1777
|
+
cancelButtonText: "取消",
|
|
1778
|
+
type: "warning"
|
|
1779
|
+
}).then(
|
|
1780
|
+
() => {
|
|
1781
|
+
var F, s;
|
|
1782
|
+
const W = (F = zl.value) == null ? void 0 : F.map((S) => S.id);
|
|
1783
|
+
ae.value = (s = Z(ae.value)) == null ? void 0 : s.filter((S) => !(W != null && W.includes(S.id))), al.setTableLoading(u == null ? void 0 : u.index), ce("change", {
|
|
1784
|
+
content: ae.value,
|
|
1785
|
+
singleContent: null,
|
|
1786
|
+
selectItems: zl.value,
|
|
1787
|
+
index: u == null ? void 0 : u.index,
|
|
1788
|
+
type: "batchDelete",
|
|
1789
|
+
buttonName: e,
|
|
1790
|
+
column: I.value
|
|
1791
|
+
});
|
|
1792
|
+
}
|
|
1793
|
+
);
|
|
1794
|
+
} else if (e === "复制新增") {
|
|
1795
|
+
Dl.value = "新增";
|
|
1796
|
+
const W = Z(l), F = (n = I.value) == null ? void 0 : n.find((v) => v == null ? void 0 : v.isMainKey), s = F || ((o = I.value) == null ? void 0 : o[0]), S = (p = wl.value) == null ? void 0 : p.find((v) => (v == null ? void 0 : v.label) === "新建");
|
|
1797
|
+
await Br(!0, S, { data: W, firstCol: s });
|
|
1798
|
+
} else if (e === "新增")
|
|
1799
|
+
Dl.value = "新增", wa(""), Hl.value = !0;
|
|
1800
|
+
else if (e === "编辑")
|
|
1801
|
+
Dl.value = "编辑", wa(l), Hl.value = !0;
|
|
1802
|
+
else if (e === "查看")
|
|
1803
|
+
Dl.value = "查看", wa(l), qa.value = !1, Ja.value = !1, Hl.value = !0;
|
|
1804
|
+
else if (e === "查看三维模型") {
|
|
1805
|
+
const W = {};
|
|
1806
|
+
for (let s in l)
|
|
1807
|
+
s !== "id" && (W[s] = l[s]);
|
|
1808
|
+
let F = (i = Object.values(W)) == null ? void 0 : i[1];
|
|
1809
|
+
kn.setTableShowThree(F);
|
|
1810
|
+
} else if (((f = a == null ? void 0 : a.extra) == null ? void 0 : f.type) === "modelExample")
|
|
1811
|
+
Dl.value = e, Wa.value = !0;
|
|
1812
|
+
else if (e === "新建") {
|
|
1813
|
+
let W = pa.value, F = [];
|
|
1814
|
+
for (let b in W)
|
|
1815
|
+
b != null && b.includes(`loading${((k = va.value) == null ? void 0 : k.account) || ((C = va.value) == null ? void 0 : C.账号)}`) && (F = [...F, ...b]);
|
|
1816
|
+
let s = [];
|
|
1817
|
+
for (let b in W)
|
|
1818
|
+
b != null && b.includes(`updateLoading${((c = va.value) == null ? void 0 : c.account) || ((m = va.value) == null ? void 0 : m.账号)}`) && (s = [...s, ...b]);
|
|
1819
|
+
let S = F == null ? void 0 : F.map((b) => b == null ? void 0 : b.id);
|
|
1820
|
+
const v = s == null ? void 0 : s.map((b) => b == null ? void 0 : b.id);
|
|
1821
|
+
S = [...Z(S), ...v], (S == null ? void 0 : S.length) > 0 && (S != null && S.every((b) => b !== null && b)) && await Ji({
|
|
1822
|
+
ids: S
|
|
1823
|
+
});
|
|
1824
|
+
const _ = (E = wl.value) == null ? void 0 : E.find((b) => (b == null ? void 0 : b.label) === "新建");
|
|
1825
|
+
await Br(!1, _);
|
|
1826
|
+
} else if (e === "修改模板") {
|
|
1827
|
+
let W = Z(Be).value;
|
|
1828
|
+
al.setRouteToChildPath(W), cl.setActiveMenuPath(W + yl);
|
|
1829
|
+
} else if (e === "执行")
|
|
1830
|
+
ii(e, l);
|
|
1831
|
+
else if (e != null && e.includes("导出")) {
|
|
1832
|
+
if (e === "导出选中" && ((U = zl.value) == null ? void 0 : U.length) === 0)
|
|
1833
|
+
return Xe.warning(`请先勾选${e}的数据`);
|
|
1834
|
+
if (e === "导出全部" && ((L = ae.value) == null ? void 0 : L.length) === 0)
|
|
1835
|
+
return Xe.warning("暂无数据导出");
|
|
1836
|
+
const W = (R = (D = I.value) == null ? void 0 : D.map((s) => s == null ? void 0 : s.label)) == null ? void 0 : R.filter((s) => s !== "操作"), F = e === "导出全部" ? Z(ae.value) : Z(zl.value);
|
|
1837
|
+
F == null || F.forEach((s) => {
|
|
1838
|
+
s == null || delete s.id;
|
|
1839
|
+
}), wn(F, u == null ? void 0 : u.compName, W, u == null ? void 0 : u.compName);
|
|
1840
|
+
} else e === "OCR识别" ? (Ga.value = !0, Yl.value = []) : e === "迁移" && (rl.selectRow = l, rl.show = !0);
|
|
1841
|
+
}, bi = async (e) => {
|
|
1842
|
+
var a, r, n, o, p, i;
|
|
1843
|
+
const l = await da({
|
|
1844
|
+
key: {
|
|
1845
|
+
pageKey: e,
|
|
1846
|
+
type: "structure",
|
|
1847
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
1848
|
+
}
|
|
1849
|
+
});
|
|
1850
|
+
if (((a = l == null ? void 0 : l.data) == null ? void 0 : a.code) === 200)
|
|
1851
|
+
return Array.isArray((r = l == null ? void 0 : l.data) == null ? void 0 : r.result) && ((o = (n = l == null ? void 0 : l.data) == null ? void 0 : n.result) == null ? void 0 : o.length) > 0 ? (i = (p = l == null ? void 0 : l.data) == null ? void 0 : p.result) == null ? void 0 : i.map((f) => {
|
|
1852
|
+
var k;
|
|
1853
|
+
return {
|
|
1854
|
+
id: f == null ? void 0 : f.id,
|
|
1855
|
+
...(k = f == null ? void 0 : f.value) == null ? void 0 : k.pageData
|
|
1856
|
+
};
|
|
1857
|
+
}) : [];
|
|
1858
|
+
}, ki = async (e, l) => {
|
|
1859
|
+
var a, r, n, o, p, i, f, k, C, c, m, E, U, L, D, R, W, F, s, S;
|
|
1860
|
+
try {
|
|
1861
|
+
let v, _;
|
|
1862
|
+
const b = (a = pa.value[Be.value + yl]) == null ? void 0 : a.filter((A) => {
|
|
1863
|
+
var j;
|
|
1864
|
+
return ((j = A == null ? void 0 : A.key) == null ? void 0 : j.type) === "structureMethod";
|
|
1865
|
+
}), q = (r = pa.value[Be.value + yl]) == null ? void 0 : r.filter((A) => {
|
|
1866
|
+
var j;
|
|
1867
|
+
return ((j = A == null ? void 0 : A.key) == null ? void 0 : j.type) === "structure";
|
|
1868
|
+
}), P = b == null ? void 0 : b.find((A) => {
|
|
1869
|
+
var j, ne;
|
|
1870
|
+
return ((ne = (j = A == null ? void 0 : A.value) == null ? void 0 : j.pageData) == null ? void 0 : ne.method) === "保存";
|
|
1871
|
+
});
|
|
1872
|
+
if (!P) return;
|
|
1873
|
+
const Q = (i = (p = pa.value[(o = (n = P == null ? void 0 : P.value) == null ? void 0 : n.pageData) == null ? void 0 : o.path]) == null ? void 0 : p.filter((A) => {
|
|
1874
|
+
var j;
|
|
1875
|
+
return ((j = A == null ? void 0 : A.key) == null ? void 0 : j.type) === "data";
|
|
1876
|
+
})) == null ? void 0 : i.find((A) => {
|
|
1877
|
+
var j, ne, re, V;
|
|
1878
|
+
return ((ne = (j = A == null ? void 0 : A.value) == null ? void 0 : j.tableData) == null ? void 0 : ne.算法名称) === ((V = (re = P == null ? void 0 : P.value) == null ? void 0 : re.pageData) == null ? void 0 : V.method);
|
|
1879
|
+
});
|
|
1880
|
+
if (!Q) return;
|
|
1881
|
+
const d = {
|
|
1882
|
+
buttonName: (k = (f = P == null ? void 0 : P.value) == null ? void 0 : f.pageData) == null ? void 0 : k.method,
|
|
1883
|
+
api: (c = (C = Q == null ? void 0 : Q.value) == null ? void 0 : C.tableData) == null ? void 0 : c.算法体,
|
|
1884
|
+
content: q == null ? void 0 : q.map((A) => {
|
|
1885
|
+
var j;
|
|
1886
|
+
return (j = A == null ? void 0 : A.value) == null ? void 0 : j.pageData;
|
|
1887
|
+
}),
|
|
1888
|
+
extraContent: [],
|
|
1889
|
+
extraValues: (E = (m = P == null ? void 0 : P.value) == null ? void 0 : m.pageData) == null ? void 0 : E.data,
|
|
1890
|
+
methodName: (L = (U = P == null ? void 0 : P.value) == null ? void 0 : U.pageData) == null ? void 0 : L.path
|
|
1891
|
+
};
|
|
1892
|
+
if (!e) return;
|
|
1893
|
+
const x = {
|
|
1894
|
+
...e,
|
|
1895
|
+
compData: (D = e == null ? void 0 : e.compData) == null ? void 0 : D.map((A) => {
|
|
1896
|
+
var j;
|
|
1897
|
+
return (A == null ? void 0 : A.key) === "formContent" ? {
|
|
1898
|
+
...A,
|
|
1899
|
+
contents: (j = A == null ? void 0 : A.contents) == null ? void 0 : j.map((ne) => (ne == null ? void 0 : ne.prop) === l ? {
|
|
1900
|
+
...ne,
|
|
1901
|
+
value: ""
|
|
1902
|
+
} : ne)
|
|
1903
|
+
} : A;
|
|
1904
|
+
})
|
|
1905
|
+
}, pe = {
|
|
1906
|
+
key: {
|
|
1907
|
+
pageKey: Be.value + yl,
|
|
1908
|
+
parentTable: "",
|
|
1909
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
1910
|
+
type: "structure"
|
|
1911
|
+
},
|
|
1912
|
+
value: {
|
|
1913
|
+
pageData: x
|
|
1914
|
+
}
|
|
1915
|
+
}, w = await sa.post(d.api, pe, {
|
|
1916
|
+
headers: {
|
|
1917
|
+
"Content-Type": "application/json"
|
|
1918
|
+
}
|
|
1919
|
+
});
|
|
1920
|
+
return ((R = w == null ? void 0 : w.data) == null ? void 0 : R.code) === 200 && (v = (F = (W = w == null ? void 0 : w.data) == null ? void 0 : W.result) == null ? void 0 : F.latestReportCode, _ = (S = (s = w == null ? void 0 : w.data) == null ? void 0 : s.result) == null ? void 0 : S.status), {
|
|
1921
|
+
newMainKeyValue: v,
|
|
1922
|
+
newStatus: _
|
|
1923
|
+
};
|
|
1924
|
+
} catch (v) {
|
|
1925
|
+
throw Xe.error(v), new Error(v);
|
|
1926
|
+
}
|
|
1927
|
+
}, Rr = (e, l, a, r) => {
|
|
1928
|
+
var n;
|
|
1929
|
+
ce("contentChange", {
|
|
1930
|
+
contents: (n = e == null ? void 0 : e.compData) == null ? void 0 : n.map((o) => {
|
|
1931
|
+
var p;
|
|
1932
|
+
return (o == null ? void 0 : o.key) === "formContent" ? {
|
|
1933
|
+
...o,
|
|
1934
|
+
contents: (p = o == null ? void 0 : o.contents) == null ? void 0 : p.map((i) => (i == null ? void 0 : i.key) === l ? {
|
|
1935
|
+
...i,
|
|
1936
|
+
value: a
|
|
1937
|
+
} : Na.value && (i == null ? void 0 : i.prop) === Na.prop ? {
|
|
1938
|
+
...i,
|
|
1939
|
+
value: Na.value
|
|
1940
|
+
} : i)
|
|
1941
|
+
} : o;
|
|
1942
|
+
}),
|
|
1943
|
+
index: e == null ? void 0 : e.id
|
|
1944
|
+
}, r);
|
|
1945
|
+
}, Na = Fa({
|
|
1946
|
+
prop: "状态",
|
|
1947
|
+
value: ""
|
|
1948
|
+
}), Si = z(["系统自动生成信息", "审批意见"]), mi = async (e, l, a) => {
|
|
1949
|
+
var f, k;
|
|
1950
|
+
let r = e == null ? void 0 : e[l == null ? void 0 : l.prop], n = 1, o, p;
|
|
1951
|
+
const i = Z(Be).value + yl + r;
|
|
1952
|
+
if (i) {
|
|
1953
|
+
Na.value = "", o = (f = pa.value[i]) == null ? void 0 : f.filter((m) => {
|
|
1954
|
+
var E;
|
|
1955
|
+
return ((E = m == null ? void 0 : m.key) == null ? void 0 : E.type) === "structure";
|
|
1956
|
+
});
|
|
1957
|
+
const C = o == null ? void 0 : o.find((m) => {
|
|
1958
|
+
var E, U, L;
|
|
1959
|
+
return ((L = (U = (E = m == null ? void 0 : m.value) == null ? void 0 : E.pageData) == null ? void 0 : U.comp) == null ? void 0 : L.toUpperCase()) === "FORM";
|
|
1960
|
+
});
|
|
1961
|
+
p = {
|
|
1962
|
+
...(k = C == null ? void 0 : C.value) == null ? void 0 : k.pageData,
|
|
1963
|
+
id: C == null ? void 0 : C.id
|
|
1964
|
+
};
|
|
1965
|
+
const c = await ki(p, l == null ? void 0 : l.prop);
|
|
1966
|
+
if (Na.value = c == null ? void 0 : c.newStatus, c != null && c.newMainKeyValue) return c == null ? void 0 : c.newMainKeyValue;
|
|
1967
|
+
}
|
|
1968
|
+
if (ae.value.some((C) => (C == null ? void 0 : C[l == null ? void 0 : l.prop]) === r)) {
|
|
1969
|
+
const C = r;
|
|
1970
|
+
for (; ae.value.some((c) => (c == null ? void 0 : c[l == null ? void 0 : l.prop]) === `${C}(${n})`); )
|
|
1971
|
+
n++;
|
|
1972
|
+
r = `${C}(${n})`;
|
|
1973
|
+
}
|
|
1974
|
+
return r;
|
|
1975
|
+
}, Br = async (e, l, a) => {
|
|
1976
|
+
var p, i, f, k, C, c, m, E;
|
|
1977
|
+
let r, n;
|
|
1978
|
+
const o = await mi(a == null ? void 0 : a.data, a == null ? void 0 : a.firstCol);
|
|
1979
|
+
if (e ? (r = Z(Be).value + yl + ((k = a == null ? void 0 : a.data) == null ? void 0 : k[(f = a == null ? void 0 : a.firstCol) == null ? void 0 : f.prop]), n = Z(Be).value + yl + o) : (r = Z(Be).value + yl, n = Z(r) + `loading${((p = va.value) == null ? void 0 : p.account) || ((i = va.value) == null ? void 0 : i.账号)}`), l) {
|
|
1980
|
+
const U = (c = (C = pa.value[n]) == null ? void 0 : C.filter((L) => {
|
|
1981
|
+
var D;
|
|
1982
|
+
return ((D = L == null ? void 0 : L.key) == null ? void 0 : D.parentTable) === "";
|
|
1983
|
+
})) == null ? void 0 : c.map((L) => {
|
|
1984
|
+
var D;
|
|
1985
|
+
return {
|
|
1986
|
+
id: L == null ? void 0 : L.id,
|
|
1987
|
+
...(D = L == null ? void 0 : L.value) == null ? void 0 : D.pageData
|
|
1988
|
+
};
|
|
1989
|
+
});
|
|
1990
|
+
if ((U == null ? void 0 : U.length) > 0)
|
|
1991
|
+
if (e) {
|
|
1992
|
+
const L = U == null ? void 0 : U.find((D) => {
|
|
1993
|
+
var R;
|
|
1994
|
+
return ((R = D == null ? void 0 : D.comp) == null ? void 0 : R.toUpperCase()) === "FORM";
|
|
1995
|
+
});
|
|
1996
|
+
L && Rr(L, (m = a == null ? void 0 : a.firstCol) == null ? void 0 : m.label, o, Be.value);
|
|
1997
|
+
} else
|
|
1998
|
+
al.setRouteToChildPath(Z(Be).value), cl.setActiveMenuPath(n);
|
|
1999
|
+
else if (await eu(r, n, null, null, e ? Si.value : null), e) {
|
|
2000
|
+
const L = await bi(n);
|
|
2001
|
+
if ((L == null ? void 0 : L.length) > 0) {
|
|
2002
|
+
const D = L == null ? void 0 : L.find((R) => {
|
|
2003
|
+
var W;
|
|
2004
|
+
return ((W = R == null ? void 0 : R.comp) == null ? void 0 : W.toUpperCase()) === "FORM";
|
|
2005
|
+
});
|
|
2006
|
+
D && Rr(D, (E = a == null ? void 0 : a.firstCol) == null ? void 0 : E.label, o, Be.value);
|
|
2007
|
+
}
|
|
2008
|
+
} else
|
|
2009
|
+
al.setRouteToChildPath(Z(Be).value), cl.setActiveMenuPath(n);
|
|
2010
|
+
} else
|
|
2011
|
+
e ? (Gl.value = "", _l.value = a == null ? void 0 : a.data, Ra(!0, a == null ? void 0 : a.firstCol, o)) : (al.setRouteToChildPath(Z(Be).value), cl.setActiveMenuPath(n));
|
|
2012
|
+
}, Ai = () => {
|
|
2013
|
+
Je.value = !1, Ua.value = [], X.value = !1;
|
|
2014
|
+
}, wa = (e) => {
|
|
2015
|
+
var p, i, f, k, C, c, m, E, U, L, D, R, W, F, s, S, v, _, b, q, P, Q;
|
|
2016
|
+
const l = [];
|
|
2017
|
+
let a = [];
|
|
2018
|
+
for (let d in e)
|
|
2019
|
+
Array.isArray(e == null ? void 0 : e[d]) && a.push(d);
|
|
2020
|
+
O.value = Z(I.value), (i = Ta((p = Z(I.value)) == null ? void 0 : p.filter((d) => (d == null ? void 0 : d.label) !== "操作"))) == null || i.forEach((d, x) => {
|
|
2021
|
+
var pe, w, A;
|
|
2022
|
+
a.find((j) => j === (d == null ? void 0 : d.prop)) || (d != null && d.formType && ((pe = d == null ? void 0 : d.formType) == null ? void 0 : pe.toUpperCase()) === "SELECT" || d != null && d.menuId ? l.push({
|
|
2023
|
+
label: (w = d == null ? void 0 : d.prop) != null && w.includes(".") ? d == null ? void 0 : d.prop : (d == null ? void 0 : d.label) || (d == null ? void 0 : d.prop) || "",
|
|
2024
|
+
name: (d == null ? void 0 : d.prop) ?? "t" + x,
|
|
2025
|
+
prop: d == null ? void 0 : d.prop,
|
|
2026
|
+
type: "Select",
|
|
2027
|
+
// (!t?.formType || t?.formType === '') ? 'Input' : t?.formType,
|
|
2028
|
+
value: (e == null ? void 0 : e[d == null ? void 0 : d.prop]) ?? (d == null ? void 0 : d.value) ?? "",
|
|
2029
|
+
id: (d == null ? void 0 : d.id) ?? x,
|
|
2030
|
+
contents: (d == null ? void 0 : d.options) ?? [],
|
|
2031
|
+
width: 1,
|
|
2032
|
+
isFormColHidden: d == null ? void 0 : d.isFormColHidden,
|
|
2033
|
+
relatedValueId: d == null ? void 0 : d.relatedValueId,
|
|
2034
|
+
disabled: d == null ? void 0 : d.disabled,
|
|
2035
|
+
optionUrl: {
|
|
2036
|
+
groupSelect: d == null ? void 0 : d.groupSelect,
|
|
2037
|
+
menuSelect: d == null ? void 0 : d.formMenuSelect,
|
|
2038
|
+
type: "Select",
|
|
2039
|
+
selectRelateType: d == null ? void 0 : d.selectRelateType,
|
|
2040
|
+
allSelectionContents: (d == null ? void 0 : d.allSelectionContents) ?? [],
|
|
2041
|
+
selectFilter: d == null ? void 0 : d.selectFilter,
|
|
2042
|
+
menuId: d == null ? void 0 : d.menuId,
|
|
2043
|
+
filterContent: d == null ? void 0 : d.filterContent
|
|
2044
|
+
}
|
|
2045
|
+
}) : l.push({
|
|
2046
|
+
label: (A = d == null ? void 0 : d.prop) != null && A.includes(".") ? d == null ? void 0 : d.prop : (d == null ? void 0 : d.label) || (d == null ? void 0 : d.prop) || "",
|
|
2047
|
+
prop: d == null ? void 0 : d.prop,
|
|
2048
|
+
name: (d == null ? void 0 : d.prop) ?? "t" + x,
|
|
2049
|
+
type: !(d != null && d.formType) || (d == null ? void 0 : d.formType) === "" ? "Input" : d == null ? void 0 : d.formType,
|
|
2050
|
+
value: (e == null ? void 0 : e[d == null ? void 0 : d.prop]) ?? (d == null ? void 0 : d.value) ?? "",
|
|
2051
|
+
id: (d == null ? void 0 : d.id) ?? x,
|
|
2052
|
+
contents: (d == null ? void 0 : d.options) ?? [],
|
|
2053
|
+
width: 1,
|
|
2054
|
+
isFormColHidden: d == null ? void 0 : d.isFormColHidden,
|
|
2055
|
+
disabled: d == null ? void 0 : d.disabled,
|
|
2056
|
+
relatedValueId: d == null ? void 0 : d.relatedValueId
|
|
2057
|
+
}));
|
|
2058
|
+
}), e === "" || !e || (Gl.value = (e == null ? void 0 : e.id) ?? "");
|
|
2059
|
+
let r = Ta((f = Z(I.value)) == null ? void 0 : f.filter((d) => (d == null ? void 0 : d.label) !== "操作"));
|
|
2060
|
+
Bl.value && ((k = Bl.value) == null ? void 0 : k.length) > 0 && (Bl.value = (C = Z(Bl).value) == null ? void 0 : C.map((d) => {
|
|
2061
|
+
var pe;
|
|
2062
|
+
let x = (d == null ? void 0 : d.prop) || ((pe = r == null ? void 0 : r.find((w) => (w == null ? void 0 : w.label) === (d == null ? void 0 : d.label))) == null ? void 0 : pe.prop);
|
|
2063
|
+
return x && (d.value = e[x]), d;
|
|
2064
|
+
})), Ae.value = Bl.value && ((c = Bl.value) == null ? void 0 : c.length) > 0 ? Vi(Bl.value) : l;
|
|
2065
|
+
let n = [], o = (m = u.itemData) == null ? void 0 : m.filter((d) => (d == null ? void 0 : d.key) === "filterAllType");
|
|
2066
|
+
if ((o == null ? void 0 : o.length) > 0 && (n = (o == null ? void 0 : o.map((x) => x == null ? void 0 : x.value)).flat()), (n == null ? void 0 : n.length) > 0) {
|
|
2067
|
+
let d = (U = n == null ? void 0 : n.filter((w) => {
|
|
2068
|
+
var A;
|
|
2069
|
+
return (A = w == null ? void 0 : w.content) == null ? void 0 : A.includes("@Type");
|
|
2070
|
+
})) == null ? void 0 : U[((E = n == null ? void 0 : n.filter((w) => {
|
|
2071
|
+
var A;
|
|
2072
|
+
return (A = w == null ? void 0 : w.content) == null ? void 0 : A.includes("@Type");
|
|
2073
|
+
})) == null ? void 0 : E.length) - 1];
|
|
2074
|
+
if (d != null && d.content) {
|
|
2075
|
+
let w = (R = (D = (L = d == null ? void 0 : d.content) == null ? void 0 : L.replace(":", ql)) == null ? void 0 : D.split(ql)) == null ? void 0 : R[1];
|
|
2076
|
+
if (((W = w == null ? void 0 : w.trim()) == null ? void 0 : W.toUpperCase()) === "MANUAL") {
|
|
2077
|
+
let A = (_ = (v = (F = u.itemData) == null ? void 0 : F.filter((j) => (j == null ? void 0 : j.key) === "contentTableId")) == null ? void 0 : v[((S = (s = u.itemData) == null ? void 0 : s.filter((j) => (j == null ? void 0 : j.key) === "contentTableId")) == null ? void 0 : S.length) - 1]) == null ? void 0 : _.contents;
|
|
2078
|
+
Ae.value = (b = Ae.value) == null ? void 0 : b.map((j, ne) => {
|
|
2079
|
+
var re, V;
|
|
2080
|
+
return (re = j == null ? void 0 : j.optionUrl) != null && re.menuId && (j.type = "Select", (V = j == null ? void 0 : j.optionUrl) != null && V.menuId && (j.optionUrl.menuId = j.optionUrl.menuId ?? A, j.optionUrl.menuFilter = n, Dl.value === "新增" && (j.optionUrl.multiple = !0, j.optionUrl.multipleLimit = 5))), j;
|
|
2081
|
+
});
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
let x = (q = Ae.value) == null ? void 0 : q.filter((w) => {
|
|
2085
|
+
var A, j;
|
|
2086
|
+
return ((A = w == null ? void 0 : w.optionUrl) == null ? void 0 : A.menuId) && ((j = w == null ? void 0 : w.optionUrl) == null ? void 0 : j.menuId) !== "";
|
|
2087
|
+
}), pe;
|
|
2088
|
+
if (x == null || x.forEach((w) => {
|
|
2089
|
+
var j, ne;
|
|
2090
|
+
if (pe !== void 0) return;
|
|
2091
|
+
let A = (j = w == null ? void 0 : w.optionUrl) == null ? void 0 : j.menuId;
|
|
2092
|
+
((ne = x == null ? void 0 : x.filter((re) => {
|
|
2093
|
+
var V;
|
|
2094
|
+
return ((V = re == null ? void 0 : re.optionUrl) == null ? void 0 : V.menuId) === A;
|
|
2095
|
+
})) == null ? void 0 : ne.length) > 1 && (pe = A);
|
|
2096
|
+
}), x = x == null ? void 0 : x.filter((w) => {
|
|
2097
|
+
var A;
|
|
2098
|
+
return ((A = w == null ? void 0 : w.optionUrl) == null ? void 0 : A.menuId) === pe;
|
|
2099
|
+
}), (x == null ? void 0 : x.length) > 1) {
|
|
2100
|
+
let w = x == null ? void 0 : x.map((re) => re == null ? void 0 : re.prop), A = x == null ? void 0 : x.map((re) => re == null ? void 0 : re.label), j = x == null ? void 0 : x.map((re) => re == null ? void 0 : re.value), ne = (P = Z(x)) == null ? void 0 : P[0];
|
|
2101
|
+
ne.label = A == null ? void 0 : A.join("·"), ne.value = j == null ? void 0 : j.join(" "), ne.value.trim() === "" && (ne.value = ""), ne.prop = w == null ? void 0 : w.join("·"), ne.usingType = "parent", Ae.value.unshift(ne), Ae.value = (Q = Ae.value) == null ? void 0 : Q.map((re) => (w != null && w.find((V) => V === (re == null ? void 0 : re.prop)) && (re.isFormColHidden = !0), re));
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
}, _i = () => {
|
|
2105
|
+
var l;
|
|
2106
|
+
const e = (l = M.value) == null ? void 0 : l.$el;
|
|
2107
|
+
e && iu.create(e, {
|
|
2108
|
+
animation: 150,
|
|
2109
|
+
handle: ".col-drag-icon",
|
|
2110
|
+
ghostClass: "sortable-ghost",
|
|
2111
|
+
onEnd: (a) => {
|
|
2112
|
+
var p;
|
|
2113
|
+
const { oldIndex: r, newIndex: n } = a;
|
|
2114
|
+
if (r === n) return;
|
|
2115
|
+
const o = Pa.value.splice(r, 1)[0];
|
|
2116
|
+
Pa.value.splice(n, 0, o), I.value = (p = I.value) == null ? void 0 : p.slice().sort((i, f) => {
|
|
2117
|
+
if (i.label === "操作") return 1;
|
|
2118
|
+
if (f.label === "操作") return -1;
|
|
2119
|
+
const k = Pa.value.findIndex((c) => c.label === i.label), C = Pa.value.findIndex((c) => c.label === f.label);
|
|
2120
|
+
return k - C;
|
|
2121
|
+
});
|
|
2122
|
+
}
|
|
2123
|
+
});
|
|
2124
|
+
};
|
|
2125
|
+
Tr(() => {
|
|
2126
|
+
ar.value = window.innerWidth - 240 * 2;
|
|
2127
|
+
});
|
|
2128
|
+
const Ti = () => {
|
|
2129
|
+
Ia(() => {
|
|
2130
|
+
_i();
|
|
2131
|
+
});
|
|
2132
|
+
}, tr = (e, l) => {
|
|
2133
|
+
var r;
|
|
2134
|
+
if (!e && !(e != null && e.children)) return {
|
|
2135
|
+
contents: e,
|
|
2136
|
+
currentSelectContents: void 0
|
|
2137
|
+
};
|
|
2138
|
+
let a;
|
|
2139
|
+
return e.children = (r = e.children) == null ? void 0 : r.map((n) => {
|
|
2140
|
+
var o, p;
|
|
2141
|
+
if ((n == null ? void 0 : n.id) === Gl.value) {
|
|
2142
|
+
let i = {};
|
|
2143
|
+
for (let f in n) {
|
|
2144
|
+
let k = (o = l == null ? void 0 : l.find((C) => (C == null ? void 0 : C.prop) === f)) == null ? void 0 : o.label;
|
|
2145
|
+
k ? i[f] = (p = _l.value) == null ? void 0 : p[k] : i[f] = n[f];
|
|
2146
|
+
}
|
|
2147
|
+
n = Object.assign(i, _l.value), a = n;
|
|
2148
|
+
} else {
|
|
2149
|
+
let i = tr(n, l);
|
|
2150
|
+
n = i == null ? void 0 : i.contents, a = i == null ? void 0 : i.currentSelectContents;
|
|
2151
|
+
}
|
|
2152
|
+
return n;
|
|
2153
|
+
}), {
|
|
2154
|
+
contents: e,
|
|
2155
|
+
currentSelectContents: a
|
|
2156
|
+
};
|
|
2157
|
+
}, Mr = (e, l) => {
|
|
2158
|
+
let a, r;
|
|
2159
|
+
return e != null && e.find((n) => (n == null ? void 0 : n.id) === Gl.value) ? a = e == null ? void 0 : e.map((n) => {
|
|
2160
|
+
var o, p;
|
|
2161
|
+
if ((n == null ? void 0 : n.id) === Gl.value) {
|
|
2162
|
+
let i = {};
|
|
2163
|
+
for (let f in n) {
|
|
2164
|
+
let k = (o = l == null ? void 0 : l.find((C) => (C == null ? void 0 : C.prop) === f)) == null ? void 0 : o.label;
|
|
2165
|
+
k ? i[f] = (p = _l.value) == null ? void 0 : p[k] : i[f] = n[f];
|
|
2166
|
+
}
|
|
2167
|
+
n = Object.assign(i, _l.value), r = n;
|
|
2168
|
+
}
|
|
2169
|
+
return n;
|
|
2170
|
+
}) : a = e == null ? void 0 : e.map((n) => {
|
|
2171
|
+
var o, p, i, f;
|
|
2172
|
+
if ((n == null ? void 0 : n.id) === Gl.value) {
|
|
2173
|
+
let k = {};
|
|
2174
|
+
for (let C in n) {
|
|
2175
|
+
let c = (o = l == null ? void 0 : l.find((m) => (m == null ? void 0 : m.prop) === C)) == null ? void 0 : o.label;
|
|
2176
|
+
c ? k[C] = (p = _l.value) == null ? void 0 : p[c] : k[C] = n[C];
|
|
2177
|
+
}
|
|
2178
|
+
n = Object.assign(k, _l.value), r = n;
|
|
2179
|
+
} else
|
|
2180
|
+
n = (i = tr(n, l)) == null ? void 0 : i.contents, r = (f = tr(n, l)) == null ? void 0 : f.currentSelectContents;
|
|
2181
|
+
return n;
|
|
2182
|
+
}), {
|
|
2183
|
+
newContents: a,
|
|
2184
|
+
currentSelectContents: r
|
|
2185
|
+
};
|
|
2186
|
+
}, Fr = (e, l, a) => {
|
|
2187
|
+
var r, n;
|
|
2188
|
+
return e[l == null ? void 0 : l.prop] = a, typeof e.id == "number" && (e.id = (r = e.id) == null ? void 0 : r.toString()), e.children && ((n = e.children) == null ? void 0 : n.length) > 0 && (e.children = e.children.map(Fr)), e;
|
|
2189
|
+
}, yr = (e) => {
|
|
2190
|
+
var a;
|
|
2191
|
+
const l = [];
|
|
2192
|
+
return l.push({ ...e }), e != null && e.children && Array.isArray(e.children) && ((a = e.children) == null || a.forEach((r) => {
|
|
2193
|
+
l.push(...yr(r));
|
|
2194
|
+
})), (l == null ? void 0 : l.length) > 0 ? l == null ? void 0 : l.map((r) => {
|
|
2195
|
+
const n = { ...r };
|
|
2196
|
+
return delete n.children, n;
|
|
2197
|
+
}) : [];
|
|
2198
|
+
}, Ra = (e = !0, l, a) => {
|
|
2199
|
+
var k, C, c, m, E, U, L, D, R, W, F, s, S, v, _, b, q, P, Q, d, x, pe, w, A, j, ne, re, V, ve, _e;
|
|
2200
|
+
let r = Ta((k = Z(I.value)) == null ? void 0 : k.filter((G) => (G == null ? void 0 : G.label) !== "操作")), n, o = Z(ae.value);
|
|
2201
|
+
if (!_l.value) {
|
|
2202
|
+
Hl.value = !1;
|
|
2203
|
+
return;
|
|
2204
|
+
}
|
|
2205
|
+
if (Gl.value === "") {
|
|
2206
|
+
ta.value++;
|
|
2207
|
+
let G;
|
|
2208
|
+
l && a ? G = {
|
|
2209
|
+
id: ta.value.toString(),
|
|
2210
|
+
[l == null ? void 0 : l.prop]: a,
|
|
2211
|
+
children: _l.value.children
|
|
2212
|
+
} : G = { id: ta.value.toString() }, G != null && G.children && (G = {
|
|
2213
|
+
...G,
|
|
2214
|
+
children: (C = G.children) == null ? void 0 : C.map((oe) => Fr(oe, l, a))
|
|
2215
|
+
}), o.push(Object.assign(_l.value, G)), n = Object.assign(_l.value, G);
|
|
2216
|
+
} else
|
|
2217
|
+
o = (c = Mr(o, r)) == null ? void 0 : c.newContents, n = (m = Mr(o, r)) == null ? void 0 : m.currentSelectContents;
|
|
2218
|
+
const p = (E = u.itemData) == null ? void 0 : E.filter((G) => (G == null ? void 0 : G.key) === "childTree")[0];
|
|
2219
|
+
if (((U = p == null ? void 0 : p.contents) == null ? void 0 : U.length) > 0) {
|
|
2220
|
+
Dl.value = "编辑";
|
|
2221
|
+
const G = [];
|
|
2222
|
+
o == null || o.forEach((oe, De) => {
|
|
2223
|
+
var N;
|
|
2224
|
+
let g = {};
|
|
2225
|
+
if (Array.isArray(oe)) {
|
|
2226
|
+
let ue = [];
|
|
2227
|
+
oe == null || oe.filter((ge) => !(ge != null && ge.id)).forEach((ge, Oe) => {
|
|
2228
|
+
var t, se, $e, T, Le, Ne, ll;
|
|
2229
|
+
if ((se = (t = Fl.value) == null ? void 0 : t[Oe]) != null && se.prop && !Array.isArray(ge)) {
|
|
2230
|
+
let Ve = {};
|
|
2231
|
+
Ve[Fl.value[Oe].column] = ge, Ke != null && Ke.value && (($e = Ke == null ? void 0 : Ke.value) == null ? void 0 : $e.length) > 0 && ((T = Ke == null ? void 0 : Ke.value) != null && T.find((Ue) => JSON.stringify(Ue == null ? void 0 : Ue[0]) === JSON.stringify(Ve))) && (ue = (Le = Ke == null ? void 0 : Ke.value) == null ? void 0 : Le.find((Ue) => JSON.stringify(Ue == null ? void 0 : Ue[0]) === JSON.stringify(Ve))), ue && ue.length > 0 ? g[Fl.value[Oe].prop] = ue != null && ue.find((Ue) => {
|
|
2232
|
+
var We;
|
|
2233
|
+
return ((We = Object.keys(Ue)) == null ? void 0 : We[0]) === Fl.value[Oe].column;
|
|
2234
|
+
}) ? (Ne = ue == null ? void 0 : ue.find((Ue) => {
|
|
2235
|
+
var We;
|
|
2236
|
+
return ((We = Object.keys(Ue)) == null ? void 0 : We[0]) === Fl.value[Oe].column;
|
|
2237
|
+
})) == null ? void 0 : Ne[Fl.value[Oe].column] : ge : g[Fl.value[Oe].prop] = ge;
|
|
2238
|
+
} else Array.isArray(ge) && ((ll = Fl.value[Oe]) != null && ll.prop ? g[Fl.value[Oe].prop] = ge : g.children = _r(ge, Fl.value));
|
|
2239
|
+
});
|
|
2240
|
+
} else
|
|
2241
|
+
g = oe;
|
|
2242
|
+
if (Array.isArray(oe) && oe.some((ue) => ue == null ? void 0 : ue.id)) {
|
|
2243
|
+
const ue = (N = oe == null ? void 0 : oe.find((ge) => ge.id)) == null ? void 0 : N.id;
|
|
2244
|
+
G.push(Object.assign(g, { id: jr(ue) }));
|
|
2245
|
+
} else g.id ? G.push(g) : G.push(Object.assign(g, { id: De.toString() }));
|
|
2246
|
+
}), ae.value = qr(G, p, I.value);
|
|
2247
|
+
}
|
|
2248
|
+
Jr(ae.value), Ea.value = ae.value;
|
|
2249
|
+
const i = zu(Ea.value, ja.value, o);
|
|
2250
|
+
let f = [];
|
|
2251
|
+
if (Ca.value ? (f = (L = Z(Ca).value.singleContent) == null ? void 0 : L.filter((G) => (G == null ? void 0 : G.id) !== (n == null ? void 0 : n.id)), f.push(n)) : f = [n], Kl.value) {
|
|
2252
|
+
const G = {
|
|
2253
|
+
content: i,
|
|
2254
|
+
singleContent: ((D = p == null ? void 0 : p.contents) == null ? void 0 : D.length) > 0 ? f == null ? void 0 : f.flatMap(yr) : f,
|
|
2255
|
+
index: u == null ? void 0 : u.index,
|
|
2256
|
+
buttonName: "编辑",
|
|
2257
|
+
column: I.value,
|
|
2258
|
+
parentTableId: u == null ? void 0 : u.parentTableId
|
|
2259
|
+
};
|
|
2260
|
+
al.setCacheUpdatingData(G);
|
|
2261
|
+
}
|
|
2262
|
+
if (e) {
|
|
2263
|
+
let G = (s = (F = (W = (R = u.itemData) == null ? void 0 : R.find((g) => (g == null ? void 0 : g.key) === "filterAllType")) == null ? void 0 : W.value) == null ? void 0 : F.find((g) => (g == null ? void 0 : g.value) === "onConditionContents")) == null ? void 0 : s.content, oe = (S = u.itemData) == null ? void 0 : S.filter((g) => (g == null ? void 0 : g.key) === "filterAllType");
|
|
2264
|
+
oe = Array.from(
|
|
2265
|
+
new Map(
|
|
2266
|
+
oe.filter(Boolean).map((g, N) => [g.value, { ...g, _idx: N }])
|
|
2267
|
+
// 2. 带索引,保证顺序
|
|
2268
|
+
).values()
|
|
2269
|
+
// 3. Map 自动保留“后者”
|
|
2270
|
+
).sort((g, N) => g._idx - N._idx).map(({ _idx: g, ...N }) => N), oe = (v = oe == null ? void 0 : oe[(oe == null ? void 0 : oe.length) - 1]) == null ? void 0 : v.value;
|
|
2271
|
+
const De = {
|
|
2272
|
+
content: i,
|
|
2273
|
+
singleContent: ((_ = p == null ? void 0 : p.contents) == null ? void 0 : _.length) > 0 ? yr(n) : n,
|
|
2274
|
+
index: u == null ? void 0 : u.index,
|
|
2275
|
+
buttonName: Dl.value,
|
|
2276
|
+
column: I.value,
|
|
2277
|
+
parentTableId: u == null ? void 0 : u.parentTableId,
|
|
2278
|
+
filter: G,
|
|
2279
|
+
allFilter: oe,
|
|
2280
|
+
pathIndex: (q = (b = u.itemData) == null ? void 0 : b.find((g) => (g == null ? void 0 : g.key) === "relatedFilter")) == null ? void 0 : q.index,
|
|
2281
|
+
rowContents: Ae.value,
|
|
2282
|
+
addArrayValues: ze.value
|
|
2283
|
+
};
|
|
2284
|
+
al.setTableLoading(u == null ? void 0 : u.index), Hl.value = !1, _l.value = void 0, ce("change", De);
|
|
2285
|
+
}
|
|
2286
|
+
if ((d = (Q = (P = Ae.value) == null ? void 0 : P[0]) == null ? void 0 : Q.optionUrl) != null && d.menuId) {
|
|
2287
|
+
Hl.value = !1;
|
|
2288
|
+
let G = (x = u.itemData) == null ? void 0 : x.filter((oe) => (oe == null ? void 0 : oe.key) === "filterAllType");
|
|
2289
|
+
if ((G == null ? void 0 : G.length) > 0) {
|
|
2290
|
+
let oe = G == null ? void 0 : G.map((N) => N == null ? void 0 : N.value), De = (A = (w = (pe = oe.flat().find((N) => {
|
|
2291
|
+
var ue;
|
|
2292
|
+
return (ue = N == null ? void 0 : N.content) == null ? void 0 : ue.includes("@Num");
|
|
2293
|
+
})) == null ? void 0 : pe.content) == null ? void 0 : w.split(":")) == null ? void 0 : A[1];
|
|
2294
|
+
((re = (ne = (j = oe.flat().find((N) => {
|
|
2295
|
+
var ue;
|
|
2296
|
+
return (ue = N == null ? void 0 : N.content) == null ? void 0 : ue.includes("@Type:");
|
|
2297
|
+
})) == null ? void 0 : j.content) == null ? void 0 : ne.split(":")) == null ? void 0 : re[1]) !== "Manual" && (De = parseInt(De), ae.value = (_e = ae.value) == null ? void 0 : _e.slice(((V = ae.value) == null ? void 0 : V.length) - De, (ve = ae.value) == null ? void 0 : ve.length));
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
};
|
|
2301
|
+
Bi(() => {
|
|
2302
|
+
I.value = [], ae.value = [], O.value = [], lr.value = [], Bl.value = [], Il.value = [], Ua.value = [], Nl.value = [], Ae.value = [], zl.value = [], M.value = null;
|
|
2303
|
+
});
|
|
2304
|
+
const Kr = async (e, l, a) => {
|
|
2305
|
+
var k, C, c, m, E, U, L, D, R, W, F;
|
|
2306
|
+
Jl.value = a == null ? void 0 : a.prop;
|
|
2307
|
+
const r = Z(u.itemData), n = r == null ? void 0 : r.map((s) => {
|
|
2308
|
+
var S;
|
|
2309
|
+
return (s == null ? void 0 : s.key) === "header" && ((S = s.contents) == null || S.map((v, _) => {
|
|
2310
|
+
var b, q, P, Q, d, x, pe, w, A, j, ne, re, V, ve, _e, G, oe, De, g;
|
|
2311
|
+
return v.type = v != null && v.type ? v.type : (Q = (P = (q = (b = v == null ? void 0 : v.key) == null ? void 0 : b.split("$")) == null ? void 0 : q[1]) == null ? void 0 : P.split("(")) != null && Q[0] ? (x = (d = kr) == null ? void 0 : d.find((N) => {
|
|
2312
|
+
var ue, ge, Oe, t;
|
|
2313
|
+
return (N == null ? void 0 : N.key) === ((t = (Oe = (ge = (ue = v == null ? void 0 : v.key) == null ? void 0 : ue.split("$")) == null ? void 0 : ge[1]) == null ? void 0 : Oe.split("(")) == null ? void 0 : t[0]);
|
|
2314
|
+
})) == null ? void 0 : x.value : "Input", v.options = v != null && v.options ? v.options : ((A = (w = (pe = v == null ? void 0 : v.key) == null ? void 0 : pe.split("$")) == null ? void 0 : w[1]) == null ? void 0 : A.length) > 0 ? (V = (re = mr((ne = (j = v == null ? void 0 : v.key) == null ? void 0 : j.split("$")) == null ? void 0 : ne[1])) == null ? void 0 : re.split(",")) == null ? void 0 : V.map((N) => ({
|
|
2315
|
+
label: N,
|
|
2316
|
+
value: N
|
|
2317
|
+
})) : [], (ve = v == null ? void 0 : v.key) != null && ve.includes("$") && (v.key = (G = (_e = v == null ? void 0 : v.key) == null ? void 0 : _e.split("$")) == null ? void 0 : G[0]), v.value = (oe = Object.values(l)) == null ? void 0 : oe[_], v.optionUrl = v != null && v.formMenuSelect && ((De = v == null ? void 0 : v.formMenuSelect) == null ? void 0 : De.length) > 0 ? {
|
|
2318
|
+
groupSelect: (g = v == null ? void 0 : v.groupSelect) == null ? void 0 : g.split(/[::]/).map((N) => N.trim()),
|
|
2319
|
+
menuSelect: v == null ? void 0 : v.formMenuSelect,
|
|
2320
|
+
selectRelateType: "",
|
|
2321
|
+
type: (v == null ? void 0 : v.formType) ?? (v != null && v.groupSelect ? "Select" : "")
|
|
2322
|
+
} : null, v;
|
|
2323
|
+
})), s;
|
|
2324
|
+
});
|
|
2325
|
+
let o = Z(Ae.value), p = (C = (k = Z(n)) == null ? void 0 : k.find((s) => (s == null ? void 0 : s.key) === "header")) == null ? void 0 : C.contents;
|
|
2326
|
+
o = o == null ? void 0 : o.map((s) => {
|
|
2327
|
+
var S;
|
|
2328
|
+
return s.value = (S = p == null ? void 0 : p.find((v, _) => _ === (s == null ? void 0 : s.id))) == null ? void 0 : S.value, s;
|
|
2329
|
+
});
|
|
2330
|
+
let i = "", f = (E = (m = (c = Z(n)) == null ? void 0 : c.find((s) => (s == null ? void 0 : s.key) === "header")) == null ? void 0 : m.contents) == null ? void 0 : E.find((s, S) => {
|
|
2331
|
+
var v, _, b;
|
|
2332
|
+
return (s == null ? void 0 : s.label) === Jl.value || (S == null ? void 0 : S.toString()) === ((b = (_ = (v = Jl.value) == null ? void 0 : v.split("a")) == null ? void 0 : _[1]) == null ? void 0 : b.toString());
|
|
2333
|
+
});
|
|
2334
|
+
if ((D = (L = (U = Z(n)) == null ? void 0 : U.find((s) => (s == null ? void 0 : s.key) === "header")) == null ? void 0 : L.contents) == null || D.forEach((s) => {
|
|
2335
|
+
var S, v, _, b, q;
|
|
2336
|
+
i === "" && ((_ = (v = (S = s == null ? void 0 : s.optionUrl) == null ? void 0 : S.groupSelect) == null ? void 0 : v[1]) != null && _.includes("[")) && (i = (q = (b = s == null ? void 0 : s.optionUrl) == null ? void 0 : b.groupSelect) == null ? void 0 : q[1]);
|
|
2337
|
+
}), (R = f == null ? void 0 : f.optionUrl) != null && R.menuSelect) {
|
|
2338
|
+
let s = await Ar(f), S;
|
|
2339
|
+
if (s == null || s.forEach((v) => {
|
|
2340
|
+
var _, b, q, P, Q, d, x, pe, w, A;
|
|
2341
|
+
i === ((b = (_ = f == null ? void 0 : f.optionUrl) == null ? void 0 : _.groupSelect) == null ? void 0 : b[1]) && ((Q = (P = (q = f == null ? void 0 : f.optionUrl) == null ? void 0 : q.groupSelect) == null ? void 0 : P[1]) != null && Q.includes("[")) && ((A = Z(v)) == null ? void 0 : A[(w = (pe = (x = (d = f == null ? void 0 : f.optionUrl) == null ? void 0 : d.groupSelect) == null ? void 0 : x[1]) == null ? void 0 : pe.replaceAll("[", "")) == null ? void 0 : w.replaceAll("]", "")]) === (f == null ? void 0 : f.value) && (S = v);
|
|
2342
|
+
}), S) {
|
|
2343
|
+
let v = Z(o);
|
|
2344
|
+
v = v == null ? void 0 : v.map((b) => {
|
|
2345
|
+
var q, P, Q, d, x, pe, w, A, j, ne, re;
|
|
2346
|
+
return (S != null && S[b == null ? void 0 : b.label] || S != null && S[(d = (Q = (P = (q = b == null ? void 0 : b.optionUrl) == null ? void 0 : q.groupSelect) == null ? void 0 : P[1]) == null ? void 0 : Q.replaceAll("[", "")) == null ? void 0 : d.replaceAll("]", "")]) && ((w = (pe = (x = b == null ? void 0 : b.optionUrl) == null ? void 0 : x.groupSelect) == null ? void 0 : pe[1]) != null && w.includes("[")) && (b.value = (S == null ? void 0 : S[b == null ? void 0 : b.label]) || (S == null ? void 0 : S[(re = (ne = (j = (A = b == null ? void 0 : b.optionUrl) == null ? void 0 : A.groupSelect) == null ? void 0 : j[1]) == null ? void 0 : ne.replaceAll("[", "")) == null ? void 0 : re.replaceAll("]", "")])), b;
|
|
2347
|
+
}), ae.value = (W = Z(ae.value)) == null ? void 0 : W.map((b) => {
|
|
2348
|
+
if ((b == null ? void 0 : b.id) === (l == null ? void 0 : l.id)) {
|
|
2349
|
+
const q = {};
|
|
2350
|
+
return v == null || v.forEach((P) => {
|
|
2351
|
+
q[P.name] = P.value;
|
|
2352
|
+
}), q.id = b == null ? void 0 : b.id, q;
|
|
2353
|
+
}
|
|
2354
|
+
return b;
|
|
2355
|
+
});
|
|
2356
|
+
let _ = Z(v);
|
|
2357
|
+
_ = _ == null ? void 0 : _.map((b) => {
|
|
2358
|
+
var q, P, Q, d;
|
|
2359
|
+
return (P = (q = b == null ? void 0 : b.optionUrl) == null ? void 0 : q.menuSelect) != null && P.some((x) => x == null ? void 0 : x.includes) && (b.optionUrl.menuSelect = (d = (Q = b == null ? void 0 : b.optionUrl) == null ? void 0 : Q.menuSelect) == null ? void 0 : d.map((x) => {
|
|
2360
|
+
var pe, w, A, j;
|
|
2361
|
+
if (x != null && x.includes("[")) {
|
|
2362
|
+
let ne = (w = (pe = x == null ? void 0 : x.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : pe.split(":")) == null ? void 0 : w[1];
|
|
2363
|
+
x = (j = (A = Z(v)) == null ? void 0 : A.find((re) => (re == null ? void 0 : re.label) === ne)) == null ? void 0 : j.value;
|
|
2364
|
+
}
|
|
2365
|
+
return x;
|
|
2366
|
+
})), b;
|
|
2367
|
+
}), ae.value = (F = Z(ae.value)) == null ? void 0 : F.map((b) => {
|
|
2368
|
+
if ((b == null ? void 0 : b.id) === (l == null ? void 0 : l.id)) {
|
|
2369
|
+
const q = {};
|
|
2370
|
+
return _ == null || _.forEach((P) => {
|
|
2371
|
+
q[P.name] = P.value;
|
|
2372
|
+
}), q.id = b == null ? void 0 : b.id, q;
|
|
2373
|
+
}
|
|
2374
|
+
return b;
|
|
2375
|
+
});
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
}, Oi = async (e) => {
|
|
2379
|
+
var E, U, L, D, R, W, F, s, S, v, _, b, q, P, Q, d, x, pe, w, A, j, ne, re, V, ve, _e, G, oe, De;
|
|
2380
|
+
if (!e) return;
|
|
2381
|
+
_l.value = e;
|
|
2382
|
+
const l = Z(u.itemData);
|
|
2383
|
+
let a = l == null ? void 0 : l.map((g) => {
|
|
2384
|
+
var N, ue, ge, Oe;
|
|
2385
|
+
return (g == null ? void 0 : g.key) === "header" && (Array.isArray((N = g.contents) == null ? void 0 : N[0]) ? g.contents = (ge = Ta((ue = g.contents) == null ? void 0 : ue[0])) == null ? void 0 : ge.map((t, se) => {
|
|
2386
|
+
var $e, T, Le, Ne, ll, Ve, Ue, We, ul, sl, il, Se, Ce, pl, Sl, ml, Ol, bl, Ul, xl, El, jl, y, K;
|
|
2387
|
+
return t.type = t != null && t.type ? t.type : (Ne = (Le = (T = ($e = t == null ? void 0 : t.key) == null ? void 0 : $e.split("$")) == null ? void 0 : T[1]) == null ? void 0 : Le.split("(")) != null && Ne[0] ? (Ve = (ll = kr) == null ? void 0 : ll.find((ie) => {
|
|
2388
|
+
var fl, be, He, ol;
|
|
2389
|
+
return (ie == null ? void 0 : ie.key) === ((ol = (He = (be = (fl = t == null ? void 0 : t.key) == null ? void 0 : fl.split("$")) == null ? void 0 : be[1]) == null ? void 0 : He.split("(")) == null ? void 0 : ol[0]);
|
|
2390
|
+
})) == null ? void 0 : Ve.value : "Input", t.options = t != null && t.options ? t.options : ((ul = (We = (Ue = t == null ? void 0 : t.key) == null ? void 0 : Ue.split("$")) == null ? void 0 : We[1]) == null ? void 0 : ul.length) > 0 ? (Ce = (Se = mr((il = (sl = t == null ? void 0 : t.key) == null ? void 0 : sl.split("$")) == null ? void 0 : il[1])) == null ? void 0 : Se.split(",")) == null ? void 0 : Ce.map((ie) => ({
|
|
2391
|
+
label: ie,
|
|
2392
|
+
value: ie
|
|
2393
|
+
})) : [], (pl = t == null ? void 0 : t.key) != null && pl.includes("$") && (t.key = (ml = (Sl = t == null ? void 0 : t.key) == null ? void 0 : Sl.split("$")) == null ? void 0 : ml[0]), ((Ul = (bl = (Ol = Ae.value) == null ? void 0 : Ol.find((ie) => (ie == null ? void 0 : ie.prop) === (t == null ? void 0 : t.prop))) == null ? void 0 : bl.optionUrl) == null ? void 0 : Ul.multiple) === !0 && !Array.isArray((xl = Object.values(e)) == null ? void 0 : xl[se]) ? t.value = [(El = Object.values(e)) == null ? void 0 : El[se]] : t.value = (jl = Object.values(e)) == null ? void 0 : jl[se], t.optionUrl = t != null && t.formMenuSelect && ((y = t == null ? void 0 : t.formMenuSelect) == null ? void 0 : y.length) > 0 ? {
|
|
2394
|
+
groupSelect: (K = t == null ? void 0 : t.groupSelect) == null ? void 0 : K.split(/[::]/).map((ie) => ie.trim()),
|
|
2395
|
+
menuSelect: t == null ? void 0 : t.formMenuSelect,
|
|
2396
|
+
selectRelateType: "",
|
|
2397
|
+
type: (t == null ? void 0 : t.formType) ?? (t != null && t.groupSelect ? "Select" : "")
|
|
2398
|
+
} : null, t;
|
|
2399
|
+
}) : g.contents = (Oe = g.contents) == null ? void 0 : Oe.map((t, se) => {
|
|
2400
|
+
var $e, T, Le, Ne, ll, Ve, Ue, We, ul, sl, il, Se, Ce, pl, Sl, ml, Ol, bl, Ul, xl, El, jl, y, K;
|
|
2401
|
+
return t.type = t != null && t.type ? t.type : (Ne = (Le = (T = ($e = t == null ? void 0 : t.key) == null ? void 0 : $e.split("$")) == null ? void 0 : T[1]) == null ? void 0 : Le.split("(")) != null && Ne[0] ? (Ve = (ll = kr) == null ? void 0 : ll.find((ie) => {
|
|
2402
|
+
var fl, be, He, ol;
|
|
2403
|
+
return (ie == null ? void 0 : ie.key) === ((ol = (He = (be = (fl = t == null ? void 0 : t.key) == null ? void 0 : fl.split("$")) == null ? void 0 : be[1]) == null ? void 0 : He.split("(")) == null ? void 0 : ol[0]);
|
|
2404
|
+
})) == null ? void 0 : Ve.value : "Input", t.options = t != null && t.options ? t.options : ((ul = (We = (Ue = t == null ? void 0 : t.key) == null ? void 0 : Ue.split("$")) == null ? void 0 : We[1]) == null ? void 0 : ul.length) > 0 ? (Ce = (Se = mr((il = (sl = t == null ? void 0 : t.key) == null ? void 0 : sl.split("$")) == null ? void 0 : il[1])) == null ? void 0 : Se.split(",")) == null ? void 0 : Ce.map((ie) => ({
|
|
2405
|
+
label: ie,
|
|
2406
|
+
value: ie
|
|
2407
|
+
})) : [], (pl = t == null ? void 0 : t.key) != null && pl.includes("$") && (t.key = (ml = (Sl = t == null ? void 0 : t.key) == null ? void 0 : Sl.split("$")) == null ? void 0 : ml[0]), ((Ul = (bl = (Ol = Ae.value) == null ? void 0 : Ol.find((ie) => (ie == null ? void 0 : ie.prop) === (t == null ? void 0 : t.prop))) == null ? void 0 : bl.optionUrl) == null ? void 0 : Ul.multiple) === !0 && !Array.isArray((xl = Object.values(e)) == null ? void 0 : xl[se]) ? t.value = [(El = Object.values(e)) == null ? void 0 : El[se]] : t.value = (jl = Object.values(e)) == null ? void 0 : jl[se], t.optionUrl = t != null && t.formMenuSelect && ((y = t == null ? void 0 : t.formMenuSelect) == null ? void 0 : y.length) > 0 ? {
|
|
2408
|
+
groupSelect: (K = t == null ? void 0 : t.groupSelect) == null ? void 0 : K.split(/[::]/).map((ie) => ie.trim()),
|
|
2409
|
+
menuSelect: t == null ? void 0 : t.formMenuSelect,
|
|
2410
|
+
selectRelateType: "",
|
|
2411
|
+
type: (t == null ? void 0 : t.formType) ?? (t != null && t.groupSelect ? "Select" : "")
|
|
2412
|
+
} : null, t;
|
|
2413
|
+
})), g;
|
|
2414
|
+
}), r = Ae.value, n = (U = (E = Z(a)) == null ? void 0 : E.find((g) => (g == null ? void 0 : g.key) === "header")) == null ? void 0 : U.contents;
|
|
2415
|
+
if (n = n == null ? void 0 : n.filter((g) => (g == null ? void 0 : g.label) !== "操作"), n.push({
|
|
2416
|
+
label: "操作",
|
|
2417
|
+
type: "operate"
|
|
2418
|
+
}), r = r == null ? void 0 : r.map((g) => {
|
|
2419
|
+
var N;
|
|
2420
|
+
return g.value = g.value ?? ((N = n == null ? void 0 : n.find((ue, ge) => (ue == null ? void 0 : ue.prop) === (g == null ? void 0 : g.name))) == null ? void 0 : N.value), g;
|
|
2421
|
+
}), !La.value) return;
|
|
2422
|
+
let o = "", p = Z(Jl.value);
|
|
2423
|
+
(L = Jl.value) != null && L.includes("·") && (Jl.value = (R = (D = Jl.value) == null ? void 0 : D.split("·")) == null ? void 0 : R[0]);
|
|
2424
|
+
let i = (s = (F = (W = Z(a)) == null ? void 0 : W.find((g) => (g == null ? void 0 : g.key) === "header")) == null ? void 0 : F.contents) == null ? void 0 : s.find((g, N) => {
|
|
2425
|
+
var ue, ge, Oe;
|
|
2426
|
+
return (g == null ? void 0 : g.prop) === Jl.value || (N == null ? void 0 : N.toString()) === ((Oe = (ge = (ue = Jl.value) == null ? void 0 : ue.split("a")) == null ? void 0 : ge[1]) == null ? void 0 : Oe.toString());
|
|
2427
|
+
}), f = (S = i == null ? void 0 : i.optionUrl) == null ? void 0 : S.menuSelect, k = !0;
|
|
2428
|
+
(b = (_ = (v = Z(a)) == null ? void 0 : v.find((g) => (g == null ? void 0 : g.key) === "header")) == null ? void 0 : _.contents) == null || b.forEach((g) => {
|
|
2429
|
+
var N, ue, ge, Oe, t, se;
|
|
2430
|
+
k && ((ge = (ue = (N = g == null ? void 0 : g.optionUrl) == null ? void 0 : N.groupSelect) == null ? void 0 : ue[1]) != null && ge.includes("[")) && (o = (t = (Oe = g == null ? void 0 : g.optionUrl) == null ? void 0 : Oe.groupSelect) == null ? void 0 : t[1], JSON.stringify(f) === JSON.stringify((se = g == null ? void 0 : g.optionUrl) == null ? void 0 : se.menuSelect) && (k = !1));
|
|
2431
|
+
});
|
|
2432
|
+
let C = Z(r), c = vl.value;
|
|
2433
|
+
c != null && c.find((g) => (i == null ? void 0 : i.prop) === (g == null ? void 0 : g.key)) && (c = c == null ? void 0 : c.filter((g) => (i == null ? void 0 : i.prop) !== (g == null ? void 0 : g.key))), c != null && c.find((g) => p === (g == null ? void 0 : g.key)) && (c = c == null ? void 0 : c.filter((g) => p !== (g == null ? void 0 : g.key))), C = C == null ? void 0 : C.map((g) => {
|
|
2434
|
+
var N, ue, ge, Oe, t, se, $e, T, Le;
|
|
2435
|
+
return (g == null ? void 0 : g.type) === "Select" && (((ue = (N = g == null ? void 0 : g.optionUrl) == null ? void 0 : N.allSelectionContents) == null ? void 0 : ue.length) > 0 && (g.optionUrl.contactValue = e), ((i == null ? void 0 : i.prop) === (g == null ? void 0 : g.prop) || p === (g == null ? void 0 : g.prop)) && i && (Array.isArray(i.value) && ((ge = i.value) == null ? void 0 : ge.length) > 0 && ((Oe = i.value) != null && Oe.every((Ne) => typeof Ne == "string")) ? (c.push({
|
|
2436
|
+
key: g == null ? void 0 : g.prop,
|
|
2437
|
+
value: [(se = i.value) == null ? void 0 : se[((t = i.value) == null ? void 0 : t.length) - 1]]
|
|
2438
|
+
}), g.selectValue = ($e = c == null ? void 0 : c.find((Ne) => (Ne == null ? void 0 : Ne.key) === (g == null ? void 0 : g.prop))) == null ? void 0 : $e.value) : Array.isArray(i.value) && ((T = i.value) == null ? void 0 : T.length) === 0 ? (c = [], g.selectValue = [], e[g == null ? void 0 : g.prop] = "") : Array.isArray(g.value) && c.push({
|
|
2439
|
+
key: g == null ? void 0 : g.prop,
|
|
2440
|
+
value: [(Le = g.value) == null ? void 0 : Le[(g == null ? void 0 : g.length) - 1]]
|
|
2441
|
+
}))), g.value = e == null ? void 0 : e[g == null ? void 0 : g.prop], g;
|
|
2442
|
+
}), vl.value = c, Ae.value = Z(C);
|
|
2443
|
+
let m = (i == null ? void 0 : i.menuId) ?? ((Q = (P = (q = Ae.value) == null ? void 0 : q.find((g) => {
|
|
2444
|
+
var N;
|
|
2445
|
+
return (N = g == null ? void 0 : g.optionUrl) == null ? void 0 : N.menuId;
|
|
2446
|
+
})) == null ? void 0 : P.optionUrl) == null ? void 0 : Q.menuId);
|
|
2447
|
+
if ((d = i == null ? void 0 : i.optionUrl) != null && d.menuSelect && La.value || m) {
|
|
2448
|
+
let g = await Ar(i, m), N;
|
|
2449
|
+
if (g == null || g.forEach((t) => {
|
|
2450
|
+
var se, $e, T, Le, Ne, ll, Ve, Ue, We, ul, sl, il, Se, Ce, pl, Sl, ml, Ol, bl, Ul, xl, El, jl, y, K, ie, fl;
|
|
2451
|
+
if (!m && o === (($e = (se = i == null ? void 0 : i.optionUrl) == null ? void 0 : se.groupSelect) == null ? void 0 : $e[1]) && ((Ne = (Le = (T = i == null ? void 0 : i.optionUrl) == null ? void 0 : T.groupSelect) == null ? void 0 : Le[1]) != null && Ne.includes("[")) && ((ul = Z(t)) == null ? void 0 : ul[(We = (Ue = (Ve = (ll = i == null ? void 0 : i.optionUrl) == null ? void 0 : ll.groupSelect) == null ? void 0 : Ve[1]) == null ? void 0 : Ue.replaceAll("[", "")) == null ? void 0 : We.replaceAll("]", "")]) === (i == null ? void 0 : i.value) && (N = t), m) {
|
|
2452
|
+
let be = (il = (sl = Ae.value) == null ? void 0 : sl.find((Qe) => {
|
|
2453
|
+
var tl;
|
|
2454
|
+
return (i == null ? void 0 : i.menuId) === ((tl = Qe == null ? void 0 : Qe.optionUrl) == null ? void 0 : tl.menuId);
|
|
2455
|
+
})) == null ? void 0 : il.prop, He = e[be];
|
|
2456
|
+
if (be != null && be.includes("·"))
|
|
2457
|
+
if (!Array.isArray(e[be]))
|
|
2458
|
+
He = (Ce = (Se = e[be]) == null ? void 0 : Se.split(" ")) == null ? void 0 : Ce[0], be = (pl = be == null ? void 0 : be.split("·")) == null ? void 0 : pl[0];
|
|
2459
|
+
else {
|
|
2460
|
+
be = (Sl = be == null ? void 0 : be.split("·")) == null ? void 0 : Sl[0];
|
|
2461
|
+
let Qe = (Ol = (ml = C == null ? void 0 : C.find((tl) => (tl == null ? void 0 : tl.prop) === be)) == null ? void 0 : ml.selectValue) == null ? void 0 : Ol[0];
|
|
2462
|
+
He = (bl = Qe == null ? void 0 : Qe.split(" ")) == null ? void 0 : bl[0];
|
|
2463
|
+
}
|
|
2464
|
+
let ol = (xl = (Ul = C == null ? void 0 : C.find((Qe) => {
|
|
2465
|
+
var tl;
|
|
2466
|
+
return (Qe == null ? void 0 : Qe.prop) === be || ((tl = Qe == null ? void 0 : Qe.prop) == null ? void 0 : tl.includes("." + be));
|
|
2467
|
+
})) == null ? void 0 : Ul.selectValue) == null ? void 0 : xl[0];
|
|
2468
|
+
if (be != null && be.includes(".") && (be = (jl = be == null ? void 0 : be.split(".")) == null ? void 0 : jl[((El = be == null ? void 0 : be.split(".")) == null ? void 0 : El.length) - 1]), Array.isArray(He) && !ol && (ol = He == null ? void 0 : He[0]), t[be] === (Array.isArray(He) ? ol : He) && (i == null ? void 0 : i.directiveLabel) === "#isMain") {
|
|
2469
|
+
if (p != null && p.includes("·")) {
|
|
2470
|
+
let Qe = p == null ? void 0 : p.split("·"), tl = (fl = (ie = (K = Array.isArray(e == null ? void 0 : e[p]) ? (y = e == null ? void 0 : e[p]) == null ? void 0 : y[0] : e == null ? void 0 : e[p]) == null ? void 0 : K.split(" ")) == null ? void 0 : ie.filter(($) => $ && $ !== "")) == null ? void 0 : fl.map(($) => $ == null ? void 0 : $.trim());
|
|
2471
|
+
Qe == null || Qe.forEach(($, h) => {
|
|
2472
|
+
t[$] = tl == null ? void 0 : tl[h];
|
|
2473
|
+
});
|
|
2474
|
+
}
|
|
2475
|
+
N = t;
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
}), Cl.value && (i == null ? void 0 : i.directiveLabel) === "#isMain" && (ze.value = []), !N) {
|
|
2479
|
+
if (Cl.value && (i == null ? void 0 : i.directiveLabel) === "#isMain")
|
|
2480
|
+
if (p != null && p.includes("·")) {
|
|
2481
|
+
let t = e, se = (w = (pe = (x = e == null ? void 0 : e[p]) == null ? void 0 : x.split(" ")) == null ? void 0 : pe.filter((T) => T && T !== "")) == null ? void 0 : w.map((T) => T == null ? void 0 : T.trim());
|
|
2482
|
+
(A = p == null ? void 0 : p.split("·")) == null || A.forEach((T, Le) => {
|
|
2483
|
+
t[T] = se[Le];
|
|
2484
|
+
});
|
|
2485
|
+
let $e = (j = Ae.value) == null ? void 0 : j.find((T) => (T == null ? void 0 : T.prop) === p);
|
|
2486
|
+
t[$e.prop] = [$e.value], N = t;
|
|
2487
|
+
} else {
|
|
2488
|
+
let t = (ne = Ae.value) == null ? void 0 : ne.find((se) => (se == null ? void 0 : se.prop) === (i == null ? void 0 : i.prop));
|
|
2489
|
+
e[t.prop] = [t.value], N = e;
|
|
2490
|
+
}
|
|
2491
|
+
else if ((i == null ? void 0 : i.directiveLabel) === "#isMain") {
|
|
2492
|
+
let t = {};
|
|
2493
|
+
(re = Ae.value) == null || re.forEach((se) => {
|
|
2494
|
+
var $e, T;
|
|
2495
|
+
(se == null ? void 0 : se.prop) === p ? t[se.prop] = ($e = se == null ? void 0 : se.selectValue) != null && $e[0] ? [(T = se == null ? void 0 : se.selectValue) == null ? void 0 : T[0]] : "" : t[se.prop] = "";
|
|
2496
|
+
}), N = t;
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
if (N) {
|
|
2500
|
+
let t = Z(r);
|
|
2501
|
+
t = t == null ? void 0 : t.map((T) => {
|
|
2502
|
+
var Ne, ll, Ve, Ue, We, ul, sl, il, Se, Ce, pl, Sl, ml, Ol, bl, Ul, xl, El, jl, y, K, ie, fl, be, He, ol, Qe, tl, $, h, Me;
|
|
2503
|
+
(N != null && N[T == null ? void 0 : T.prop] || N != null && N[(Ue = (Ve = (ll = (Ne = T == null ? void 0 : T.optionUrl) == null ? void 0 : Ne.groupSelect) == null ? void 0 : ll[1]) == null ? void 0 : Ve.replaceAll("[", "")) == null ? void 0 : Ue.replaceAll("]", "")]) && ((sl = (ul = (We = T == null ? void 0 : T.optionUrl) == null ? void 0 : We.groupSelect) == null ? void 0 : ul[1]) != null && sl.includes("[")) && (T != null && T.relatedValueId) && (T.value = (N == null ? void 0 : N[T == null ? void 0 : T.prop]) || (N == null ? void 0 : N[(pl = (Ce = (Se = (il = T == null ? void 0 : T.optionUrl) == null ? void 0 : il.groupSelect) == null ? void 0 : Se[1]) == null ? void 0 : Ce.replaceAll("[", "")) == null ? void 0 : pl.replaceAll("]", "")]));
|
|
2504
|
+
let Le = N == null ? void 0 : N[T == null ? void 0 : T.prop];
|
|
2505
|
+
return (Sl = T == null ? void 0 : T.prop) != null && Sl.includes(".") && ((Ol = (ml = i == null ? void 0 : i.prop) == null ? void 0 : ml.split(".")) == null ? void 0 : Ol[0]) === ((Ul = (bl = T == null ? void 0 : T.prop) == null ? void 0 : bl.split(".")) == null ? void 0 : Ul[0]) && (Le = N == null ? void 0 : N[(y = (xl = T == null ? void 0 : T.prop) == null ? void 0 : xl.split(".")) == null ? void 0 : y[((jl = (El = T == null ? void 0 : T.prop) == null ? void 0 : El.split(".")) == null ? void 0 : jl.length) - 1]]), m && (Le || Le === "") && (T != null && T.relatedValueId) && Dl.value === "新增" && ((T == null ? void 0 : T.prop) !== (i == null ? void 0 : i.prop) || p != null && p.includes((i == null ? void 0 : i.prop) + "·") || p != null && p.includes("·" + (T == null ? void 0 : T.prop))) ? T.value = Le || (N == null ? void 0 : N[(be = (fl = (ie = (K = T == null ? void 0 : T.optionUrl) == null ? void 0 : K.groupSelect) == null ? void 0 : ie[1]) == null ? void 0 : fl.replaceAll("[", "")) == null ? void 0 : be.replaceAll("]", "")]) : (p != null && p.includes("·" + (T == null ? void 0 : T.prop)) || p != null && p.includes(".")) && (T == null ? void 0 : T.prop) !== (i == null ? void 0 : i.prop) ? T.value = Le ?? "" : ((He = T == null ? void 0 : T.optionUrl) == null ? void 0 : He.multiple) === !0 && !Array.isArray((Qe = (ol = Ae.value) == null ? void 0 : ol.find((xe) => (xe == null ? void 0 : xe.prop) === (T == null ? void 0 : T.prop))) == null ? void 0 : Qe.value) ? T.value = [($ = (tl = Ae.value) == null ? void 0 : tl.find((xe) => (xe == null ? void 0 : xe.prop) === (T == null ? void 0 : T.prop))) == null ? void 0 : $.value] : T.value = (Me = (h = Ae.value) == null ? void 0 : h.find((xe) => (xe == null ? void 0 : xe.prop) === (T == null ? void 0 : T.prop))) == null ? void 0 : Me.value, T;
|
|
2506
|
+
}), Ae.value = Z(t);
|
|
2507
|
+
let se = Z(t);
|
|
2508
|
+
se = se == null ? void 0 : se.map((T) => {
|
|
2509
|
+
var Le, Ne, ll, Ve, Ue, We, ul, sl, il;
|
|
2510
|
+
return (Ne = (Le = T == null ? void 0 : T.optionUrl) == null ? void 0 : Le.menuSelect) != null && Ne.some((Se) => Se == null ? void 0 : Se.includes("[")) && (T.optionUrl.oldMenuSelect = (Ve = (ll = Z(T)) == null ? void 0 : ll.optionUrl) == null ? void 0 : Ve.menuSelect, T.optionUrl.menuSelect = (We = (Ue = T == null ? void 0 : T.optionUrl) == null ? void 0 : Ue.menuSelect) == null ? void 0 : We.map((Se) => {
|
|
2511
|
+
var Ce, pl, Sl, ml;
|
|
2512
|
+
if (Se != null && Se.includes("[")) {
|
|
2513
|
+
let Ol = (pl = (Ce = Se == null ? void 0 : Se.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : Ce.split(":")) == null ? void 0 : pl[1];
|
|
2514
|
+
Se = (ml = (Sl = Z(t)) == null ? void 0 : Sl.find((bl) => (bl == null ? void 0 : bl.label) === Ol)) == null ? void 0 : ml.value;
|
|
2515
|
+
}
|
|
2516
|
+
return Se;
|
|
2517
|
+
})), ((i == null ? void 0 : i.prop) === (T == null ? void 0 : T.prop) || p === (T == null ? void 0 : T.prop)) && Array.isArray(i.value) && (ul = i.value) != null && ul.every((Se) => typeof Se == "string") && (T.selectValue = ((sl = c == null ? void 0 : c.find((Se) => (Se == null ? void 0 : Se.key) === (T == null ? void 0 : T.prop))) == null ? void 0 : sl.value) ?? ((il = T.value) == null ? void 0 : il[0])), T;
|
|
2518
|
+
}), Ae.value = se;
|
|
2519
|
+
let $e = {};
|
|
2520
|
+
(V = Ae.value) == null || V.forEach((T) => {
|
|
2521
|
+
$e[T.prop] = T == null ? void 0 : T.value;
|
|
2522
|
+
}), _l.value = $e;
|
|
2523
|
+
}
|
|
2524
|
+
let ue = ze.value, ge = {};
|
|
2525
|
+
(ve = Ae.value) == null || ve.forEach((t) => {
|
|
2526
|
+
var se, $e, T, Le, Ne, ll, Ve, Ue, We, ul, sl;
|
|
2527
|
+
if (((t == null ? void 0 : t.directiveLabel) === "#isMain" || (se = t == null ? void 0 : t.optionUrl) != null && se.menuId) && Array.isArray(t == null ? void 0 : t.value)) {
|
|
2528
|
+
if (ge[t.prop] = (T = t.value) == null ? void 0 : T[(($e = t.value) == null ? void 0 : $e.length) - 1], (Le = t == null ? void 0 : t.prop) != null && Le.includes("·")) {
|
|
2529
|
+
let il = (Ve = (ll = (Ne = t == null ? void 0 : t.prop) == null ? void 0 : Ne.split("·")) == null ? void 0 : ll.filter((Ce) => Ce && Ce !== "")) == null ? void 0 : Ve.map((Ce) => Ce == null ? void 0 : Ce.trim()), Se = (sl = (ul = (We = (Ue = t == null ? void 0 : t.selectValue) == null ? void 0 : Ue[0]) == null ? void 0 : We.split(" ")) == null ? void 0 : ul.filter((Ce) => Ce && Ce !== "")) == null ? void 0 : sl.map((Ce) => Ce == null ? void 0 : Ce.trim());
|
|
2530
|
+
il == null || il.forEach((Ce, pl) => {
|
|
2531
|
+
ge[Ce] = Se == null ? void 0 : Se[pl];
|
|
2532
|
+
});
|
|
2533
|
+
}
|
|
2534
|
+
} else
|
|
2535
|
+
ge[t.prop] = (ge == null ? void 0 : ge[t == null ? void 0 : t.prop]) ?? t.value;
|
|
2536
|
+
});
|
|
2537
|
+
let Oe = (_e = Ae.value) == null ? void 0 : _e.find((t) => {
|
|
2538
|
+
var se;
|
|
2539
|
+
return (t == null ? void 0 : t.directiveLabel) === "#isMain" || ((se = t == null ? void 0 : t.optionUrl) == null ? void 0 : se.menuId);
|
|
2540
|
+
});
|
|
2541
|
+
(i == null ? void 0 : i.directiveLabel) === "#isMain" ? ue.push({
|
|
2542
|
+
label: i == null ? void 0 : i.prop,
|
|
2543
|
+
value: (oe = i == null ? void 0 : i.value) == null ? void 0 : oe[((G = i == null ? void 0 : i.value) == null ? void 0 : G.length) - 1],
|
|
2544
|
+
objectValue: ge
|
|
2545
|
+
}) : ((De = Oe == null ? void 0 : Oe.value) == null ? void 0 : De.length) > 0 && (ue = ue == null ? void 0 : ue.map((t) => {
|
|
2546
|
+
var se;
|
|
2547
|
+
return (t == null ? void 0 : t.value) === ((se = Oe == null ? void 0 : Oe.selectValue) == null ? void 0 : se[0]) && (t.objectValue = ge), t;
|
|
2548
|
+
})), ze.value = ue;
|
|
2549
|
+
}
|
|
2550
|
+
La.value = !0, Cl.value = !1;
|
|
2551
|
+
}, Ci = (e) => e ? (e == null ? void 0 : e.toUpperCase()) === "INPUT" ? "TEXTAREA" : e : "TEXTAREA", Di = (e) => {
|
|
2552
|
+
var o, p;
|
|
2553
|
+
const l = (p = (o = Bl.value) == null ? void 0 : o.find((i) => (i == null ? void 0 : i.label) === (e == null ? void 0 : e.label))) == null ? void 0 : p.multiple, a = e == null ? void 0 : e.prop;
|
|
2554
|
+
if ((e == null ? void 0 : e.formType) != "Select")
|
|
2555
|
+
return;
|
|
2556
|
+
ae.value.forEach((i) => {
|
|
2557
|
+
const f = i == null ? void 0 : i[a];
|
|
2558
|
+
l && dn(f) && (i[a] = [f]), !l && !dn(f) && (i[a] = "");
|
|
2559
|
+
});
|
|
2560
|
+
}, zr = (e, l) => {
|
|
2561
|
+
var a;
|
|
2562
|
+
return l == null || l.forEach((r) => {
|
|
2563
|
+
e[r == null ? void 0 : r.prop] = r == null ? void 0 : r.value;
|
|
2564
|
+
}), e.children && ((a = e.children) == null ? void 0 : a.length) > 0 && (e.children = e.children.map((r) => zr(r, l))), e;
|
|
2565
|
+
}, hr = (e) => {
|
|
2566
|
+
var a, r, n, o, p, i;
|
|
2567
|
+
wa("");
|
|
2568
|
+
const l = (a = Ae.value) == null ? void 0 : a.reduce((f, k) => (f[k.name] = k.value, f), {});
|
|
2569
|
+
if (((r = Object.keys(l)) == null ? void 0 : r.length) > 0) {
|
|
2570
|
+
_l.value = l, Gl.value = "", ta.value = (n = ae.value) == null ? void 0 : n.length, Nl.value = (o = wl.value) == null ? void 0 : o.filter((k) => (k == null ? void 0 : k.label) !== "新增");
|
|
2571
|
+
const f = (i = (p = O.value) == null ? void 0 : p.filter((k) => (k == null ? void 0 : k.label) !== "操作")) == null ? void 0 : i.map((k) => {
|
|
2572
|
+
var c, m, E;
|
|
2573
|
+
const C = (m = (c = Bl.value) == null ? void 0 : c.find((U) => (U == null ? void 0 : U.label) === (k == null ? void 0 : k.label))) == null ? void 0 : m.multiple;
|
|
2574
|
+
return Di(k), {
|
|
2575
|
+
...k,
|
|
2576
|
+
contents: (k == null ? void 0 : k.options) ?? [],
|
|
2577
|
+
// type: 'edit',
|
|
2578
|
+
optionUrl: k != null && k.formMenuSelect && ((E = k == null ? void 0 : k.formMenuSelect) == null ? void 0 : E.length) > 0 ? {
|
|
2579
|
+
groupSelect: k == null ? void 0 : k.groupSelect,
|
|
2580
|
+
menuSelect: k == null ? void 0 : k.formMenuSelect,
|
|
2581
|
+
selectRelateType: "",
|
|
2582
|
+
type: k == null ? void 0 : k.formType,
|
|
2583
|
+
multiple: C
|
|
2584
|
+
} : null
|
|
2585
|
+
// 表格编辑视图组件类型:兼容表头类型切换逻辑,优先模型里定义的类型,其次是手动配置的类型
|
|
2586
|
+
// columnType: convertColType(col?.formType) || col?.columnType
|
|
2587
|
+
};
|
|
2588
|
+
});
|
|
2589
|
+
I.value = f == null ? void 0 : f.map((k) => zr(k, [{
|
|
2590
|
+
prop: "type",
|
|
2591
|
+
value: "edit"
|
|
2592
|
+
}, { prop: "columnType", value: Ci(k == null ? void 0 : k.formType) || (k == null ? void 0 : k.columnType) }])), e === "createClick" && Ra(!1);
|
|
2593
|
+
}
|
|
2594
|
+
}, ga = {
|
|
2595
|
+
START: "开始时间",
|
|
2596
|
+
END: "结束时间",
|
|
2597
|
+
HOURS: "工时"
|
|
2598
|
+
}, Ui = (e, l) => Number(rn(l).diff(rn(e), "day", !0).toFixed(1)), Jr = (e) => {
|
|
2599
|
+
var o;
|
|
2600
|
+
const l = u.itemData, a = (o = l == null ? void 0 : l.find((p) => (p == null ? void 0 : p.key) === "header")) == null ? void 0 : o.contents, r = /* @__PURE__ */ new Map();
|
|
2601
|
+
return a == null || a.forEach((p, i) => {
|
|
2602
|
+
const { label: f } = p;
|
|
2603
|
+
r.set(f, i);
|
|
2604
|
+
}), !r.has(ga.START) || !r.has(ga.END) || !r.has(ga.HOURS) ? e : e == null ? void 0 : e.map((p) => {
|
|
2605
|
+
const i = p == null ? void 0 : p[ga.START], f = p == null ? void 0 : p[ga.END], k = Ui(i, f);
|
|
2606
|
+
return i && f && (p[ga.HOURS] = `${k}天`), p;
|
|
2607
|
+
});
|
|
2608
|
+
}, Wr = (e, l, a = 0) => {
|
|
2609
|
+
if (a > ((l == null ? void 0 : l.length) ?? "")) return e;
|
|
2610
|
+
const r = l == null ? void 0 : l[a], n = /* @__PURE__ */ new Map();
|
|
2611
|
+
for (const p of e) {
|
|
2612
|
+
const i = p[r];
|
|
2613
|
+
n.has(i) || n.set(i, []), n.get(i) && n.get(i).push(p);
|
|
2614
|
+
}
|
|
2615
|
+
const o = [];
|
|
2616
|
+
for (const [p, i] of n) {
|
|
2617
|
+
const [f, ...k] = i, C = { ...f };
|
|
2618
|
+
a + 1 === ((l == null ? void 0 : l.length) ?? "") ? C.children = i == null ? void 0 : i.map((c) => (c.level = Z(a) + 1, c)).filter((c, m) => m !== 0) : k.length > 0 && (C.children = Wr(k, l, a + 1)), C.level = a, o.push(C);
|
|
2619
|
+
}
|
|
2620
|
+
return o;
|
|
2621
|
+
}, qr = (e, l, a) => {
|
|
2622
|
+
var n;
|
|
2623
|
+
if (!(l != null && l.contents) || ((n = l == null ? void 0 : l.contents) == null ? void 0 : n.length) === 0)
|
|
2624
|
+
return e;
|
|
2625
|
+
let r = [];
|
|
2626
|
+
return r = Wr(e, l == null ? void 0 : l.contents, 0), r;
|
|
2627
|
+
}, Gr = (e, l) => {
|
|
2628
|
+
var E, U, L, D, R, W, F, s, S, v, _, b, q, P, Q, d, x, pe, w, A, j, ne, re, V, ve, _e, G, oe, De, g, N, ue, ge, Oe, t, se, $e, T, Le, Ne, ll, Ve, Ue, We, ul, sl, il, Se, Ce, pl, Sl, ml, Ol, bl, Ul, xl, El, jl;
|
|
2629
|
+
const a = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.key) === "header");
|
|
2630
|
+
e == null || e.filter((y) => (y == null ? void 0 : y.key) === "tableIndexColumn")[0];
|
|
2631
|
+
const r = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.key) === "childTree")[0];
|
|
2632
|
+
let n = !0;
|
|
2633
|
+
if ((L = (U = (E = e == null ? void 0 : e.find((y) => (y == null ? void 0 : y.key) === "filterAllType")) == null ? void 0 : E.value) == null ? void 0 : U.find((y) => (y == null ? void 0 : y.value) === "onPamButtonContents")) != null && L.content) {
|
|
2634
|
+
let y = (W = (R = (D = e == null ? void 0 : e.find((K) => (K == null ? void 0 : K.key) === "filterAllType")) == null ? void 0 : D.value) == null ? void 0 : R.find((K) => (K == null ? void 0 : K.value) === "onPamButtonContents")) == null ? void 0 : W.content;
|
|
2635
|
+
y = (F = y == null ? void 0 : y.split(":")) == null ? void 0 : F[1], y = (s = y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : s.split(","), n = !!(y != null && y.find((K) => K === "操作"));
|
|
2636
|
+
}
|
|
2637
|
+
let o = l;
|
|
2638
|
+
const p = e == null ? void 0 : e.find((y) => (y == null ? void 0 : y.key) === "page"), i = e == null ? void 0 : e.find((y) => (y == null ? void 0 : y.key) === "rowButton"), f = e == null ? void 0 : e.find((y) => (y == null ? void 0 : y.key) === "extraButton"), k = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.key) === "tableContents"), C = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.key) === "tableIndex");
|
|
2639
|
+
Bl.value = (v = (S = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.key) === "tableToForm")) == null ? void 0 : S[0]) == null ? void 0 : v.contents, Cr.value = (p == null ? void 0 : p.contents) ?? !0;
|
|
2640
|
+
let c = [];
|
|
2641
|
+
na.value === "" ? c = a == null ? void 0 : a[0] : c = (a == null ? void 0 : a.find((y) => (y == null ? void 0 : y.selectLabel) === "(" + na.value + ")")) ?? (a == null ? void 0 : a.find((y) => !(y != null && y.selectLabel)));
|
|
2642
|
+
let m = [];
|
|
2643
|
+
if (na.value === "" ? m = C == null ? void 0 : C[0] : m = (C == null ? void 0 : C.find((y) => (y == null ? void 0 : y.selectLabel) === "(" + na.value + ")")) ?? (C == null ? void 0 : C.find((y) => !(y != null && y.selectLabel))), ((_ = c == null ? void 0 : c.contents) == null ? void 0 : _.length) > 0) {
|
|
2644
|
+
let y = [];
|
|
2645
|
+
if (c != null && c.contents.some(($) => Array.isArray($) && ($ == null ? void 0 : $.find((h) => h.children))))
|
|
2646
|
+
ja.value === "" ? y = (q = (b = en(c == null ? void 0 : c.contents, n)) == null ? void 0 : b[0]) == null ? void 0 : q.filter(($) => !Array.isArray($)) : (ja.value.split("-"), y = (P = en(c == null ? void 0 : c.contents, n)) == null ? void 0 : P[0]);
|
|
2647
|
+
else {
|
|
2648
|
+
let $ = c != null && c.contents.some((h) => Array.isArray(h)) ? (Q = c == null ? void 0 : c.contents) == null ? void 0 : Q[0] : c == null ? void 0 : c.contents;
|
|
2649
|
+
$ == null || $.forEach((h, Me) => {
|
|
2650
|
+
var we, Ll, ba, ka, Fe;
|
|
2651
|
+
let xe = "";
|
|
2652
|
+
(Ll = (we = Be.value) == null ? void 0 : we.split("/")) == null || Ll.forEach((Al) => {
|
|
2653
|
+
var Vl, Ba, Sa;
|
|
2654
|
+
if (Al !== "") {
|
|
2655
|
+
let Pl = (Sa = (Ba = (Vl = Al == null ? void 0 : Al.split(yl + "updateLoading")) == null ? void 0 : Vl[0]) == null ? void 0 : Ba.split(yl + "loading")) == null ? void 0 : Sa[0];
|
|
2656
|
+
xe = xe === "" ? xe + Pl : xe + "/" + Pl;
|
|
2657
|
+
}
|
|
2658
|
+
}), xe = xe + yl + (h == null ? void 0 : h.directiveLabel);
|
|
2659
|
+
const nl = (ba = Bl.value) == null ? void 0 : ba.find((Al) => (Al == null ? void 0 : Al.prop) === (h == null ? void 0 : h.prop));
|
|
2660
|
+
y.push({
|
|
2661
|
+
label: (h == null ? void 0 : h.label) === "操作" ? n ? "操作" : "" : (h == null ? void 0 : h.label) ?? "",
|
|
2662
|
+
prop: (h == null ? void 0 : h.label) === "操作" ? "operate" : (h == null ? void 0 : h.prop) ?? "a" + Me,
|
|
2663
|
+
// width: t?.label === '操作' ? '200' : (t?.width ? parseInt(t.width) : ''),
|
|
2664
|
+
width: h != null && h.width ? parseInt(h.width) : "",
|
|
2665
|
+
fixed: (h == null ? void 0 : h.fixed) ?? void 0,
|
|
2666
|
+
sortable: (h == null ? void 0 : h.sortable) ?? !1,
|
|
2667
|
+
filterable: (h == null ? void 0 : h.filterable) ?? !1,
|
|
2668
|
+
operable: (h == null ? void 0 : h.operable) ?? !1,
|
|
2669
|
+
showSummary: (h == null ? void 0 : h.showSummary) ?? !1,
|
|
2670
|
+
align: (h == null ? void 0 : h.align) ?? "left",
|
|
2671
|
+
showOverflowTooltip: (h == null ? void 0 : h.showOverflowTooltip) ?? !0,
|
|
2672
|
+
isNotDrag: (h == null ? void 0 : h.isNotDrag) ?? !1,
|
|
2673
|
+
isEditCol: (h == null ? void 0 : h.isEditCol) ?? !1,
|
|
2674
|
+
isOperate: (h == null ? void 0 : h.isOperate) ?? !1,
|
|
2675
|
+
id: (h == null ? void 0 : h.id) ?? Me,
|
|
2676
|
+
type: (h == null ? void 0 : h.label) === "操作" ? "operate" : void 0,
|
|
2677
|
+
formType: (h == null ? void 0 : h.formType) ?? (h != null && h.groupSelect ? "Select" : ""),
|
|
2678
|
+
isTableColHidden: h == null ? void 0 : h.isTableColHidden,
|
|
2679
|
+
isFormColHidden: h == null ? void 0 : h.isFormColHidden,
|
|
2680
|
+
disabled: h == null ? void 0 : h.disabled,
|
|
2681
|
+
options: (h == null ? void 0 : h.options) ?? [],
|
|
2682
|
+
value: (h == null ? void 0 : h.value) ?? "",
|
|
2683
|
+
formMenuSelect: (h == null ? void 0 : h.formMenuSelect) ?? [],
|
|
2684
|
+
isRoute: (h == null ? void 0 : h.isRoute) ?? !1,
|
|
2685
|
+
groupSelect: h != null && h.groupSelect ? (ka = h == null ? void 0 : h.groupSelect) == null ? void 0 : ka.replaceAll('"', "").split(":") : [],
|
|
2686
|
+
isMainKey: (h == null ? void 0 : h.isMainKey) || (h == null ? void 0 : h.directiveLabel) === "#isMain",
|
|
2687
|
+
// 同步弹窗列类型到表格列类型
|
|
2688
|
+
columnType: (nl == null ? void 0 : nl.type) || (h == null ? void 0 : h.columnType) || "TEXTAREA",
|
|
2689
|
+
directiveLabel: h == null ? void 0 : h.directiveLabel,
|
|
2690
|
+
directiveColor: (h == null ? void 0 : h.directiveColor) ?? !1,
|
|
2691
|
+
isExistChild: !!(h != null && h.directiveLabel && !(o != null && o[xe]) && !((Fe = h == null ? void 0 : h.directiveLabel) != null && Fe.includes("@")) && (h == null ? void 0 : h.directiveLabel) !== "#isMain"),
|
|
2692
|
+
childPath: (h == null ? void 0 : h.directiveLabel) !== "#isMain" ? xe : void 0,
|
|
2693
|
+
allSelectionContents: (h == null ? void 0 : h.allSelectionContents) ?? [],
|
|
2694
|
+
selectFilter: h == null ? void 0 : h.selectFilter,
|
|
2695
|
+
menuId: h == null ? void 0 : h.menuId,
|
|
2696
|
+
filterContent: h == null ? void 0 : h.filterContent,
|
|
2697
|
+
relatedValueId: h == null ? void 0 : h.relatedValueId
|
|
2698
|
+
});
|
|
2699
|
+
});
|
|
2700
|
+
}
|
|
2701
|
+
I.value = ln(y), lr.value = ln(y), de.value = (d = I.value) == null ? void 0 : d.map(($) => $ == null ? void 0 : $.label), Re.value = (x = I.value) == null ? void 0 : x.every(($) => $ == null ? void 0 : $.filterable), Ie.value = (pe = I.value) == null ? void 0 : pe.every(($) => $ == null ? void 0 : $.operable), me.value = (w = I.value) == null ? void 0 : w.every(($) => $ == null ? void 0 : $.sortable);
|
|
2702
|
+
let K = (j = (A = an(I.value)) == null ? void 0 : A.filter(($) => ($ == null ? void 0 : $.type) !== "operate")) == null ? void 0 : j.map(($, h) => ({
|
|
2703
|
+
prop: ($ == null ? void 0 : $.prop) ?? "a" + h,
|
|
2704
|
+
column: $.label
|
|
2705
|
+
}));
|
|
2706
|
+
Fl.value = K;
|
|
2707
|
+
let ie = [];
|
|
2708
|
+
na.value === "" ? ie = k == null ? void 0 : k[0] : ie = (k == null ? void 0 : k.find(($) => ($ == null ? void 0 : $.selectLabel) === "(" + na.value + ")")) ?? (k == null ? void 0 : k.find(($) => !($ != null && $.selectLabel)));
|
|
2709
|
+
let fl = Array.isArray((ne = ie == null ? void 0 : ie.contents) == null ? void 0 : ne[0]) && ((re = ie == null ? void 0 : ie.contents) != null && re[0].every(($) => Array.isArray($))) ? (V = ie == null ? void 0 : ie.contents) == null ? void 0 : V[0] : ie == null ? void 0 : ie.contents;
|
|
2710
|
+
m != null && m.contents && ((ve = m == null ? void 0 : m.contents) == null ? void 0 : ve.length) !== 0 && (fl = (_e = Z(fl)) == null ? void 0 : _e.map(($, h) => {
|
|
2711
|
+
if (!Array.isArray($)) {
|
|
2712
|
+
let Me = {};
|
|
2713
|
+
for (let xe in $)
|
|
2714
|
+
xe !== "id" && xe !== "index" && (Me[xe] = $[xe]);
|
|
2715
|
+
$ = Object.values(Me);
|
|
2716
|
+
}
|
|
2717
|
+
return $;
|
|
2718
|
+
}));
|
|
2719
|
+
const be = !!((G = I.value) != null && G.find(($) => $.prop === "index"));
|
|
2720
|
+
fl = yn(fl, m == null ? void 0 : m.contents, be);
|
|
2721
|
+
const He = [];
|
|
2722
|
+
fl == null || fl.forEach(($, h) => {
|
|
2723
|
+
var xe;
|
|
2724
|
+
let Me = {};
|
|
2725
|
+
if (Array.isArray($)) {
|
|
2726
|
+
let nl = [];
|
|
2727
|
+
$ == null || $.filter((we) => !(we != null && we.id)).forEach((we, Ll) => {
|
|
2728
|
+
var ba, ka, Fe, Al, Vl, Ba;
|
|
2729
|
+
if ((ba = K == null ? void 0 : K[Ll]) != null && ba.prop && !Array.isArray(we)) {
|
|
2730
|
+
let Sa = {};
|
|
2731
|
+
Sa[K[Ll].column] = we, Ke != null && Ke.value && ((ka = Ke == null ? void 0 : Ke.value) == null ? void 0 : ka.length) > 0 && ((Fe = Ke == null ? void 0 : Ke.value) != null && Fe.find((Pl) => JSON.stringify(Pl == null ? void 0 : Pl[0]) === JSON.stringify(Sa))) && (nl = (Al = Ke == null ? void 0 : Ke.value) == null ? void 0 : Al.find((Pl) => JSON.stringify(Pl == null ? void 0 : Pl[0]) === JSON.stringify(Sa))), nl && nl.length > 0 ? Me[K[Ll].prop] = nl != null && nl.find((Pl) => {
|
|
2732
|
+
var Ma;
|
|
2733
|
+
return ((Ma = Object.keys(Pl)) == null ? void 0 : Ma[0]) === K[Ll].column;
|
|
2734
|
+
}) ? (Vl = nl == null ? void 0 : nl.find((Pl) => {
|
|
2735
|
+
var Ma;
|
|
2736
|
+
return ((Ma = Object.keys(Pl)) == null ? void 0 : Ma[0]) === K[Ll].column;
|
|
2737
|
+
})) == null ? void 0 : Vl[K[Ll].column] : we : Me[K[Ll].prop] = we;
|
|
2738
|
+
} else Array.isArray(we) && ((Ba = K[Ll]) != null && Ba.prop ? Me[K[Ll].prop] = we : Me.children = _r(we, K));
|
|
2739
|
+
});
|
|
2740
|
+
} else
|
|
2741
|
+
Me = $;
|
|
2742
|
+
if (Array.isArray($) && $.some((nl) => nl == null ? void 0 : nl.id)) {
|
|
2743
|
+
const nl = (xe = $ == null ? void 0 : $.find((we) => we.id)) == null ? void 0 : xe.id;
|
|
2744
|
+
He.push(Object.assign(Me, { id: jr(nl) }));
|
|
2745
|
+
} else Me.id ? He.push(Me) : He.push(Object.assign(Me, { id: h.toString() }));
|
|
2746
|
+
});
|
|
2747
|
+
try {
|
|
2748
|
+
const $ = JSON.parse(sessionStorage.getItem("ocr_last_saved_table") || "null"), h = JSON.parse(sessionStorage.getItem("ocr_last_saved_ids") || "null"), Me = $ == null ? void 0 : $.tableId;
|
|
2749
|
+
if (Me && Array.isArray(h) && h.length > 0 && String(Me) === String(u == null ? void 0 : u.parentTableId)) {
|
|
2750
|
+
const xe = new Set(He.map((we) => String(we == null ? void 0 : we.id))), nl = h.filter((we) => !xe.has(String(we)));
|
|
2751
|
+
if (nl.length > 0) {
|
|
2752
|
+
const we = $ == null ? void 0 : $.pageKey, Ll = we != null && we.startsWith("/") ? we.substring(1) : we;
|
|
2753
|
+
((l == null ? void 0 : l[we]) || (l == null ? void 0 : l[Ll]) || []).filter(
|
|
2754
|
+
(Fe) => {
|
|
2755
|
+
var Al, Vl;
|
|
2756
|
+
return ((Al = Fe == null ? void 0 : Fe.key) == null ? void 0 : Al.type) === "data" && String((Vl = Fe == null ? void 0 : Fe.key) == null ? void 0 : Vl.tableId) === String(Me) && nl.includes(Fe == null ? void 0 : Fe.id);
|
|
2757
|
+
}
|
|
2758
|
+
).forEach((Fe) => {
|
|
2759
|
+
var Al;
|
|
2760
|
+
xe.has(String(Fe == null ? void 0 : Fe.id)) || (He.push({ id: Fe == null ? void 0 : Fe.id, ...((Al = Fe == null ? void 0 : Fe.value) == null ? void 0 : Al.tableData) || {} }), xe.add(String(Fe == null ? void 0 : Fe.id)));
|
|
2761
|
+
});
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
} catch {
|
|
2765
|
+
}
|
|
2766
|
+
ae.value = qr(He, r, I.value), Zl.value = He, (oe = Zl.value) == null || oe.forEach(($) => {
|
|
2767
|
+
var h;
|
|
2768
|
+
(h = fa.value) == null || h.set($.id, $);
|
|
2769
|
+
});
|
|
2770
|
+
const ol = JSON.parse(sessionStorage.getItem("ocr_last_saved_table") || "null"), Qe = JSON.parse(sessionStorage.getItem("ocr_last_saved_ids") || "null");
|
|
2771
|
+
if (ol && Array.isArray(Qe) && Qe.length > 0 && (String(ol == null ? void 0 : ol.tableId) === String(u == null ? void 0 : u.index) || String(ol == null ? void 0 : ol.tableId) === String(u == null ? void 0 : u.parentTableId))) {
|
|
2772
|
+
const $ = new Set((Zl.value || []).map((h) => String(h == null ? void 0 : h.id)));
|
|
2773
|
+
Qe.filter((h) => !$.has(String(h)));
|
|
2774
|
+
}
|
|
2775
|
+
const tl = Array.from(((De = fa.value) == null ? void 0 : De.values()) || []).filter(($) => $ == null ? void 0 : $._isOCRRow);
|
|
2776
|
+
if (tl.length > 0) {
|
|
2777
|
+
const $ = new Set((ae.value || []).map((Me) => Me == null ? void 0 : Me.id)), h = tl.filter((Me) => !$.has(Me.id));
|
|
2778
|
+
h.length > 0 && (ae.value = [...ae.value || [], ...h], Zl.value = [...Zl.value || [], ...h]);
|
|
2779
|
+
}
|
|
2780
|
+
} else
|
|
2781
|
+
I.value = [], O.value = [], ae.value = [], Zl.value = [], fa.value = /* @__PURE__ */ new Map();
|
|
2782
|
+
if (((g = i == null ? void 0 : i.contents) == null ? void 0 : g.length) > 0)
|
|
2783
|
+
if ((ge = (ue = (N = e == null ? void 0 : e.find((y) => (y == null ? void 0 : y.key) === "filterAllType")) == null ? void 0 : N.value) == null ? void 0 : ue.find((y) => (y == null ? void 0 : y.value) === "onRowButtonContents")) != null && ge.content) {
|
|
2784
|
+
let y = (se = (t = (Oe = e == null ? void 0 : e.find((K) => (K == null ? void 0 : K.key) === "filterAllType")) == null ? void 0 : Oe.value) == null ? void 0 : t.find((K) => (K == null ? void 0 : K.value) === "onButtonContents")) == null ? void 0 : se.content;
|
|
2785
|
+
y = ($e = y == null ? void 0 : y.split(":")) == null ? void 0 : $e[1], y = (T = y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : T.split(","), Il.value = (Le = i == null ? void 0 : i.contents) == null ? void 0 : Le.filter((K) => y == null ? void 0 : y.find((ie) => ie === (K == null ? void 0 : K.label)));
|
|
2786
|
+
} else
|
|
2787
|
+
Il.value = i == null ? void 0 : i.contents;
|
|
2788
|
+
else
|
|
2789
|
+
Il.value = [];
|
|
2790
|
+
if (((Ne = f == null ? void 0 : f.contents) == null ? void 0 : Ne.length) > 0)
|
|
2791
|
+
if ((Ue = (Ve = (ll = e == null ? void 0 : e.find((y) => (y == null ? void 0 : y.key) === "filterAllType")) == null ? void 0 : ll.value) == null ? void 0 : Ve.find((y) => (y == null ? void 0 : y.value) === "onButtonContents")) != null && Ue.content) {
|
|
2792
|
+
let y = (sl = (ul = (We = e == null ? void 0 : e.find((K) => (K == null ? void 0 : K.key) === "filterAllType")) == null ? void 0 : We.value) == null ? void 0 : ul.find((K) => (K == null ? void 0 : K.value) === "onButtonContents")) == null ? void 0 : sl.content;
|
|
2793
|
+
if (y = (il = y == null ? void 0 : y.split(":")) == null ? void 0 : il[1], y = (Se = y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : Se.split(","), Nl.value = (Ce = f == null ? void 0 : f.contents) == null ? void 0 : Ce.filter((K) => y == null ? void 0 : y.find((ie) => ie === (K == null ? void 0 : K.label))), wl.value = (pl = f == null ? void 0 : f.contents) == null ? void 0 : pl.filter((K) => y == null ? void 0 : y.find((ie) => ie === (K == null ? void 0 : K.label))), (Sl = f == null ? void 0 : f.contents) != null && Sl.some((K) => (K == null ? void 0 : K.label) === "OCR识别") && !((ml = Nl.value) != null && ml.some((K) => (K == null ? void 0 : K.label) === "OCR识别"))) {
|
|
2794
|
+
const K = (Ol = f == null ? void 0 : f.contents) == null ? void 0 : Ol.find((ie) => (ie == null ? void 0 : ie.label) === "OCR识别");
|
|
2795
|
+
Nl.value = [...Nl.value, K], wl.value = [...wl.value, K];
|
|
2796
|
+
}
|
|
2797
|
+
je.value = !!(y != null && y.find((K) => K === "搜索")), he.value = !!(y != null && y.find((K) => K === "块状显示"));
|
|
2798
|
+
} else
|
|
2799
|
+
Nl.value = f == null ? void 0 : f.contents, wl.value = f == null ? void 0 : f.contents;
|
|
2800
|
+
else
|
|
2801
|
+
Nl.value = [], wl.value = [];
|
|
2802
|
+
(bl = Nl.value) != null && bl.some((y) => (y == null ? void 0 : y.label) === "OCR识别") || (Nl.value = [...Nl.value || [], { label: "OCR识别" }]), (Ul = wl.value) != null && Ul.some((y) => (y == null ? void 0 : y.label) === "OCR识别") || (wl.value = [...wl.value || [], { label: "OCR识别" }]), ta.value = ((xl = ae == null ? void 0 : ae.value) == null ? void 0 : xl.length) ?? 0, Jr(ae.value), Ea.value = ae.value, Kl.value && (I.value = (jl = (El = O.value) == null ? void 0 : El.filter((y) => (y == null ? void 0 : y.label) !== "操作")) == null ? void 0 : jl.map((y) => {
|
|
2803
|
+
var K;
|
|
2804
|
+
return {
|
|
2805
|
+
...y,
|
|
2806
|
+
type: "edit",
|
|
2807
|
+
optionUrl: y != null && y.formMenuSelect && ((K = y == null ? void 0 : y.formMenuSelect) == null ? void 0 : K.length) > 0 ? {
|
|
2808
|
+
groupSelect: y == null ? void 0 : y.groupSelect,
|
|
2809
|
+
menuSelect: y == null ? void 0 : y.formMenuSelect,
|
|
2810
|
+
selectRelateType: "",
|
|
2811
|
+
type: y == null ? void 0 : y.formType
|
|
2812
|
+
} : null
|
|
2813
|
+
};
|
|
2814
|
+
}), hr());
|
|
2815
|
+
};
|
|
2816
|
+
$l(
|
|
2817
|
+
() => [u.itemData, na.value, On.value, ja.value, Ke == null ? void 0 : Ke.value],
|
|
2818
|
+
async () => {
|
|
2819
|
+
var e, l, a, r, n, o;
|
|
2820
|
+
if ((e = u == null ? void 0 : u.itemData) != null && e.find((p) => (p == null ? void 0 : p.key) === "columnPath") && !((l = Da.value) != null && l.find((p) => {
|
|
2821
|
+
var i, f;
|
|
2822
|
+
return (p == null ? void 0 : p.key) === ((f = (i = u == null ? void 0 : u.itemData) == null ? void 0 : i.find((k) => (k == null ? void 0 : k.key) === "columnPath")) == null ? void 0 : f.contents);
|
|
2823
|
+
}))) {
|
|
2824
|
+
let p = Da.value, i = {
|
|
2825
|
+
key: (r = (a = u == null ? void 0 : u.itemData) == null ? void 0 : a.find((f) => (f == null ? void 0 : f.key) === "columnPath")) == null ? void 0 : r.contents,
|
|
2826
|
+
value: (o = (n = u == null ? void 0 : u.itemData) == null ? void 0 : n.find((f) => (f == null ? void 0 : f.key) === "columnUsingPath")) == null ? void 0 : o.contents
|
|
2827
|
+
};
|
|
2828
|
+
p != null && p.find((f) => (f == null ? void 0 : f.key) === (i == null ? void 0 : i.key)) ? p = p == null ? void 0 : p.map((f) => ((f == null ? void 0 : f.key) === (i == null ? void 0 : i.key) && (f.value = i.value), f)) : p.push(i), al.setTableViewContents(p);
|
|
2829
|
+
}
|
|
2830
|
+
Gr(u.itemData, u.allMapContents);
|
|
2831
|
+
},
|
|
2832
|
+
{ deep: !0, immediate: !0 }
|
|
2833
|
+
), $l(() => u == null ? void 0 : u.operatingForm, (e) => {
|
|
2834
|
+
e != null && e.form && (wa(e == null ? void 0 : e.form), Dl.value = e == null ? void 0 : e.dialogTitle, qa.value = !0, Hl.value = !0);
|
|
2835
|
+
}, { immediate: !0, deep: !0 });
|
|
2836
|
+
const Hr = () => {
|
|
2837
|
+
var e;
|
|
2838
|
+
(e = qe.value) != null && e.includes("read") && (Kl.value = !Kl.value);
|
|
2839
|
+
}, xi = () => {
|
|
2840
|
+
Xa.value = !Xa.value;
|
|
2841
|
+
};
|
|
2842
|
+
$l(() => {
|
|
2843
|
+
var e;
|
|
2844
|
+
return (e = u == null ? void 0 : u.config) == null ? void 0 : e.viewport;
|
|
2845
|
+
}, (e) => {
|
|
2846
|
+
var l;
|
|
2847
|
+
qe.value = e, (e == null ? void 0 : e.length) === 0 ? Kl.value = !1 : (e != null && e.includes("read") || (Kl.value = !0), e != null && e.includes("edit") || (Kl.value = !1)), Ee.value = ((l = u == null ? void 0 : u.config) == null ? void 0 : l.showIndex) || Kl.value;
|
|
2848
|
+
}, { immediate: !0 }), $l(() => Kl.value, (e) => {
|
|
2849
|
+
var l;
|
|
2850
|
+
e ? (hr("viewChange"), al.setCacheUpdatingData(null)) : (Nl.value = wl.value, I.value = lr.value, Ca.value && (al.setTableLoading(u == null ? void 0 : u.index), ce("change", Ca.value))), te.value = e, Ee.value = e || ((l = u == null ? void 0 : u.config) == null ? void 0 : l.showIndex);
|
|
2851
|
+
}, { immediate: !0 }), $l(() => {
|
|
2852
|
+
var e;
|
|
2853
|
+
return (e = xr.value) == null ? void 0 : e.length;
|
|
2854
|
+
}, (e) => {
|
|
2855
|
+
e === 0 && (Ge.currentPage = 1);
|
|
2856
|
+
}), $l(() => u == null ? void 0 : u.compNames, (e) => {
|
|
2857
|
+
rl.contents = [
|
|
2858
|
+
{
|
|
2859
|
+
label: "列表名",
|
|
2860
|
+
prop: "groupName",
|
|
2861
|
+
name: "列表名",
|
|
2862
|
+
type: "select",
|
|
2863
|
+
value: "",
|
|
2864
|
+
id: 0,
|
|
2865
|
+
contents: e || [],
|
|
2866
|
+
width: 1
|
|
2867
|
+
}
|
|
2868
|
+
];
|
|
2869
|
+
}, { immediate: !0 }), z(!1);
|
|
2870
|
+
const Ei = (e, l) => {
|
|
2871
|
+
var a;
|
|
2872
|
+
hr("createClick"), l === Ge.pageSize && (Ge.currentPage = Math.ceil(((a = ae.value) == null ? void 0 : a.length) / Ge.pageSize));
|
|
2873
|
+
}, ji = (e, l, a) => {
|
|
2874
|
+
var r;
|
|
2875
|
+
Kr(a, e, l), _l.value = Z(e), Gl.value = e == null ? void 0 : e.id, ta.value = (r = ae.value) == null ? void 0 : r.length, Dl.value = typeof (e == null ? void 0 : e.id) == "string" ? "新增" : "编辑", Ra(!1);
|
|
2876
|
+
}, Tl = (e) => {
|
|
2877
|
+
var f, k, C, c, m, E, U, L, D, R;
|
|
2878
|
+
const { row: l, column: a, item: r, slotData: n } = e;
|
|
2879
|
+
let o = l != null && l[a == null ? void 0 : a.prop] || (l == null ? void 0 : l[a == null ? void 0 : a.prop]) === 0 ? ((k = (f = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : f[0]) == null ? void 0 : k.contents) ?? ((l == null ? void 0 : l[a == null ? void 0 : a.prop]) === 0 ? "0" : l == null ? void 0 : l[a == null ? void 0 : a.prop]) : ((c = (C = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : C[0]) == null ? void 0 : c.contents) ?? (l == null ? void 0 : l[r == null ? void 0 : r.prop]) ?? ((E = (m = n == null ? void 0 : n[r == null ? void 0 : r.prop]) == null ? void 0 : m[0]) == null ? void 0 : E.contents) ?? (n == null ? void 0 : n[r == null ? void 0 : r.prop]) ?? ((D = (L = l == null ? void 0 : l[(U = r == null ? void 0 : r.child) == null ? void 0 : U.prop]) == null ? void 0 : L[0]) == null ? void 0 : D.contents) ?? (l == null ? void 0 : l[(R = r == null ? void 0 : r.child) == null ? void 0 : R.prop]), i = Array.isArray(o) && !(o != null && o.every((W) => typeof W == "string" || typeof W == "number")) ? "查看" : o;
|
|
2880
|
+
return i = Array.isArray(i) ? i.join(",") : i, i;
|
|
2881
|
+
}, Li = (e) => {
|
|
2882
|
+
var k, C, c, m, E, U, L, D, R, W;
|
|
2883
|
+
const { row: l, column: a, item: r, slotData: n } = e;
|
|
2884
|
+
let o = l != null && l[a == null ? void 0 : a.prop] ? ((C = (k = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : k[0]) == null ? void 0 : C.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) : ((m = (c = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : c[0]) == null ? void 0 : m.contents) ?? (l == null ? void 0 : l[r == null ? void 0 : r.prop]) ?? ((U = (E = n == null ? void 0 : n[r == null ? void 0 : r.prop]) == null ? void 0 : E[0]) == null ? void 0 : U.contents) ?? (n == null ? void 0 : n[r == null ? void 0 : r.prop]) ?? ((R = (D = l == null ? void 0 : l[(L = r == null ? void 0 : r.child) == null ? void 0 : L.prop]) == null ? void 0 : D[0]) == null ? void 0 : R.contents) ?? (l == null ? void 0 : l[(W = r == null ? void 0 : r.child) == null ? void 0 : W.prop]);
|
|
2885
|
+
const i = Array.isArray(o) && !(o != null && o.every((F) => typeof F == "string" || typeof F == "number")), f = Array.isArray(o) && (o == null ? void 0 : o.find((F) => F == null ? void 0 : F.url));
|
|
2886
|
+
return i && f;
|
|
2887
|
+
}, Pi = (e) => {
|
|
2888
|
+
var p, i, f, k, C, c, m, E, U, L;
|
|
2889
|
+
const { row: l, column: a, item: r, slotData: n } = e || {};
|
|
2890
|
+
let o = l != null && l[a == null ? void 0 : a.prop] ? ((i = (p = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : p[0]) == null ? void 0 : i.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) : ((k = (f = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : f[0]) == null ? void 0 : k.contents) ?? (l == null ? void 0 : l[r == null ? void 0 : r.prop]) ?? ((c = (C = n == null ? void 0 : n[r == null ? void 0 : r.prop]) == null ? void 0 : C[0]) == null ? void 0 : c.contents) ?? (n == null ? void 0 : n[r == null ? void 0 : r.prop]) ?? ((U = (E = l == null ? void 0 : l[(m = r == null ? void 0 : r.child) == null ? void 0 : m.prop]) == null ? void 0 : E[0]) == null ? void 0 : U.contents) ?? (l == null ? void 0 : l[(L = r == null ? void 0 : r.child) == null ? void 0 : L.prop]);
|
|
2891
|
+
return Array.isArray(o) ? (o == null ? void 0 : o.filter((D) => (D == null ? void 0 : D.url) || (D == null ? void 0 : D.downloadUrl))) ?? [] : [];
|
|
2892
|
+
}, $i = (e, l) => e.find((a) => Object.values(a).some((r) => r === l));
|
|
2893
|
+
return $l(() => bn.value, async (e) => {
|
|
2894
|
+
if (e) {
|
|
2895
|
+
cl.setContentLoading(!0), await Ia();
|
|
2896
|
+
const l = $i(ae.value, e == null ? void 0 : e.data);
|
|
2897
|
+
if (!l) return cl.setContentLoading(!1);
|
|
2898
|
+
await $r(e == null ? void 0 : e.data, null, l, { data: e == null ? void 0 : e.data, isMainKey: !0 }), cl.setContentLoading(!1);
|
|
2899
|
+
}
|
|
2900
|
+
}, { deep: !0, immediate: !0 }), $l(() => u == null ? void 0 : u.cacheNewData, (e) => {
|
|
2901
|
+
var l;
|
|
2902
|
+
e && (Array.isArray(e) || (e == null ? void 0 : e.compId) === (u == null ? void 0 : u.index) && (ae.value = (l = ae.value) == null ? void 0 : l.map((a) => {
|
|
2903
|
+
var r;
|
|
2904
|
+
return (a == null ? void 0 : a.id) === ((r = e == null ? void 0 : e.data) == null ? void 0 : r.id) ? {
|
|
2905
|
+
...a,
|
|
2906
|
+
id: e == null ? void 0 : e.resId
|
|
2907
|
+
} : a;
|
|
2908
|
+
})));
|
|
2909
|
+
}, { immediate: !0, deep: !0 }), (e, l) => {
|
|
2910
|
+
var D, R, W, F;
|
|
2911
|
+
const a = dl("svg-icon"), r = dl("el-popover"), n = dl("el-switch"), o = dl("el-checkbox"), p = dl("el-checkbox-group"), i = dl("el-button"), f = dl("LookComponent"), k = dl("el-icon"), C = dl("el-upload"), c = dl("el-alert"), m = dl("el-table-column"), E = dl("el-input"), U = dl("el-table"), L = Mi("loading");
|
|
2912
|
+
return le(), Te("div", qu, [
|
|
2913
|
+
Ur.value ? (le(), el(su, {
|
|
2914
|
+
id: "excel-table",
|
|
2915
|
+
pageObj: Ge,
|
|
2916
|
+
showIndex: Ee.value,
|
|
2917
|
+
isTree: (D = J.compItem) == null ? void 0 : D.isTree,
|
|
2918
|
+
summaryInfo: hl,
|
|
2919
|
+
columns: I.value,
|
|
2920
|
+
defaultSort: Y,
|
|
2921
|
+
isCardViewport: Xa.value,
|
|
2922
|
+
checkedColumns: de.value,
|
|
2923
|
+
key: or.value + JSON.stringify(I.value),
|
|
2924
|
+
tableData: xr.value,
|
|
2925
|
+
isEditViewport: Kl.value,
|
|
2926
|
+
isShowPagination: Cr.value,
|
|
2927
|
+
isShowEdit: !1,
|
|
2928
|
+
isShowDelete: !1,
|
|
2929
|
+
allowSelect: te.value,
|
|
2930
|
+
onDbClickRow: Yn,
|
|
2931
|
+
extraButton: Nl.value,
|
|
2932
|
+
rowButton: Il.value,
|
|
2933
|
+
cacheExtraButtons: wl.value,
|
|
2934
|
+
isClearSelection: ((R = zl.value) == null ? void 0 : R.length) === 0,
|
|
2935
|
+
onDoCurrentChange: Ln,
|
|
2936
|
+
onDoSizeChange: Pn,
|
|
2937
|
+
onContentClick: $r,
|
|
2938
|
+
onRowClick: Vn,
|
|
2939
|
+
onSelectChange: Fn,
|
|
2940
|
+
onCellChange: ji,
|
|
2941
|
+
onChange: Kr,
|
|
2942
|
+
onPreview: Er,
|
|
2943
|
+
onSubmitEditingTable: Mn,
|
|
2944
|
+
onHandleColEditChange: Rn,
|
|
2945
|
+
onHandleColTypeChange: Bn,
|
|
2946
|
+
onClickButton: Ya
|
|
2947
|
+
}, Fi({
|
|
2948
|
+
headerButton: H((s) => {
|
|
2949
|
+
var S, v;
|
|
2950
|
+
return [
|
|
2951
|
+
J.showHeader ? (le(), el(ju, {
|
|
2952
|
+
key: 0,
|
|
2953
|
+
pageLayout: J.pageLayout,
|
|
2954
|
+
lockingPage: Rl(za) === Rl(Be),
|
|
2955
|
+
filterValues: Pr.value,
|
|
2956
|
+
selectNums: (S = zl.value) == null ? void 0 : S.length,
|
|
2957
|
+
dataNums: (v = ae.value) == null ? void 0 : v.length,
|
|
2958
|
+
compName: J.compName,
|
|
2959
|
+
isDevMode: J.isDevMode,
|
|
2960
|
+
buttons: s.buttons,
|
|
2961
|
+
onButtonClick: l[1] || (l[1] = (_) => Ya(_, "", {})),
|
|
2962
|
+
columns: I.value,
|
|
2963
|
+
onFilter: Zn,
|
|
2964
|
+
onGetImportData: Nn,
|
|
2965
|
+
level: J.level,
|
|
2966
|
+
filterShow: je.value
|
|
2967
|
+
}, null, 8, ["pageLayout", "lockingPage", "filterValues", "selectNums", "dataNums", "compName", "isDevMode", "buttons", "columns", "level", "filterShow"])) : Ze("", !0)
|
|
2968
|
+
];
|
|
2969
|
+
}),
|
|
2970
|
+
viewport: H(() => {
|
|
2971
|
+
var s, S, v, _;
|
|
2972
|
+
return [
|
|
2973
|
+
((s = ae.value) == null ? void 0 : s.length) > 0 && J.allowOperate && he.value ? (le(), Te("div", Qu, [
|
|
2974
|
+
(S = qe.value) != null && S.includes("read") && ((v = qe.value) != null && v.includes("edit")) && ((_ = Il.value) != null && _.some((b) => (b == null ? void 0 : b.label) === "编辑")) && !Xa.value && Rl(za) !== Rl(Be) ? (le(), Te("span", {
|
|
2975
|
+
key: 0,
|
|
2976
|
+
title: "编辑表格",
|
|
2977
|
+
onClick: Hr
|
|
2978
|
+
}, [
|
|
2979
|
+
ee(a, {
|
|
2980
|
+
name: "editTable",
|
|
2981
|
+
class: "view-icon"
|
|
2982
|
+
})
|
|
2983
|
+
])) : Ze("", !0),
|
|
2984
|
+
ye("span", {
|
|
2985
|
+
title: "卡片视图",
|
|
2986
|
+
onClick: xi
|
|
2987
|
+
}, [
|
|
2988
|
+
ee(a, {
|
|
2989
|
+
name: "cardViewport",
|
|
2990
|
+
class: "view-icon"
|
|
2991
|
+
})
|
|
2992
|
+
])
|
|
2993
|
+
])) : Ze("", !0)
|
|
2994
|
+
];
|
|
2995
|
+
}),
|
|
2996
|
+
rowCreate: H(({ row: s, index: S }) => [
|
|
2997
|
+
ye("span", {
|
|
2998
|
+
title: "新增",
|
|
2999
|
+
class: "row-create-wrap",
|
|
3000
|
+
onClick: (v) => Ei(s, S)
|
|
3001
|
+
}, [
|
|
3002
|
+
ee(a, {
|
|
3003
|
+
name: "rowCreate",
|
|
3004
|
+
style: { width: "10px", height: "10px" }
|
|
3005
|
+
})
|
|
3006
|
+
], 8, Xu)
|
|
3007
|
+
]),
|
|
3008
|
+
operateCol: H(() => [
|
|
3009
|
+
ee(r, {
|
|
3010
|
+
title: "选择显示列信息",
|
|
3011
|
+
placement: "left-start",
|
|
3012
|
+
"popper-class": "menu-operate-popover",
|
|
3013
|
+
trigger: "hover",
|
|
3014
|
+
onShow: Ti
|
|
3015
|
+
}, {
|
|
3016
|
+
reference: H(() => [
|
|
3017
|
+
ye("span", Zu, [
|
|
3018
|
+
ee(a, {
|
|
3019
|
+
name: "operate",
|
|
3020
|
+
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
3021
|
+
})
|
|
3022
|
+
])
|
|
3023
|
+
]),
|
|
3024
|
+
default: H(() => [
|
|
3025
|
+
ye("div", Yu, [
|
|
3026
|
+
l[13] || (l[13] = ye("div", { class: "group-title" }, "表格操作", -1)),
|
|
3027
|
+
ee(n, {
|
|
3028
|
+
"model-value": me.value,
|
|
3029
|
+
"active-text": "排序",
|
|
3030
|
+
"inactive-text": "",
|
|
3031
|
+
style: { "margin-right": "8px" },
|
|
3032
|
+
onChange: l[3] || (l[3] = (s) => dr(s, "sortable"))
|
|
3033
|
+
}, null, 8, ["model-value"]),
|
|
3034
|
+
ee(n, {
|
|
3035
|
+
"model-value": Re.value,
|
|
3036
|
+
"active-text": "筛选",
|
|
3037
|
+
"inactive-text": "",
|
|
3038
|
+
style: { "margin-right": "8px" },
|
|
3039
|
+
onChange: l[4] || (l[4] = (s) => dr(s, "filterable"))
|
|
3040
|
+
}, null, 8, ["model-value"]),
|
|
3041
|
+
ee(n, {
|
|
3042
|
+
"model-value": Ie.value,
|
|
3043
|
+
"active-text": "编辑所有表头",
|
|
3044
|
+
"inactive-text": "",
|
|
3045
|
+
onChange: l[5] || (l[5] = (s) => dr(s, "operable"))
|
|
3046
|
+
}, null, 8, ["model-value"]),
|
|
3047
|
+
l[14] || (l[14] = ye("div", { class: "group-title" }, "表格列操作", -1)),
|
|
3048
|
+
ee(p, {
|
|
3049
|
+
modelValue: de.value,
|
|
3050
|
+
"onUpdate:modelValue": l[6] || (l[6] = (s) => de.value = s),
|
|
3051
|
+
style: { height: "100%" },
|
|
3052
|
+
min: 2,
|
|
3053
|
+
ref_key: "checkboxGroupRef",
|
|
3054
|
+
ref: M
|
|
3055
|
+
}, {
|
|
3056
|
+
default: H(() => [
|
|
3057
|
+
(le(!0), Te(Ql, null, Xl(Pa.value, (s) => (le(), Te("div", {
|
|
3058
|
+
style: { display: "flex", "align-items": "center" },
|
|
3059
|
+
key: s.label
|
|
3060
|
+
}, [
|
|
3061
|
+
ee(o, {
|
|
3062
|
+
value: s.label,
|
|
3063
|
+
style: { width: "100%", marginRight: 0 }
|
|
3064
|
+
}, {
|
|
3065
|
+
default: H(() => [
|
|
3066
|
+
ye("span", {
|
|
3067
|
+
title: s.label,
|
|
3068
|
+
style: { display: "inline-block", width: "250px", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }
|
|
3069
|
+
}, Ye(s.label), 9, Iu)
|
|
3070
|
+
]),
|
|
3071
|
+
_: 2
|
|
3072
|
+
}, 1032, ["value"]),
|
|
3073
|
+
ee(r, {
|
|
3074
|
+
title: "列操作",
|
|
3075
|
+
placement: "left",
|
|
3076
|
+
teleported: !1,
|
|
3077
|
+
trigger: "hover"
|
|
3078
|
+
}, {
|
|
3079
|
+
reference: H(() => [
|
|
3080
|
+
ee(a, {
|
|
3081
|
+
name: "colOperate",
|
|
3082
|
+
style: { width: "15px", height: "15px", cursor: "pointer", color: "grey", position: "absolute", right: "40px" }
|
|
3083
|
+
})
|
|
3084
|
+
]),
|
|
3085
|
+
default: H(() => {
|
|
3086
|
+
var S;
|
|
3087
|
+
return [
|
|
3088
|
+
ye("div", Vu, [
|
|
3089
|
+
(le(!0), Te(Ql, null, Xl((S = Object.keys(s)) == null ? void 0 : S.filter((v) => {
|
|
3090
|
+
var _;
|
|
3091
|
+
return (_ = Wl.value) == null ? void 0 : _.find((b) => (b == null ? void 0 : b.value) === v);
|
|
3092
|
+
}), (v) => {
|
|
3093
|
+
var _, b;
|
|
3094
|
+
return le(), Te("div", { key: v }, [
|
|
3095
|
+
ee(n, {
|
|
3096
|
+
"model-value": s == null ? void 0 : s[v],
|
|
3097
|
+
"active-text": (b = (_ = Wl.value) == null ? void 0 : _.find((q) => (q == null ? void 0 : q.value) === v)) == null ? void 0 : b.label,
|
|
3098
|
+
onChange: (q) => Jn(q, v, s)
|
|
3099
|
+
}, null, 8, ["model-value", "active-text", "onChange"])
|
|
3100
|
+
]);
|
|
3101
|
+
}), 128))
|
|
3102
|
+
])
|
|
3103
|
+
];
|
|
3104
|
+
}),
|
|
3105
|
+
_: 2
|
|
3106
|
+
}, 1024),
|
|
3107
|
+
ye("span", es, [
|
|
3108
|
+
ee(a, {
|
|
3109
|
+
name: "drag",
|
|
3110
|
+
class: "col-drag-icon",
|
|
3111
|
+
style: { width: "15px", height: "15px" }
|
|
3112
|
+
})
|
|
3113
|
+
])
|
|
3114
|
+
]))), 128))
|
|
3115
|
+
]),
|
|
3116
|
+
_: 1
|
|
3117
|
+
}, 8, ["modelValue"])
|
|
3118
|
+
])
|
|
3119
|
+
]),
|
|
3120
|
+
_: 1
|
|
3121
|
+
})
|
|
3122
|
+
]),
|
|
3123
|
+
content: H((s) => {
|
|
3124
|
+
var S, v, _, b, q, P, Q, d, x, pe, w, A, j, ne, re, V, ve, _e, G, oe;
|
|
3125
|
+
return [
|
|
3126
|
+
((S = s == null ? void 0 : s.column) == null ? void 0 : S.label) === "OCR图片" || ((v = s == null ? void 0 : s.column) == null ? void 0 : v.prop) === "OCR图片" ? (le(), Te("div", ls, [
|
|
3127
|
+
ee(a, {
|
|
3128
|
+
name: "query",
|
|
3129
|
+
style: {
|
|
3130
|
+
width: "20px",
|
|
3131
|
+
height: "20px",
|
|
3132
|
+
color: "var(--ssComponent-theme-color)",
|
|
3133
|
+
cursor: "pointer"
|
|
3134
|
+
},
|
|
3135
|
+
onClick: gr((De) => hi(s), ["stop"]),
|
|
3136
|
+
title: "查看OCR图片"
|
|
3137
|
+
}, null, 8, ["onClick"])
|
|
3138
|
+
])) : Li(s) ? (le(), el(r, {
|
|
3139
|
+
key: 1,
|
|
3140
|
+
"popper-class": "file-popover",
|
|
3141
|
+
placement: "right",
|
|
3142
|
+
trigger: "hover",
|
|
3143
|
+
effect: "light",
|
|
3144
|
+
width: "auto"
|
|
3145
|
+
}, {
|
|
3146
|
+
reference: H(() => [
|
|
3147
|
+
ye("span", as, Ye(Tl(s)), 1)
|
|
3148
|
+
]),
|
|
3149
|
+
default: H(() => {
|
|
3150
|
+
var De, g;
|
|
3151
|
+
return [
|
|
3152
|
+
ye("div", rs, [
|
|
3153
|
+
(le(!0), Te(Ql, null, Xl((g = s == null ? void 0 : s.row) == null ? void 0 : g[(De = s == null ? void 0 : s.column) == null ? void 0 : De.prop], (N) => (le(), Te("div", ns, [
|
|
3154
|
+
ye("div", {
|
|
3155
|
+
class: "prop-url",
|
|
3156
|
+
title: $a(N),
|
|
3157
|
+
onClick: (ue) => Lr(N)
|
|
3158
|
+
}, Ye($a(N)), 9, is),
|
|
3159
|
+
ye("div", {
|
|
3160
|
+
class: "prop-download",
|
|
3161
|
+
onClick: (ue) => Gn(N)
|
|
3162
|
+
}, " 下载 ", 8, us)
|
|
3163
|
+
]))), 256))
|
|
3164
|
+
])
|
|
3165
|
+
];
|
|
3166
|
+
}),
|
|
3167
|
+
_: 2
|
|
3168
|
+
}, 1024)) : (le(), Te("div", {
|
|
3169
|
+
key: 2,
|
|
3170
|
+
style: ea({
|
|
3171
|
+
color: !Array.isArray(Tl(s)) && ((b = (_ = Tl(s)) == null ? void 0 : _.toString()) != null && b.includes(".txt") || (P = (q = Tl(s)) == null ? void 0 : q.toString()) != null && P.includes(".cpt") || (d = (Q = Tl(s)) == null ? void 0 : Q.toString()) != null && d.includes(".cyd")) ? "var(--vertical-menuitem-active-bg)" : "",
|
|
3172
|
+
textDecoration: !Array.isArray(Tl(s)) && ((pe = (x = Tl(s)) == null ? void 0 : x.toString()) != null && pe.includes(".txt") || (A = (w = Tl(s)) == null ? void 0 : w.toString()) != null && A.includes(".cpt") || (ne = (j = Tl(s)) == null ? void 0 : j.toString()) != null && ne.includes(".cyd")) ? "underline" : "",
|
|
3173
|
+
cursor: !Array.isArray(Tl(s)) && ((V = (re = Tl(s)) == null ? void 0 : re.toString()) != null && V.includes(".txt") || (_e = (ve = Tl(s)) == null ? void 0 : ve.toString()) != null && _e.includes(".cpt") || (oe = (G = Tl(s)) == null ? void 0 : G.toString()) != null && oe.includes(".cyd")) ? "pointer" : "",
|
|
3174
|
+
marginLeft: (s == null ? void 0 : s.colIndex) === 0 ? `${((s == null ? void 0 : s.level) ?? 0) * 20}px` : 0
|
|
3175
|
+
}),
|
|
3176
|
+
onClick: (De) => jn(Tl(s))
|
|
3177
|
+
}, Ye(Tl(s) === 0 ? "0" : Tl(s)), 13, ss))
|
|
3178
|
+
];
|
|
3179
|
+
}),
|
|
3180
|
+
_: 2
|
|
3181
|
+
}, [
|
|
3182
|
+
((W = Il.value) == null ? void 0 : W.length) > 0 && Rl(za) !== Rl(Be) ? {
|
|
3183
|
+
name: "actions",
|
|
3184
|
+
fn: H(({ item: s }) => [
|
|
3185
|
+
ee(r, {
|
|
3186
|
+
title: "",
|
|
3187
|
+
placement: "left-start",
|
|
3188
|
+
"popper-class": "menu-operate-popover"
|
|
3189
|
+
}, {
|
|
3190
|
+
reference: H(() => [
|
|
3191
|
+
ee(a, {
|
|
3192
|
+
name: "more",
|
|
3193
|
+
style: { cursor: "pointer", width: "15px", height: "15px" },
|
|
3194
|
+
onClick: l[0] || (l[0] = gr(() => {
|
|
3195
|
+
}, ["stop"]))
|
|
3196
|
+
})
|
|
3197
|
+
]),
|
|
3198
|
+
default: H(() => [
|
|
3199
|
+
ye("div", Gu, [
|
|
3200
|
+
(le(!0), Te(Ql, null, Xl(Hn(Il.value, s), (S, v) => (le(), Te("div", {
|
|
3201
|
+
class: "menu-config-item",
|
|
3202
|
+
key: v,
|
|
3203
|
+
onClick: gr((_) => Ya(S == null ? void 0 : S.label, s, { extra: S }), ["stop"])
|
|
3204
|
+
}, [
|
|
3205
|
+
ye("div", {
|
|
3206
|
+
style: ea({ color: S == null ? void 0 : S.textColor }),
|
|
3207
|
+
class: "extra-button-label"
|
|
3208
|
+
}, Ye(S == null ? void 0 : S.label), 5)
|
|
3209
|
+
], 8, Hu))), 128))
|
|
3210
|
+
])
|
|
3211
|
+
]),
|
|
3212
|
+
_: 2
|
|
3213
|
+
}, 1024)
|
|
3214
|
+
]),
|
|
3215
|
+
key: "0"
|
|
3216
|
+
} : void 0,
|
|
3217
|
+
((F = ae.value) == null ? void 0 : F.length) > 0 ? {
|
|
3218
|
+
name: "batchButton",
|
|
3219
|
+
fn: H((s) => [
|
|
3220
|
+
br(ee(Pu, {
|
|
3221
|
+
lockingPage: Rl(za) === Rl(Be),
|
|
3222
|
+
buttons: s.buttons,
|
|
3223
|
+
selectTableItems: zl.value,
|
|
3224
|
+
onButtonClick: l[2] || (l[2] = (S) => Ya(S, "", {}))
|
|
3225
|
+
}, null, 8, ["lockingPage", "buttons", "selectTableItems"]), [
|
|
3226
|
+
[Zr, te.value]
|
|
3227
|
+
]),
|
|
3228
|
+
br(ye("div", null, null, 512), [
|
|
3229
|
+
[Zr, !te.value]
|
|
3230
|
+
])
|
|
3231
|
+
]),
|
|
3232
|
+
key: "1"
|
|
3233
|
+
} : void 0
|
|
3234
|
+
]), 1032, ["pageObj", "showIndex", "isTree", "summaryInfo", "columns", "defaultSort", "isCardViewport", "checkedColumns", "tableData", "isEditViewport", "isShowPagination", "allowSelect", "extraButton", "rowButton", "cacheExtraButtons", "isClearSelection"])) : Ze("", !0),
|
|
3235
|
+
ee(oa, {
|
|
3236
|
+
title: Dl.value,
|
|
3237
|
+
visible: Hl.value,
|
|
3238
|
+
width: Dn.value,
|
|
3239
|
+
onBeforeDestroy: Wn,
|
|
3240
|
+
style: { height: "74%" }
|
|
3241
|
+
}, {
|
|
3242
|
+
default: H(() => [
|
|
3243
|
+
ye("div", os, [
|
|
3244
|
+
ee(Oa, {
|
|
3245
|
+
rowContents: Ae.value,
|
|
3246
|
+
isEnableWrap: !1,
|
|
3247
|
+
showOperator: !1,
|
|
3248
|
+
onChange: Oi,
|
|
3249
|
+
onFixChangeValue: Xn,
|
|
3250
|
+
onClickTrigger: qn,
|
|
3251
|
+
isEdit: Ja.value,
|
|
3252
|
+
onBlurChange: Kn,
|
|
3253
|
+
onCreate: zn,
|
|
3254
|
+
onTagChange: En
|
|
3255
|
+
}, null, 8, ["rowContents", "isEdit"])
|
|
3256
|
+
])
|
|
3257
|
+
]),
|
|
3258
|
+
footer: H(() => [
|
|
3259
|
+
qa.value ? (le(), Te("div", ds, [
|
|
3260
|
+
ee(i, {
|
|
3261
|
+
onClick: l[7] || (l[7] = (s) => Hl.value = !1),
|
|
3262
|
+
id: "themeBorderButton"
|
|
3263
|
+
}, {
|
|
3264
|
+
default: H(() => l[15] || (l[15] = [
|
|
3265
|
+
kl(Ye("取消"))
|
|
3266
|
+
])),
|
|
3267
|
+
_: 1,
|
|
3268
|
+
__: [15]
|
|
3269
|
+
}),
|
|
3270
|
+
ee(i, {
|
|
3271
|
+
class: "ok-button",
|
|
3272
|
+
onClick: l[8] || (l[8] = (s) => Ra(!0)),
|
|
3273
|
+
id: "themeButton"
|
|
3274
|
+
}, {
|
|
3275
|
+
default: H(() => l[16] || (l[16] = [
|
|
3276
|
+
kl(Ye("确认"))
|
|
3277
|
+
])),
|
|
3278
|
+
_: 1,
|
|
3279
|
+
__: [16]
|
|
3280
|
+
})
|
|
3281
|
+
])) : Ze("", !0)
|
|
3282
|
+
]),
|
|
3283
|
+
_: 1
|
|
3284
|
+
}, 8, ["title", "visible", "width"]),
|
|
3285
|
+
ee(oa, {
|
|
3286
|
+
title: Dl.value,
|
|
3287
|
+
visible: Wa.value,
|
|
3288
|
+
width: ar.value,
|
|
3289
|
+
onBeforeDestroy: l[10] || (l[10] = (s) => Wa.value = !1)
|
|
3290
|
+
}, {
|
|
3291
|
+
default: H(() => [
|
|
3292
|
+
ee(Mu)
|
|
3293
|
+
]),
|
|
3294
|
+
footer: H(() => [
|
|
3295
|
+
ye("div", cs, [
|
|
3296
|
+
ee(i, {
|
|
3297
|
+
onClick: l[9] || (l[9] = (s) => Wa.value = !1),
|
|
3298
|
+
class: "cancel-button",
|
|
3299
|
+
id: "themeBorderButton"
|
|
3300
|
+
}, {
|
|
3301
|
+
default: H(() => l[17] || (l[17] = [
|
|
3302
|
+
kl(Ye("取消"))
|
|
3303
|
+
])),
|
|
3304
|
+
_: 1,
|
|
3305
|
+
__: [17]
|
|
3306
|
+
}),
|
|
3307
|
+
ee(i, {
|
|
3308
|
+
class: "ok-button",
|
|
3309
|
+
onClick: ei,
|
|
3310
|
+
id: "themeButton"
|
|
3311
|
+
}, {
|
|
3312
|
+
default: H(() => l[18] || (l[18] = [
|
|
3313
|
+
kl(Ye("确认"))
|
|
3314
|
+
])),
|
|
3315
|
+
_: 1,
|
|
3316
|
+
__: [18]
|
|
3317
|
+
})
|
|
3318
|
+
])
|
|
3319
|
+
]),
|
|
3320
|
+
_: 1
|
|
3321
|
+
}, 8, ["title", "visible", "width"]),
|
|
3322
|
+
ra.value ? (le(), el(sn, {
|
|
3323
|
+
key: 1,
|
|
3324
|
+
fileDataList: ca.value,
|
|
3325
|
+
onDestroy: In
|
|
3326
|
+
}, null, 8, ["fileDataList"])) : Ze("", !0),
|
|
3327
|
+
Je.value ? (le(), el(oa, {
|
|
3328
|
+
key: 2,
|
|
3329
|
+
visible: Je.value,
|
|
3330
|
+
onBeforeDestroy: Ai,
|
|
3331
|
+
style: { height: "80vh", width: "80vw" },
|
|
3332
|
+
"body-class": "three-dialog-body",
|
|
3333
|
+
"footer-class": "three-dialog-footer"
|
|
3334
|
+
}, {
|
|
3335
|
+
default: H(() => [
|
|
3336
|
+
ee(cu, {
|
|
3337
|
+
files: Ua.value,
|
|
3338
|
+
threeData: ke.value
|
|
3339
|
+
}, null, 8, ["files", "threeData"])
|
|
3340
|
+
]),
|
|
3341
|
+
_: 1
|
|
3342
|
+
}, 8, ["visible"])) : Ze("", !0),
|
|
3343
|
+
ee(oa, {
|
|
3344
|
+
visible: e.componentVisible,
|
|
3345
|
+
onBeforeDestroy: l[11] || (l[11] = (s) => e.componentVisible = !1),
|
|
3346
|
+
width: ar.value,
|
|
3347
|
+
style: { height: "70vh" }
|
|
3348
|
+
}, {
|
|
3349
|
+
default: H(() => [
|
|
3350
|
+
ee(f, { dialogItem: ia.value }, null, 8, ["dialogItem"])
|
|
3351
|
+
]),
|
|
3352
|
+
_: 1
|
|
3353
|
+
}, 8, ["visible", "width"]),
|
|
3354
|
+
ee(oa, {
|
|
3355
|
+
title: "上传OCR图片",
|
|
3356
|
+
visible: Ga.value,
|
|
3357
|
+
onBeforeDestroy: wr,
|
|
3358
|
+
width: "600px"
|
|
3359
|
+
}, {
|
|
3360
|
+
default: H(() => [
|
|
3361
|
+
br((le(), Te("div", null, [
|
|
3362
|
+
ee(C, {
|
|
3363
|
+
"file-list": Yl.value,
|
|
3364
|
+
"onUpdate:fileList": l[12] || (l[12] = (s) => Yl.value = s),
|
|
3365
|
+
multiple: "",
|
|
3366
|
+
drag: "",
|
|
3367
|
+
action: "",
|
|
3368
|
+
"auto-upload": !1,
|
|
3369
|
+
limit: 20,
|
|
3370
|
+
accept: "image/*",
|
|
3371
|
+
"on-change": oi,
|
|
3372
|
+
class: "upload-content"
|
|
3373
|
+
}, {
|
|
3374
|
+
tip: H(() => l[19] || (l[19] = [
|
|
3375
|
+
ye("div", { class: "el-upload__tip tip-content" }, " 请上传图片文件,大小不超过10MB ", -1)
|
|
3376
|
+
])),
|
|
3377
|
+
default: H(() => [
|
|
3378
|
+
ee(k, { class: "el-icon--upload" }, {
|
|
3379
|
+
default: H(() => [
|
|
3380
|
+
ee(Rl(zi))
|
|
3381
|
+
]),
|
|
3382
|
+
_: 1
|
|
3383
|
+
}),
|
|
3384
|
+
l[20] || (l[20] = ye("div", { class: "el-upload__text" }, [
|
|
3385
|
+
kl(" 将图片拖到此处或"),
|
|
3386
|
+
ye("em", null, "点击上传")
|
|
3387
|
+
], -1))
|
|
3388
|
+
]),
|
|
3389
|
+
file: H(({ file: s, index: S }) => [
|
|
3390
|
+
ye("div", ps, [
|
|
3391
|
+
ye("div", {
|
|
3392
|
+
class: "upload-content-title",
|
|
3393
|
+
style: { flex: "1", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
|
|
3394
|
+
title: s == null ? void 0 : s.name
|
|
3395
|
+
}, Ye(s == null ? void 0 : s.name), 9, fs),
|
|
3396
|
+
ye("div", ts, [
|
|
3397
|
+
ee(a, {
|
|
3398
|
+
class: "icon-blue",
|
|
3399
|
+
name: "EyeFill",
|
|
3400
|
+
style: { width: "15px", height: "15px", cursor: "pointer", color: "var(--ssform-label-color)" },
|
|
3401
|
+
onClick: (v) => yi(s),
|
|
3402
|
+
title: "预览"
|
|
3403
|
+
}, null, 8, ["onClick"]),
|
|
3404
|
+
ee(a, {
|
|
3405
|
+
class: "icon-blue",
|
|
3406
|
+
name: "Cancel",
|
|
3407
|
+
style: { width: "15px", height: "15px", cursor: "pointer", color: "var(--ssform-label-color)" },
|
|
3408
|
+
onClick: (v) => gi(S),
|
|
3409
|
+
title: "删除"
|
|
3410
|
+
}, null, 8, ["onClick"])
|
|
3411
|
+
])
|
|
3412
|
+
])
|
|
3413
|
+
]),
|
|
3414
|
+
_: 1
|
|
3415
|
+
}, 8, ["file-list"])
|
|
3416
|
+
])), [
|
|
3417
|
+
[L, ya.value]
|
|
3418
|
+
])
|
|
3419
|
+
]),
|
|
3420
|
+
footer: H(() => [
|
|
3421
|
+
ye("div", ys, [
|
|
3422
|
+
ee(i, {
|
|
3423
|
+
onClick: wr,
|
|
3424
|
+
id: "themeBorderButton",
|
|
3425
|
+
disabled: ya.value
|
|
3426
|
+
}, {
|
|
3427
|
+
default: H(() => l[21] || (l[21] = [
|
|
3428
|
+
kl("取消")
|
|
3429
|
+
])),
|
|
3430
|
+
_: 1,
|
|
3431
|
+
__: [21]
|
|
3432
|
+
}, 8, ["disabled"]),
|
|
3433
|
+
ee(i, {
|
|
3434
|
+
class: "ok-button",
|
|
3435
|
+
onClick: di,
|
|
3436
|
+
id: "themeButton",
|
|
3437
|
+
disabled: ya.value
|
|
3438
|
+
}, {
|
|
3439
|
+
default: H(() => l[22] || (l[22] = [
|
|
3440
|
+
kl("确认")
|
|
3441
|
+
])),
|
|
3442
|
+
_: 1,
|
|
3443
|
+
__: [22]
|
|
3444
|
+
}, 8, ["disabled"])
|
|
3445
|
+
])
|
|
3446
|
+
]),
|
|
3447
|
+
_: 1
|
|
3448
|
+
}, 8, ["visible"]),
|
|
3449
|
+
Ha.value ? (le(), el(sn, {
|
|
3450
|
+
key: 3,
|
|
3451
|
+
fileDataList: Qa.value,
|
|
3452
|
+
onDestroy: vi
|
|
3453
|
+
}, null, 8, ["fileDataList"])) : Ze("", !0),
|
|
3454
|
+
ee(oa, {
|
|
3455
|
+
title: "OCR识别结果预览",
|
|
3456
|
+
visible: nr.value,
|
|
3457
|
+
onBeforeDestroy: fr,
|
|
3458
|
+
width: "90%",
|
|
3459
|
+
style: { maxWidth: "1200px" }
|
|
3460
|
+
}, {
|
|
3461
|
+
default: H(() => [
|
|
3462
|
+
ye("div", hs, [
|
|
3463
|
+
ye("div", vs, [
|
|
3464
|
+
ee(c, {
|
|
3465
|
+
title: "请核对识别结果,您可以修改字段值后点击确认添加到表格",
|
|
3466
|
+
type: "info",
|
|
3467
|
+
closable: !1,
|
|
3468
|
+
"show-icon": ""
|
|
3469
|
+
})
|
|
3470
|
+
]),
|
|
3471
|
+
ye("div", gs, [
|
|
3472
|
+
ee(U, {
|
|
3473
|
+
data: ha.value,
|
|
3474
|
+
border: "",
|
|
3475
|
+
stripe: "",
|
|
3476
|
+
"max-height": "400",
|
|
3477
|
+
style: { width: "100%" }
|
|
3478
|
+
}, {
|
|
3479
|
+
default: H(() => [
|
|
3480
|
+
ee(m, {
|
|
3481
|
+
type: "index",
|
|
3482
|
+
label: "序号",
|
|
3483
|
+
width: "60",
|
|
3484
|
+
fixed: ""
|
|
3485
|
+
}),
|
|
3486
|
+
(le(!0), Te(Ql, null, Xl(ir.value, (s) => (le(), el(m, {
|
|
3487
|
+
key: s.prop,
|
|
3488
|
+
prop: s.prop,
|
|
3489
|
+
label: s.label,
|
|
3490
|
+
"min-width": s.minWidth || 120,
|
|
3491
|
+
"class-name": s.isAccuracy ? "accuracy-column" : ""
|
|
3492
|
+
}, {
|
|
3493
|
+
default: H(({ row: S, $index: v }) => [
|
|
3494
|
+
s.isAccuracy ? (le(), Te("span", {
|
|
3495
|
+
key: 0,
|
|
3496
|
+
class: "accuracy-value",
|
|
3497
|
+
style: ea({
|
|
3498
|
+
color: ti(S[s.prop]),
|
|
3499
|
+
fontWeight: 500
|
|
3500
|
+
})
|
|
3501
|
+
}, Ye(fi(S[s.prop])), 5)) : (le(), el(E, {
|
|
3502
|
+
key: 1,
|
|
3503
|
+
modelValue: S[s.prop],
|
|
3504
|
+
"onUpdate:modelValue": (_) => S[s.prop] = _,
|
|
3505
|
+
size: "small",
|
|
3506
|
+
placeholder: "请输入" + s.label,
|
|
3507
|
+
onChange: (_) => pi(v, s.prop, _)
|
|
3508
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"]))
|
|
3509
|
+
]),
|
|
3510
|
+
_: 2
|
|
3511
|
+
}, 1032, ["prop", "label", "min-width", "class-name"]))), 128))
|
|
3512
|
+
]),
|
|
3513
|
+
_: 1
|
|
3514
|
+
}, 8, ["data"])
|
|
3515
|
+
])
|
|
3516
|
+
])
|
|
3517
|
+
]),
|
|
3518
|
+
footer: H(() => [
|
|
3519
|
+
ye("div", bs, [
|
|
3520
|
+
ee(i, {
|
|
3521
|
+
onClick: fr,
|
|
3522
|
+
id: "themeBorderButton"
|
|
3523
|
+
}, {
|
|
3524
|
+
default: H(() => l[23] || (l[23] = [
|
|
3525
|
+
kl("取消")
|
|
3526
|
+
])),
|
|
3527
|
+
_: 1,
|
|
3528
|
+
__: [23]
|
|
3529
|
+
}),
|
|
3530
|
+
ee(i, {
|
|
3531
|
+
class: "ok-button",
|
|
3532
|
+
onClick: ci,
|
|
3533
|
+
id: "themeButton"
|
|
3534
|
+
}, {
|
|
3535
|
+
default: H(() => l[24] || (l[24] = [
|
|
3536
|
+
kl("确认")
|
|
3537
|
+
])),
|
|
3538
|
+
_: 1,
|
|
3539
|
+
__: [24]
|
|
3540
|
+
})
|
|
3541
|
+
])
|
|
3542
|
+
]),
|
|
3543
|
+
_: 1
|
|
3544
|
+
}, 8, ["visible"]),
|
|
3545
|
+
ee(oa, {
|
|
3546
|
+
title: rl.title,
|
|
3547
|
+
visible: rl.show,
|
|
3548
|
+
width: rl.width,
|
|
3549
|
+
onBeforeDestroy: ui
|
|
3550
|
+
}, {
|
|
3551
|
+
default: H(() => [
|
|
3552
|
+
ye("div", ks, [
|
|
3553
|
+
ee(Oa, {
|
|
3554
|
+
rowContents: rl == null ? void 0 : rl.contents,
|
|
3555
|
+
formRules: rl == null ? void 0 : rl.formRules,
|
|
3556
|
+
showOperator: !1,
|
|
3557
|
+
buttonValue: rl.buttonValue,
|
|
3558
|
+
isEdit: Ja.value,
|
|
3559
|
+
isStartJustify: !1,
|
|
3560
|
+
isEnableWrap: !1,
|
|
3561
|
+
onOnButtonClick: si
|
|
3562
|
+
}, null, 8, ["rowContents", "formRules", "buttonValue", "isEdit"])
|
|
3563
|
+
])
|
|
3564
|
+
]),
|
|
3565
|
+
_: 1
|
|
3566
|
+
}, 8, ["title", "visible", "width"])
|
|
3567
|
+
]);
|
|
3568
|
+
};
|
|
3569
|
+
}
|
|
3570
|
+
}, ws = /* @__PURE__ */ Va(Ss, [["__scopeId", "data-v-d811363d"]]);
|
|
3571
|
+
export {
|
|
3572
|
+
$u as a,
|
|
3573
|
+
mr as f,
|
|
3574
|
+
Ar as g,
|
|
3575
|
+
ws as s,
|
|
3576
|
+
Wu as u
|
|
3577
|
+
};
|