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