ss-component-new 1.2.263 → 1.2.265
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-C60D0af6.js → MTLLoader-BeGEKyl0.js} +22 -22
- package/dist/{MTLLoader-BV5SUzmG.cjs → MTLLoader-CSt_lM1a.cjs} +1 -1
- package/dist/{OrbitControls-Dr_tJ4fZ.cjs → OrbitControls-BAomOOde.cjs} +1 -1
- package/dist/{OrbitControls-DiLJkuyu.js → OrbitControls-b-wV4y7B.js} +7 -7
- package/dist/{URDFLoader-DglI0gl1.cjs → URDFLoader-CaQU9gcS.cjs} +1 -1
- package/dist/{URDFLoader-Cbui5CYq.js → URDFLoader-D0dqTkPQ.js} +110 -110
- package/dist/{animationData-BS1KOggN.js → animationData-C9cYzIy2.js} +5 -5
- package/dist/{animationData-DAhPTTyV.cjs → animationData-Dxpc8KPf.cjs} +1 -1
- package/dist/{array-DQ3w0Sej.js → array-Bjd_S0qT.js} +1 -1
- package/dist/{array-DV4Y5Qdq.cjs → array-DZe2aNPv.cjs} +1 -1
- package/dist/{iconfont-C0xSkmDm.js → iconfont-BW4pTt1q.js} +2 -2
- package/dist/{iconfont-DFcKl5Tl.cjs → iconfont-BXXhBGTd.cjs} +1 -1
- package/dist/{index-7t6O2kDd.js → index--gTRHOTN.js} +1 -1
- package/dist/{index-6JiENohi.js → index--j26502g.js} +1 -1
- package/dist/{index-BzyaLKAO.js → index-60rkchWf.js} +1 -1
- package/dist/index-7hYDPFlh.js +4315 -0
- package/dist/{index-Cf8awUVC.cjs → index-B2ChFjMV.cjs} +1 -1
- package/dist/{index-0r9vJ4Dt.js → index-BMruW26T.js} +1444 -1441
- package/dist/{index-0yP57X4c.cjs → index-BV-u3HMZ.cjs} +1 -1
- package/dist/{index-DuvD2T3v.js → index-B_-MCkxg.js} +16 -16
- package/dist/{index-BupiwS6Q.cjs → index-Ba-ni2cO.cjs} +1 -1
- package/dist/{index-5ouuNlF1.cjs → index-BhDAfbms.cjs} +1 -1
- package/dist/{index-l5gyINj-.js → index-Bi2pb9yX.js} +2 -2
- package/dist/{index-DYoJ1b7h.cjs → index-Bow1V8h_.cjs} +1 -1
- package/dist/{index-D834bu6t.js → index-C2o_u0AH.js} +1 -1
- package/dist/{index-BoT93rBf.cjs → index-C5qN9fUM.cjs} +1 -1
- package/dist/{index-CorDLjba.js → index-C71Renv0.js} +3 -3
- package/dist/{index-Bw9Yt-ff.cjs → index-CB40iFsf.cjs} +1 -1
- package/dist/{index-CcFw88ze.js → index-CDTuNFPZ.js} +1 -1
- package/dist/{index-kxxFoQbl.cjs → index-CICDDGVv.cjs} +1 -1
- package/dist/index-CKgg9Qvo.cjs +13 -0
- package/dist/{index-C8cUTV0K.js → index-CRf5J2Wu.js} +8 -8
- package/dist/{index-CCf7B4w5.js → index-CTSigZhK.js} +1 -1
- package/dist/{index-DfsfEirQ.cjs → index-CaS3sMNl.cjs} +12 -12
- package/dist/{index-BDHuCtb0.cjs → index-CeD500Mv.cjs} +1 -1
- package/dist/{index-KIvXTS9h.cjs → index-CxGqNxZE.cjs} +1 -1
- package/dist/{index-D49CORoN.cjs → index-D-De5oRz.cjs} +1 -1
- package/dist/{index-C8BME0nI.js → index-DFwqzJD9.js} +4 -4
- package/dist/{index-5mUNsn1w.js → index-DP4Kj9oN.js} +7 -7
- package/dist/{index-DP6wFpRB.js → index-DPNHwVNI.js} +4 -4
- package/dist/{index-aZqbgOAP.cjs → index-DZQV0bN-.cjs} +1 -1
- package/dist/{index-CB_H_0Ax.cjs → index-D_FcHkhM.cjs} +1 -1
- package/dist/{index-DFo6JZEl.js → index-D_criQ2G.js} +1 -1
- package/dist/{index-U4C6FUfG.cjs → index-Da3kXPy3.cjs} +1 -1
- package/dist/{index-o4S-_Dke.js → index-DhdsYhJO.js} +1 -1
- package/dist/{index-BTXISKif.cjs → index-DpncZBPP.cjs} +1 -1
- package/dist/{index-D7lbCuzf.cjs → index-DqFG1hST.cjs} +1 -1
- package/dist/{index-Bp_tXnME.js → index-DtFiM--0.js} +4 -4
- package/dist/{index-DTepwcmD.js → index-DtS_0LMT.js} +1 -1
- package/dist/{index-CzIULOgN.cjs → index-FelWUHCZ.cjs} +1 -1
- package/dist/{index-CuPI2lqv.cjs → index-GjnMvmUL.cjs} +1 -1
- package/dist/{index-DLiNZrA6.js → index-WA32pMmJ.js} +1 -1
- package/dist/{index-C4a_MPf7.cjs → index-jOaHG_a9.cjs} +1 -1
- package/dist/{index-DOCv-LZh.cjs → index-k8bKRa4i.cjs} +1 -1
- package/dist/{index-DsbyRC2o.js → index-nQnxvxg4.js} +3 -3
- package/dist/{index-DahG36bO.js → index-rOvJXxJz.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-loW1NLVo.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BENhngvz.js} +5742 -5741
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DbvAKPju.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CBayycqn.cjs} +13 -13
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DkIBFS4N.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B6LzqMjV.cjs} +407 -407
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D_tm7tyu.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D0rkC1Yq.js} +30455 -30331
- package/dist/{index.vue_vue_type_style_index_0_scoped_20f284c2_lang-DJ8GnU9R.cjs → index.vue_vue_type_style_index_0_scoped_20f284c2_lang-CxjM-aSf.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_20f284c2_lang-bYH1Sh6a.js → index.vue_vue_type_style_index_0_scoped_20f284c2_lang-UiPNM7T6.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_1_lang-MF8qbCuC.cjs → index.vue_vue_type_style_index_1_lang-BOKr3IxG.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-DIK0cSrJ.js → index.vue_vue_type_style_index_1_lang-D4LWRrzj.js} +3 -3
- package/dist/{main-BibCcP5D.cjs → main-BTO4X7hn.cjs} +1 -1
- package/dist/{main-CnZCBEtm.js → main-DmTuylSN.js} +3 -3
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-Mtr7ZQSj.js → threeModel-1MarucKr.js} +4 -4
- package/dist/{threeModel-Av_Dm5Vo.cjs → threeModel-DKyo4g95.cjs} +1 -1
- package/dist/{threePreview-CauUQ-OA.cjs → threePreview-DZ39wE4z.cjs} +1 -1
- package/dist/{threePreview-11vwvu6C.js → threePreview-DczD5lkc.js} +59 -59
- package/dist/{threeSceneView-Bcqtouvh.js → threeSceneView-DbPuBfvY.js} +8 -8
- package/dist/{threeSceneView-DjBO-IBk.cjs → threeSceneView-DcX_DWMB.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CYhcGgol.js → threeSceneViewForCPMPIP-CQT_PXVK.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-Iu85hN2X.cjs → threeSceneViewForCPMPIP-CzVSdvYD.cjs} +1 -1
- package/dist/{threeTrackPathView-Yv-dXetX.js → threeTrackPathView-CdjUnYLD.js} +24 -24
- package/dist/{threeTrackPathView-DMfT4Blz.cjs → threeTrackPathView-DHaQCL38.cjs} +1 -1
- package/dist/{threeViewerHost-lZhmjlZP.js → threeViewerHost-BP1lE3em.js} +2 -2
- package/dist/{threeViewerHost-C2KsZZYX.cjs → threeViewerHost-DB8EVaN9.cjs} +1 -1
- package/dist/{urdfTree-C3E13Tqr.cjs → urdfTree-B8eCGdSO.cjs} +1 -1
- package/dist/{urdfTree-BiDHH7nr.js → urdfTree-D1L8ToXk.js} +1 -1
- package/dist/{workpieceTreePanel-BY2EF3ND.cjs → workpieceTreePanel-BUgxGB3s.cjs} +1 -1
- package/dist/{workpieceTreePanel-D8Rj2vkl.js → workpieceTreePanel-DwhZVbj9.js} +4 -4
- package/package.json +1 -1
- package/dist/index-CGRBbwNI.cjs +0 -13
- package/dist/index-Dc9WA-9R.js +0 -4276
|
@@ -0,0 +1,4315 @@
|
|
|
1
|
+
var uo = Object.defineProperty;
|
|
2
|
+
var co = (D, P, S) => P in D ? uo(D, P, { enumerable: !0, configurable: !0, writable: !0, value: S }) : D[P] = S;
|
|
3
|
+
var Kl = (D, P, S) => co(D, typeof P != "symbol" ? P + "" : P, S);
|
|
4
|
+
import { ref as G, watch as Fl, nextTick as Ia, resolveComponent as cl, createBlock as Xe, openBlock as le, withCtx as H, createElementVNode as te, renderSlot as kn, onMounted as Pr, createElementBlock as Ce, normalizeStyle as ba, normalizeClass as Pn, toDisplayString as Ze, createCommentVNode as Ie, createVNode as ee, unref as Hl, Fragment as aa, renderList as ra, createTextVNode as Ve, defineComponent as $r, computed as Ua, reactive as Za, inject as to, provide as po, onBeforeUnmount as fo, onUnmounted as ho, resolveDirective as yo, createSlots as vo, withModifiers as dr, withDirectives as wr, vShow as mn } from "vue";
|
|
5
|
+
import { bh as Sn, as as _n, c as re, E as il, bD as $n, g as ya, e as Nn, h as go, p as _a, s as Ea, u as bo, c3 as ko, f as mo, b as Aa, bv as So, bt as An, c4 as _o } from "./index-7MBVUN82.js";
|
|
6
|
+
import { $ as Pa, aI as Ao, aJ as Va, aK as Co, g as ja, b as To, aL as Oo, a as xo, _ as wo, u as Do, aM as Cn, J as Uo, aN as Eo, aO as Tn, aP as Lo, d as La, X as Dr, q as On, l as jo, aQ as xn, a7 as Po, aR as $o, aS as No, aT as Bo, Z as Ro, aU as Mo } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D0rkC1Yq.js";
|
|
7
|
+
import { d as $a, _ as wn, j as Ko, e as Dn, E as Ur, u as Fo } from "./index-BMruW26T.js";
|
|
8
|
+
import { a as zo, T as Jo } from "./threeViewerHost-BP1lE3em.js";
|
|
9
|
+
import { u as Wo, a as qo, E as Un } from "./index-3oQGURYh.js";
|
|
10
|
+
import { c as Go } from "./index.vue_vue_type_style_index_1_lang-D4LWRrzj.js";
|
|
11
|
+
import { _ as er } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
import { s as ga } from "./index-WA32pMmJ.js";
|
|
13
|
+
import "./index-DfFq9kkn.js";
|
|
14
|
+
import { i as En } from "./isString-D70CzuJZ.js";
|
|
15
|
+
const Er = (D) => D.match(/\((.*)\)/)[1], Ln = {
|
|
16
|
+
__name: "index",
|
|
17
|
+
props: {
|
|
18
|
+
isVisible: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
title: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ""
|
|
25
|
+
},
|
|
26
|
+
placement: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "bottom"
|
|
29
|
+
},
|
|
30
|
+
width: {
|
|
31
|
+
type: Number,
|
|
32
|
+
default: 200
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
setup(D) {
|
|
36
|
+
const P = D, S = G(null), C = G(!1), m = G(null);
|
|
37
|
+
return Fl(
|
|
38
|
+
() => P == null ? void 0 : P.isVisible,
|
|
39
|
+
() => {
|
|
40
|
+
C.value = P == null ? void 0 : P.isVisible;
|
|
41
|
+
},
|
|
42
|
+
{ deep: !0, immediate: !0 }
|
|
43
|
+
), Fl(
|
|
44
|
+
() => m.value,
|
|
45
|
+
() => {
|
|
46
|
+
Ia(() => {
|
|
47
|
+
var n, Q;
|
|
48
|
+
(Q = (n = S.value) == null ? void 0 : n.updatePopper) == null || Q.call(n);
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
{ deep: !0, immediate: !0 }
|
|
52
|
+
), (n, Q) => {
|
|
53
|
+
const fe = cl("el-popover");
|
|
54
|
+
return le(), Xe(fe, {
|
|
55
|
+
visible: C.value,
|
|
56
|
+
title: P == null ? void 0 : P.title,
|
|
57
|
+
placement: P == null ? void 0 : P.placement,
|
|
58
|
+
width: P == null ? void 0 : P.width,
|
|
59
|
+
ref_key: "popOverRef",
|
|
60
|
+
ref: S
|
|
61
|
+
}, {
|
|
62
|
+
reference: H(() => [
|
|
63
|
+
te("div", null, [
|
|
64
|
+
kn(n.$slots, "reference", {
|
|
65
|
+
ref_key: "referenceRef",
|
|
66
|
+
ref: m
|
|
67
|
+
})
|
|
68
|
+
])
|
|
69
|
+
]),
|
|
70
|
+
default: H(() => [
|
|
71
|
+
te("div", null, [
|
|
72
|
+
kn(n.$slots, "content")
|
|
73
|
+
])
|
|
74
|
+
]),
|
|
75
|
+
_: 3
|
|
76
|
+
}, 8, ["visible", "title", "placement", "width"]);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}, Ho = {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: "extra-button-content"
|
|
82
|
+
}, Xo = { class: "table-operator-wrap" }, Qo = {
|
|
83
|
+
key: 0,
|
|
84
|
+
class: "extra-button-filter"
|
|
85
|
+
}, Yo = { class: "form-content-value" }, Zo = {
|
|
86
|
+
key: 1,
|
|
87
|
+
class: "extra-header"
|
|
88
|
+
}, Io = {
|
|
89
|
+
class: "drop-menu",
|
|
90
|
+
style: { width: "120px" }
|
|
91
|
+
}, Vo = { key: 0 }, ei = { key: 1 }, li = {
|
|
92
|
+
key: 1,
|
|
93
|
+
class: "extra-button-content tabs-button-wrapper"
|
|
94
|
+
}, ai = { class: "table-operator-wrap" }, ri = { class: "extra-button-filter" }, ni = { class: "form-content-value" }, si = {
|
|
95
|
+
key: 0,
|
|
96
|
+
class: "extra-header"
|
|
97
|
+
}, oi = {
|
|
98
|
+
class: "drop-menu",
|
|
99
|
+
style: { width: "120px" }
|
|
100
|
+
}, ii = { key: 0 }, ui = { key: 1 }, ci = {
|
|
101
|
+
__name: "header",
|
|
102
|
+
props: {
|
|
103
|
+
pageLayout: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: "vertical"
|
|
106
|
+
},
|
|
107
|
+
lockingPage: Boolean,
|
|
108
|
+
level: {
|
|
109
|
+
type: Number,
|
|
110
|
+
default: 1
|
|
111
|
+
},
|
|
112
|
+
compName: {
|
|
113
|
+
type: String,
|
|
114
|
+
default: "表格名称",
|
|
115
|
+
required: !1
|
|
116
|
+
},
|
|
117
|
+
filterShow: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default: !1
|
|
120
|
+
},
|
|
121
|
+
isDevMode: Boolean,
|
|
122
|
+
selectNums: Number,
|
|
123
|
+
dataNums: Number,
|
|
124
|
+
filterValues: Array,
|
|
125
|
+
buttons: {
|
|
126
|
+
type: Array,
|
|
127
|
+
default: () => []
|
|
128
|
+
},
|
|
129
|
+
columns: {
|
|
130
|
+
type: Array,
|
|
131
|
+
default: () => []
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
emits: ["buttonClick", "filter", "getImportData"],
|
|
135
|
+
setup(D, { emit: P }) {
|
|
136
|
+
const S = P, C = D, m = G(""), n = G(!1), Q = G([]), fe = G([{ label: "取消", background: "#999999" }, {
|
|
137
|
+
label: "清空",
|
|
138
|
+
background: "#999999"
|
|
139
|
+
}, { label: "确认" }]), be = [
|
|
140
|
+
{
|
|
141
|
+
label: "新增",
|
|
142
|
+
icon: "Plus"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: "导入",
|
|
146
|
+
icon: "import"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
label: "导出",
|
|
150
|
+
icon: "export"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
label: "OCR识别",
|
|
154
|
+
icon: "ocr"
|
|
155
|
+
}
|
|
156
|
+
], Oe = (he) => {
|
|
157
|
+
const Re = he.raw;
|
|
158
|
+
if (!Re) return;
|
|
159
|
+
const ll = new FileReader();
|
|
160
|
+
ll.onload = (ye) => {
|
|
161
|
+
try {
|
|
162
|
+
const ie = new Uint8Array(ye.target.result), oe = Ao(ie, { type: "array" }), Ue = oe.SheetNames[0], B = oe.Sheets[Ue], dl = Va.decode_range(B["!ref"]).e.c + 1, ae = new Array(dl).fill(""), L = [];
|
|
163
|
+
for (const ne in B) {
|
|
164
|
+
if (ne[0] === "!") continue;
|
|
165
|
+
const { r: we, c: ze } = Va.decode_cell(ne);
|
|
166
|
+
let Dl = B[ne].v;
|
|
167
|
+
if (B[ne].t === "n" && Dl > 0 && Dl < 1e6 && (Dl = new Date((Dl - 25569) * 86400 * 1e3).toISOString().split("T")[0]), (Dl == null || Dl === "") && (Dl = ""), we === 0)
|
|
168
|
+
ae[ze] = Dl;
|
|
169
|
+
else {
|
|
170
|
+
if (!L[we - 1]) {
|
|
171
|
+
L[we - 1] = {};
|
|
172
|
+
for (let Ql = 0; Ql < dl; Ql++)
|
|
173
|
+
L[we - 1][`col_${Ql}`] = "";
|
|
174
|
+
}
|
|
175
|
+
L[we - 1][`col_${ze}`] = Dl;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
for (let ne = 0; ne < dl; ne++)
|
|
179
|
+
ae[ne] === void 0 && (ae[ne] = "");
|
|
180
|
+
const al = L == null ? void 0 : L[0];
|
|
181
|
+
if (!(al != null && al.hasOwnProperty("col_0"))) return il.error("导入的数据列不匹配,请检查是否错位");
|
|
182
|
+
S("getImportData", ae, L);
|
|
183
|
+
} catch (ie) {
|
|
184
|
+
throw il.error(ie.message), new Error(ie.message);
|
|
185
|
+
}
|
|
186
|
+
}, ll.readAsArrayBuffer(Re);
|
|
187
|
+
}, el = (he) => {
|
|
188
|
+
var ll;
|
|
189
|
+
const Re = (ll = Q.value) == null ? void 0 : ll.reduce((ye, ie, oe) => (oe === 0 ? ye[ie.label] = he : ye[ie.label] = ie == null ? void 0 : ie.value, ye), {});
|
|
190
|
+
S("filter", Re, he, !0);
|
|
191
|
+
}, sl = (he, Re = {}) => {
|
|
192
|
+
S("buttonClick", he, "", Re);
|
|
193
|
+
}, pl = (he) => {
|
|
194
|
+
var Re, ll;
|
|
195
|
+
Q.value = (ll = (Re = Pa(re(he))) == null ? void 0 : Re.filter((ye) => (ye == null ? void 0 : ye.label) !== "" && (ye == null ? void 0 : ye.label) !== "操作")) == null ? void 0 : ll.map((ye) => ({
|
|
196
|
+
label: (ye == null ? void 0 : ye.label) ?? "",
|
|
197
|
+
value: "",
|
|
198
|
+
name: (ye == null ? void 0 : ye.label) ?? "",
|
|
199
|
+
isFormColHidden: ye == null ? void 0 : ye.isTableColHidden,
|
|
200
|
+
width: 2
|
|
201
|
+
}));
|
|
202
|
+
}, tl = G(!1), Ul = (he) => {
|
|
203
|
+
var Re;
|
|
204
|
+
if ((he == null ? void 0 : he.buttonName) === "确认" && (S("filter", he == null ? void 0 : he.content), tl.value = (he == null ? void 0 : he.content) && Object.values(he == null ? void 0 : he.content).length > 0), (he == null ? void 0 : he.buttonName) === "清空") {
|
|
205
|
+
const ll = re(he == null ? void 0 : he.content);
|
|
206
|
+
for (const ye in ll)
|
|
207
|
+
ll[ye] = "";
|
|
208
|
+
Q.value = (Re = Q.value) == null ? void 0 : Re.map((ye) => ({
|
|
209
|
+
...ye,
|
|
210
|
+
value: ""
|
|
211
|
+
})), S("filter", ll), tl.value = !1;
|
|
212
|
+
}
|
|
213
|
+
n.value = !1;
|
|
214
|
+
}, El = () => {
|
|
215
|
+
var Re, ll;
|
|
216
|
+
Q.value = (Re = Q.value) == null ? void 0 : Re.map((ye) => ({
|
|
217
|
+
...ye,
|
|
218
|
+
value: ""
|
|
219
|
+
}));
|
|
220
|
+
const he = (ll = Q.value) == null ? void 0 : ll.reduce((ye, ie) => (ye[ie.label] = ie.value, ye), {});
|
|
221
|
+
S("filter", he);
|
|
222
|
+
};
|
|
223
|
+
return Pr(() => {
|
|
224
|
+
pl(C.columns);
|
|
225
|
+
}), Fl(
|
|
226
|
+
() => C.columns,
|
|
227
|
+
() => {
|
|
228
|
+
pl(C.columns);
|
|
229
|
+
},
|
|
230
|
+
{ deep: !0, immediate: !0 }
|
|
231
|
+
), (he, Re) => {
|
|
232
|
+
var B, Tl, dl, ae;
|
|
233
|
+
const ll = cl("el-icon"), ye = cl("svg-icon"), ie = cl("el-input"), oe = cl("el-button"), Ue = cl("el-upload");
|
|
234
|
+
return D.pageLayout === "vertical" ? (le(), Ce("div", Ho, [
|
|
235
|
+
te("div", {
|
|
236
|
+
class: Pn(D.compName ? "table-name-wrap" : ""),
|
|
237
|
+
style: ba({
|
|
238
|
+
background: (C == null ? void 0 : C.level) > 1 ? "transparent" : "var(--ssgroup-background)",
|
|
239
|
+
paddingLeft: ((C == null ? void 0 : C.level) - 1) * 12 + "px",
|
|
240
|
+
fontWeight: 600 - ((C == null ? void 0 : C.level) - 1) * 100 >= 400 ? 600 - ((C == null ? void 0 : C.level) - 1) * 100 : 400,
|
|
241
|
+
fontSize: 17 - (C == null ? void 0 : C.level) >= 14 ? 17 - (C == null ? void 0 : C.level) + "px" : "14px"
|
|
242
|
+
})
|
|
243
|
+
}, Ze(D.compName), 7),
|
|
244
|
+
te("div", Xo, [
|
|
245
|
+
C != null && C.filterShow ? (le(), Ce("div", Qo, [
|
|
246
|
+
ee(Ln, {
|
|
247
|
+
title: "",
|
|
248
|
+
width: 800,
|
|
249
|
+
placement: "bottom-start",
|
|
250
|
+
isVisible: n.value
|
|
251
|
+
}, {
|
|
252
|
+
reference: H(() => {
|
|
253
|
+
var L, al, ne, we;
|
|
254
|
+
return [
|
|
255
|
+
ee(ie, {
|
|
256
|
+
modelValue: m.value,
|
|
257
|
+
"onUpdate:modelValue": Re[1] || (Re[1] = (ze) => m.value = ze),
|
|
258
|
+
style: { "min-width": "80px" },
|
|
259
|
+
placeholder: tl.value ? (ne = (al = (L = D.filterValues) == null ? void 0 : L.filter((ze) => ze)) == null ? void 0 : al.slice(0, 3)) == null ? void 0 : ne.join("/") : "搜索",
|
|
260
|
+
"prefix-icon": Hl(Sn),
|
|
261
|
+
clearable: "",
|
|
262
|
+
onInput: el,
|
|
263
|
+
disabled: ((we = Q.value) == null ? void 0 : we.length) === 0
|
|
264
|
+
}, {
|
|
265
|
+
suffix: H(() => {
|
|
266
|
+
var ze, Dl;
|
|
267
|
+
return [
|
|
268
|
+
!m.value && ((Dl = (ze = D.filterValues) == null ? void 0 : ze.filter((Ql) => Ql)) != null && Dl.join("/")) ? (le(), Xe(ll, {
|
|
269
|
+
key: 0,
|
|
270
|
+
style: { cursor: "pointer" },
|
|
271
|
+
onClick: El
|
|
272
|
+
}, {
|
|
273
|
+
default: H(() => [
|
|
274
|
+
ee(Hl(_n))
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
})) : Ie("", !0)
|
|
278
|
+
];
|
|
279
|
+
}),
|
|
280
|
+
append: H(() => [
|
|
281
|
+
te("span", {
|
|
282
|
+
title: "条件查询",
|
|
283
|
+
onClick: Re[0] || (Re[0] = (ze) => n.value = !n.value)
|
|
284
|
+
}, [
|
|
285
|
+
ee(ye, {
|
|
286
|
+
name: "query",
|
|
287
|
+
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
288
|
+
})
|
|
289
|
+
])
|
|
290
|
+
]),
|
|
291
|
+
_: 1
|
|
292
|
+
}, 8, ["modelValue", "placeholder", "prefix-icon", "disabled"])
|
|
293
|
+
];
|
|
294
|
+
}),
|
|
295
|
+
content: H(() => [
|
|
296
|
+
te("div", Yo, [
|
|
297
|
+
(le(), Xe($a, {
|
|
298
|
+
rowContents: Q.value,
|
|
299
|
+
buttonValue: fe.value,
|
|
300
|
+
isRowFlex: !0,
|
|
301
|
+
isEnableWrap: !1,
|
|
302
|
+
isButtonRow: !1,
|
|
303
|
+
key: fe.value,
|
|
304
|
+
isStartJustify: !1,
|
|
305
|
+
onOnButtonClick: Ul
|
|
306
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
307
|
+
])
|
|
308
|
+
]),
|
|
309
|
+
_: 1
|
|
310
|
+
}, 8, ["isVisible"])
|
|
311
|
+
])) : Ie("", !0),
|
|
312
|
+
D.buttons && ((B = D.buttons) == null ? void 0 : B.length) > 0 ? (le(), Ce("div", Zo, [
|
|
313
|
+
(le(!0), Ce(aa, null, ra((Tl = D.buttons) == null ? void 0 : Tl.filter((L) => D.isDevMode || (L == null ? void 0 : L.label) !== "修改模板"), (L, al) => (le(), Ce("div", {
|
|
314
|
+
class: "extra-contents",
|
|
315
|
+
key: al
|
|
316
|
+
}, [
|
|
317
|
+
(L == null ? void 0 : L.type) === "upload" ? (le(), Xe(Ue, {
|
|
318
|
+
key: 0,
|
|
319
|
+
class: "upload-button-wrap",
|
|
320
|
+
"on-change": Oe,
|
|
321
|
+
accept: ".xlsx,.xls",
|
|
322
|
+
"auto-upload": !1,
|
|
323
|
+
action: "#",
|
|
324
|
+
"show-file-list": !1,
|
|
325
|
+
disabled: !!D.lockingPage
|
|
326
|
+
}, {
|
|
327
|
+
default: H(() => [
|
|
328
|
+
ee(oe, {
|
|
329
|
+
disabled: !!D.lockingPage,
|
|
330
|
+
style: ba({ background: (L == null ? void 0 : L.background) ?? "var(--ssbutton-theme-bg)", color: (L == null ? void 0 : L.color) ?? "var(--ssbutton-theme-color)" })
|
|
331
|
+
}, {
|
|
332
|
+
default: H(() => [
|
|
333
|
+
Ve(Ze(L == null ? void 0 : L.label), 1)
|
|
334
|
+
]),
|
|
335
|
+
_: 2
|
|
336
|
+
}, 1032, ["disabled", "style"])
|
|
337
|
+
]),
|
|
338
|
+
_: 2
|
|
339
|
+
}, 1032, ["disabled"])) : Ie("", !0),
|
|
340
|
+
(L == null ? void 0 : L.type) === "popover" ? (le(), Xe(wn, { key: 1 }, {
|
|
341
|
+
dropTitle: H(() => [
|
|
342
|
+
(L == null ? void 0 : L.type) === "popover" ? (le(), Xe(oe, {
|
|
343
|
+
key: 0,
|
|
344
|
+
disabled: !!D.lockingPage,
|
|
345
|
+
style: ba({ background: (L == null ? void 0 : L.background) ?? "var(--ssbutton-theme-bg)", color: (L == null ? void 0 : L.color) ?? "var(--ssbutton-theme-color)" })
|
|
346
|
+
}, {
|
|
347
|
+
default: H(() => [
|
|
348
|
+
Ve(Ze(L == null ? void 0 : L.label), 1)
|
|
349
|
+
]),
|
|
350
|
+
_: 2
|
|
351
|
+
}, 1032, ["disabled", "style"])) : Ie("", !0)
|
|
352
|
+
]),
|
|
353
|
+
dropMenu: H(() => [
|
|
354
|
+
te("div", Io, [
|
|
355
|
+
(le(!0), Ce(aa, null, ra(L == null ? void 0 : L.contents, (ne) => (le(), Xe(oe, {
|
|
356
|
+
key: ne == null ? void 0 : ne.label,
|
|
357
|
+
disabled: !!D.lockingPage,
|
|
358
|
+
style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
|
|
359
|
+
onClick: (we) => sl(ne == null ? void 0 : ne.label)
|
|
360
|
+
}, {
|
|
361
|
+
default: H(() => {
|
|
362
|
+
var we, ze;
|
|
363
|
+
return [
|
|
364
|
+
Ve(Ze(ne == null ? void 0 : ne.label), 1),
|
|
365
|
+
(we = ne == null ? void 0 : ne.label) != null && we.includes("选中") ? (le(), Ce("span", Vo, "(" + Ze(D.selectNums) + ")", 1)) : Ie("", !0),
|
|
366
|
+
(ze = ne == null ? void 0 : ne.label) != null && ze.includes("全部") ? (le(), Ce("span", ei, "(" + Ze(D.dataNums) + ")", 1)) : Ie("", !0)
|
|
367
|
+
];
|
|
368
|
+
}),
|
|
369
|
+
_: 2
|
|
370
|
+
}, 1032, ["disabled", "onClick"]))), 128))
|
|
371
|
+
])
|
|
372
|
+
]),
|
|
373
|
+
_: 2
|
|
374
|
+
}, 1024)) : (le(), Xe(oe, {
|
|
375
|
+
key: 2,
|
|
376
|
+
id: "themeButton",
|
|
377
|
+
disabled: !!D.lockingPage,
|
|
378
|
+
style: ba({ background: (L == null ? void 0 : L.background) ?? "var(--ssbutton-theme-bg)", color: (L == null ? void 0 : L.color) ?? "var(--ssbutton-theme-color)" }),
|
|
379
|
+
onClick: (ne) => sl(L == null ? void 0 : L.label, L)
|
|
380
|
+
}, {
|
|
381
|
+
default: H(() => [
|
|
382
|
+
Ve(Ze(L == null ? void 0 : L.label), 1)
|
|
383
|
+
]),
|
|
384
|
+
_: 2
|
|
385
|
+
}, 1032, ["disabled", "style", "onClick"]))
|
|
386
|
+
]))), 128))
|
|
387
|
+
])) : Ie("", !0)
|
|
388
|
+
])
|
|
389
|
+
])) : (le(), Ce("div", li, [
|
|
390
|
+
te("div", ai, [
|
|
391
|
+
te("div", ri, [
|
|
392
|
+
ee(Ln, {
|
|
393
|
+
title: "",
|
|
394
|
+
width: 800,
|
|
395
|
+
placement: "bottom-start",
|
|
396
|
+
isVisible: n.value
|
|
397
|
+
}, {
|
|
398
|
+
reference: H(() => {
|
|
399
|
+
var L, al, ne, we;
|
|
400
|
+
return [
|
|
401
|
+
ee(ie, {
|
|
402
|
+
modelValue: m.value,
|
|
403
|
+
"onUpdate:modelValue": Re[3] || (Re[3] = (ze) => m.value = ze),
|
|
404
|
+
style: { "min-width": "80px" },
|
|
405
|
+
placeholder: tl.value ? (ne = (al = (L = D.filterValues) == null ? void 0 : L.filter((ze) => ze)) == null ? void 0 : al.slice(0, 3)) == null ? void 0 : ne.join("/") : "搜索",
|
|
406
|
+
"prefix-icon": Hl(Sn),
|
|
407
|
+
clearable: "",
|
|
408
|
+
onInput: el,
|
|
409
|
+
disabled: ((we = Q.value) == null ? void 0 : we.length) === 0
|
|
410
|
+
}, {
|
|
411
|
+
suffix: H(() => {
|
|
412
|
+
var ze, Dl;
|
|
413
|
+
return [
|
|
414
|
+
!m.value && ((Dl = (ze = D.filterValues) == null ? void 0 : ze.filter((Ql) => Ql)) != null && Dl.join("/")) ? (le(), Xe(ll, {
|
|
415
|
+
key: 0,
|
|
416
|
+
style: { cursor: "pointer" },
|
|
417
|
+
onClick: El
|
|
418
|
+
}, {
|
|
419
|
+
default: H(() => [
|
|
420
|
+
ee(Hl(_n))
|
|
421
|
+
]),
|
|
422
|
+
_: 1
|
|
423
|
+
})) : Ie("", !0)
|
|
424
|
+
];
|
|
425
|
+
}),
|
|
426
|
+
append: H(() => [
|
|
427
|
+
te("span", {
|
|
428
|
+
title: "条件查询",
|
|
429
|
+
onClick: Re[2] || (Re[2] = (ze) => n.value = !n.value)
|
|
430
|
+
}, [
|
|
431
|
+
ee(ye, {
|
|
432
|
+
name: "query",
|
|
433
|
+
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
434
|
+
})
|
|
435
|
+
])
|
|
436
|
+
]),
|
|
437
|
+
_: 1
|
|
438
|
+
}, 8, ["modelValue", "placeholder", "prefix-icon", "disabled"])
|
|
439
|
+
];
|
|
440
|
+
}),
|
|
441
|
+
content: H(() => [
|
|
442
|
+
te("div", ni, [
|
|
443
|
+
(le(), Xe($a, {
|
|
444
|
+
rowContents: Q.value,
|
|
445
|
+
buttonValue: fe.value,
|
|
446
|
+
isRowFlex: !0,
|
|
447
|
+
isEnableWrap: !1,
|
|
448
|
+
isButtonRow: !1,
|
|
449
|
+
key: fe.value,
|
|
450
|
+
isStartJustify: !1,
|
|
451
|
+
onOnButtonClick: Ul
|
|
452
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
453
|
+
])
|
|
454
|
+
]),
|
|
455
|
+
_: 1
|
|
456
|
+
}, 8, ["isVisible"])
|
|
457
|
+
]),
|
|
458
|
+
D.buttons && ((dl = D.buttons) == null ? void 0 : dl.length) > 0 ? (le(), Ce("div", si, [
|
|
459
|
+
(le(!0), Ce(aa, null, ra((ae = D.buttons) == null ? void 0 : ae.filter((L) => D.isDevMode || (L == null ? void 0 : L.label) !== "修改模板"), (L, al) => (le(), Ce("div", {
|
|
460
|
+
class: "extra-contents",
|
|
461
|
+
key: al
|
|
462
|
+
}, [
|
|
463
|
+
(L == null ? void 0 : L.type) === "upload" ? (le(), Xe(Ue, {
|
|
464
|
+
key: 0,
|
|
465
|
+
class: "upload-button-wrap",
|
|
466
|
+
"on-change": Oe,
|
|
467
|
+
accept: ".xlsx,.xls",
|
|
468
|
+
"auto-upload": !1,
|
|
469
|
+
action: "#",
|
|
470
|
+
"show-file-list": !1
|
|
471
|
+
}, {
|
|
472
|
+
default: H(() => [
|
|
473
|
+
ee(oe, { style: { background: "transparent", color: "#666666" } }, {
|
|
474
|
+
icon: H(() => {
|
|
475
|
+
var ne;
|
|
476
|
+
return [
|
|
477
|
+
ee(ye, {
|
|
478
|
+
name: (ne = be == null ? void 0 : be.find((we) => (we == null ? void 0 : we.label) === (L == null ? void 0 : L.label))) == null ? void 0 : ne.icon
|
|
479
|
+
}, null, 8, ["name"])
|
|
480
|
+
];
|
|
481
|
+
}),
|
|
482
|
+
default: H(() => [
|
|
483
|
+
Ve(" " + Ze(L == null ? void 0 : L.label), 1)
|
|
484
|
+
]),
|
|
485
|
+
_: 2
|
|
486
|
+
}, 1024)
|
|
487
|
+
]),
|
|
488
|
+
_: 2
|
|
489
|
+
}, 1024)) : Ie("", !0),
|
|
490
|
+
(L == null ? void 0 : L.type) === "popover" ? (le(), Xe(wn, { key: 1 }, {
|
|
491
|
+
dropTitle: H(() => [
|
|
492
|
+
(L == null ? void 0 : L.type) === "popover" ? (le(), Xe(oe, {
|
|
493
|
+
key: 0,
|
|
494
|
+
style: { background: "transparent", color: "#666666" }
|
|
495
|
+
}, {
|
|
496
|
+
icon: H(() => {
|
|
497
|
+
var ne;
|
|
498
|
+
return [
|
|
499
|
+
ee(ye, {
|
|
500
|
+
name: (ne = be == null ? void 0 : be.find((we) => (we == null ? void 0 : we.label) === (L == null ? void 0 : L.label))) == null ? void 0 : ne.icon
|
|
501
|
+
}, null, 8, ["name"])
|
|
502
|
+
];
|
|
503
|
+
}),
|
|
504
|
+
default: H(() => [
|
|
505
|
+
Ve(" " + Ze(L == null ? void 0 : L.label), 1)
|
|
506
|
+
]),
|
|
507
|
+
_: 2
|
|
508
|
+
}, 1024)) : Ie("", !0)
|
|
509
|
+
]),
|
|
510
|
+
dropMenu: H(() => [
|
|
511
|
+
te("div", oi, [
|
|
512
|
+
(le(!0), Ce(aa, null, ra(L == null ? void 0 : L.contents, (ne) => (le(), Xe(oe, {
|
|
513
|
+
key: ne == null ? void 0 : ne.label,
|
|
514
|
+
style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
|
|
515
|
+
onClick: (we) => sl(ne == null ? void 0 : ne.label)
|
|
516
|
+
}, {
|
|
517
|
+
default: H(() => {
|
|
518
|
+
var we, ze;
|
|
519
|
+
return [
|
|
520
|
+
Ve(Ze(ne == null ? void 0 : ne.label), 1),
|
|
521
|
+
(we = ne == null ? void 0 : ne.label) != null && we.includes("选中") ? (le(), Ce("span", ii, "(" + Ze(D.selectNums) + ")", 1)) : Ie("", !0),
|
|
522
|
+
(ze = ne == null ? void 0 : ne.label) != null && ze.includes("全部") ? (le(), Ce("span", ui, "(" + Ze(D.dataNums) + ")", 1)) : Ie("", !0)
|
|
523
|
+
];
|
|
524
|
+
}),
|
|
525
|
+
_: 2
|
|
526
|
+
}, 1032, ["onClick"]))), 128))
|
|
527
|
+
])
|
|
528
|
+
]),
|
|
529
|
+
_: 2
|
|
530
|
+
}, 1024)) : (le(), Xe(oe, {
|
|
531
|
+
key: 2,
|
|
532
|
+
id: "themeButton",
|
|
533
|
+
style: ba({ background: "transparent", color: (L == null ? void 0 : L.label) === "新增" ? "var(--ssbutton-theme-bg)" : "#666666" }),
|
|
534
|
+
onClick: (ne) => sl(L == null ? void 0 : L.label, L)
|
|
535
|
+
}, {
|
|
536
|
+
icon: H(() => {
|
|
537
|
+
var ne;
|
|
538
|
+
return [
|
|
539
|
+
ee(ye, {
|
|
540
|
+
name: (ne = be == null ? void 0 : be.find((we) => (we == null ? void 0 : we.label) === (L == null ? void 0 : L.label))) == null ? void 0 : ne.icon
|
|
541
|
+
}, null, 8, ["name"])
|
|
542
|
+
];
|
|
543
|
+
}),
|
|
544
|
+
default: H(() => [
|
|
545
|
+
Ve(" " + Ze(L == null ? void 0 : L.label), 1)
|
|
546
|
+
]),
|
|
547
|
+
_: 2
|
|
548
|
+
}, 1032, ["style", "onClick"]))
|
|
549
|
+
]))), 128))
|
|
550
|
+
])) : Ie("", !0)
|
|
551
|
+
])
|
|
552
|
+
]));
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
}, ti = /* @__PURE__ */ er(ci, [["__scopeId", "data-v-9ca4d746"]]), di = /* @__PURE__ */ $r({
|
|
556
|
+
__name: "batch",
|
|
557
|
+
props: {
|
|
558
|
+
lockingPage: Boolean,
|
|
559
|
+
buttons: {
|
|
560
|
+
type: Array,
|
|
561
|
+
default: () => []
|
|
562
|
+
},
|
|
563
|
+
selectTableItems: {
|
|
564
|
+
type: Array,
|
|
565
|
+
default: () => []
|
|
566
|
+
},
|
|
567
|
+
columns: {
|
|
568
|
+
type: Array,
|
|
569
|
+
default: () => []
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
emits: ["buttonClick"],
|
|
573
|
+
setup(D, { emit: P }) {
|
|
574
|
+
const S = D, C = P, m = (Q) => {
|
|
575
|
+
C("buttonClick", Q);
|
|
576
|
+
}, n = (Q) => {
|
|
577
|
+
var fe;
|
|
578
|
+
return Q != null && Q.includes("删除") ? ((fe = S.selectTableItems) == null ? void 0 : fe.length) > 0 ? "warning-active-type" : "warning-type" : "default-type";
|
|
579
|
+
};
|
|
580
|
+
return (Q, fe) => {
|
|
581
|
+
const be = cl("el-button");
|
|
582
|
+
return le(), Ce("div", null, [
|
|
583
|
+
(le(!0), Ce(aa, null, ra(D.buttons, (Oe) => (le(), Xe(be, {
|
|
584
|
+
key: Oe == null ? void 0 : Oe.label,
|
|
585
|
+
disabled: !!D.lockingPage,
|
|
586
|
+
class: Pn(n(Oe == null ? void 0 : Oe.label)),
|
|
587
|
+
onClick: (el) => m(Oe == null ? void 0 : Oe.label)
|
|
588
|
+
}, {
|
|
589
|
+
default: H(() => [
|
|
590
|
+
Ve(Ze(Oe == null ? void 0 : Oe.label), 1)
|
|
591
|
+
]),
|
|
592
|
+
_: 2
|
|
593
|
+
}, 1032, ["disabled", "class", "onClick"]))), 128))
|
|
594
|
+
]);
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
}), pi = /* @__PURE__ */ er(di, [["__scopeId", "data-v-70b12973"]]), fi = $n("formToTableComp", {
|
|
598
|
+
state: () => ({
|
|
599
|
+
selectArray: [],
|
|
600
|
+
selectString: ""
|
|
601
|
+
}),
|
|
602
|
+
actions: {
|
|
603
|
+
setSelectArray(D) {
|
|
604
|
+
this.selectArray = D;
|
|
605
|
+
},
|
|
606
|
+
setSelectString(D) {
|
|
607
|
+
this.selectString = D;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}), hi = { class: "calculator-content" }, yi = { class: "calculator-child" }, vi = { class: "calculator-child" }, gi = /* @__PURE__ */ $r({
|
|
611
|
+
__name: "calculator",
|
|
612
|
+
setup(D) {
|
|
613
|
+
const P = G(), S = G();
|
|
614
|
+
return Pr(() => {
|
|
615
|
+
P.value = [
|
|
616
|
+
{
|
|
617
|
+
type: "Upload",
|
|
618
|
+
label: "输入",
|
|
619
|
+
name: "input"
|
|
620
|
+
}
|
|
621
|
+
], S.value = [
|
|
622
|
+
{
|
|
623
|
+
type: "Upload",
|
|
624
|
+
label: "输出",
|
|
625
|
+
name: "output"
|
|
626
|
+
}
|
|
627
|
+
];
|
|
628
|
+
}), (C, m) => (le(), Ce("div", hi, [
|
|
629
|
+
te("div", yi, [
|
|
630
|
+
ee($a, {
|
|
631
|
+
rowContents: P.value,
|
|
632
|
+
isRowFlex: !0
|
|
633
|
+
}, null, 8, ["rowContents"])
|
|
634
|
+
]),
|
|
635
|
+
te("div", vi, [
|
|
636
|
+
ee($a, {
|
|
637
|
+
rowContents: S.value,
|
|
638
|
+
isEdit: !1,
|
|
639
|
+
isRowFlex: !0
|
|
640
|
+
}, null, 8, ["rowContents"])
|
|
641
|
+
])
|
|
642
|
+
]));
|
|
643
|
+
}
|
|
644
|
+
}), bi = /* @__PURE__ */ er(gi, [["__scopeId", "data-v-73db0fe7"]]), jr = (D, P) => {
|
|
645
|
+
let S = D, C = P;
|
|
646
|
+
return Array.isArray(S) && (S = S == null ? void 0 : S.map((m, n) => {
|
|
647
|
+
if (Array.isArray(m)) {
|
|
648
|
+
let Q = {};
|
|
649
|
+
return m = m == null ? void 0 : m.forEach((fe, be) => {
|
|
650
|
+
var Oe;
|
|
651
|
+
(Oe = C == null ? void 0 : C[be]) != null && Oe.prop ? Q[C[be].prop] = fe : Array.isArray(fe) && (Q.children = jr(fe, C));
|
|
652
|
+
}), Object.assign(Q, { id: n });
|
|
653
|
+
} else
|
|
654
|
+
return m;
|
|
655
|
+
})), S;
|
|
656
|
+
}, Bn = (D, P, S) => {
|
|
657
|
+
let C = D, m = P;
|
|
658
|
+
return C = C == null ? void 0 : C.map((n, Q) => {
|
|
659
|
+
var fe, be;
|
|
660
|
+
return !Array.isArray(n) || !((fe = m == null ? void 0 : m[Q]) != null && fe.label) && !S || (n.unshift(((be = m == null ? void 0 : m[Q]) == null ? void 0 : be.label) ?? ""), n.some((Oe) => Array.isArray(Oe)) && (n = n == null ? void 0 : n.map((Oe) => {
|
|
661
|
+
var el;
|
|
662
|
+
return Array.isArray(Oe) && (Oe = Bn(Oe, (el = m == null ? void 0 : m[Q]) == null ? void 0 : el.children, S)), Oe;
|
|
663
|
+
}))), n;
|
|
664
|
+
}), C;
|
|
665
|
+
}, ki = (D, P, S) => {
|
|
666
|
+
if (P === "")
|
|
667
|
+
return D == null ? void 0 : D.filter((C) => (C == null ? void 0 : C.id) !== S);
|
|
668
|
+
{
|
|
669
|
+
const C = P.split("-");
|
|
670
|
+
return mi(D, C, S);
|
|
671
|
+
}
|
|
672
|
+
}, mi = (D, P, S) => {
|
|
673
|
+
let C = D, m = P;
|
|
674
|
+
return (m == null ? void 0 : m.length) === 0 ? C = C == null ? void 0 : C.filter((n) => n.id !== S) : C = C == null ? void 0 : C.map((n) => (n.id.toString() === (m == null ? void 0 : m[0]) && (m == null || m.shift(), n = Rn(n, m, S)), n)), C;
|
|
675
|
+
}, Rn = (D, P, S) => {
|
|
676
|
+
var n, Q;
|
|
677
|
+
let C = D, m = P;
|
|
678
|
+
return (m == null ? void 0 : m.length) === 0 ? C.children = (n = C.children) == null ? void 0 : n.filter((fe) => fe.id !== S) : C.children = (Q = C.children) == null ? void 0 : Q.map((fe) => (fe.id.toString() === (m == null ? void 0 : m[0]) && (m == null || m.shift(), fe = Rn(fe, m, S)), fe)), C;
|
|
679
|
+
}, Si = (D, P, S) => {
|
|
680
|
+
if (P === "")
|
|
681
|
+
return S;
|
|
682
|
+
{
|
|
683
|
+
const C = P.split("-");
|
|
684
|
+
return _i(D, C, S);
|
|
685
|
+
}
|
|
686
|
+
}, _i = (D, P, S) => {
|
|
687
|
+
let C = D, m = P;
|
|
688
|
+
return (m == null ? void 0 : m.length) === 0 ? C = S : C = C == null ? void 0 : C.map((n) => (n.id.toString() === (m == null ? void 0 : m[0]) && (m == null || m.shift(), n = Mn(n, m, S)), n)), C;
|
|
689
|
+
}, Mn = (D, P, S) => {
|
|
690
|
+
var n;
|
|
691
|
+
let C = D, m = P;
|
|
692
|
+
return (m == null ? void 0 : m.length) === 0 ? C.children = S : C.children = (n = C.children) == null ? void 0 : n.map((Q) => (Q.id.toString() === (m == null ? void 0 : m[0]) && (m == null || m.shift(), Q = Mn(Q, m, S)), Q)), C;
|
|
693
|
+
};
|
|
694
|
+
class Ai {
|
|
695
|
+
constructor(P = {}) {
|
|
696
|
+
Kl(this, "url");
|
|
697
|
+
Kl(this, "heartbeatInterval");
|
|
698
|
+
Kl(this, "socket", null);
|
|
699
|
+
Kl(this, "isConnected", !1);
|
|
700
|
+
Kl(this, "heartTimer", null);
|
|
701
|
+
Kl(this, "canvas", null);
|
|
702
|
+
Kl(this, "ctx", null);
|
|
703
|
+
Kl(this, "mainCamCutMode", 0);
|
|
704
|
+
Kl(this, "pMainShowStartX", 0);
|
|
705
|
+
Kl(this, "pMainShowStartY", 0);
|
|
706
|
+
Kl(this, "onLog");
|
|
707
|
+
Kl(this, "onDevCount");
|
|
708
|
+
Kl(this, "onCameraStatus");
|
|
709
|
+
Kl(this, "onPhoto");
|
|
710
|
+
this.url = P.url ?? "ws://127.0.0.1:22225", this.heartbeatInterval = P.heartbeatInterval ?? 3e3;
|
|
711
|
+
}
|
|
712
|
+
init(P, S, C) {
|
|
713
|
+
var Q;
|
|
714
|
+
(Q = this.canvas) != null && Q.parentNode && this.canvas.parentNode.removeChild(this.canvas);
|
|
715
|
+
const m = document.createElement("canvas");
|
|
716
|
+
m.style.border = "solid 1px #A0A0A0", m.id = "MainCamCanvas", m.width = S, m.height = C;
|
|
717
|
+
const n = m.getContext("2d");
|
|
718
|
+
if (!n) throw new Error("无法获取 CanvasRenderingContext2D");
|
|
719
|
+
P.appendChild(m), this.canvas = m, this.ctx = n;
|
|
720
|
+
}
|
|
721
|
+
async connect() {
|
|
722
|
+
this.socket && (this.socket.readyState === WebSocket.OPEN || this.socket.readyState === WebSocket.CONNECTING) || await new Promise((P, S) => {
|
|
723
|
+
const C = new WebSocket(this.url);
|
|
724
|
+
C.binaryType = "arraybuffer", C.onopen = () => {
|
|
725
|
+
this.socket = C, this.isConnected = !0, this.startHeartbeat(), this.log("socket.onopen"), P();
|
|
726
|
+
}, C.onerror = (m) => {
|
|
727
|
+
this.isConnected = !1, this.log("socket.onerror"), S(m);
|
|
728
|
+
}, C.onclose = () => {
|
|
729
|
+
this.isConnected = !1, this.stopHeartbeat(), this.log("socket.onclose");
|
|
730
|
+
}, C.onmessage = (m) => {
|
|
731
|
+
this.handleMessage(m);
|
|
732
|
+
};
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
destroy() {
|
|
736
|
+
var P;
|
|
737
|
+
this.stopHeartbeat();
|
|
738
|
+
try {
|
|
739
|
+
this.closeCamera();
|
|
740
|
+
} catch {
|
|
741
|
+
}
|
|
742
|
+
if (this.socket) {
|
|
743
|
+
try {
|
|
744
|
+
this.socket.onmessage = null;
|
|
745
|
+
} catch {
|
|
746
|
+
}
|
|
747
|
+
try {
|
|
748
|
+
this.socket.onopen = null;
|
|
749
|
+
} catch {
|
|
750
|
+
}
|
|
751
|
+
try {
|
|
752
|
+
this.socket.onerror = null;
|
|
753
|
+
} catch {
|
|
754
|
+
}
|
|
755
|
+
try {
|
|
756
|
+
this.socket.onclose = null;
|
|
757
|
+
} catch {
|
|
758
|
+
}
|
|
759
|
+
try {
|
|
760
|
+
this.socket.close();
|
|
761
|
+
} catch {
|
|
762
|
+
}
|
|
763
|
+
this.socket = null;
|
|
764
|
+
}
|
|
765
|
+
this.isConnected = !1, (P = this.canvas) != null && P.parentNode && this.canvas.parentNode.removeChild(this.canvas), this.canvas = null, this.ctx = null;
|
|
766
|
+
}
|
|
767
|
+
getDevCount() {
|
|
768
|
+
this.sendBytes(new Uint8Array([119, 136, 80]));
|
|
769
|
+
}
|
|
770
|
+
openCamera(P = 0, S = 1280, C = 720) {
|
|
771
|
+
if (!this.canvas) throw new Error("请先 init() 传入容器并创建 canvas");
|
|
772
|
+
const m = new Uint8Array(12);
|
|
773
|
+
m[0] = 119, m[1] = 136, m[2] = 1, m[3] = P, m[4] = this.canvas.width >> 8 & 255, m[5] = this.canvas.width & 255, m[6] = this.canvas.height >> 8 & 255, m[7] = this.canvas.height & 255, m[8] = S >> 8 & 255, m[9] = S & 255, m[10] = C >> 8 & 255, m[11] = C & 255, this.sendBytes(m);
|
|
774
|
+
}
|
|
775
|
+
closeCamera() {
|
|
776
|
+
this.sendBytes(new Uint8Array([119, 136, 2, 0]));
|
|
777
|
+
}
|
|
778
|
+
photo() {
|
|
779
|
+
const m = new Uint8Array(12);
|
|
780
|
+
m[0] = 119, m[1] = 136, m[2] = 16, m[3] = 0, m[4] = 0, m[5] = 0, m[6] = 0, m[7] = 0, m[8] = 1, m[9] = 0, m[10] = 0, m[11] = 0, this.sendBytes(m);
|
|
781
|
+
}
|
|
782
|
+
bestSize() {
|
|
783
|
+
this.sendBytes(new Uint8Array([119, 136, 5, 0]));
|
|
784
|
+
}
|
|
785
|
+
rotateLeft() {
|
|
786
|
+
this.sendBytes(new Uint8Array([119, 136, 7, 0]));
|
|
787
|
+
}
|
|
788
|
+
rotateRight() {
|
|
789
|
+
this.sendBytes(new Uint8Array([119, 136, 8, 0]));
|
|
790
|
+
}
|
|
791
|
+
focus() {
|
|
792
|
+
this.sendBytes(new Uint8Array([119, 136, 48, 0]));
|
|
793
|
+
}
|
|
794
|
+
log(P) {
|
|
795
|
+
var S;
|
|
796
|
+
(S = this.onLog) == null || S.call(this, P);
|
|
797
|
+
}
|
|
798
|
+
sendBytes(P) {
|
|
799
|
+
if (!this.socket || this.socket.readyState !== WebSocket.OPEN || !this.isConnected)
|
|
800
|
+
throw new Error("socket 未连接");
|
|
801
|
+
this.socket.send(P.buffer);
|
|
802
|
+
}
|
|
803
|
+
startHeartbeat() {
|
|
804
|
+
this.stopHeartbeat(), this.heartTimer = window.setInterval(() => {
|
|
805
|
+
this.log("heartCheck...........");
|
|
806
|
+
}, this.heartbeatInterval);
|
|
807
|
+
}
|
|
808
|
+
stopHeartbeat() {
|
|
809
|
+
this.heartTimer && (clearInterval(this.heartTimer), this.heartTimer = null);
|
|
810
|
+
}
|
|
811
|
+
handleMessage(P) {
|
|
812
|
+
var m, n, Q, fe, be;
|
|
813
|
+
const S = new Uint8Array(P.data);
|
|
814
|
+
if (S.length <= 0) return;
|
|
815
|
+
if (S[0] === 17 && S[1] === 17 && S[2] === 17) {
|
|
816
|
+
this.log("heart socket!!!!");
|
|
817
|
+
return;
|
|
818
|
+
}
|
|
819
|
+
if (S[0] !== 85 || S[1] !== 102) return;
|
|
820
|
+
const C = S[2];
|
|
821
|
+
if (C === 80) {
|
|
822
|
+
const Oe = S[3], el = S.length - 4, sl = new Uint8Array(el);
|
|
823
|
+
for (let Ul = 0; Ul < el; Ul++) sl[Ul] = S[4 + Ul];
|
|
824
|
+
const tl = decodeURIComponent(this.byteToString(sl)).split("|");
|
|
825
|
+
(m = this.onDevCount) == null || m.call(this, Oe, tl);
|
|
826
|
+
return;
|
|
827
|
+
}
|
|
828
|
+
if (C === 1) {
|
|
829
|
+
S[3] === 1 && ((n = this.onCameraStatus) == null || n.call(this, "opened")), S[3] === 3 && ((Q = this.onCameraStatus) == null || Q.call(this, "closed"));
|
|
830
|
+
return;
|
|
831
|
+
}
|
|
832
|
+
if (C === 16) {
|
|
833
|
+
if (S[3] === 1) {
|
|
834
|
+
const el = S[4] * 256 + S[5], sl = S[6] * 65536 + S[7] * 256 + S[8];
|
|
835
|
+
let pl = "";
|
|
836
|
+
if (el > 0) {
|
|
837
|
+
const El = new Uint8Array(el);
|
|
838
|
+
for (let he = 0; he < el; he++) El[he] = S[9 + he];
|
|
839
|
+
pl = decodeURIComponent(this.byteToString(El));
|
|
840
|
+
}
|
|
841
|
+
const tl = new Uint8Array(sl);
|
|
842
|
+
for (let El = 0; El < sl; El++)
|
|
843
|
+
tl[El] = S[9 + el + El];
|
|
844
|
+
const Ul = this.uint8ArrayToString(tl);
|
|
845
|
+
(fe = this.onPhoto) == null || fe.call(this, { flag: 0, imgPath: pl, base64: Ul });
|
|
846
|
+
}
|
|
847
|
+
S[3] === 2 && ((be = this.onPhoto) == null || be.call(this, { flag: 2, imgPath: "", base64: "" }));
|
|
848
|
+
return;
|
|
849
|
+
}
|
|
850
|
+
if (C === 204) {
|
|
851
|
+
if (!this.canvas || !this.ctx) return;
|
|
852
|
+
const Oe = S[3] * 256 + S[4], el = S[5] * 256 + S[6];
|
|
853
|
+
this.pMainShowStartX = S[7] * 256 + S[8], this.pMainShowStartY = S[9] * 256 + S[10], this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
854
|
+
const sl = this.ctx.createImageData(Oe, el);
|
|
855
|
+
let pl = 11;
|
|
856
|
+
for (let tl = 0; tl < sl.data.length; tl += 4)
|
|
857
|
+
sl.data[tl + 0] = S[pl], sl.data[tl + 1] = S[pl + 1], sl.data[tl + 2] = S[pl + 2], sl.data[tl + 3] = 255, pl += 3;
|
|
858
|
+
this.ctx.putImageData(sl, this.pMainShowStartX, this.pMainShowStartY), this.mainCamCutMode;
|
|
859
|
+
return;
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
uint8ArrayToString(P) {
|
|
863
|
+
let S = "";
|
|
864
|
+
for (let C = 0; C < P.length; C++)
|
|
865
|
+
S += String.fromCharCode(P[C]);
|
|
866
|
+
return S;
|
|
867
|
+
}
|
|
868
|
+
byteToString(P) {
|
|
869
|
+
let S = "";
|
|
870
|
+
for (let C = 0; C < P.length; C++)
|
|
871
|
+
S += String.fromCharCode(P[C]);
|
|
872
|
+
return S;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
const Ci = { style: { display: "flex", gap: "16px", height: "100%" } }, Ti = {
|
|
876
|
+
key: 0,
|
|
877
|
+
style: { color: "var(--el-text-color-secondary)" }
|
|
878
|
+
}, Oi = { style: { width: "420px", display: "flex", "flex-direction": "column", gap: "16px" } }, xi = { style: { border: "1px solid var(--el-border-color)", "border-radius": "4px", padding: "12px" } }, wi = {
|
|
879
|
+
ref: "pictureBox",
|
|
880
|
+
style: { height: "220px", border: "1px dashed var(--el-border-color)", "border-radius": "4px", display: "flex", "align-items": "center", "justify-content": "center", background: "var(--el-fill-color-lighter)", position: "relative", overflow: "hidden" }
|
|
881
|
+
}, Di = {
|
|
882
|
+
key: 0,
|
|
883
|
+
style: { color: "var(--el-text-color-secondary)" }
|
|
884
|
+
}, Ui = ["src"], Ei = { style: { border: "1px solid var(--el-border-color)", "border-radius": "4px", padding: "12px", flex: "1", "min-height": "0", display: "flex", "flex-direction": "column" } }, Li = { class: "dialog-footer" }, ji = /* @__PURE__ */ $r({
|
|
885
|
+
__name: "index",
|
|
886
|
+
props: {
|
|
887
|
+
visible: {
|
|
888
|
+
type: Boolean,
|
|
889
|
+
default: !1
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
emits: ["confirm", "cancel"],
|
|
893
|
+
setup(D, { emit: P }) {
|
|
894
|
+
const S = D, C = P, m = G(null), n = G(!1), Q = G(""), fe = G(""), be = new Ai({
|
|
895
|
+
url: "ws://127.0.0.1:22225"
|
|
896
|
+
});
|
|
897
|
+
function Oe(ie, oe) {
|
|
898
|
+
var L;
|
|
899
|
+
const Ue = ie.split(","), B = ((L = Ue[0].match(/:(.*?);/)) == null ? void 0 : L[1]) ?? "image/jpeg", Tl = atob(Ue[1]);
|
|
900
|
+
let dl = Tl.length;
|
|
901
|
+
const ae = new Uint8Array(dl);
|
|
902
|
+
for (; dl--; )
|
|
903
|
+
ae[dl] = Tl.charCodeAt(dl);
|
|
904
|
+
return new File([ae], oe, { type: B });
|
|
905
|
+
}
|
|
906
|
+
function el() {
|
|
907
|
+
be.onLog = (ie) => {
|
|
908
|
+
console.log("[GPY]", ie);
|
|
909
|
+
}, be.onDevCount = (ie, oe) => {
|
|
910
|
+
if (fe.value += `设备数量=${ie},设备=${oe.join(",")}
|
|
911
|
+
`, ie > 0) {
|
|
912
|
+
fe.value += `检测到设备,正在打开摄像头...
|
|
913
|
+
`;
|
|
914
|
+
try {
|
|
915
|
+
be.openCamera(0, 1280, 720);
|
|
916
|
+
} catch (Ue) {
|
|
917
|
+
fe.value += `打开摄像头失败:${(Ue == null ? void 0 : Ue.message) ?? Ue}
|
|
918
|
+
`;
|
|
919
|
+
}
|
|
920
|
+
} else
|
|
921
|
+
fe.value += `未检测到高拍仪设备!
|
|
922
|
+
`;
|
|
923
|
+
}, be.onCameraStatus = (ie) => {
|
|
924
|
+
ie === "opened" ? (n.value = !0, fe.value += `摄像头已打开
|
|
925
|
+
`) : (n.value = !1, fe.value += `摄像头已关闭
|
|
926
|
+
`);
|
|
927
|
+
}, be.onPhoto = (ie) => {
|
|
928
|
+
ie.flag === 0 && ie.base64 ? (Q.value = `data:image/jpeg;base64,${ie.base64}`, fe.value += `拍照完成,已接收图片
|
|
929
|
+
`) : fe.value += `拍照失败 flag=${ie.flag}
|
|
930
|
+
`;
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
const sl = async () => {
|
|
934
|
+
if (await Ia(), !m.value) return;
|
|
935
|
+
pl(), el();
|
|
936
|
+
const ie = m.value.getBoundingClientRect();
|
|
937
|
+
be.init(m.value, Math.floor(ie.width), Math.floor(ie.height)), fe.value += `正在连接设备服务...
|
|
938
|
+
`, await be.connect(), fe.value += `正在获取设备数量...
|
|
939
|
+
`, be.getDevCount();
|
|
940
|
+
}, pl = () => {
|
|
941
|
+
try {
|
|
942
|
+
be.destroy();
|
|
943
|
+
} catch (ie) {
|
|
944
|
+
console.error(ie);
|
|
945
|
+
}
|
|
946
|
+
n.value = !1, Q.value = "", fe.value = "";
|
|
947
|
+
};
|
|
948
|
+
Fl(
|
|
949
|
+
() => S.visible,
|
|
950
|
+
(ie) => {
|
|
951
|
+
ie ? sl() : pl();
|
|
952
|
+
}
|
|
953
|
+
);
|
|
954
|
+
const tl = () => {
|
|
955
|
+
try {
|
|
956
|
+
be.bestSize();
|
|
957
|
+
} catch (ie) {
|
|
958
|
+
console.error(ie);
|
|
959
|
+
}
|
|
960
|
+
}, Ul = () => {
|
|
961
|
+
try {
|
|
962
|
+
be.rotateLeft();
|
|
963
|
+
} catch (ie) {
|
|
964
|
+
console.error(ie);
|
|
965
|
+
}
|
|
966
|
+
}, El = () => {
|
|
967
|
+
try {
|
|
968
|
+
be.rotateRight();
|
|
969
|
+
} catch (ie) {
|
|
970
|
+
console.error(ie);
|
|
971
|
+
}
|
|
972
|
+
}, he = () => {
|
|
973
|
+
try {
|
|
974
|
+
be.focus();
|
|
975
|
+
} catch (ie) {
|
|
976
|
+
console.error(ie);
|
|
977
|
+
}
|
|
978
|
+
}, Re = () => {
|
|
979
|
+
fe.value += `正在拍照...
|
|
980
|
+
`;
|
|
981
|
+
try {
|
|
982
|
+
be.photo();
|
|
983
|
+
} catch (ie) {
|
|
984
|
+
fe.value += `拍照调用失败:${(ie == null ? void 0 : ie.message) ?? ie}
|
|
985
|
+
`;
|
|
986
|
+
}
|
|
987
|
+
}, ll = () => {
|
|
988
|
+
if (Q.value) {
|
|
989
|
+
const ie = Oe(Q.value, "gpy-capture.jpg");
|
|
990
|
+
C("confirm", ie);
|
|
991
|
+
} else
|
|
992
|
+
C("confirm", null);
|
|
993
|
+
}, ye = () => {
|
|
994
|
+
pl(), C("cancel");
|
|
995
|
+
};
|
|
996
|
+
return (ie, oe) => {
|
|
997
|
+
const Ue = cl("el-input"), B = cl("el-button");
|
|
998
|
+
return le(), Xe(ga, {
|
|
999
|
+
title: "扫描录入",
|
|
1000
|
+
visible: S.visible,
|
|
1001
|
+
onBeforeDestroy: ye,
|
|
1002
|
+
width: "1200px",
|
|
1003
|
+
style: { height: "80%" }
|
|
1004
|
+
}, {
|
|
1005
|
+
default: H(() => [
|
|
1006
|
+
te("div", Ci, [
|
|
1007
|
+
te("div", {
|
|
1008
|
+
ref_key: "cameraBox",
|
|
1009
|
+
ref: m,
|
|
1010
|
+
style: { flex: "1", "min-width": "0", border: "1px solid var(--el-border-color)", "border-radius": "4px", position: "relative", overflow: "hidden", display: "flex", "align-items": "center", "justify-content": "center", background: "var(--el-fill-color-lighter)" }
|
|
1011
|
+
}, [
|
|
1012
|
+
n.value ? Ie("", !0) : (le(), Ce("div", Ti, "初始化摄像头..."))
|
|
1013
|
+
], 512),
|
|
1014
|
+
te("div", Oi, [
|
|
1015
|
+
te("div", xi, [
|
|
1016
|
+
oe[0] || (oe[0] = te("div", { style: { "font-weight": "600", "margin-bottom": "8px" } }, "拍照图片", -1)),
|
|
1017
|
+
te("div", wi, [
|
|
1018
|
+
Q.value ? Ie("", !0) : (le(), Ce("div", Di, "暂无图片")),
|
|
1019
|
+
Q.value ? (le(), Ce("img", {
|
|
1020
|
+
key: 1,
|
|
1021
|
+
src: Q.value,
|
|
1022
|
+
style: { "max-width": "100%", "max-height": "100%", "object-fit": "contain" },
|
|
1023
|
+
alt: "captured image"
|
|
1024
|
+
}, null, 8, Ui)) : Ie("", !0)
|
|
1025
|
+
], 512)
|
|
1026
|
+
]),
|
|
1027
|
+
te("div", Ei, [
|
|
1028
|
+
oe[1] || (oe[1] = te("div", { style: { "font-weight": "600", "margin-bottom": "8px" } }, "操作记录", -1)),
|
|
1029
|
+
ee(Ue, {
|
|
1030
|
+
type: "textarea",
|
|
1031
|
+
value: fe.value,
|
|
1032
|
+
readonly: "",
|
|
1033
|
+
rows: 10,
|
|
1034
|
+
placeholder: "设备操作记录...",
|
|
1035
|
+
style: { flex: "1" }
|
|
1036
|
+
}, null, 8, ["value"])
|
|
1037
|
+
])
|
|
1038
|
+
])
|
|
1039
|
+
])
|
|
1040
|
+
]),
|
|
1041
|
+
footer: H(() => [
|
|
1042
|
+
te("div", Li, [
|
|
1043
|
+
ee(B, {
|
|
1044
|
+
onClick: tl,
|
|
1045
|
+
disabled: !n.value,
|
|
1046
|
+
id: "themeBorderButton"
|
|
1047
|
+
}, {
|
|
1048
|
+
default: H(() => oe[2] || (oe[2] = [
|
|
1049
|
+
Ve("适屏")
|
|
1050
|
+
])),
|
|
1051
|
+
_: 1,
|
|
1052
|
+
__: [2]
|
|
1053
|
+
}, 8, ["disabled"]),
|
|
1054
|
+
ee(B, {
|
|
1055
|
+
onClick: Ul,
|
|
1056
|
+
disabled: !n.value,
|
|
1057
|
+
id: "themeBorderButton"
|
|
1058
|
+
}, {
|
|
1059
|
+
default: H(() => oe[3] || (oe[3] = [
|
|
1060
|
+
Ve("左旋")
|
|
1061
|
+
])),
|
|
1062
|
+
_: 1,
|
|
1063
|
+
__: [3]
|
|
1064
|
+
}, 8, ["disabled"]),
|
|
1065
|
+
ee(B, {
|
|
1066
|
+
onClick: El,
|
|
1067
|
+
disabled: !n.value,
|
|
1068
|
+
id: "themeBorderButton"
|
|
1069
|
+
}, {
|
|
1070
|
+
default: H(() => oe[4] || (oe[4] = [
|
|
1071
|
+
Ve("右旋")
|
|
1072
|
+
])),
|
|
1073
|
+
_: 1,
|
|
1074
|
+
__: [4]
|
|
1075
|
+
}, 8, ["disabled"]),
|
|
1076
|
+
ee(B, {
|
|
1077
|
+
onClick: he,
|
|
1078
|
+
disabled: !n.value,
|
|
1079
|
+
id: "themeBorderButton"
|
|
1080
|
+
}, {
|
|
1081
|
+
default: H(() => oe[5] || (oe[5] = [
|
|
1082
|
+
Ve("对焦")
|
|
1083
|
+
])),
|
|
1084
|
+
_: 1,
|
|
1085
|
+
__: [5]
|
|
1086
|
+
}, 8, ["disabled"]),
|
|
1087
|
+
ee(B, {
|
|
1088
|
+
onClick: Re,
|
|
1089
|
+
disabled: !n.value,
|
|
1090
|
+
id: "themeButton"
|
|
1091
|
+
}, {
|
|
1092
|
+
default: H(() => oe[6] || (oe[6] = [
|
|
1093
|
+
Ve("拍照")
|
|
1094
|
+
])),
|
|
1095
|
+
_: 1,
|
|
1096
|
+
__: [6]
|
|
1097
|
+
}, 8, ["disabled"]),
|
|
1098
|
+
oe[9] || (oe[9] = te("div", { style: { flex: "1" } }, null, -1)),
|
|
1099
|
+
ee(B, {
|
|
1100
|
+
onClick: ll,
|
|
1101
|
+
disabled: !Q.value,
|
|
1102
|
+
id: "themeButton"
|
|
1103
|
+
}, {
|
|
1104
|
+
default: H(() => oe[7] || (oe[7] = [
|
|
1105
|
+
Ve("确认")
|
|
1106
|
+
])),
|
|
1107
|
+
_: 1,
|
|
1108
|
+
__: [7]
|
|
1109
|
+
}, 8, ["disabled"]),
|
|
1110
|
+
ee(B, {
|
|
1111
|
+
onClick: ye,
|
|
1112
|
+
id: "themeBorderButton"
|
|
1113
|
+
}, {
|
|
1114
|
+
default: H(() => oe[8] || (oe[8] = [
|
|
1115
|
+
Ve("取消")
|
|
1116
|
+
])),
|
|
1117
|
+
_: 1,
|
|
1118
|
+
__: [8]
|
|
1119
|
+
})
|
|
1120
|
+
])
|
|
1121
|
+
]),
|
|
1122
|
+
_: 1
|
|
1123
|
+
}, 8, ["visible"]);
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
}), Pi = /* @__PURE__ */ er(ji, [["__scopeId", "data-v-cfe79109"]]), $i = $n("formComp", {
|
|
1127
|
+
state: () => ({
|
|
1128
|
+
objUrl: [],
|
|
1129
|
+
blobUrls: []
|
|
1130
|
+
}),
|
|
1131
|
+
actions: {
|
|
1132
|
+
setObjUrl(D) {
|
|
1133
|
+
this.objUrl = D;
|
|
1134
|
+
},
|
|
1135
|
+
setBlobUrls(D) {
|
|
1136
|
+
this.blobUrls = D;
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
}), Lr = async (D, P) => {
|
|
1140
|
+
var Q, fe, be, Oe, el, sl, pl, tl, Ul, El, he, Re, ll, ye, ie, oe, Ue;
|
|
1141
|
+
let S = (fe = (Q = re(D)) == null ? void 0 : Q.optionUrl) == null ? void 0 : fe.menuSelect, C = [];
|
|
1142
|
+
S == null || S.forEach((B) => {
|
|
1143
|
+
});
|
|
1144
|
+
let m = "", n = await Co(S);
|
|
1145
|
+
if (n == null || n.forEach((B) => {
|
|
1146
|
+
var Tl, dl, ae, L;
|
|
1147
|
+
(B == null ? void 0 : B.name) === (((L = (ae = (dl = (Tl = re(D)) == null ? void 0 : Tl.optionUrl) == null ? void 0 : dl.groupSelect) == null ? void 0 : ae[0]) == null ? void 0 : L.replaceAll("'", "")) ?? "") && (m = B == null ? void 0 : B.id);
|
|
1148
|
+
}), P) {
|
|
1149
|
+
m = P;
|
|
1150
|
+
const B = await ya({
|
|
1151
|
+
id: m
|
|
1152
|
+
}), Tl = (sl = (el = (Oe = (be = B == null ? void 0 : B.data) == null ? void 0 : be.result) == null ? void 0 : Oe[0]) == null ? void 0 : el.key) == null ? void 0 : sl.pageKey;
|
|
1153
|
+
n = await ja(Tl, sessionStorage.getItem("systemKey"), "");
|
|
1154
|
+
}
|
|
1155
|
+
if (m !== "") {
|
|
1156
|
+
let B;
|
|
1157
|
+
P ? B = (pl = n == null ? void 0 : n.find((ae) => (ae == null ? void 0 : ae.id) === P)) == null ? void 0 : pl.compData : B = (tl = n == null ? void 0 : n.find((ae) => {
|
|
1158
|
+
var L, al, ne, we;
|
|
1159
|
+
return (ae == null ? void 0 : ae.name) === (((al = (L = D == null ? void 0 : D.groupSelect) == null ? void 0 : L.split(":")) == null ? void 0 : al[0]) || ((we = (ne = D == null ? void 0 : D.optionUrl) == null ? void 0 : ne.groupSelect) == null ? void 0 : we[0]));
|
|
1160
|
+
})) == null ? void 0 : tl.compData;
|
|
1161
|
+
let Tl = (El = (Ul = B == null ? void 0 : B.find((ae) => (ae == null ? void 0 : ae.key) === "header")) == null ? void 0 : Ul.contents) == null ? void 0 : El.map((ae) => ae == null ? void 0 : ae.label);
|
|
1162
|
+
(Re = (he = B == null ? void 0 : B.find((ae) => (ae == null ? void 0 : ae.key) === "header")) == null ? void 0 : he.contents) != null && Re.every((ae) => Array.isArray(ae)) && (Tl = (ie = Pa((ye = (ll = B == null ? void 0 : B.find((ae) => (ae == null ? void 0 : ae.key) === "header")) == null ? void 0 : ll.contents) == null ? void 0 : ye[0])) == null ? void 0 : ie.map((ae) => ae == null ? void 0 : ae.prop));
|
|
1163
|
+
let dl = (Ue = (oe = B == null ? void 0 : B.find((ae) => (ae == null ? void 0 : ae.key) === "tableContents")) == null ? void 0 : oe.contents) == null ? void 0 : Ue.map((ae) => {
|
|
1164
|
+
if (Array.isArray(ae))
|
|
1165
|
+
ae = ae == null ? void 0 : ae.filter((L) => !(L != null && L.id));
|
|
1166
|
+
else {
|
|
1167
|
+
let L = {};
|
|
1168
|
+
for (let al in ae)
|
|
1169
|
+
al !== "id" && (L[al] = ae == null ? void 0 : ae[al]);
|
|
1170
|
+
ae = L;
|
|
1171
|
+
}
|
|
1172
|
+
return ae;
|
|
1173
|
+
});
|
|
1174
|
+
dl == null || dl.forEach((ae) => {
|
|
1175
|
+
Array.isArray(ae) ? C.push(To(ae, Tl)) : C.push(ae);
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1178
|
+
return C;
|
|
1179
|
+
}, Ni = async (D, P) => {
|
|
1180
|
+
var m;
|
|
1181
|
+
let S = D;
|
|
1182
|
+
Array.isArray(S) || (S = [S]);
|
|
1183
|
+
let C = (m = P == null ? void 0 : P.filter((n) => {
|
|
1184
|
+
var Q;
|
|
1185
|
+
return (n == null ? void 0 : n.methodContent) && ((Q = n == null ? void 0 : n.methodContent) == null ? void 0 : Q.includes("Manual"));
|
|
1186
|
+
})) == null ? void 0 : m.map((n) => ({
|
|
1187
|
+
prop: n == null ? void 0 : n.prop,
|
|
1188
|
+
label: n == null ? void 0 : n.label,
|
|
1189
|
+
methods: n == null ? void 0 : n.methodContent
|
|
1190
|
+
}));
|
|
1191
|
+
return S = S == null ? void 0 : S.map(async (n) => (n = await Oo(n, C, P, "Manual", S), n)), S = await Promise.all(S), S;
|
|
1192
|
+
}, Bi = "col-operate", Nr = (D) => `${Bi}-${D}`, Ri = (D, P) => {
|
|
1193
|
+
const S = /* @__PURE__ */ new Map();
|
|
1194
|
+
return D.forEach((C) => {
|
|
1195
|
+
const { prop: m } = C;
|
|
1196
|
+
S.set(m, C);
|
|
1197
|
+
}), P.forEach((C) => {
|
|
1198
|
+
const { prop: m } = C, n = S.get(m);
|
|
1199
|
+
return Mi(n, C);
|
|
1200
|
+
}), P;
|
|
1201
|
+
}, Mi = (D, P) => (D && (P.sortable = D == null ? void 0 : D.sortable, P.filterable = D == null ? void 0 : D.filterable, P.showSummary = D == null ? void 0 : D.showSummary, P.operable = D == null ? void 0 : D.operable, P.fixed = D == null ? void 0 : D.fixed), P), Ki = (D, P) => {
|
|
1202
|
+
const { sortable: S = !1, filterable: C = !1, showSummary: m = !1, operable: n = !1, fixed: Q = !1 } = P || {};
|
|
1203
|
+
return {
|
|
1204
|
+
prop: D,
|
|
1205
|
+
sortable: S,
|
|
1206
|
+
filterable: C,
|
|
1207
|
+
showSummary: m,
|
|
1208
|
+
operable: n,
|
|
1209
|
+
fixed: Q
|
|
1210
|
+
};
|
|
1211
|
+
}, Fi = async (D) => {
|
|
1212
|
+
var n, Q;
|
|
1213
|
+
if (!D)
|
|
1214
|
+
return;
|
|
1215
|
+
const P = Nr(D), S = await ya({
|
|
1216
|
+
key: {
|
|
1217
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
1218
|
+
uniqueKey: P
|
|
1219
|
+
}
|
|
1220
|
+
}), C = (n = S == null ? void 0 : S.data) == null ? void 0 : n.code, m = (Q = S == null ? void 0 : S.data) == null ? void 0 : Q.result;
|
|
1221
|
+
if (C == 200)
|
|
1222
|
+
return m == null ? void 0 : m[0];
|
|
1223
|
+
}, zi = async (D) => {
|
|
1224
|
+
var n, Q, fe, be;
|
|
1225
|
+
if (!D)
|
|
1226
|
+
return;
|
|
1227
|
+
const P = Nr(D), S = await ya({
|
|
1228
|
+
key: {
|
|
1229
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
1230
|
+
uniqueKey: P
|
|
1231
|
+
}
|
|
1232
|
+
}), C = (n = S == null ? void 0 : S.data) == null ? void 0 : n.code, m = (Q = S == null ? void 0 : S.data) == null ? void 0 : Q.result;
|
|
1233
|
+
return C == 200 ? (be = (fe = m == null ? void 0 : m[0]) == null ? void 0 : fe.value) == null ? void 0 : be.columns : [];
|
|
1234
|
+
}, Ji = async (D, P) => {
|
|
1235
|
+
if (!D || !P)
|
|
1236
|
+
return;
|
|
1237
|
+
const S = Nr(D);
|
|
1238
|
+
return await go({
|
|
1239
|
+
key: {
|
|
1240
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
1241
|
+
uniqueKey: S
|
|
1242
|
+
},
|
|
1243
|
+
value: {
|
|
1244
|
+
columns: P
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
}, Wi = async (D, P) => !D || !P ? void 0 : await Nn({
|
|
1248
|
+
id: D,
|
|
1249
|
+
value: {
|
|
1250
|
+
columns: P
|
|
1251
|
+
}
|
|
1252
|
+
}), jn = async (D, P) => {
|
|
1253
|
+
const S = sessionStorage.getItem("systemKey");
|
|
1254
|
+
if (!D || !P || !S)
|
|
1255
|
+
return;
|
|
1256
|
+
const C = await Fi(D);
|
|
1257
|
+
return C ? await Wi(C == null ? void 0 : C.id, P) : await Ji(D, P);
|
|
1258
|
+
}, qi = { class: "table-content" }, Gi = { class: "menu-config-wrap" }, Hi = ["onClick"], Xi = {
|
|
1259
|
+
key: 0,
|
|
1260
|
+
class: "viewport-wrap"
|
|
1261
|
+
}, Qi = ["onClick"], Yi = { title: "选择显示列信息" }, Zi = {
|
|
1262
|
+
class: "menu-config-wrap",
|
|
1263
|
+
style: { padding: "0 0 0 16px", "box-sizing": "border-box", "min-height": "200px", width: "400px", overflow: "auto", position: "relative" }
|
|
1264
|
+
}, Ii = ["title"], Vi = { class: "col-operate-wrap" }, eu = {
|
|
1265
|
+
key: 0,
|
|
1266
|
+
class: "col-operate-radio-wrapper"
|
|
1267
|
+
}, lu = {
|
|
1268
|
+
title: "拖拽排序列",
|
|
1269
|
+
style: { cursor: "move", color: "grey", position: "absolute", right: "15px" }
|
|
1270
|
+
}, au = {
|
|
1271
|
+
key: 0,
|
|
1272
|
+
style: { display: "flex", "justify-content": "center", "align-items": "center" }
|
|
1273
|
+
}, ru = { class: "pop-view" }, nu = { class: "pop-wrapper" }, su = { class: "file-list-pop" }, ou = ["title", "onClick"], iu = ["onClick"], uu = ["onClick"], cu = { class: "form-content" }, tu = {
|
|
1274
|
+
key: 0,
|
|
1275
|
+
class: "dialog-footer"
|
|
1276
|
+
}, du = { class: "dialog-footer" }, pu = { "element-loading-text": "正在识别中 请稍后" }, fu = { style: { display: "flex", "justify-content": "space-between", width: "100%", "align-items": "center" } }, hu = ["title"], yu = {
|
|
1277
|
+
class: "icon",
|
|
1278
|
+
style: { display: "flex", gap: "8px" }
|
|
1279
|
+
}, vu = { class: "dialog-footer" }, gu = { class: "ocr-preview-content" }, bu = { class: "ocr-preview-tip" }, ku = { class: "ocr-preview-table" }, mu = { style: { display: "flex", "align-items": "center", gap: "8px" } }, Su = { class: "dialog-footer" }, _u = { class: "form-content" }, Au = {
|
|
1280
|
+
__name: "index",
|
|
1281
|
+
props: {
|
|
1282
|
+
pageLayout: {
|
|
1283
|
+
type: String,
|
|
1284
|
+
default: "vertical"
|
|
1285
|
+
},
|
|
1286
|
+
level: {
|
|
1287
|
+
type: Number,
|
|
1288
|
+
default: 1
|
|
1289
|
+
},
|
|
1290
|
+
compName: {
|
|
1291
|
+
type: String,
|
|
1292
|
+
default: "",
|
|
1293
|
+
required: !1
|
|
1294
|
+
},
|
|
1295
|
+
compNames: {
|
|
1296
|
+
type: Array,
|
|
1297
|
+
default: () => [],
|
|
1298
|
+
required: !1
|
|
1299
|
+
},
|
|
1300
|
+
compItem: {
|
|
1301
|
+
type: Object,
|
|
1302
|
+
default: () => {
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
operatingForm: {
|
|
1306
|
+
type: Object,
|
|
1307
|
+
default: () => {
|
|
1308
|
+
}
|
|
1309
|
+
},
|
|
1310
|
+
cacheNewData: {
|
|
1311
|
+
type: Object,
|
|
1312
|
+
default: () => {
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
config: Object,
|
|
1316
|
+
parentTableId: {
|
|
1317
|
+
type: Number,
|
|
1318
|
+
default: 0
|
|
1319
|
+
},
|
|
1320
|
+
itemData: {
|
|
1321
|
+
type: Array,
|
|
1322
|
+
default: () => []
|
|
1323
|
+
},
|
|
1324
|
+
childItemData: {
|
|
1325
|
+
type: Array,
|
|
1326
|
+
default: () => []
|
|
1327
|
+
},
|
|
1328
|
+
index: Number,
|
|
1329
|
+
isDevMode: Boolean,
|
|
1330
|
+
changedContent: {
|
|
1331
|
+
type: Object,
|
|
1332
|
+
default: () => {
|
|
1333
|
+
}
|
|
1334
|
+
},
|
|
1335
|
+
showHeader: {
|
|
1336
|
+
type: Boolean,
|
|
1337
|
+
default: !0
|
|
1338
|
+
},
|
|
1339
|
+
allowSelect: {
|
|
1340
|
+
type: Boolean,
|
|
1341
|
+
default: !1
|
|
1342
|
+
},
|
|
1343
|
+
allowOperate: {
|
|
1344
|
+
type: Boolean,
|
|
1345
|
+
default: !0
|
|
1346
|
+
},
|
|
1347
|
+
allMapContents: {
|
|
1348
|
+
type: Object,
|
|
1349
|
+
default: () => {
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
emits: ["getSliceContLength", "clickMainKey", "change", "contentChange", "onButtonClick", "contentClick", "pageChange", "rowClick", "routeUrl"],
|
|
1354
|
+
setup(D, { emit: P }) {
|
|
1355
|
+
var cn;
|
|
1356
|
+
const S = G([]), C = $i(_a), m = G(null), n = D, Q = G(n == null ? void 0 : n.allowSelect), fe = G((cn = n == null ? void 0 : n.config) == null ? void 0 : cn.showIndex), be = G(), Oe = G(!0), el = G(!1), sl = {
|
|
1357
|
+
sortable: "switch",
|
|
1358
|
+
filterable: "switch",
|
|
1359
|
+
showSummary: "switch",
|
|
1360
|
+
operable: "switch",
|
|
1361
|
+
fixed: "radio"
|
|
1362
|
+
}, pl = G([
|
|
1363
|
+
{
|
|
1364
|
+
label: "排序",
|
|
1365
|
+
value: "sortable",
|
|
1366
|
+
checked: !1
|
|
1367
|
+
},
|
|
1368
|
+
// {
|
|
1369
|
+
// label: '筛选',
|
|
1370
|
+
// value: 'filterable',
|
|
1371
|
+
// checked: false
|
|
1372
|
+
// },
|
|
1373
|
+
{
|
|
1374
|
+
label: "合计",
|
|
1375
|
+
value: "showSummary",
|
|
1376
|
+
checked: !1
|
|
1377
|
+
},
|
|
1378
|
+
// {
|
|
1379
|
+
// label: '编辑',
|
|
1380
|
+
// value: 'operable',
|
|
1381
|
+
// checked: false
|
|
1382
|
+
// },
|
|
1383
|
+
{
|
|
1384
|
+
type: "radio",
|
|
1385
|
+
label: "固定",
|
|
1386
|
+
value: "fixed",
|
|
1387
|
+
checked: "",
|
|
1388
|
+
options: [
|
|
1389
|
+
{
|
|
1390
|
+
label: "无",
|
|
1391
|
+
value: !1
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
label: "左",
|
|
1395
|
+
value: "left"
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
label: "右",
|
|
1399
|
+
value: "right"
|
|
1400
|
+
}
|
|
1401
|
+
]
|
|
1402
|
+
}
|
|
1403
|
+
]), tl = xo(_a);
|
|
1404
|
+
let Ul = "$R";
|
|
1405
|
+
const { originalPath: El } = Ea(tl), he = El.value, Re = Ua(() => {
|
|
1406
|
+
var l;
|
|
1407
|
+
return (l = B.value) == null ? void 0 : l.every((a) => a == null ? void 0 : a.sortable);
|
|
1408
|
+
});
|
|
1409
|
+
Ua(() => {
|
|
1410
|
+
var l;
|
|
1411
|
+
return (l = B.value) == null ? void 0 : l.every((a) => a == null ? void 0 : a.filterable);
|
|
1412
|
+
}), Ua(() => {
|
|
1413
|
+
var l;
|
|
1414
|
+
return (l = B.value) == null ? void 0 : l.every((a) => a == null ? void 0 : a.operable);
|
|
1415
|
+
});
|
|
1416
|
+
const ll = G(!0), ye = G([]), ie = Za({
|
|
1417
|
+
column: {},
|
|
1418
|
+
status: !1,
|
|
1419
|
+
text: "合计"
|
|
1420
|
+
}), oe = Za({
|
|
1421
|
+
currentPage: 1,
|
|
1422
|
+
pageSize: 10,
|
|
1423
|
+
total: 0,
|
|
1424
|
+
pageSizes: [5, 10, 20, 50, 100]
|
|
1425
|
+
}), Ue = P, B = G([]), Tl = G([]), dl = G([]), ae = Za({ prop: "", order: null }), L = G([]), al = G(!1), ne = G(!1), we = G(null), { isUseBackdrop: ze, initTrackFileType: Dl, getFileExtension: Ql, setData: pr, getFileInfo: Br, getFilesInfo: Kn } = zo(), fr = G([]), ka = G(!1), Ca = G(), Ol = Wo(), { importLoading: Cu, activeMenuPath: We, contentLoading: Tu, linkMenuInfo: Fn } = Ea(Ol), zn = wo(_a), fl = qo(_a), { extraContents: Qe, cacheUpdatingData: Na, tableViewContents: Ba, tableLoading: Ou, pageMapState: Ta, lockingPage: lr } = Ea(fl), I = G([]), na = G([]), ql = G(/* @__PURE__ */ new Map());
|
|
1426
|
+
G(!1);
|
|
1427
|
+
const sa = G("");
|
|
1428
|
+
G();
|
|
1429
|
+
const ar = G(!0), Oa = G(0), Rr = G(!0), zl = G(""), oa = G(!1), Jn = G({
|
|
1430
|
+
label: "查看三维模型"
|
|
1431
|
+
}), rr = G(!1), hr = G(), Xl = G([]), ia = G([]), nr = G(!1), Ra = G([]), Rl = G([]), Ml = G([]), xe = G([]), sr = G(!1), va = G(!1), ua = G([]), Wn = G(null), or = G(!1), ir = G([]), Mr = G(""), yr = G(""), vr = G(!1), xa = G([]), gr = G([]), br = G([]), kr = G(null), da = G([]), Ma = Go(), qn = Ua(() => Ma.getConfig()), Yl = G(), $l = G(), Gn = fi(_a), Ka = G(), mr = G(0), Hn = Do(_a), { selectIndex: Xn, selectMenu: Fa, selectTitle: xu } = Ea(Hn), { selectString: ma } = Ea(Gn), Qn = bo(_a), { loginUserInfo: wa } = Ea(Qn), Yn = G(720), Zl = G(!1), ur = G(!1), Il = G([]), Vl = G(), za = G(!0), Kr = G(!0), Sa = G([]), Zn = to("contentRef");
|
|
1432
|
+
po("contentRef", Zn), Fl(() => {
|
|
1433
|
+
var e;
|
|
1434
|
+
return (e = I.value) == null ? void 0 : e.length;
|
|
1435
|
+
}, (e) => {
|
|
1436
|
+
oe.total = e;
|
|
1437
|
+
}), Fl(
|
|
1438
|
+
() => Ba.value,
|
|
1439
|
+
async () => {
|
|
1440
|
+
var u, c, o, p, g, x, k, w, $, N, M, _, K, Z, W, E, A, i;
|
|
1441
|
+
if (((u = Ba.value) == null ? void 0 : u.length) === 0 || !((c = n == null ? void 0 : n.itemData) != null && c.find((h) => (h == null ? void 0 : h.key) === "columnPath")) || !((o = n == null ? void 0 : n.itemData) != null && o.find((h) => (h == null ? void 0 : h.key) === "pageColumn"))) return;
|
|
1442
|
+
let e = ($ = (w = (k = (x = (g = (p = n == null ? void 0 : n.itemData) == null ? void 0 : p.find((h) => (h == null ? void 0 : h.key) === "pageColumn")) == null ? void 0 : g.contents) == null ? void 0 : x.split("[")) == null ? void 0 : k[1]) == null ? void 0 : w.split("]")) == null ? void 0 : $[0], l = ((K = (_ = (M = (N = n == null ? void 0 : n.itemData) == null ? void 0 : N.find((h) => (h == null ? void 0 : h.key) === "pageColumn")) == null ? void 0 : M.contents) == null ? void 0 : _.split("[")) == null ? void 0 : K[0]) + ((W = (Z = Ba.value) == null ? void 0 : Z.find((h) => (h == null ? void 0 : h.key) === e)) == null ? void 0 : W.value), a = ((A = (E = n == null ? void 0 : n.itemData) == null ? void 0 : E.find((h) => (h == null ? void 0 : h.key) === "pageGroup")) == null ? void 0 : A.contents) ?? "", r = await ja(l, sessionStorage.getItem("systemKey"), ""), s = (i = r == null ? void 0 : r.find((h) => (h == null ? void 0 : h.name) === (a === "" ? n == null ? void 0 : n.compName : a))) == null ? void 0 : i.compData;
|
|
1443
|
+
on(s, n.allMapContents);
|
|
1444
|
+
},
|
|
1445
|
+
{ deep: !0 }
|
|
1446
|
+
);
|
|
1447
|
+
const In = async (e, l) => {
|
|
1448
|
+
var a, r, s, u, c;
|
|
1449
|
+
try {
|
|
1450
|
+
const o = await ya({ id: (n == null ? void 0 : n.parentTableId) || (n == null ? void 0 : n.index) });
|
|
1451
|
+
let p;
|
|
1452
|
+
((a = o == null ? void 0 : o.data) == null ? void 0 : a.code) === 200 && (p = ((s = (r = o == null ? void 0 : o.data) == null ? void 0 : r.result) == null ? void 0 : s[0]) || null);
|
|
1453
|
+
const g = {
|
|
1454
|
+
type: "data",
|
|
1455
|
+
pageKey: n != null && n.parentTableId ? (u = p == null ? void 0 : p.key) == null ? void 0 : u.pageKey : We.value,
|
|
1456
|
+
tableId: (n == null ? void 0 : n.parentTableId) || (n == null ? void 0 : n.index),
|
|
1457
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
1458
|
+
}, x = l == null ? void 0 : l.map(($) => {
|
|
1459
|
+
const N = Object.keys($), M = {};
|
|
1460
|
+
return N.forEach((_, K) => {
|
|
1461
|
+
M[e[K]] = $[_];
|
|
1462
|
+
}), M;
|
|
1463
|
+
}), k = x == null ? void 0 : x.map(($) => ({
|
|
1464
|
+
key: g,
|
|
1465
|
+
value: {
|
|
1466
|
+
tableData: $
|
|
1467
|
+
}
|
|
1468
|
+
})), w = await An({ dataList: k });
|
|
1469
|
+
((c = w == null ? void 0 : w.data) == null ? void 0 : c.code) === 200 ? (fl.setRefreshCurStructure(!0), il.success("导入数据成功")) : il.error("导入数据响应失败");
|
|
1470
|
+
} catch (o) {
|
|
1471
|
+
throw il.error("导入数据处理失败"), new Error(o);
|
|
1472
|
+
}
|
|
1473
|
+
}, Vn = async (e) => {
|
|
1474
|
+
var u, c, o, p, g, x, k;
|
|
1475
|
+
let l = dl.value;
|
|
1476
|
+
l != null && l.find((w) => (e == null ? void 0 : e.key) === (w == null ? void 0 : w.key)) && (l = l == null ? void 0 : l.filter((w) => (e == null ? void 0 : e.key) !== (w == null ? void 0 : w.key))), l.push({
|
|
1477
|
+
key: e == null ? void 0 : e.key,
|
|
1478
|
+
value: [(c = e == null ? void 0 : e.value) == null ? void 0 : c[((u = e == null ? void 0 : e.value) == null ? void 0 : u.length) - 1]]
|
|
1479
|
+
});
|
|
1480
|
+
let a = xe.value;
|
|
1481
|
+
a = a == null ? void 0 : a.map((w) => {
|
|
1482
|
+
var $, N;
|
|
1483
|
+
return (w == null ? void 0 : w.type) === "Select" && (e == null ? void 0 : e.key) === (w == null ? void 0 : w.prop) && Array.isArray(w.value) && ($ = w.value) != null && $.every((M) => typeof M == "string") && (w.selectValue = (N = l == null ? void 0 : l.find((M) => (M == null ? void 0 : M.key) === (w == null ? void 0 : w.prop))) == null ? void 0 : N.value), w;
|
|
1484
|
+
});
|
|
1485
|
+
let r = (p = (o = a == null ? void 0 : a.find((w) => (w == null ? void 0 : w.prop) === (e == null ? void 0 : e.key))) == null ? void 0 : o.optionUrl) == null ? void 0 : p.menuId, s = a == null ? void 0 : a.find((w) => (w == null ? void 0 : w.prop) === (e == null ? void 0 : e.key));
|
|
1486
|
+
if (r) {
|
|
1487
|
+
let w = await Lr(s == null ? void 0 : s.optionUrl, r), $, N = ye.value, M = (k = (x = (g = xe.value) == null ? void 0 : g.find((_) => {
|
|
1488
|
+
var K;
|
|
1489
|
+
return (K = s == null ? void 0 : s.optionUrl) == null ? void 0 : K.menuId;
|
|
1490
|
+
})) == null ? void 0 : x.selectValue) == null ? void 0 : k[0];
|
|
1491
|
+
if (w == null || w.forEach((_) => {
|
|
1492
|
+
var K, Z, W, E, A, i, h, y, z, O;
|
|
1493
|
+
if (r) {
|
|
1494
|
+
let X = (Z = (K = xe.value) == null ? void 0 : K.find((j) => {
|
|
1495
|
+
var ve, J;
|
|
1496
|
+
return ((ve = s == null ? void 0 : s.optionUrl) == null ? void 0 : ve.menuId) === ((J = j == null ? void 0 : j.optionUrl) == null ? void 0 : J.menuId);
|
|
1497
|
+
})) == null ? void 0 : Z.prop, t = (E = (W = a == null ? void 0 : a.find((j) => (j == null ? void 0 : j.prop) === X)) == null ? void 0 : W.selectValue) == null ? void 0 : E[0];
|
|
1498
|
+
X != null && X.includes("·") && (X = (A = X == null ? void 0 : X.split("·")) == null ? void 0 : A[0], t = (z = (y = (h = e == null ? void 0 : e.value) == null ? void 0 : h[((i = e == null ? void 0 : e.value) == null ? void 0 : i.length) - 1]) == null ? void 0 : y.split(" ")) == null ? void 0 : z[0]), N != null && N.find((j) => (j == null ? void 0 : j.value) === M) ? $ = (O = N == null ? void 0 : N.find((j) => (j == null ? void 0 : j.value) === M)) == null ? void 0 : O.objectValue : _[X] === t && ($ = _);
|
|
1499
|
+
}
|
|
1500
|
+
}), $) {
|
|
1501
|
+
let _ = a;
|
|
1502
|
+
_ = _ == null ? void 0 : _.map((K) => {
|
|
1503
|
+
var Z, W, E, A, i, h;
|
|
1504
|
+
return r && ($ != null && $[K == null ? void 0 : K.prop]) && zl.value === "新增" && (K == null ? void 0 : K.prop) !== (s == null ? void 0 : s.prop) ? K.value = ($ == null ? void 0 : $[K == null ? void 0 : K.prop]) || ($ == null ? void 0 : $[(A = (E = (W = (Z = K == null ? void 0 : K.optionUrl) == null ? void 0 : Z.groupSelect) == null ? void 0 : W[1]) == null ? void 0 : E.replaceAll("[", "")) == null ? void 0 : A.replaceAll("]", "")]) : K.value = (h = (i = xe.value) == null ? void 0 : i.find((y) => (y == null ? void 0 : y.prop) === (K == null ? void 0 : K.prop))) == null ? void 0 : h.value, K;
|
|
1505
|
+
}), xe.value = _;
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
dl.value = l;
|
|
1509
|
+
}, es = async (e) => {
|
|
1510
|
+
var l, a, r, s, u;
|
|
1511
|
+
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")) {
|
|
1512
|
+
const c = await Aa.get(e, {
|
|
1513
|
+
responseType: "blob",
|
|
1514
|
+
// 必须设置
|
|
1515
|
+
headers: {
|
|
1516
|
+
"Content-Type": "application/json"
|
|
1517
|
+
}
|
|
1518
|
+
}), o = new Blob([c.data], {
|
|
1519
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
1520
|
+
});
|
|
1521
|
+
let p = URL.createObjectURL(o);
|
|
1522
|
+
Ca.value = [{
|
|
1523
|
+
name: (u = e == null ? void 0 : e.split("/")) == null ? void 0 : u[((s = e == null ? void 0 : e.split("/")) == null ? void 0 : s.length) - 1],
|
|
1524
|
+
blobUrl: p
|
|
1525
|
+
}], ka.value = !0;
|
|
1526
|
+
}
|
|
1527
|
+
};
|
|
1528
|
+
fo(() => {
|
|
1529
|
+
Kr.value = !1;
|
|
1530
|
+
let e = mr.value;
|
|
1531
|
+
mr.value = e + 1;
|
|
1532
|
+
});
|
|
1533
|
+
const Fr = Ua(() => {
|
|
1534
|
+
var r, s;
|
|
1535
|
+
const e = (oe.currentPage - 1) * oe.pageSize, l = e + oe.pageSize, a = (r = B.value) == null ? void 0 : r.find((u) => {
|
|
1536
|
+
var c;
|
|
1537
|
+
return (u == null ? void 0 : u.sortable) && ((c = u == null ? void 0 : u.label) == null ? void 0 : c.includes("时间"));
|
|
1538
|
+
});
|
|
1539
|
+
return a && (ae.order = "descending", ae.prop = a == null ? void 0 : a.prop), Ue("getSliceContLength", oe), (s = I.value) == null ? void 0 : s.slice(e, l);
|
|
1540
|
+
}), ls = (e) => {
|
|
1541
|
+
oe.currentPage = e, Ue("getSliceContLength", oe);
|
|
1542
|
+
}, as = (e) => {
|
|
1543
|
+
var l;
|
|
1544
|
+
oe.pageSize = e, e * oe.currentPage > ((l = I.value) == null ? void 0 : l.length) && (oe.currentPage = 1, oe.pageSize = 10, il.warning("分页无效,返回第一页")), Ue("getSliceContLength", oe);
|
|
1545
|
+
}, rs = (e, l) => {
|
|
1546
|
+
var c, o;
|
|
1547
|
+
const a = (o = (c = B.value) == null ? void 0 : c.map((p) => p == null ? void 0 : p.prop)) == null ? void 0 : o.filter((p) => p !== "operate");
|
|
1548
|
+
let r;
|
|
1549
|
+
const s = (e == null ? void 0 : e.length) === (a == null ? void 0 : a.length);
|
|
1550
|
+
if (e != null && e.includes("序号")) return il.error("导入的数据不需要包含序号列");
|
|
1551
|
+
if (r = s ? e : e.slice(0, a == null ? void 0 : a.length), !(r == null ? void 0 : r.every((p) => a == null ? void 0 : a.find((g) => p === g)))) return il.error("导入的数据表头不匹配");
|
|
1552
|
+
In(r, l);
|
|
1553
|
+
}, ns = (e, l) => {
|
|
1554
|
+
var a;
|
|
1555
|
+
fl.setRefreshCurStructure(!1), ((a = B.value) == null ? void 0 : a.length) === 0 || rs(e, l);
|
|
1556
|
+
}, ss = (e, l, a, r) => {
|
|
1557
|
+
const s = [], u = [], c = (g) => Object.keys(g).length;
|
|
1558
|
+
for (const g in e)
|
|
1559
|
+
if (e[g] !== void 0) {
|
|
1560
|
+
const x = e[g], k = [];
|
|
1561
|
+
for (const [w, $] of Object.entries(x))
|
|
1562
|
+
k.push($), u.length < c(x) && u.push(w);
|
|
1563
|
+
s.push(k);
|
|
1564
|
+
}
|
|
1565
|
+
s.unshift(u);
|
|
1566
|
+
const o = Va.aoa_to_sheet(s), p = Va.book_new();
|
|
1567
|
+
Va.book_append_sheet(p, o, r), Bo(p, `${l}.xlsx`), Il.value = [];
|
|
1568
|
+
}, zr = async (e, l, a, r = !1, s) => {
|
|
1569
|
+
var u, c, o, p, g, x, k, w;
|
|
1570
|
+
try {
|
|
1571
|
+
fl.setRefreshCurStructure(!1);
|
|
1572
|
+
const $ = await ya({
|
|
1573
|
+
id: n == null ? void 0 : n.index
|
|
1574
|
+
});
|
|
1575
|
+
if (((u = $ == null ? void 0 : $.data) == null ? void 0 : u.code) === 200) {
|
|
1576
|
+
let N = (g = (p = (o = (c = $ == null ? void 0 : $.data) == null ? void 0 : c.result) == null ? void 0 : o[0]) == null ? void 0 : p.value) == null ? void 0 : g.pageData;
|
|
1577
|
+
r ? N = {
|
|
1578
|
+
...N,
|
|
1579
|
+
compData: (k = N == null ? void 0 : N.compData) == null ? void 0 : k.map((_) => {
|
|
1580
|
+
var K;
|
|
1581
|
+
return (_ == null ? void 0 : _.key) === "header" ? {
|
|
1582
|
+
..._,
|
|
1583
|
+
contents: (K = _ == null ? void 0 : _.contents) == null ? void 0 : K.map((Z) => ({
|
|
1584
|
+
...Z,
|
|
1585
|
+
[e]: a
|
|
1586
|
+
}))
|
|
1587
|
+
} : _;
|
|
1588
|
+
})
|
|
1589
|
+
} : N = {
|
|
1590
|
+
...N,
|
|
1591
|
+
compData: (x = N == null ? void 0 : N.compData) == null ? void 0 : x.map((_) => {
|
|
1592
|
+
var K, Z;
|
|
1593
|
+
return (_ == null ? void 0 : _.key) === "header" ? {
|
|
1594
|
+
..._,
|
|
1595
|
+
contents: (K = _ == null ? void 0 : _.contents) == null ? void 0 : K.map((W) => {
|
|
1596
|
+
if (Array.isArray(W))
|
|
1597
|
+
W = W == null ? void 0 : W.map((E) => (E == null ? void 0 : E.prop) === (l == null ? void 0 : l.prop) ? {
|
|
1598
|
+
...E,
|
|
1599
|
+
[e]: a
|
|
1600
|
+
} : E);
|
|
1601
|
+
else if ((W == null ? void 0 : W.prop) === (l == null ? void 0 : l.prop))
|
|
1602
|
+
return {
|
|
1603
|
+
...W,
|
|
1604
|
+
[e]: a
|
|
1605
|
+
};
|
|
1606
|
+
return W;
|
|
1607
|
+
})
|
|
1608
|
+
} : (_ == null ? void 0 : _.key) === "tableToForm" && s ? {
|
|
1609
|
+
..._,
|
|
1610
|
+
contents: (Z = _ == null ? void 0 : _.contents) == null ? void 0 : Z.map((W) => (W == null ? void 0 : W.prop) === (l == null ? void 0 : l.prop) ? {
|
|
1611
|
+
...W,
|
|
1612
|
+
[s]: a
|
|
1613
|
+
} : W)
|
|
1614
|
+
} : _;
|
|
1615
|
+
})
|
|
1616
|
+
};
|
|
1617
|
+
const M = await Nn({
|
|
1618
|
+
id: n == null ? void 0 : n.index,
|
|
1619
|
+
value: {
|
|
1620
|
+
pageData: N
|
|
1621
|
+
}
|
|
1622
|
+
});
|
|
1623
|
+
((w = M == null ? void 0 : M.data) == null ? void 0 : w.code) === 200 ? (il.success("编辑成功"), fl.setRefreshCurStructure(!0)) : il.error("编辑响应失败");
|
|
1624
|
+
}
|
|
1625
|
+
} catch ($) {
|
|
1626
|
+
il.error($);
|
|
1627
|
+
}
|
|
1628
|
+
}, os = async (e, l) => {
|
|
1629
|
+
await zr("label", l, e);
|
|
1630
|
+
}, is = async (e, l) => {
|
|
1631
|
+
await zr("columnType", l, e, !1, "type");
|
|
1632
|
+
}, us = () => {
|
|
1633
|
+
Na.value ? Zl.value = !1 : un();
|
|
1634
|
+
}, cs = (e) => {
|
|
1635
|
+
Il.value = e;
|
|
1636
|
+
}, ts = (e, l) => {
|
|
1637
|
+
Vl.value === l ? za.value = !1 : za.value = !0, Vl.value = l == null ? void 0 : l.changeProp;
|
|
1638
|
+
}, ds = (e) => {
|
|
1639
|
+
if (!e)
|
|
1640
|
+
return;
|
|
1641
|
+
const { item: l, value: a } = e, r = xe.value.find((s) => s.prop == l.prop);
|
|
1642
|
+
r && r.contents.push({
|
|
1643
|
+
label: a,
|
|
1644
|
+
value: a
|
|
1645
|
+
});
|
|
1646
|
+
}, Ja = Ua(() => {
|
|
1647
|
+
var a, r, s;
|
|
1648
|
+
const e = (a = B.value) == null ? void 0 : a.some((u) => u == null ? void 0 : u.filterable);
|
|
1649
|
+
return document.documentElement.style.setProperty("--ssTable-header-filter-display", e ? "inline-block" : "none"), (s = (r = B.value) == null ? void 0 : r.filter((u) => (u == null ? void 0 : u.label) !== "操作")) == null ? void 0 : s.map((u) => ({
|
|
1650
|
+
...u,
|
|
1651
|
+
filterable: !!(u != null && u.filterable),
|
|
1652
|
+
showSummary: !!(u != null && u.showSummary),
|
|
1653
|
+
operable: !!(u != null && u.operable),
|
|
1654
|
+
fixed: u == null ? void 0 : u.fixed
|
|
1655
|
+
}));
|
|
1656
|
+
}), Jr = async (e, l, a) => {
|
|
1657
|
+
const r = re(B.value);
|
|
1658
|
+
await Ia();
|
|
1659
|
+
const s = r == null ? void 0 : r.map((c) => (a == null ? void 0 : a.label) === (c == null ? void 0 : c.label) ? {
|
|
1660
|
+
...c,
|
|
1661
|
+
[l]: e
|
|
1662
|
+
} : c), u = Sr(s);
|
|
1663
|
+
await jn(n.index, u), B.value = s, Tl.value = u;
|
|
1664
|
+
}, Sr = (e) => (e || []).map((r) => {
|
|
1665
|
+
const { prop: s } = r;
|
|
1666
|
+
return Ki(s, r);
|
|
1667
|
+
}), ps = async (e) => {
|
|
1668
|
+
let l = await zi(n.index);
|
|
1669
|
+
l || (l = Sr(e)), Tl.value = l;
|
|
1670
|
+
}, fs = async (e, l) => {
|
|
1671
|
+
const a = re(B.value), r = a == null ? void 0 : a.map((u) => ({
|
|
1672
|
+
...u,
|
|
1673
|
+
[l]: e
|
|
1674
|
+
})), s = Sr(r);
|
|
1675
|
+
await jn(n.index, s), B.value = r, Tl.value = s;
|
|
1676
|
+
}, hs = () => {
|
|
1677
|
+
oa.value = !1;
|
|
1678
|
+
}, ys = (e) => {
|
|
1679
|
+
Ue("clickTrigger", e);
|
|
1680
|
+
}, Wr = async (e) => {
|
|
1681
|
+
var u, c, o, p, g, x, k, w, $, N, M, _, K, Z, W;
|
|
1682
|
+
const l = e == null ? void 0 : e.row, a = e == null ? void 0 : e.rowData, r = e == null ? void 0 : e.suffix;
|
|
1683
|
+
if ((u = l == null ? void 0 : l.toString()) != null && u.includes(".urdf") || e != null && e.isUrdf || r != null && r.includes(".urdf")) {
|
|
1684
|
+
if (l.includes(",")) {
|
|
1685
|
+
il.error("当前版本仅允许单个urdf预览!");
|
|
1686
|
+
return;
|
|
1687
|
+
}
|
|
1688
|
+
if (ze(l)) {
|
|
1689
|
+
const A = {
|
|
1690
|
+
files: [Br(l)],
|
|
1691
|
+
data: {}
|
|
1692
|
+
};
|
|
1693
|
+
pr(A);
|
|
1694
|
+
return;
|
|
1695
|
+
}
|
|
1696
|
+
Ra.value = [{
|
|
1697
|
+
url: l,
|
|
1698
|
+
extension: Ql(l)
|
|
1699
|
+
}], ne.value = !0, we.value = {
|
|
1700
|
+
data: re(a)
|
|
1701
|
+
}, al.value = !0;
|
|
1702
|
+
return;
|
|
1703
|
+
}
|
|
1704
|
+
let s = [];
|
|
1705
|
+
if ((c = l == null ? void 0 : l.toString()) != null && c.includes(".stl") || (o = l == null ? void 0 : l.toString()) != null && o.includes(".STL") || (p = l == null ? void 0 : l.toString()) != null && p.includes(".obj") || (g = l == null ? void 0 : l.toString()) != null && g.includes(".mtl")) {
|
|
1706
|
+
const E = (x = l == null ? void 0 : l.toString()) == null ? void 0 : x.split(","), A = Kn(E), i = A == null ? void 0 : A[0];
|
|
1707
|
+
if (ze(i == null ? void 0 : i.extension)) {
|
|
1708
|
+
pr({
|
|
1709
|
+
files: A,
|
|
1710
|
+
data: {}
|
|
1711
|
+
});
|
|
1712
|
+
return;
|
|
1713
|
+
}
|
|
1714
|
+
Ra.value = A, ne.value = !1, al.value = !0;
|
|
1715
|
+
return;
|
|
1716
|
+
}
|
|
1717
|
+
if ((k = l == null ? void 0 : l.toString()) != null && k.includes(".stl") || (w = l == null ? void 0 : l.toString()) != null && w.includes(".STL") || ($ = l == null ? void 0 : l.toString()) != null && $.includes(".obj") || (N = l == null ? void 0 : l.toString()) != null && N.includes(".mtl") || r != null && r.includes(".stl") || r != null && r.includes(".STL") || r != null && r.includes(".obj") || r != null && r.includes(".mtl")) {
|
|
1718
|
+
let E, A = [], i = {};
|
|
1719
|
+
if (Array.isArray(l) ? E = l : E = l == null ? void 0 : l.split(","), E == null || E.forEach((h) => {
|
|
1720
|
+
h.includes(".mtl") ? A.push(h) : i.blob = i.blob ? i.blob + "," + h : h;
|
|
1721
|
+
}), (A == null ? void 0 : A.length) > 0 && (i.mtlBlobs = A), r && (i.suffix = r), (_ = (M = Object.values(i)) == null ? void 0 : M[0]) != null && _.includes("http:"))
|
|
1722
|
+
s.push(i);
|
|
1723
|
+
else {
|
|
1724
|
+
const h = new Blob([i.blob], {
|
|
1725
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
1726
|
+
});
|
|
1727
|
+
let y = URL.createObjectURL(h), z = "";
|
|
1728
|
+
(K = l == null ? void 0 : l.split("/")) == null || K.forEach((O, X) => {
|
|
1729
|
+
var t;
|
|
1730
|
+
X === ((t = l == null ? void 0 : l.split("/")) == null ? void 0 : t.length) - 1 && (z = O);
|
|
1731
|
+
}), (Z = i.blob) != null && Z.includes(".stl") && (z = (z == null ? void 0 : z.replaceAll(">", "")) + ".urdf"), Ca.value = [{
|
|
1732
|
+
name: z,
|
|
1733
|
+
blobUrl: y
|
|
1734
|
+
}], ka.value = !0;
|
|
1735
|
+
}
|
|
1736
|
+
} else {
|
|
1737
|
+
const E = await Aa.get(l, {
|
|
1738
|
+
responseType: "blob",
|
|
1739
|
+
headers: {
|
|
1740
|
+
"Content-Type": "application/json"
|
|
1741
|
+
}
|
|
1742
|
+
}), A = new Blob([E.data], {
|
|
1743
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
1744
|
+
});
|
|
1745
|
+
let i = URL.createObjectURL(A), h = "";
|
|
1746
|
+
if ((W = l == null ? void 0 : l.split("/")) == null || W.forEach((y, z) => {
|
|
1747
|
+
var O;
|
|
1748
|
+
z === ((O = l == null ? void 0 : l.split("/")) == null ? void 0 : O.length) - 1 && (h = y);
|
|
1749
|
+
}), ze(h)) {
|
|
1750
|
+
const y = Dl(h), z = Br(l);
|
|
1751
|
+
pr({
|
|
1752
|
+
files: [z],
|
|
1753
|
+
data: {
|
|
1754
|
+
trackFileType: y
|
|
1755
|
+
}
|
|
1756
|
+
});
|
|
1757
|
+
return;
|
|
1758
|
+
}
|
|
1759
|
+
Ca.value = [{
|
|
1760
|
+
name: h,
|
|
1761
|
+
blobUrl: i
|
|
1762
|
+
}], ka.value = !0;
|
|
1763
|
+
}
|
|
1764
|
+
(s == null ? void 0 : s.length) > 0 && C.setBlobUrls(s);
|
|
1765
|
+
}, Wa = (e) => {
|
|
1766
|
+
var r, s, u, c;
|
|
1767
|
+
if (e != null && e.downloadUrl)
|
|
1768
|
+
return e == null ? void 0 : e.name;
|
|
1769
|
+
const l = (c = (r = e == null ? void 0 : e.url) == null ? void 0 : r.split(".")) == null ? void 0 : c[((u = (s = e == null ? void 0 : e.url) == null ? void 0 : s.split(".")) == null ? void 0 : u.length) - 1];
|
|
1770
|
+
return (e == null ? void 0 : e.name) + "." + l;
|
|
1771
|
+
}, _r = (e) => {
|
|
1772
|
+
if (!e) return "未知文件";
|
|
1773
|
+
try {
|
|
1774
|
+
const r = Wa(e);
|
|
1775
|
+
if (typeof r == "string" && r.includes(".")) return r;
|
|
1776
|
+
} catch {
|
|
1777
|
+
}
|
|
1778
|
+
const l = (e == null ? void 0 : e.fileName) || (e == null ? void 0 : e.name) || "未知文件", a = (e == null ? void 0 : e.suffix) || "";
|
|
1779
|
+
return l.includes(".") ? l : `${l}${a}`;
|
|
1780
|
+
}, qr = (e) => {
|
|
1781
|
+
if (e == null || typeof e == "number" || typeof e != "string") return e;
|
|
1782
|
+
const l = e.match(/^(\d+)\_(\d+)$/);
|
|
1783
|
+
if (!l) return e;
|
|
1784
|
+
const a = Number(l[1]), r = Number(l[2]);
|
|
1785
|
+
return !Number.isFinite(a) || !Number.isFinite(r) ? e : String(a * 1e3 + r);
|
|
1786
|
+
}, Gr = async (e) => {
|
|
1787
|
+
let l = null, a = null;
|
|
1788
|
+
if (e != null && e.id) {
|
|
1789
|
+
const s = Ur.service({
|
|
1790
|
+
lock: !0,
|
|
1791
|
+
text: "Loading",
|
|
1792
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
1793
|
+
});
|
|
1794
|
+
try {
|
|
1795
|
+
const u = await La(e);
|
|
1796
|
+
l = URL.createObjectURL(u.data), a = _r(e);
|
|
1797
|
+
} finally {
|
|
1798
|
+
s.close();
|
|
1799
|
+
}
|
|
1800
|
+
} else if (e != null && e.downloadUrl) {
|
|
1801
|
+
const s = await Ar(), u = Ur.service({
|
|
1802
|
+
lock: !0,
|
|
1803
|
+
text: "Loading",
|
|
1804
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
1805
|
+
}), c = await Aa.post(e == null ? void 0 : e.url, null, {
|
|
1806
|
+
responseType: "blob",
|
|
1807
|
+
// 必须设置
|
|
1808
|
+
headers: {
|
|
1809
|
+
Authorization: s,
|
|
1810
|
+
baseURL: "http://139.196.154.85:20025",
|
|
1811
|
+
"Content-Type": "application/json"
|
|
1812
|
+
}
|
|
1813
|
+
}).finally(() => {
|
|
1814
|
+
u.close();
|
|
1815
|
+
}), o = new Blob([c.data], {
|
|
1816
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
1817
|
+
});
|
|
1818
|
+
l = URL.createObjectURL(o), a = e == null ? void 0 : e.name;
|
|
1819
|
+
} else {
|
|
1820
|
+
const s = await La({
|
|
1821
|
+
url: e == null ? void 0 : e.url
|
|
1822
|
+
});
|
|
1823
|
+
!e.url.toUpperCase().includes(".OBJ") && !e.url.toUpperCase().includes(".STL") && !e.url.toUpperCase().includes(".MTL") && !e.url.toUpperCase().includes(".URDF") ? (l = URL.createObjectURL(s.data), a = Wa(e)) : l = e == null ? void 0 : e.url;
|
|
1824
|
+
}
|
|
1825
|
+
if (ze(l)) {
|
|
1826
|
+
const s = {
|
|
1827
|
+
row: `${l}`,
|
|
1828
|
+
suffix: Ql(a)
|
|
1829
|
+
};
|
|
1830
|
+
Wr(s);
|
|
1831
|
+
return;
|
|
1832
|
+
}
|
|
1833
|
+
const r = {
|
|
1834
|
+
name: a,
|
|
1835
|
+
blobUrl: l
|
|
1836
|
+
};
|
|
1837
|
+
Ca.value = [r], ka.value = !0;
|
|
1838
|
+
}, vs = async (e) => {
|
|
1839
|
+
let l = null, a = null;
|
|
1840
|
+
if (e != null && e.id) {
|
|
1841
|
+
const u = await La(e);
|
|
1842
|
+
l = URL.createObjectURL(u.data), a = _r(e);
|
|
1843
|
+
} else if (e != null && e.downloadUrl) {
|
|
1844
|
+
const u = await Ar(), c = await Aa.post(e == null ? void 0 : e.url, null, {
|
|
1845
|
+
responseType: "blob",
|
|
1846
|
+
// 必须设置
|
|
1847
|
+
headers: {
|
|
1848
|
+
Authorization: u,
|
|
1849
|
+
baseURL: "http://139.196.154.85:20025",
|
|
1850
|
+
"Content-Type": "application/json"
|
|
1851
|
+
}
|
|
1852
|
+
}), o = new Blob([c.data], {
|
|
1853
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
1854
|
+
});
|
|
1855
|
+
l = URL.createObjectURL(o), a = e == null ? void 0 : e.name;
|
|
1856
|
+
} else {
|
|
1857
|
+
const u = await La({
|
|
1858
|
+
url: e == null ? void 0 : e.url
|
|
1859
|
+
});
|
|
1860
|
+
l = URL.createObjectURL(u.data), a = Wa(e);
|
|
1861
|
+
}
|
|
1862
|
+
const r = {
|
|
1863
|
+
name: a,
|
|
1864
|
+
blobUrl: l
|
|
1865
|
+
}, s = document.createElement("a");
|
|
1866
|
+
s.href = r.blobUrl, s.download = r.name, s.style.display = "none", document.body.appendChild(s), s.click(), setTimeout(() => {
|
|
1867
|
+
document.body.removeChild(s);
|
|
1868
|
+
}, 100);
|
|
1869
|
+
}, gs = (e, l) => {
|
|
1870
|
+
var r;
|
|
1871
|
+
if (Object.values(l).length === 0) return;
|
|
1872
|
+
let a = e;
|
|
1873
|
+
return Object.values(l).find((s) => {
|
|
1874
|
+
var u, c, o;
|
|
1875
|
+
return ((u = s == null ? void 0 : s.toString()) == null ? void 0 : u.includes(".txt")) || ((c = s == null ? void 0 : s.toString()) == null ? void 0 : c.includes(".cpt")) || ((o = s == null ? void 0 : s.toString()) == null ? void 0 : o.includes(".obj"));
|
|
1876
|
+
}) ? a = [...e, Jn.value] : (r = n == null ? void 0 : n.config) != null && r.allowMove && (a = [...e, { label: "迁移" }]), a;
|
|
1877
|
+
}, bs = (e, l = {}) => [...e == null ? void 0 : e.values()].filter((a) => Object.keys(l).every((r) => {
|
|
1878
|
+
var c;
|
|
1879
|
+
const s = a[r], u = (c = l[r]) == null ? void 0 : c.toLowerCase();
|
|
1880
|
+
return u && s && typeof s == "string" ? s.toLowerCase().includes(u) : !0;
|
|
1881
|
+
})), ks = () => {
|
|
1882
|
+
el.value = !0;
|
|
1883
|
+
}, Hr = G([]), ms = async (e, l, a = !1) => {
|
|
1884
|
+
var r;
|
|
1885
|
+
if (e) {
|
|
1886
|
+
if (fl.setTableLoading(!0), Hr.value = Object.values(e), e && ((r = Object.values(e)) != null && r.every((s) => !s)))
|
|
1887
|
+
return I.value = na.value;
|
|
1888
|
+
if (a) {
|
|
1889
|
+
I.value = [...ql.value.values()].filter((s) => Object.values(s).some((u) => typeof u == "string" ? u == null ? void 0 : u.toLowerCase().includes(l == null ? void 0 : l.toLowerCase()) : !1));
|
|
1890
|
+
return;
|
|
1891
|
+
}
|
|
1892
|
+
I.value = bs(ql.value, e), fl.setTableLoading(!1);
|
|
1893
|
+
}
|
|
1894
|
+
}, Ss = async (e) => {
|
|
1895
|
+
}, Xr = async (e, l, a, r) => {
|
|
1896
|
+
var s, u, c, o, p, g, x, k, w, $, N, M, _, K, Z, W, E, A, i, h;
|
|
1897
|
+
if (Ue("clickMainKey", a), (r == null ? void 0 : r.isExistChild) === !0) {
|
|
1898
|
+
let y = (s = r == null ? void 0 : r.columnType) == null ? void 0 : s.prop, z = r == null ? void 0 : r.data;
|
|
1899
|
+
if (Sa.value = await ja(We.value, sessionStorage.getItem("systemKey"), ""), !Sa.value) {
|
|
1900
|
+
let X = (o = (c = (u = We.value) == null ? void 0 : u.split("/")) == null ? void 0 : c.filter((t, j) => {
|
|
1901
|
+
var ve, J;
|
|
1902
|
+
return j !== ((J = (ve = We.value) == null ? void 0 : ve.split("/")) == null ? void 0 : J.length) - 1;
|
|
1903
|
+
})) == null ? void 0 : o.join("/");
|
|
1904
|
+
Sa.value = await ja(X, sessionStorage.getItem("systemKey"), "");
|
|
1905
|
+
}
|
|
1906
|
+
let O = (p = Sa.value) == null ? void 0 : p.filter((X) => (X == null ? void 0 : X.name) === y);
|
|
1907
|
+
Sa.value = O == null ? void 0 : O.map((X) => {
|
|
1908
|
+
var t;
|
|
1909
|
+
return X.compData = (t = X.compData) == null ? void 0 : t.map((j) => {
|
|
1910
|
+
var ve, J;
|
|
1911
|
+
return (j == null ? void 0 : j.key) === "tableContents" && (ve = j == null ? void 0 : j.contents) != null && ve.every((T) => T == null ? void 0 : T.find((R) => R == null ? void 0 : R.id)) && (j.contents = (J = j == null ? void 0 : j.contents) == null ? void 0 : J.filter((T) => (T == null ? void 0 : T[1]) === z)), j;
|
|
1912
|
+
}), X;
|
|
1913
|
+
}), Ue("routeUrl", Sa.value, {
|
|
1914
|
+
isEdit: !0,
|
|
1915
|
+
routerUrl: We.value
|
|
1916
|
+
});
|
|
1917
|
+
return;
|
|
1918
|
+
}
|
|
1919
|
+
if ((r == null ? void 0 : r.data) === "查看" && (e != null && e.every((y) => (y == null ? void 0 : y.url) && (y == null ? void 0 : y.name)))) {
|
|
1920
|
+
let y = re(e);
|
|
1921
|
+
y = await ((g = re(y)) == null ? void 0 : g.map(async (O) => {
|
|
1922
|
+
var j, ve, J, T;
|
|
1923
|
+
const X = await La({
|
|
1924
|
+
url: O == null ? void 0 : O.url
|
|
1925
|
+
});
|
|
1926
|
+
let t = URL.createObjectURL(X.data);
|
|
1927
|
+
return {
|
|
1928
|
+
name: (O == null ? void 0 : O.name) + "." + ((T = (j = O == null ? void 0 : O.url) == null ? void 0 : j.split(".")) == null ? void 0 : T[((J = (ve = O == null ? void 0 : O.url) == null ? void 0 : ve.split(".")) == null ? void 0 : J.length) - 1]),
|
|
1929
|
+
blobUrl: t
|
|
1930
|
+
};
|
|
1931
|
+
}));
|
|
1932
|
+
let z = await Promise.all(y);
|
|
1933
|
+
Ca.value = z, ka.value = !0;
|
|
1934
|
+
}
|
|
1935
|
+
if (re(B.value), (r == null ? void 0 : r.isMainKey) === !0) {
|
|
1936
|
+
Ol.setActiveMenuPath(void 0), fl.setRouteToChildPath(void 0), fl.setFixMenuStatus(!0);
|
|
1937
|
+
let y = (k = (x = n.itemData) == null ? void 0 : x.find((O) => (O == null ? void 0 : O.key) === "contentTableId")) == null ? void 0 : k.contents, z = ($ = (w = n.itemData) == null ? void 0 : w.find((O) => (O == null ? void 0 : O.key) === "relatedFilter")) == null ? void 0 : $.index;
|
|
1938
|
+
if (z !== 0) {
|
|
1939
|
+
let O = (M = (N = B.value) == null ? void 0 : N[z]) == null ? void 0 : M.prop;
|
|
1940
|
+
if ((a == null ? void 0 : a[O]) === (r == null ? void 0 : r.data)) {
|
|
1941
|
+
let X = await ya({
|
|
1942
|
+
id: y
|
|
1943
|
+
}), t = (W = (Z = (K = (_ = X == null ? void 0 : X.data) == null ? void 0 : _.result) == null ? void 0 : K[0]) == null ? void 0 : Z.key) == null ? void 0 : W.pageKey;
|
|
1944
|
+
Ol.setActiveMenuPath(t + "/" + (r == null ? void 0 : r.data));
|
|
1945
|
+
} else {
|
|
1946
|
+
let X = await ya({
|
|
1947
|
+
key: {
|
|
1948
|
+
pageKey: re(We).value + "/" + (r == null ? void 0 : r.data),
|
|
1949
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
1950
|
+
}
|
|
1951
|
+
});
|
|
1952
|
+
((A = (E = X == null ? void 0 : X.data) == null ? void 0 : E.result) == null ? void 0 : A.length) > 0 && Ol.setActiveMenuPath(re(We).value + "/" + (r == null ? void 0 : r.data));
|
|
1953
|
+
}
|
|
1954
|
+
} else {
|
|
1955
|
+
let O = await ya({
|
|
1956
|
+
key: {
|
|
1957
|
+
pageKey: re(We).value + "/" + (r == null ? void 0 : r.data),
|
|
1958
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
1959
|
+
}
|
|
1960
|
+
});
|
|
1961
|
+
((h = (i = O == null ? void 0 : O.data) == null ? void 0 : i.result) == null ? void 0 : h.length) > 0 && Ol.setActiveMenuPath(re(We).value + "/" + (r == null ? void 0 : r.data));
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
}, _s = () => {
|
|
1965
|
+
ka.value = !1;
|
|
1966
|
+
}, As = (e) => {
|
|
1967
|
+
Ue("rowClick", e);
|
|
1968
|
+
};
|
|
1969
|
+
Fl(
|
|
1970
|
+
() => n.changedContent,
|
|
1971
|
+
() => {
|
|
1972
|
+
var a, r;
|
|
1973
|
+
if (!n.changedContent) return;
|
|
1974
|
+
let e = (a = I.value) == null ? void 0 : a.map((s) => {
|
|
1975
|
+
var u;
|
|
1976
|
+
return s.id === ((u = n.changedContent) == null ? void 0 : u.id) && (s = {
|
|
1977
|
+
...n.changedContent,
|
|
1978
|
+
id: n.changedContent.newId ? n.changedContent.newId : n.changedContent.id
|
|
1979
|
+
}, delete s.newId), s;
|
|
1980
|
+
});
|
|
1981
|
+
const l = (r = n.itemData) == null ? void 0 : r.map((s) => ((s == null ? void 0 : s.key) === "tableContents" && (s.contents = e), s));
|
|
1982
|
+
I.value = e, Ue("contentChange", {
|
|
1983
|
+
contents: l,
|
|
1984
|
+
index: n.index
|
|
1985
|
+
}), Ue("change", {
|
|
1986
|
+
content: e,
|
|
1987
|
+
index: n == null ? void 0 : n.index,
|
|
1988
|
+
buttonName: "",
|
|
1989
|
+
id: n == null ? void 0 : n.index
|
|
1990
|
+
});
|
|
1991
|
+
},
|
|
1992
|
+
{ deep: !0, immediate: !0 }
|
|
1993
|
+
);
|
|
1994
|
+
const Cs = () => {
|
|
1995
|
+
}, Ts = async () => {
|
|
1996
|
+
const e = We.value, l = sessionStorage.getItem("systemKey"), a = await ja(e, l, ""), r = (a == null ? void 0 : a.find((o) => (o == null ? void 0 : o.name) === "方法明细")) || (a == null ? void 0 : a[0]), s = (r == null ? void 0 : r.compData) || [], u = s == null ? void 0 : s.find((o) => {
|
|
1997
|
+
const p = o == null ? void 0 : o.key;
|
|
1998
|
+
return p === "formContent" || p === "tableContents";
|
|
1999
|
+
});
|
|
2000
|
+
return u == null ? void 0 : u.contents;
|
|
2001
|
+
}, Ar = async () => `Bearer ${_o.get("access-token")}`, Os = async (e, { token: l, inputData: a } = {}) => await Aa.post(e, a, {
|
|
2002
|
+
headers: {
|
|
2003
|
+
Authorization: l
|
|
2004
|
+
}
|
|
2005
|
+
}).catch((s) => (Ol.setImportLoading(!1), Promise.reject(s))), xs = (e) => {
|
|
2006
|
+
var r;
|
|
2007
|
+
let l = {};
|
|
2008
|
+
const a = [];
|
|
2009
|
+
return l.form = {}, (r = re(e)) == null || r.forEach((s, u) => {
|
|
2010
|
+
var c, o, p, g, x, k, w, $, N, M, _, K, Z, W;
|
|
2011
|
+
if ((s == null ? void 0 : s.comp) === "Table") {
|
|
2012
|
+
(o = (c = s == null ? void 0 : s.compData) == null ? void 0 : c.find((h) => (h == null ? void 0 : h.key) === "header")) == null || o.contents;
|
|
2013
|
+
let E = (x = (g = (p = s == null ? void 0 : s.compData) == null ? void 0 : p.find((h) => (h == null ? void 0 : h.key) === "tableContents")) == null ? void 0 : g.contents) == null ? void 0 : x.map((h) => h.slice(1));
|
|
2014
|
+
(M = (N = ($ = (w = (k = s == null ? void 0 : s.compData) == null ? void 0 : k.find((h) => (h == null ? void 0 : h.key) === "header")) == null ? void 0 : w.contents) == null ? void 0 : $[0]) == null ? void 0 : N[0]) == null || M.label;
|
|
2015
|
+
let A = (K = (_ = s == null ? void 0 : s.compData) == null ? void 0 : _.find((h) => (h == null ? void 0 : h.key) === "header")) == null ? void 0 : K.contents, i = [];
|
|
2016
|
+
E == null || E.forEach((h) => {
|
|
2017
|
+
let y = [];
|
|
2018
|
+
h == null || h.forEach((z, O) => {
|
|
2019
|
+
var t;
|
|
2020
|
+
let X = {};
|
|
2021
|
+
((t = A[O]) == null ? void 0 : t.label) !== "操作" && (X[A[O].label] = z, y.push(X));
|
|
2022
|
+
}), i.push(y);
|
|
2023
|
+
}), l[s.name] = i;
|
|
2024
|
+
} else {
|
|
2025
|
+
const E = (W = (Z = s.compData) == null ? void 0 : Z.find((A) => (A == null ? void 0 : A.key) === "formContent")) == null ? void 0 : W.contents;
|
|
2026
|
+
E == null || E.forEach((A) => {
|
|
2027
|
+
var i, h;
|
|
2028
|
+
if (A.prop !== "") {
|
|
2029
|
+
let y = A == null ? void 0 : A.value;
|
|
2030
|
+
Array.isArray(y) ? y = ((i = y == null ? void 0 : y[0]) == null ? void 0 : i.oldUrl) || "http://222.92.178.198:62001/" + ((h = y == null ? void 0 : y[0]) == null ? void 0 : h.url) : y = y.toString(), A = {
|
|
2031
|
+
key: (A == null ? void 0 : A.prop) ?? (A == null ? void 0 : A.label),
|
|
2032
|
+
value: y
|
|
2033
|
+
}, a.push(A);
|
|
2034
|
+
}
|
|
2035
|
+
});
|
|
2036
|
+
}
|
|
2037
|
+
}), l.form = Mo(a), l;
|
|
2038
|
+
}, ws = (e) => {
|
|
2039
|
+
const l = [], a = (r) => {
|
|
2040
|
+
r && typeof r == "object" && !Array.isArray(r) ? Object.values(r).forEach(a) : l.push(r);
|
|
2041
|
+
};
|
|
2042
|
+
return a(e), l;
|
|
2043
|
+
}, Ds = async (e, l, a) => {
|
|
2044
|
+
var A, i, h, y, z, O, X, t, j, ve, J;
|
|
2045
|
+
Ol.setImportLoading(!0), fl.setFreshContent(!1);
|
|
2046
|
+
let r = await Ts().catch((T) => (Ol.setImportLoading(!1), Promise.reject(T)));
|
|
2047
|
+
r = r == null ? void 0 : r.filter((T) => {
|
|
2048
|
+
var R;
|
|
2049
|
+
return ((R = T == null ? void 0 : T.find((ce) => ce == null ? void 0 : ce.id)) == null ? void 0 : R.id) === (l == null ? void 0 : l.id);
|
|
2050
|
+
});
|
|
2051
|
+
let s = xn([(A = B.value) == null ? void 0 : A.filter((T) => (T == null ? void 0 : T.label) !== "操作")]);
|
|
2052
|
+
const u = (h = (i = Po(r, s)) == null ? void 0 : i[0]) == null ? void 0 : h.find((T) => {
|
|
2053
|
+
const R = T == null ? void 0 : T.key;
|
|
2054
|
+
return R === "Interface" || R === "方法体";
|
|
2055
|
+
}), c = u == null ? void 0 : u.value;
|
|
2056
|
+
if (!c) {
|
|
2057
|
+
console.log("未搜索到isMain, 缺少算法执行接口"), Ol.setImportLoading(!1);
|
|
2058
|
+
return;
|
|
2059
|
+
}
|
|
2060
|
+
const o = B.value ? xn([B.value]) : [], p = o.find((T) => {
|
|
2061
|
+
const R = T == null ? void 0 : T.prop;
|
|
2062
|
+
return R === "Input1" || R === "输入数据.输入1" || R === "样本输入数据";
|
|
2063
|
+
}), g = p == null ? void 0 : p.prop;
|
|
2064
|
+
let x = l == null ? void 0 : l[g];
|
|
2065
|
+
const k = await Ar().catch((T) => (Ol.setImportLoading(!1), Promise.reject(T)));
|
|
2066
|
+
let w = !0, $ = "";
|
|
2067
|
+
(y = B.value) == null || y.forEach((T) => {
|
|
2068
|
+
(T == null ? void 0 : T.prop) === g && (w = !!(T != null && T.childPath), $ = T == null ? void 0 : T.childPath);
|
|
2069
|
+
});
|
|
2070
|
+
let N = "";
|
|
2071
|
+
if (w) {
|
|
2072
|
+
let T = (O = (z = B.value) == null ? void 0 : z.find((_e) => (_e == null ? void 0 : _e.isMainKey) === !0)) == null ? void 0 : O.prop;
|
|
2073
|
+
N = l == null ? void 0 : l[T];
|
|
2074
|
+
let R = $ == null ? void 0 : $.split(he), ce = [];
|
|
2075
|
+
R == null || R.forEach((_e, je) => {
|
|
2076
|
+
(R == null ? void 0 : R.length) - 1 === je && ce.push(N), ce.push(_e);
|
|
2077
|
+
}), ce = ce == null ? void 0 : ce[0];
|
|
2078
|
+
let ue = await ja(ce, sessionStorage.getItem("systemKey"), ""), se = ue == null ? void 0 : ue.filter((_e) => (_e == null ? void 0 : _e.name) === g);
|
|
2079
|
+
se = se == null ? void 0 : se.map((_e) => {
|
|
2080
|
+
var je;
|
|
2081
|
+
return _e.compData = (je = _e == null ? void 0 : _e.compData) == null ? void 0 : je.map((Y) => {
|
|
2082
|
+
var pe;
|
|
2083
|
+
return (Y == null ? void 0 : Y.key) === "tableContents" && (Y.contents = (pe = Y == null ? void 0 : Y.contents) == null ? void 0 : pe.filter((Ke) => (Ke == null ? void 0 : Ke[1]) === (l == null ? void 0 : l[g]))), Y;
|
|
2084
|
+
}), _e;
|
|
2085
|
+
}), (!se || (se == null ? void 0 : se.length) === 0) && (se = ue, se = se == null ? void 0 : se.map((_e) => {
|
|
2086
|
+
var je;
|
|
2087
|
+
return _e.compData = (je = _e == null ? void 0 : _e.compData) == null ? void 0 : je.map((Y) => {
|
|
2088
|
+
var pe;
|
|
2089
|
+
return (Y == null ? void 0 : Y.key) === "tableContents" && (Y.contents = (pe = Y == null ? void 0 : Y.contents) == null ? void 0 : pe.filter((Ke) => {
|
|
2090
|
+
var ge, ke;
|
|
2091
|
+
return (Ke == null ? void 0 : Ke[1]) === (l == null ? void 0 : l[(ke = (ge = B == null ? void 0 : B.value) == null ? void 0 : ge[0]) == null ? void 0 : ke.prop]);
|
|
2092
|
+
})), Y;
|
|
2093
|
+
}), _e;
|
|
2094
|
+
})), x = xs(se);
|
|
2095
|
+
}
|
|
2096
|
+
const M = await Os(c, {
|
|
2097
|
+
token: k,
|
|
2098
|
+
inputData: x
|
|
2099
|
+
}).catch((T) => (Ol.setImportLoading(!1), Promise.reject(T))), _ = (X = M == null ? void 0 : M.data) == null ? void 0 : X.data, K = o.find((T) => (T == null ? void 0 : T.prop) === "Output1"), Z = K == null ? void 0 : K.prop;
|
|
2100
|
+
let W = [], E = [];
|
|
2101
|
+
if (_ && ((t = Object.values(_)) == null ? void 0 : t.length) > 0) {
|
|
2102
|
+
let T = [];
|
|
2103
|
+
const R = new FormData(), ce = (j = ws(_)) == null ? void 0 : j.map(async (se) => {
|
|
2104
|
+
var _e, je;
|
|
2105
|
+
if (!Array.isArray(se) && (se != null && se.includes("http"))) {
|
|
2106
|
+
let Y = await Aa.get(se, { responseType: "blob" }), pe = (je = se == null ? void 0 : se.split("/")) == null ? void 0 : je[((_e = se == null ? void 0 : se.split("/")) == null ? void 0 : _e.length) - 1];
|
|
2107
|
+
R.append("files", Y.data, pe);
|
|
2108
|
+
} else
|
|
2109
|
+
T.push(se);
|
|
2110
|
+
});
|
|
2111
|
+
if (await Promise.all(ce), !$o(R)) {
|
|
2112
|
+
let se = await No(R), _e = (J = (ve = se == null ? void 0 : se.data) == null ? void 0 : ve.result) == null ? void 0 : J.map((je) => {
|
|
2113
|
+
var Y, pe, Ke, ge, ke, Ee;
|
|
2114
|
+
return {
|
|
2115
|
+
name: (Ee = (ke = (ge = (Y = je == null ? void 0 : je.url) == null ? void 0 : Y.split("/")) == null ? void 0 : ge[((Ke = (pe = je == null ? void 0 : je.url) == null ? void 0 : pe.split("/")) == null ? void 0 : Ke.length) - 1]) == null ? void 0 : ke.split(".")) == null ? void 0 : Ee[0],
|
|
2116
|
+
url: je == null ? void 0 : je.url
|
|
2117
|
+
};
|
|
2118
|
+
});
|
|
2119
|
+
T = [...T, ..._e];
|
|
2120
|
+
}
|
|
2121
|
+
let ue = {};
|
|
2122
|
+
for (let se in l)
|
|
2123
|
+
se !== "id" && (ue[se] = l[se]);
|
|
2124
|
+
ue[Z] = T, E.push({
|
|
2125
|
+
id: l == null ? void 0 : l.id,
|
|
2126
|
+
value: {
|
|
2127
|
+
tableData: ue
|
|
2128
|
+
}
|
|
2129
|
+
});
|
|
2130
|
+
}
|
|
2131
|
+
(E == null ? void 0 : E.length) > 0 && await So({
|
|
2132
|
+
dataList: E
|
|
2133
|
+
}), (W == null ? void 0 : W.length) > 0 && await An({
|
|
2134
|
+
dataList: W
|
|
2135
|
+
}), Ha(!0), Ol.setImportLoading(!1), fl.setFreshContent(!0);
|
|
2136
|
+
}, Qr = (e, l) => (e = e == null ? void 0 : e.map((a) => {
|
|
2137
|
+
var r, s;
|
|
2138
|
+
return a != null && a.children && ((r = a.children) != null && r.find((u) => u.id === (l == null ? void 0 : l.id)) ? a.children = (s = a.children) == null ? void 0 : s.filter((u) => (u == null ? void 0 : u.id) !== (l == null ? void 0 : l.id)) : a.children = Qr(a.children, l)), a;
|
|
2139
|
+
}), e), cr = G(!1), Us = () => {
|
|
2140
|
+
cr.value = !0;
|
|
2141
|
+
}, Es = (e) => {
|
|
2142
|
+
if (cr.value = !1, e) {
|
|
2143
|
+
const l = {
|
|
2144
|
+
name: e.name || "capture.jpg",
|
|
2145
|
+
url: URL.createObjectURL(e),
|
|
2146
|
+
// 供预览
|
|
2147
|
+
raw: e
|
|
2148
|
+
};
|
|
2149
|
+
ua.value.push(l);
|
|
2150
|
+
}
|
|
2151
|
+
}, hl = Za({
|
|
2152
|
+
title: "迁移至",
|
|
2153
|
+
show: !1,
|
|
2154
|
+
width: "20%",
|
|
2155
|
+
selectRow: null,
|
|
2156
|
+
from: n == null ? void 0 : n.index,
|
|
2157
|
+
to: null,
|
|
2158
|
+
contents: [],
|
|
2159
|
+
formRules: {
|
|
2160
|
+
groupName: [
|
|
2161
|
+
{ required: !0, message: "输入不能为空", trigger: "blur" },
|
|
2162
|
+
{
|
|
2163
|
+
validator: (e, l, a) => {
|
|
2164
|
+
l === (n == null ? void 0 : n.index) ? a(new Error("选择源不能和目标源一致")) : a();
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
]
|
|
2168
|
+
},
|
|
2169
|
+
buttonValue: [{ label: "取消", background: "#999999", color: "var(--ssbutton-theme-color)" }, {
|
|
2170
|
+
label: "确认",
|
|
2171
|
+
background: "var(--ssbutton-theme-bg)",
|
|
2172
|
+
color: "var(--ssbutton-theme-color)"
|
|
2173
|
+
}]
|
|
2174
|
+
}), Ls = () => {
|
|
2175
|
+
hl.show = !1;
|
|
2176
|
+
}, js = (e) => {
|
|
2177
|
+
var l, a;
|
|
2178
|
+
if ((e == null ? void 0 : e.buttonName) === "取消") return hl.show = !1;
|
|
2179
|
+
hl.to = e == null ? void 0 : e.content, !(!(n != null && n.index) || !((l = hl.to) != null && l.groupName)) && (n == null ? void 0 : n.index) !== ((a = hl.to) == null ? void 0 : a.groupName) && (Ue("change", {
|
|
2180
|
+
buttonName: "迁移",
|
|
2181
|
+
value: {
|
|
2182
|
+
from: hl.from,
|
|
2183
|
+
to: hl.to,
|
|
2184
|
+
data: hl.selectRow
|
|
2185
|
+
}
|
|
2186
|
+
}), hl.show = !1);
|
|
2187
|
+
}, Ps = (e) => {
|
|
2188
|
+
if (e) {
|
|
2189
|
+
if (!Ma.validateFileSize(e.raw)) {
|
|
2190
|
+
il.warning(`文件大小不能超过 ${qn.value.maxSize}MB`);
|
|
2191
|
+
return;
|
|
2192
|
+
}
|
|
2193
|
+
if (!Ma.validateFileType(e.raw)) {
|
|
2194
|
+
il.warning("请上传图片文件");
|
|
2195
|
+
return;
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
}, $s = async () => {
|
|
2199
|
+
var e, l;
|
|
2200
|
+
if (ua.value.length === 0) {
|
|
2201
|
+
il.warning("请先选择要上传的图片");
|
|
2202
|
+
return;
|
|
2203
|
+
}
|
|
2204
|
+
va.value = !0;
|
|
2205
|
+
try {
|
|
2206
|
+
const a = ua.value.map(async (k) => {
|
|
2207
|
+
var N;
|
|
2208
|
+
const w = new FormData();
|
|
2209
|
+
w.append("file", k.raw, k.name);
|
|
2210
|
+
const $ = await Fo(w);
|
|
2211
|
+
return ((N = $ == null ? void 0 : $.data) == null ? void 0 : N.result) || {
|
|
2212
|
+
name: k.name,
|
|
2213
|
+
url: "",
|
|
2214
|
+
fileName: k.name
|
|
2215
|
+
};
|
|
2216
|
+
}), r = await Promise.all(a), s = Ma.extractTableHeaders(B.value), u = r.map((k) => ({
|
|
2217
|
+
name: (k == null ? void 0 : k.fileName) || (k == null ? void 0 : k.name),
|
|
2218
|
+
url: (k == null ? void 0 : k.url) || ""
|
|
2219
|
+
})), c = await Ma.recognize(u, s), o = Array.isArray(c == null ? void 0 : c.result) ? c.result : [];
|
|
2220
|
+
if (o.length === 0) {
|
|
2221
|
+
il.warning("OCR识别未返回有效数据"), va.value = !1;
|
|
2222
|
+
return;
|
|
2223
|
+
}
|
|
2224
|
+
const p = /* @__PURE__ */ new Set(), g = [];
|
|
2225
|
+
o.forEach((k, w) => {
|
|
2226
|
+
const $ = k != null && k.数据 && typeof (k == null ? void 0 : k.数据) == "object" ? k.数据 : {}, N = {
|
|
2227
|
+
_index: w,
|
|
2228
|
+
_certType: (k == null ? void 0 : k.证书类型) || "",
|
|
2229
|
+
_certNo: (k == null ? void 0 : k.证书编号) || ""
|
|
2230
|
+
};
|
|
2231
|
+
Object.entries($).forEach(([M, _]) => {
|
|
2232
|
+
Array.isArray(_) && _.length >= 2 ? (N[M] = _[0] ?? "", N[`${M}_accuracy`] = _[1] ?? 0, p.add(M)) : (N[M] = _ ?? "", N[`${M}_accuracy`] = 0, p.add(M));
|
|
2233
|
+
}), g.push(N);
|
|
2234
|
+
});
|
|
2235
|
+
const x = [];
|
|
2236
|
+
p.forEach((k) => {
|
|
2237
|
+
x.push({
|
|
2238
|
+
prop: k,
|
|
2239
|
+
label: k,
|
|
2240
|
+
editable: !0,
|
|
2241
|
+
minWidth: 120
|
|
2242
|
+
}), x.push({
|
|
2243
|
+
prop: `${k}_accuracy`,
|
|
2244
|
+
label: `${k}准确率`,
|
|
2245
|
+
editable: !1,
|
|
2246
|
+
minWidth: 100,
|
|
2247
|
+
isAccuracy: !0
|
|
2248
|
+
});
|
|
2249
|
+
}), gr.value = x, xa.value = g, br.value = r, kr.value = c, sr.value = !1, ua.value = [], va.value = !1, vr.value = !0;
|
|
2250
|
+
} catch (a) {
|
|
2251
|
+
console.error("OCR处理失败:", a), il.error(((l = (e = a == null ? void 0 : a.response) == null ? void 0 : e.data) == null ? void 0 : l.message) || "OCR识别失败,请重试"), va.value = !1;
|
|
2252
|
+
}
|
|
2253
|
+
}, Ns = () => {
|
|
2254
|
+
var N, M;
|
|
2255
|
+
const e = br.value, l = kr.value, a = xa.value;
|
|
2256
|
+
if (!a || a.length === 0) {
|
|
2257
|
+
il.warning("暂无数据可添加");
|
|
2258
|
+
return;
|
|
2259
|
+
}
|
|
2260
|
+
const r = (N = Tn(B.value) || []) == null ? void 0 : N.filter((_) => (_ == null ? void 0 : _.type) !== "operate" && (_ == null ? void 0 : _.label) !== "操作" && (_ == null ? void 0 : _.prop) !== "operate"), s = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), c = (M = r == null ? void 0 : r.find((_) => (_ == null ? void 0 : _.label) === "OCR图片")) == null ? void 0 : M.prop;
|
|
2261
|
+
r == null || r.forEach((_) => {
|
|
2262
|
+
_ != null && _.label && (_ != null && _.prop) && (s.set(_.label, _.prop), u.set(_.prop, _.label));
|
|
2263
|
+
});
|
|
2264
|
+
const o = Date.now(), p = (_) => String(o * 1e3 + _);
|
|
2265
|
+
let g = 0, x = 0;
|
|
2266
|
+
const k = [], w = [];
|
|
2267
|
+
a.forEach((_, K) => {
|
|
2268
|
+
const Z = { id: p(K), _isOCRRow: !0, _ocrTableId: n == null ? void 0 : n.index };
|
|
2269
|
+
for (const [W, E] of s.entries())
|
|
2270
|
+
Object.prototype.hasOwnProperty.call(_, W) && (Z[E] = _[W]);
|
|
2271
|
+
if (c && e[K]) {
|
|
2272
|
+
const W = e[K];
|
|
2273
|
+
Z[c] = [{
|
|
2274
|
+
...W,
|
|
2275
|
+
name: (W == null ? void 0 : W.fileName) || (W == null ? void 0 : W.name),
|
|
2276
|
+
url: (W == null ? void 0 : W.url) || ""
|
|
2277
|
+
}];
|
|
2278
|
+
}
|
|
2279
|
+
if (da.value && da.value.length > 0) {
|
|
2280
|
+
const W = {};
|
|
2281
|
+
let E = !1;
|
|
2282
|
+
if (da.value.forEach((A) => {
|
|
2283
|
+
const i = s.get(A);
|
|
2284
|
+
i && Z[i] !== void 0 && Z[i] !== null && Z[i] !== "" && (W[i] = Z[i], E = !0);
|
|
2285
|
+
}), E) {
|
|
2286
|
+
const A = I.value.find((i) => Object.entries(W).every(([h, y]) => {
|
|
2287
|
+
const z = i[h];
|
|
2288
|
+
return String(z) === String(y) || z === y;
|
|
2289
|
+
}));
|
|
2290
|
+
if (A) {
|
|
2291
|
+
for (const [h, y] of s.entries())
|
|
2292
|
+
Object.prototype.hasOwnProperty.call(Z, y) && y !== "_isOCRRow" && y !== "_ocrTableId" && y !== "id" && (A[y] = Z[y]);
|
|
2293
|
+
if (c && e[K]) {
|
|
2294
|
+
const h = e[K];
|
|
2295
|
+
A[c] = [{
|
|
2296
|
+
...h,
|
|
2297
|
+
name: (h == null ? void 0 : h.fileName) || (h == null ? void 0 : h.name),
|
|
2298
|
+
url: (h == null ? void 0 : h.url) || ""
|
|
2299
|
+
}];
|
|
2300
|
+
}
|
|
2301
|
+
const i = na.value.find((h) => h.id === A.id);
|
|
2302
|
+
if (i) {
|
|
2303
|
+
for (const [h, y] of s.entries())
|
|
2304
|
+
Object.prototype.hasOwnProperty.call(Z, y) && y !== "_isOCRRow" && y !== "_ocrTableId" && y !== "id" && (i[y] = Z[y]);
|
|
2305
|
+
if (c && e[K]) {
|
|
2306
|
+
const h = e[K];
|
|
2307
|
+
i[c] = [{
|
|
2308
|
+
...h,
|
|
2309
|
+
name: (h == null ? void 0 : h.fileName) || (h == null ? void 0 : h.name),
|
|
2310
|
+
url: (h == null ? void 0 : h.url) || ""
|
|
2311
|
+
}];
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
ql.value && ql.value.set(A.id, A), w.push(JSON.parse(JSON.stringify(A))), g++;
|
|
2315
|
+
return;
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
k.push(Z), x++;
|
|
2320
|
+
}), w.length > 0 && (I.value = [...I.value || []]), k.length > 0 && (I.value = [...I.value || [], ...k], na.value = [...na.value || [], ...k], k.forEach((_) => {
|
|
2321
|
+
var K, Z;
|
|
2322
|
+
return (Z = (K = ql.value) == null ? void 0 : K.set) == null ? void 0 : Z.call(K, _.id, _);
|
|
2323
|
+
})), Ka.value = I.value;
|
|
2324
|
+
let $ = "";
|
|
2325
|
+
g > 0 && x > 0 ? $ = `成功匹配替换 ${g} 条数据,新增 ${x} 条OCR识别数据` : g > 0 ? $ = `成功匹配替换 ${g} 条数据` : $ = `成功添加 ${x} 条OCR识别数据`, il.success($), w.length > 0 && Ue("change", {
|
|
2326
|
+
buttonName: "编辑",
|
|
2327
|
+
singleContent: w,
|
|
2328
|
+
content: I.value,
|
|
2329
|
+
index: n == null ? void 0 : n.index,
|
|
2330
|
+
parentTableId: n == null ? void 0 : n.parentTableId,
|
|
2331
|
+
column: B.value
|
|
2332
|
+
}), k.length > 0 && Ue("change", {
|
|
2333
|
+
buttonName: "OCR批量新增",
|
|
2334
|
+
content: I.value,
|
|
2335
|
+
index: n == null ? void 0 : n.index,
|
|
2336
|
+
parentTableId: n == null ? void 0 : n.parentTableId,
|
|
2337
|
+
column: B.value,
|
|
2338
|
+
ocrRows: k,
|
|
2339
|
+
uploadedFiles: e,
|
|
2340
|
+
ocrResult: l,
|
|
2341
|
+
matchedCount: g,
|
|
2342
|
+
newCount: x
|
|
2343
|
+
}), Cr();
|
|
2344
|
+
}, Cr = () => {
|
|
2345
|
+
vr.value = !1, xa.value = [], gr.value = [], br.value = [], kr.value = null, da.value = [];
|
|
2346
|
+
}, Bs = (e, l, a) => {
|
|
2347
|
+
xa.value[e] && (xa.value[e][l] = a);
|
|
2348
|
+
}, Rs = (e, l) => {
|
|
2349
|
+
if (l)
|
|
2350
|
+
da.value.includes(e) || da.value.push(e);
|
|
2351
|
+
else {
|
|
2352
|
+
const a = da.value.indexOf(e);
|
|
2353
|
+
a > -1 && da.value.splice(a, 1);
|
|
2354
|
+
}
|
|
2355
|
+
}, Ms = (e) => e == null || e === 0 ? "-" : `${(Number(e) * 100).toFixed(1)}%`, Ks = (e) => {
|
|
2356
|
+
if (e == null || e === 0)
|
|
2357
|
+
return "#909399";
|
|
2358
|
+
const l = Number(e);
|
|
2359
|
+
return l >= 0.9 ? "#67c23a" : l >= 0.7 ? "#e6a23c" : "#f56c6c";
|
|
2360
|
+
}, Yr = () => {
|
|
2361
|
+
sr.value = !1, ua.value = [], Wn.value = null;
|
|
2362
|
+
}, Fs = async (e) => {
|
|
2363
|
+
Mr.value = e == null ? void 0 : e.name;
|
|
2364
|
+
const l = e.raw;
|
|
2365
|
+
yr.value = URL.createObjectURL(l), ir.value = [{
|
|
2366
|
+
name: Mr.value,
|
|
2367
|
+
blobUrl: yr.value
|
|
2368
|
+
}], or.value = !0;
|
|
2369
|
+
}, zs = async (e) => {
|
|
2370
|
+
const l = oo(e);
|
|
2371
|
+
if (!l || l.length === 0) {
|
|
2372
|
+
il.warning("暂无图片");
|
|
2373
|
+
return;
|
|
2374
|
+
}
|
|
2375
|
+
if (l.length === 1) {
|
|
2376
|
+
await Gr(l[0]);
|
|
2377
|
+
return;
|
|
2378
|
+
}
|
|
2379
|
+
try {
|
|
2380
|
+
const a = Ur.service({
|
|
2381
|
+
lock: !0,
|
|
2382
|
+
text: "Loading",
|
|
2383
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
2384
|
+
}), r = await Promise.all(
|
|
2385
|
+
l.map(async (s) => {
|
|
2386
|
+
const u = await La(s), c = URL.createObjectURL(u.data);
|
|
2387
|
+
return {
|
|
2388
|
+
name: _r(s),
|
|
2389
|
+
blobUrl: c
|
|
2390
|
+
};
|
|
2391
|
+
})
|
|
2392
|
+
);
|
|
2393
|
+
a.close(), ir.value = r, or.value = !0;
|
|
2394
|
+
} catch (a) {
|
|
2395
|
+
console.error("预览图片失败:", a), il.error("预览图片失败,请重试");
|
|
2396
|
+
}
|
|
2397
|
+
}, Js = () => {
|
|
2398
|
+
or.value = !1, ir.value = [], yr.value = "";
|
|
2399
|
+
}, Ws = (e) => {
|
|
2400
|
+
ua.value = ua.value.filter((l, a) => a !== e);
|
|
2401
|
+
}, tr = async (e, l, a) => {
|
|
2402
|
+
var r, s, u, c, o, p, g, x, k, w, $, N, M, _, K, Z, W;
|
|
2403
|
+
if (sa.value = "", nr.value = !0, ar.value = !0, Ue("onButtonClick", e, l), ye.value = [], e === "删除")
|
|
2404
|
+
Un.confirm("是否确认删除", "温馨提示", {
|
|
2405
|
+
confirmButtonText: "确认",
|
|
2406
|
+
cancelButtonText: "取消",
|
|
2407
|
+
type: "warning"
|
|
2408
|
+
}).then(() => {
|
|
2409
|
+
var E, A;
|
|
2410
|
+
(E = I.value) != null && E.find((i) => (i == null ? void 0 : i.id) === (l == null ? void 0 : l.id)) ? I.value = (A = re(I.value)) == null ? void 0 : A.filter((i) => (i == null ? void 0 : i.id) !== (l == null ? void 0 : l.id)) : I.value = Qr(re(I.value), l), ki(Ka.value, Fa.value, l == null ? void 0 : l.id), fl.setTableLoading(n == null ? void 0 : n.index), Ue("change", {
|
|
2411
|
+
content: I.value,
|
|
2412
|
+
singleContent: l,
|
|
2413
|
+
index: n == null ? void 0 : n.index,
|
|
2414
|
+
type: "delete",
|
|
2415
|
+
buttonName: e,
|
|
2416
|
+
column: B.value
|
|
2417
|
+
});
|
|
2418
|
+
});
|
|
2419
|
+
else if (e === "批量删除") {
|
|
2420
|
+
if (((r = Il.value) == null ? void 0 : r.length) === 0)
|
|
2421
|
+
return il.warning("请先勾选操作的数据");
|
|
2422
|
+
Un.confirm("是否确认删除", "温馨提示", {
|
|
2423
|
+
confirmButtonText: "确认",
|
|
2424
|
+
cancelButtonText: "取消",
|
|
2425
|
+
type: "warning"
|
|
2426
|
+
}).then(
|
|
2427
|
+
() => {
|
|
2428
|
+
var A, i;
|
|
2429
|
+
const E = (A = Il.value) == null ? void 0 : A.map((h) => h.id);
|
|
2430
|
+
I.value = (i = re(I.value)) == null ? void 0 : i.filter((h) => !(E != null && E.includes(h.id))), fl.setTableLoading(n == null ? void 0 : n.index), Ue("change", {
|
|
2431
|
+
content: I.value,
|
|
2432
|
+
singleContent: null,
|
|
2433
|
+
selectItems: Il.value,
|
|
2434
|
+
index: n == null ? void 0 : n.index,
|
|
2435
|
+
type: "batchDelete",
|
|
2436
|
+
buttonName: e,
|
|
2437
|
+
column: B.value
|
|
2438
|
+
});
|
|
2439
|
+
}
|
|
2440
|
+
);
|
|
2441
|
+
} else if (e === "复制新增") {
|
|
2442
|
+
zl.value = "新增";
|
|
2443
|
+
const E = re(l), A = (s = B.value) == null ? void 0 : s.find((y) => y == null ? void 0 : y.isMainKey), i = A || ((u = B.value) == null ? void 0 : u[0]), h = (c = Ml.value) == null ? void 0 : c.find((y) => (y == null ? void 0 : y.label) === "新建");
|
|
2444
|
+
await Ir(!0, h, { data: E, firstCol: i });
|
|
2445
|
+
} else if (e === "新增")
|
|
2446
|
+
zl.value = "新增", Ga(""), oa.value = !0;
|
|
2447
|
+
else if (e === "编辑")
|
|
2448
|
+
zl.value = "编辑", Ga(l), oa.value = !0;
|
|
2449
|
+
else if (e === "查看")
|
|
2450
|
+
zl.value = "查看", Ga(l), nr.value = !1, ar.value = !1, oa.value = !0;
|
|
2451
|
+
else if (e === "查看三维模型") {
|
|
2452
|
+
const E = {};
|
|
2453
|
+
for (let i in l)
|
|
2454
|
+
i !== "id" && (E[i] = l[i]);
|
|
2455
|
+
let A = (o = Object.values(E)) == null ? void 0 : o[1];
|
|
2456
|
+
zn.setTableShowThree(A);
|
|
2457
|
+
} else if (((p = a == null ? void 0 : a.extra) == null ? void 0 : p.type) === "modelExample")
|
|
2458
|
+
zl.value = e, rr.value = !0;
|
|
2459
|
+
else if (e === "新建") {
|
|
2460
|
+
let E = Ta.value, A = [];
|
|
2461
|
+
for (let O in E)
|
|
2462
|
+
O != null && O.includes(`loading${((g = wa.value) == null ? void 0 : g.account) || ((x = wa.value) == null ? void 0 : x.账号)}`) && (A = [...A, ...O]);
|
|
2463
|
+
let i = [];
|
|
2464
|
+
for (let O in E)
|
|
2465
|
+
O != null && O.includes(`updateLoading${((k = wa.value) == null ? void 0 : k.account) || ((w = wa.value) == null ? void 0 : w.账号)}`) && (i = [...i, ...O]);
|
|
2466
|
+
let h = A == null ? void 0 : A.map((O) => O == null ? void 0 : O.id);
|
|
2467
|
+
const y = i == null ? void 0 : i.map((O) => O == null ? void 0 : O.id);
|
|
2468
|
+
h = [...re(h), ...y], (h == null ? void 0 : h.length) > 0 && (h != null && h.every((O) => O !== null && O)) && await mo({
|
|
2469
|
+
ids: h
|
|
2470
|
+
});
|
|
2471
|
+
const z = ($ = Ml.value) == null ? void 0 : $.find((O) => (O == null ? void 0 : O.label) === "新建");
|
|
2472
|
+
await Ir(!1, z);
|
|
2473
|
+
} else if (e === "修改模板") {
|
|
2474
|
+
let E = re(We).value;
|
|
2475
|
+
fl.setRouteToChildPath(E), Ol.setActiveMenuPath(E + he);
|
|
2476
|
+
} else if (e === "执行")
|
|
2477
|
+
Ds(e, l);
|
|
2478
|
+
else if (e != null && e.includes("导出")) {
|
|
2479
|
+
if (e === "导出选中" && ((N = Il.value) == null ? void 0 : N.length) === 0)
|
|
2480
|
+
return il.warning(`请先勾选${e}的数据`);
|
|
2481
|
+
if (e === "导出全部" && ((M = I.value) == null ? void 0 : M.length) === 0)
|
|
2482
|
+
return il.warning("暂无数据导出");
|
|
2483
|
+
const E = (K = (_ = B.value) == null ? void 0 : _.map((i) => i == null ? void 0 : i.label)) == null ? void 0 : K.filter((i) => i !== "操作"), A = e === "导出全部" ? re(I.value) : re(Il.value);
|
|
2484
|
+
A == null || A.forEach((i) => {
|
|
2485
|
+
i == null || delete i.id;
|
|
2486
|
+
}), ss(A, n == null ? void 0 : n.compName, E, n == null ? void 0 : n.compName);
|
|
2487
|
+
} else if (e === "OCR识别")
|
|
2488
|
+
sr.value = !0, ua.value = [];
|
|
2489
|
+
else if (e === "迁移")
|
|
2490
|
+
hl.selectRow = l, hl.show = !0;
|
|
2491
|
+
else if (((Z = a == null ? void 0 : a.extra) == null ? void 0 : Z.type) === "methodButton") {
|
|
2492
|
+
let E = l;
|
|
2493
|
+
l === "" && (E = re(I.value));
|
|
2494
|
+
let A = await Ni(E, B == null ? void 0 : B.value);
|
|
2495
|
+
(A == null ? void 0 : A.length) > 1 ? I.value = A : I.value = (W = I.value) == null ? void 0 : W.map((i, h) => (h === (a == null ? void 0 : a.index) && (i = A == null ? void 0 : A[0]), i));
|
|
2496
|
+
}
|
|
2497
|
+
}, qs = async (e) => {
|
|
2498
|
+
var a, r, s, u, c, o;
|
|
2499
|
+
const l = await ya({
|
|
2500
|
+
key: {
|
|
2501
|
+
pageKey: e,
|
|
2502
|
+
type: "structure",
|
|
2503
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
2504
|
+
}
|
|
2505
|
+
});
|
|
2506
|
+
if (((a = l == null ? void 0 : l.data) == null ? void 0 : a.code) === 200)
|
|
2507
|
+
return Array.isArray((r = l == null ? void 0 : l.data) == null ? void 0 : r.result) && ((u = (s = l == null ? void 0 : l.data) == null ? void 0 : s.result) == null ? void 0 : u.length) > 0 ? (o = (c = l == null ? void 0 : l.data) == null ? void 0 : c.result) == null ? void 0 : o.map((p) => {
|
|
2508
|
+
var g;
|
|
2509
|
+
return {
|
|
2510
|
+
id: p == null ? void 0 : p.id,
|
|
2511
|
+
...(g = p == null ? void 0 : p.value) == null ? void 0 : g.pageData
|
|
2512
|
+
};
|
|
2513
|
+
}) : [];
|
|
2514
|
+
}, Gs = async (e, l) => {
|
|
2515
|
+
var a, r, s, u, c, o, p, g, x, k, w, $, N, M, _, K, Z, W, E, A;
|
|
2516
|
+
try {
|
|
2517
|
+
let i, h;
|
|
2518
|
+
const y = (a = Ta.value[We.value + he]) == null ? void 0 : a.filter((T) => {
|
|
2519
|
+
var R;
|
|
2520
|
+
return ((R = T == null ? void 0 : T.key) == null ? void 0 : R.type) === "structureMethod";
|
|
2521
|
+
}), z = (r = Ta.value[We.value + he]) == null ? void 0 : r.filter((T) => {
|
|
2522
|
+
var R;
|
|
2523
|
+
return ((R = T == null ? void 0 : T.key) == null ? void 0 : R.type) === "structure";
|
|
2524
|
+
}), O = y == null ? void 0 : y.find((T) => {
|
|
2525
|
+
var R, ce;
|
|
2526
|
+
return ((ce = (R = T == null ? void 0 : T.value) == null ? void 0 : R.pageData) == null ? void 0 : ce.method) === "保存";
|
|
2527
|
+
});
|
|
2528
|
+
if (!O) return;
|
|
2529
|
+
const X = (o = (c = Ta.value[(u = (s = O == null ? void 0 : O.value) == null ? void 0 : s.pageData) == null ? void 0 : u.path]) == null ? void 0 : c.filter((T) => {
|
|
2530
|
+
var R;
|
|
2531
|
+
return ((R = T == null ? void 0 : T.key) == null ? void 0 : R.type) === "data";
|
|
2532
|
+
})) == null ? void 0 : o.find((T) => {
|
|
2533
|
+
var R, ce, ue, se;
|
|
2534
|
+
return ((ce = (R = T == null ? void 0 : T.value) == null ? void 0 : R.tableData) == null ? void 0 : ce.算法名称) === ((se = (ue = O == null ? void 0 : O.value) == null ? void 0 : ue.pageData) == null ? void 0 : se.method);
|
|
2535
|
+
});
|
|
2536
|
+
if (!X) return;
|
|
2537
|
+
const t = {
|
|
2538
|
+
buttonName: (g = (p = O == null ? void 0 : O.value) == null ? void 0 : p.pageData) == null ? void 0 : g.method,
|
|
2539
|
+
api: (k = (x = X == null ? void 0 : X.value) == null ? void 0 : x.tableData) == null ? void 0 : k.算法体,
|
|
2540
|
+
content: z == null ? void 0 : z.map((T) => {
|
|
2541
|
+
var R;
|
|
2542
|
+
return (R = T == null ? void 0 : T.value) == null ? void 0 : R.pageData;
|
|
2543
|
+
}),
|
|
2544
|
+
extraContent: [],
|
|
2545
|
+
extraValues: ($ = (w = O == null ? void 0 : O.value) == null ? void 0 : w.pageData) == null ? void 0 : $.data,
|
|
2546
|
+
methodName: (M = (N = O == null ? void 0 : O.value) == null ? void 0 : N.pageData) == null ? void 0 : M.path
|
|
2547
|
+
};
|
|
2548
|
+
if (!e) return;
|
|
2549
|
+
const j = {
|
|
2550
|
+
...e,
|
|
2551
|
+
compData: (_ = e == null ? void 0 : e.compData) == null ? void 0 : _.map((T) => {
|
|
2552
|
+
var R;
|
|
2553
|
+
return (T == null ? void 0 : T.key) === "formContent" ? {
|
|
2554
|
+
...T,
|
|
2555
|
+
contents: (R = T == null ? void 0 : T.contents) == null ? void 0 : R.map((ce) => (ce == null ? void 0 : ce.prop) === l ? {
|
|
2556
|
+
...ce,
|
|
2557
|
+
value: ""
|
|
2558
|
+
} : ce)
|
|
2559
|
+
} : T;
|
|
2560
|
+
})
|
|
2561
|
+
}, ve = {
|
|
2562
|
+
key: {
|
|
2563
|
+
pageKey: We.value + he,
|
|
2564
|
+
parentTable: "",
|
|
2565
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
2566
|
+
type: "structure"
|
|
2567
|
+
},
|
|
2568
|
+
value: {
|
|
2569
|
+
pageData: j
|
|
2570
|
+
}
|
|
2571
|
+
}, J = await Aa.post(t.api, ve, {
|
|
2572
|
+
headers: {
|
|
2573
|
+
"Content-Type": "application/json"
|
|
2574
|
+
}
|
|
2575
|
+
});
|
|
2576
|
+
return ((K = J == null ? void 0 : J.data) == null ? void 0 : K.code) === 200 && (i = (W = (Z = J == null ? void 0 : J.data) == null ? void 0 : Z.result) == null ? void 0 : W.latestReportCode, h = (A = (E = J == null ? void 0 : J.data) == null ? void 0 : E.result) == null ? void 0 : A.status), {
|
|
2577
|
+
newMainKeyValue: i,
|
|
2578
|
+
newStatus: h
|
|
2579
|
+
};
|
|
2580
|
+
} catch (i) {
|
|
2581
|
+
throw il.error(i), new Error(i);
|
|
2582
|
+
}
|
|
2583
|
+
}, Zr = (e, l, a, r) => {
|
|
2584
|
+
var s;
|
|
2585
|
+
Ue("contentChange", {
|
|
2586
|
+
contents: (s = e == null ? void 0 : e.compData) == null ? void 0 : s.map((u) => {
|
|
2587
|
+
var c;
|
|
2588
|
+
return (u == null ? void 0 : u.key) === "formContent" ? {
|
|
2589
|
+
...u,
|
|
2590
|
+
contents: (c = u == null ? void 0 : u.contents) == null ? void 0 : c.map((o) => (o == null ? void 0 : o.key) === l ? {
|
|
2591
|
+
...o,
|
|
2592
|
+
value: a
|
|
2593
|
+
} : qa.value && (o == null ? void 0 : o.prop) === qa.prop ? {
|
|
2594
|
+
...o,
|
|
2595
|
+
value: qa.value
|
|
2596
|
+
} : o)
|
|
2597
|
+
} : u;
|
|
2598
|
+
}),
|
|
2599
|
+
index: e == null ? void 0 : e.id
|
|
2600
|
+
}, r);
|
|
2601
|
+
}, qa = Za({
|
|
2602
|
+
prop: "状态",
|
|
2603
|
+
value: ""
|
|
2604
|
+
}), Hs = G(["系统自动生成信息", "审批意见"]), Xs = async (e, l, a) => {
|
|
2605
|
+
var p, g;
|
|
2606
|
+
let r = e == null ? void 0 : e[l == null ? void 0 : l.prop], s = 1, u, c;
|
|
2607
|
+
const o = re(We).value + he + r;
|
|
2608
|
+
if (o) {
|
|
2609
|
+
qa.value = "", u = (p = Ta.value[o]) == null ? void 0 : p.filter((w) => {
|
|
2610
|
+
var $;
|
|
2611
|
+
return (($ = w == null ? void 0 : w.key) == null ? void 0 : $.type) === "structure";
|
|
2612
|
+
});
|
|
2613
|
+
const x = u == null ? void 0 : u.find((w) => {
|
|
2614
|
+
var $, N, M;
|
|
2615
|
+
return ((M = (N = ($ = w == null ? void 0 : w.value) == null ? void 0 : $.pageData) == null ? void 0 : N.comp) == null ? void 0 : M.toUpperCase()) === "FORM";
|
|
2616
|
+
});
|
|
2617
|
+
c = {
|
|
2618
|
+
...(g = x == null ? void 0 : x.value) == null ? void 0 : g.pageData,
|
|
2619
|
+
id: x == null ? void 0 : x.id
|
|
2620
|
+
};
|
|
2621
|
+
const k = await Gs(c, l == null ? void 0 : l.prop);
|
|
2622
|
+
if (qa.value = k == null ? void 0 : k.newStatus, k != null && k.newMainKeyValue) return k == null ? void 0 : k.newMainKeyValue;
|
|
2623
|
+
}
|
|
2624
|
+
if (I.value.some((x) => (x == null ? void 0 : x[l == null ? void 0 : l.prop]) === r)) {
|
|
2625
|
+
const x = r;
|
|
2626
|
+
for (; I.value.some((k) => (k == null ? void 0 : k[l == null ? void 0 : l.prop]) === `${x}(${s})`); )
|
|
2627
|
+
s++;
|
|
2628
|
+
r = `${x}(${s})`;
|
|
2629
|
+
}
|
|
2630
|
+
return r;
|
|
2631
|
+
}, Ir = async (e, l, a) => {
|
|
2632
|
+
var c, o, p, g, x, k, w, $;
|
|
2633
|
+
let r, s;
|
|
2634
|
+
const u = await Xs(a == null ? void 0 : a.data, a == null ? void 0 : a.firstCol);
|
|
2635
|
+
if (e ? (r = re(We).value + he + ((g = a == null ? void 0 : a.data) == null ? void 0 : g[(p = a == null ? void 0 : a.firstCol) == null ? void 0 : p.prop]), s = re(We).value + he + u) : (r = re(We).value + he, s = re(r) + `loading${((c = wa.value) == null ? void 0 : c.account) || ((o = wa.value) == null ? void 0 : o.账号)}`), l) {
|
|
2636
|
+
const N = (k = (x = Ta.value[s]) == null ? void 0 : x.filter((M) => {
|
|
2637
|
+
var _;
|
|
2638
|
+
return ((_ = M == null ? void 0 : M.key) == null ? void 0 : _.parentTable) === "";
|
|
2639
|
+
})) == null ? void 0 : k.map((M) => {
|
|
2640
|
+
var _;
|
|
2641
|
+
return {
|
|
2642
|
+
id: M == null ? void 0 : M.id,
|
|
2643
|
+
...(_ = M == null ? void 0 : M.value) == null ? void 0 : _.pageData
|
|
2644
|
+
};
|
|
2645
|
+
});
|
|
2646
|
+
if ((N == null ? void 0 : N.length) > 0)
|
|
2647
|
+
if (e) {
|
|
2648
|
+
const M = N == null ? void 0 : N.find((_) => {
|
|
2649
|
+
var K;
|
|
2650
|
+
return ((K = _ == null ? void 0 : _.comp) == null ? void 0 : K.toUpperCase()) === "FORM";
|
|
2651
|
+
});
|
|
2652
|
+
M && Zr(M, (w = a == null ? void 0 : a.firstCol) == null ? void 0 : w.label, u, We.value);
|
|
2653
|
+
} else
|
|
2654
|
+
fl.setRouteToChildPath(re(We).value), Ol.setActiveMenuPath(s);
|
|
2655
|
+
else if (await jo(r, s, null, null, e ? Hs.value : null), e) {
|
|
2656
|
+
const M = await qs(s);
|
|
2657
|
+
if ((M == null ? void 0 : M.length) > 0) {
|
|
2658
|
+
const _ = M == null ? void 0 : M.find((K) => {
|
|
2659
|
+
var Z;
|
|
2660
|
+
return ((Z = K == null ? void 0 : K.comp) == null ? void 0 : Z.toUpperCase()) === "FORM";
|
|
2661
|
+
});
|
|
2662
|
+
_ && Zr(_, ($ = a == null ? void 0 : a.firstCol) == null ? void 0 : $.label, u, We.value);
|
|
2663
|
+
}
|
|
2664
|
+
} else
|
|
2665
|
+
fl.setRouteToChildPath(re(We).value), Ol.setActiveMenuPath(s);
|
|
2666
|
+
} else
|
|
2667
|
+
e ? (sa.value = "", $l.value = a == null ? void 0 : a.data, Ha(!0, a == null ? void 0 : a.firstCol, u)) : (fl.setRouteToChildPath(re(We).value), Ol.setActiveMenuPath(s));
|
|
2668
|
+
}, Qs = () => {
|
|
2669
|
+
al.value = !1, Ra.value = [], ne.value = !1;
|
|
2670
|
+
}, Ga = (e) => {
|
|
2671
|
+
var c, o, p, g, x, k, w, $, N, M, _, K, Z, W, E, A, i, h, y, z, O, X;
|
|
2672
|
+
const l = [];
|
|
2673
|
+
let a = [];
|
|
2674
|
+
for (let t in e)
|
|
2675
|
+
Array.isArray(e == null ? void 0 : e[t]) && a.push(t);
|
|
2676
|
+
L.value = re(B.value), (o = Pa((c = re(B.value)) == null ? void 0 : c.filter((t) => (t == null ? void 0 : t.label) !== "操作"))) == null || o.forEach((t, j) => {
|
|
2677
|
+
var ve, J, T;
|
|
2678
|
+
a.find((R) => R === (t == null ? void 0 : t.prop)) || (t != null && t.formType && ((ve = t == null ? void 0 : t.formType) == null ? void 0 : ve.toUpperCase()) === "SELECT" || t != null && t.menuId ? l.push({
|
|
2679
|
+
label: (J = t == null ? void 0 : t.prop) != null && J.includes(".") ? t == null ? void 0 : t.prop : (t == null ? void 0 : t.label) ?? (t == null ? void 0 : t.prop) ?? "",
|
|
2680
|
+
name: (t == null ? void 0 : t.prop) ?? "t" + j,
|
|
2681
|
+
prop: t == null ? void 0 : t.prop,
|
|
2682
|
+
type: "Select",
|
|
2683
|
+
// (!t?.formType || t?.formType === '') ? 'Input' : t?.formType,
|
|
2684
|
+
value: (e == null ? void 0 : e[t == null ? void 0 : t.prop]) ?? (t == null ? void 0 : t.value) ?? "",
|
|
2685
|
+
id: (t == null ? void 0 : t.id) ?? j,
|
|
2686
|
+
contents: (t == null ? void 0 : t.options) ?? [],
|
|
2687
|
+
width: 1,
|
|
2688
|
+
isFormColHidden: t == null ? void 0 : t.isFormColHidden,
|
|
2689
|
+
relatedValueId: t == null ? void 0 : t.relatedValueId,
|
|
2690
|
+
disabled: t == null ? void 0 : t.disabled,
|
|
2691
|
+
optionUrl: {
|
|
2692
|
+
groupSelect: t == null ? void 0 : t.groupSelect,
|
|
2693
|
+
menuSelect: t == null ? void 0 : t.formMenuSelect,
|
|
2694
|
+
type: "Select",
|
|
2695
|
+
selectRelateType: t == null ? void 0 : t.selectRelateType,
|
|
2696
|
+
allSelectionContents: (t == null ? void 0 : t.allSelectionContents) ?? [],
|
|
2697
|
+
selectFilter: t == null ? void 0 : t.selectFilter,
|
|
2698
|
+
menuId: t == null ? void 0 : t.menuId,
|
|
2699
|
+
filterContent: t == null ? void 0 : t.filterContent
|
|
2700
|
+
}
|
|
2701
|
+
}) : l.push({
|
|
2702
|
+
label: (T = t == null ? void 0 : t.prop) != null && T.includes(".") ? t == null ? void 0 : t.prop : (t == null ? void 0 : t.label) ?? (t == null ? void 0 : t.prop) ?? "",
|
|
2703
|
+
prop: t == null ? void 0 : t.prop,
|
|
2704
|
+
name: (t == null ? void 0 : t.prop) ?? "t" + j,
|
|
2705
|
+
type: !(t != null && t.formType) || (t == null ? void 0 : t.formType) === "" ? "Input" : t == null ? void 0 : t.formType,
|
|
2706
|
+
value: (e == null ? void 0 : e[t == null ? void 0 : t.prop]) ?? (t == null ? void 0 : t.value) ?? "",
|
|
2707
|
+
id: (t == null ? void 0 : t.id) ?? j,
|
|
2708
|
+
contents: (t == null ? void 0 : t.options) ?? [],
|
|
2709
|
+
width: 1,
|
|
2710
|
+
isFormColHidden: t == null ? void 0 : t.isFormColHidden,
|
|
2711
|
+
disabled: t == null ? void 0 : t.disabled,
|
|
2712
|
+
relatedValueId: t == null ? void 0 : t.relatedValueId
|
|
2713
|
+
}));
|
|
2714
|
+
}), e === "" || !e || (sa.value = (e == null ? void 0 : e.id) ?? "");
|
|
2715
|
+
let r = Pa((p = re(B.value)) == null ? void 0 : p.filter((t) => (t == null ? void 0 : t.label) !== "操作"));
|
|
2716
|
+
Xl.value && ((g = Xl.value) == null ? void 0 : g.length) > 0 && (Xl.value = (x = re(Xl).value) == null ? void 0 : x.map((t) => {
|
|
2717
|
+
var ve;
|
|
2718
|
+
let j = (t == null ? void 0 : t.prop) || ((ve = r == null ? void 0 : r.find((J) => (J == null ? void 0 : J.label) === (t == null ? void 0 : t.label))) == null ? void 0 : ve.prop);
|
|
2719
|
+
return j && (t.value = e[j]), t;
|
|
2720
|
+
})), xe.value = Xl.value && ((k = Xl.value) == null ? void 0 : k.length) > 0 ? Lo(Xl.value) : l;
|
|
2721
|
+
let s = [], u = (w = n.itemData) == null ? void 0 : w.filter((t) => (t == null ? void 0 : t.key) === "filterAllType");
|
|
2722
|
+
if ((u == null ? void 0 : u.length) > 0 && (s = (u == null ? void 0 : u.map((j) => j == null ? void 0 : j.value)).flat()), (s == null ? void 0 : s.length) > 0) {
|
|
2723
|
+
let t = (N = s == null ? void 0 : s.filter((J) => {
|
|
2724
|
+
var T;
|
|
2725
|
+
return (T = J == null ? void 0 : J.content) == null ? void 0 : T.includes("@Type");
|
|
2726
|
+
})) == null ? void 0 : N[(($ = s == null ? void 0 : s.filter((J) => {
|
|
2727
|
+
var T;
|
|
2728
|
+
return (T = J == null ? void 0 : J.content) == null ? void 0 : T.includes("@Type");
|
|
2729
|
+
})) == null ? void 0 : $.length) - 1];
|
|
2730
|
+
if (t != null && t.content) {
|
|
2731
|
+
let J = (K = (_ = (M = t == null ? void 0 : t.content) == null ? void 0 : M.replace(":", Ul)) == null ? void 0 : _.split(Ul)) == null ? void 0 : K[1];
|
|
2732
|
+
if (((Z = J == null ? void 0 : J.trim()) == null ? void 0 : Z.toUpperCase()) === "MANUAL") {
|
|
2733
|
+
let T = (h = (i = (W = n.itemData) == null ? void 0 : W.filter((R) => (R == null ? void 0 : R.key) === "contentTableId")) == null ? void 0 : i[((A = (E = n.itemData) == null ? void 0 : E.filter((R) => (R == null ? void 0 : R.key) === "contentTableId")) == null ? void 0 : A.length) - 1]) == null ? void 0 : h.contents;
|
|
2734
|
+
xe.value = (y = xe.value) == null ? void 0 : y.map((R, ce) => {
|
|
2735
|
+
var ue, se;
|
|
2736
|
+
return (ue = R == null ? void 0 : R.optionUrl) != null && ue.menuId && (R.type = "Select", (se = R == null ? void 0 : R.optionUrl) != null && se.menuId && (R.optionUrl.menuId = R.optionUrl.menuId ?? T, R.optionUrl.menuFilter = s, zl.value === "新增" && (R.optionUrl.multiple = !0, R.optionUrl.multipleLimit = 5))), R;
|
|
2737
|
+
});
|
|
2738
|
+
}
|
|
2739
|
+
}
|
|
2740
|
+
let j = (z = xe.value) == null ? void 0 : z.filter((J) => {
|
|
2741
|
+
var T, R;
|
|
2742
|
+
return ((T = J == null ? void 0 : J.optionUrl) == null ? void 0 : T.menuId) && ((R = J == null ? void 0 : J.optionUrl) == null ? void 0 : R.menuId) !== "";
|
|
2743
|
+
}), ve;
|
|
2744
|
+
if (j == null || j.forEach((J) => {
|
|
2745
|
+
var R, ce;
|
|
2746
|
+
if (ve !== void 0) return;
|
|
2747
|
+
let T = (R = J == null ? void 0 : J.optionUrl) == null ? void 0 : R.menuId;
|
|
2748
|
+
((ce = j == null ? void 0 : j.filter((ue) => {
|
|
2749
|
+
var se;
|
|
2750
|
+
return ((se = ue == null ? void 0 : ue.optionUrl) == null ? void 0 : se.menuId) === T;
|
|
2751
|
+
})) == null ? void 0 : ce.length) > 1 && (ve = T);
|
|
2752
|
+
}), j = j == null ? void 0 : j.filter((J) => {
|
|
2753
|
+
var T;
|
|
2754
|
+
return ((T = J == null ? void 0 : J.optionUrl) == null ? void 0 : T.menuId) === ve;
|
|
2755
|
+
}), (j == null ? void 0 : j.length) > 1) {
|
|
2756
|
+
let J = j == null ? void 0 : j.map((ue) => ue == null ? void 0 : ue.prop), T = j == null ? void 0 : j.map((ue) => ue == null ? void 0 : ue.label), R = j == null ? void 0 : j.map((ue) => ue == null ? void 0 : ue.value), ce = (O = re(j)) == null ? void 0 : O[0];
|
|
2757
|
+
ce.label = T == null ? void 0 : T.join("·"), ce.value = R == null ? void 0 : R.join(" "), ce.value.trim() === "" && (ce.value = ""), ce.prop = J == null ? void 0 : J.join("·"), ce.usingType = "parent", xe.value.unshift(ce), xe.value = (X = xe.value) == null ? void 0 : X.map((ue) => (J != null && J.find((se) => se === (ue == null ? void 0 : ue.prop)) && (ue.isFormColHidden = !0), ue));
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
}, Ys = () => {
|
|
2761
|
+
var l;
|
|
2762
|
+
const e = (l = m.value) == null ? void 0 : l.$el;
|
|
2763
|
+
e && Ro.create(e, {
|
|
2764
|
+
animation: 150,
|
|
2765
|
+
handle: ".col-drag-icon",
|
|
2766
|
+
ghostClass: "sortable-ghost",
|
|
2767
|
+
onEnd: (a) => {
|
|
2768
|
+
var c;
|
|
2769
|
+
const { oldIndex: r, newIndex: s } = a;
|
|
2770
|
+
if (r === s) return;
|
|
2771
|
+
const u = Ja.value.splice(r, 1)[0];
|
|
2772
|
+
Ja.value.splice(s, 0, u), B.value = (c = B.value) == null ? void 0 : c.slice().sort((o, p) => {
|
|
2773
|
+
if (o.label === "操作") return 1;
|
|
2774
|
+
if (p.label === "操作") return -1;
|
|
2775
|
+
const g = Ja.value.findIndex((k) => k.label === o.label), x = Ja.value.findIndex((k) => k.label === p.label);
|
|
2776
|
+
return g - x;
|
|
2777
|
+
});
|
|
2778
|
+
}
|
|
2779
|
+
});
|
|
2780
|
+
};
|
|
2781
|
+
Pr(() => {
|
|
2782
|
+
hr.value = window.innerWidth - 240 * 2;
|
|
2783
|
+
});
|
|
2784
|
+
const Zs = () => {
|
|
2785
|
+
Ia(() => {
|
|
2786
|
+
Ys();
|
|
2787
|
+
});
|
|
2788
|
+
}, Tr = (e, l) => {
|
|
2789
|
+
var r;
|
|
2790
|
+
if (!e && !(e != null && e.children)) return {
|
|
2791
|
+
contents: e,
|
|
2792
|
+
currentSelectContents: void 0
|
|
2793
|
+
};
|
|
2794
|
+
let a;
|
|
2795
|
+
return e.children = (r = e.children) == null ? void 0 : r.map((s) => {
|
|
2796
|
+
var u, c;
|
|
2797
|
+
if ((s == null ? void 0 : s.id) === sa.value) {
|
|
2798
|
+
let o = {};
|
|
2799
|
+
for (let p in s) {
|
|
2800
|
+
let g = (u = l == null ? void 0 : l.find((x) => (x == null ? void 0 : x.prop) === p)) == null ? void 0 : u.label;
|
|
2801
|
+
g ? o[p] = (c = $l.value) == null ? void 0 : c[g] : o[p] = s[p];
|
|
2802
|
+
}
|
|
2803
|
+
s = Object.assign(o, $l.value), a = s;
|
|
2804
|
+
} else {
|
|
2805
|
+
let o = Tr(s, l);
|
|
2806
|
+
s = o == null ? void 0 : o.contents, a = o == null ? void 0 : o.currentSelectContents;
|
|
2807
|
+
}
|
|
2808
|
+
return s;
|
|
2809
|
+
}), {
|
|
2810
|
+
contents: e,
|
|
2811
|
+
currentSelectContents: a
|
|
2812
|
+
};
|
|
2813
|
+
}, Vr = (e, l) => {
|
|
2814
|
+
let a, r;
|
|
2815
|
+
return e != null && e.find((s) => (s == null ? void 0 : s.id) === sa.value) ? a = e == null ? void 0 : e.map((s) => {
|
|
2816
|
+
var u, c;
|
|
2817
|
+
if ((s == null ? void 0 : s.id) === sa.value) {
|
|
2818
|
+
let o = {};
|
|
2819
|
+
for (let p in s) {
|
|
2820
|
+
let g = (u = l == null ? void 0 : l.find((x) => (x == null ? void 0 : x.prop) === p)) == null ? void 0 : u.label;
|
|
2821
|
+
g ? o[p] = (c = $l.value) == null ? void 0 : c[g] : o[p] = s[p];
|
|
2822
|
+
}
|
|
2823
|
+
s = Object.assign(o, $l.value), r = s;
|
|
2824
|
+
}
|
|
2825
|
+
return s;
|
|
2826
|
+
}) : a = e == null ? void 0 : e.map((s) => {
|
|
2827
|
+
var u, c, o, p;
|
|
2828
|
+
if ((s == null ? void 0 : s.id) === sa.value) {
|
|
2829
|
+
let g = {};
|
|
2830
|
+
for (let x in s) {
|
|
2831
|
+
let k = (u = l == null ? void 0 : l.find((w) => (w == null ? void 0 : w.prop) === x)) == null ? void 0 : u.label;
|
|
2832
|
+
k ? g[x] = (c = $l.value) == null ? void 0 : c[k] : g[x] = s[x];
|
|
2833
|
+
}
|
|
2834
|
+
s = Object.assign(g, $l.value), r = s;
|
|
2835
|
+
} else
|
|
2836
|
+
s = (o = Tr(s, l)) == null ? void 0 : o.contents, r = (p = Tr(s, l)) == null ? void 0 : p.currentSelectContents;
|
|
2837
|
+
return s;
|
|
2838
|
+
}), {
|
|
2839
|
+
newContents: a,
|
|
2840
|
+
currentSelectContents: r
|
|
2841
|
+
};
|
|
2842
|
+
}, en = (e, l, a) => {
|
|
2843
|
+
var r, s;
|
|
2844
|
+
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 && ((s = e.children) == null ? void 0 : s.length) > 0 && (e.children = e.children.map(en)), e;
|
|
2845
|
+
}, Or = (e) => {
|
|
2846
|
+
var a;
|
|
2847
|
+
const l = [];
|
|
2848
|
+
return l.push({ ...e }), e != null && e.children && Array.isArray(e.children) && ((a = e.children) == null || a.forEach((r) => {
|
|
2849
|
+
l.push(...Or(r));
|
|
2850
|
+
})), (l == null ? void 0 : l.length) > 0 ? l == null ? void 0 : l.map((r) => {
|
|
2851
|
+
const s = { ...r };
|
|
2852
|
+
return delete s.children, s;
|
|
2853
|
+
}) : [];
|
|
2854
|
+
}, Ha = (e = !0, l, a) => {
|
|
2855
|
+
var g, x, k, w, $, N, M, _, K, Z, W, E, A, i, h, y, z, O, X, t, j, ve, J, T, R, ce, ue, se, _e, je;
|
|
2856
|
+
let r = Pa((g = re(B.value)) == null ? void 0 : g.filter((Y) => (Y == null ? void 0 : Y.label) !== "操作")), s, u = re(I.value);
|
|
2857
|
+
if (!$l.value) {
|
|
2858
|
+
oa.value = !1;
|
|
2859
|
+
return;
|
|
2860
|
+
}
|
|
2861
|
+
if (sa.value === "") {
|
|
2862
|
+
Oa.value++;
|
|
2863
|
+
let Y;
|
|
2864
|
+
l && a ? Y = {
|
|
2865
|
+
id: Oa.value.toString(),
|
|
2866
|
+
[l == null ? void 0 : l.prop]: a,
|
|
2867
|
+
children: $l.value.children
|
|
2868
|
+
} : Y = { id: Oa.value.toString() }, Y != null && Y.children && (Y = {
|
|
2869
|
+
...Y,
|
|
2870
|
+
children: (x = Y.children) == null ? void 0 : x.map((pe) => en(pe, l, a))
|
|
2871
|
+
}), u.push(Object.assign($l.value, Y)), s = Object.assign($l.value, Y);
|
|
2872
|
+
} else
|
|
2873
|
+
u = (k = Vr(u, r)) == null ? void 0 : k.newContents, s = (w = Vr(u, r)) == null ? void 0 : w.currentSelectContents;
|
|
2874
|
+
const c = ($ = n.itemData) == null ? void 0 : $.filter((Y) => (Y == null ? void 0 : Y.key) === "childTree")[0];
|
|
2875
|
+
if (((N = c == null ? void 0 : c.contents) == null ? void 0 : N.length) > 0) {
|
|
2876
|
+
zl.value = "编辑";
|
|
2877
|
+
const Y = [];
|
|
2878
|
+
u == null || u.forEach((pe, Ke) => {
|
|
2879
|
+
var ke;
|
|
2880
|
+
let ge = {};
|
|
2881
|
+
if (Array.isArray(pe)) {
|
|
2882
|
+
let Ee = [];
|
|
2883
|
+
pe == null || pe.filter((Ye) => !(Ye != null && Ye.id)).forEach((Ye, U) => {
|
|
2884
|
+
var V, qe, Je, ul, f, de, Ne;
|
|
2885
|
+
if ((qe = (V = Yl.value) == null ? void 0 : V[U]) != null && qe.prop && !Array.isArray(Ye)) {
|
|
2886
|
+
let b = {};
|
|
2887
|
+
b[Yl.value[U].column] = Ye, Qe != null && Qe.value && ((Je = Qe == null ? void 0 : Qe.value) == null ? void 0 : Je.length) > 0 && ((ul = Qe == null ? void 0 : Qe.value) != null && ul.find((Ae) => JSON.stringify(Ae == null ? void 0 : Ae[0]) === JSON.stringify(b))) && (Ee = (f = Qe == null ? void 0 : Qe.value) == null ? void 0 : f.find((Ae) => JSON.stringify(Ae == null ? void 0 : Ae[0]) === JSON.stringify(b))), Ee && Ee.length > 0 ? ge[Yl.value[U].prop] = Ee != null && Ee.find((Ae) => {
|
|
2888
|
+
var Be;
|
|
2889
|
+
return ((Be = Object.keys(Ae)) == null ? void 0 : Be[0]) === Yl.value[U].column;
|
|
2890
|
+
}) ? (de = Ee == null ? void 0 : Ee.find((Ae) => {
|
|
2891
|
+
var Be;
|
|
2892
|
+
return ((Be = Object.keys(Ae)) == null ? void 0 : Be[0]) === Yl.value[U].column;
|
|
2893
|
+
})) == null ? void 0 : de[Yl.value[U].column] : Ye : ge[Yl.value[U].prop] = Ye;
|
|
2894
|
+
} else Array.isArray(Ye) && ((Ne = Yl.value[U]) != null && Ne.prop ? ge[Yl.value[U].prop] = Ye : ge.children = jr(Ye, Yl.value));
|
|
2895
|
+
});
|
|
2896
|
+
} else
|
|
2897
|
+
ge = pe;
|
|
2898
|
+
if (Array.isArray(pe) && pe.some((Ee) => Ee == null ? void 0 : Ee.id)) {
|
|
2899
|
+
const Ee = (ke = pe == null ? void 0 : pe.find((Ye) => Ye.id)) == null ? void 0 : ke.id;
|
|
2900
|
+
Y.push(Object.assign(ge, { id: qr(Ee) }));
|
|
2901
|
+
} else ge.id ? Y.push(ge) : Y.push(Object.assign(ge, { id: Ke.toString() }));
|
|
2902
|
+
}), I.value = sn(Y, c, B.value);
|
|
2903
|
+
} else
|
|
2904
|
+
I.value = u;
|
|
2905
|
+
rn(I.value), Ka.value = I.value;
|
|
2906
|
+
const o = Si(Ka.value, Fa.value, u);
|
|
2907
|
+
let p = [];
|
|
2908
|
+
if (Na.value ? (p = (M = re(Na).value.singleContent) == null ? void 0 : M.filter((Y) => (Y == null ? void 0 : Y.id) !== (s == null ? void 0 : s.id)), p.push(s)) : p = [s], Zl.value) {
|
|
2909
|
+
const Y = {
|
|
2910
|
+
content: o,
|
|
2911
|
+
singleContent: ((_ = c == null ? void 0 : c.contents) == null ? void 0 : _.length) > 0 ? p == null ? void 0 : p.flatMap(Or) : p,
|
|
2912
|
+
index: n == null ? void 0 : n.index,
|
|
2913
|
+
buttonName: "编辑",
|
|
2914
|
+
column: B.value,
|
|
2915
|
+
parentTableId: n == null ? void 0 : n.parentTableId
|
|
2916
|
+
};
|
|
2917
|
+
fl.setCacheUpdatingData(Y);
|
|
2918
|
+
}
|
|
2919
|
+
if (e) {
|
|
2920
|
+
let Y = (E = (W = (Z = (K = n.itemData) == null ? void 0 : K.find((ge) => (ge == null ? void 0 : ge.key) === "filterAllType")) == null ? void 0 : Z.value) == null ? void 0 : W.find((ge) => (ge == null ? void 0 : ge.value) === "onConditionContents")) == null ? void 0 : E.content, pe = (A = n.itemData) == null ? void 0 : A.filter((ge) => (ge == null ? void 0 : ge.key) === "filterAllType");
|
|
2921
|
+
pe = Array.from(
|
|
2922
|
+
new Map(
|
|
2923
|
+
pe.filter(Boolean).map((ge, ke) => [ge.value, { ...ge, _idx: ke }])
|
|
2924
|
+
// 2. 带索引,保证顺序
|
|
2925
|
+
).values()
|
|
2926
|
+
// 3. Map 自动保留“后者”
|
|
2927
|
+
).sort((ge, ke) => ge._idx - ke._idx).map(({ _idx: ge, ...ke }) => ke), pe = (i = pe == null ? void 0 : pe[(pe == null ? void 0 : pe.length) - 1]) == null ? void 0 : i.value;
|
|
2928
|
+
const Ke = {
|
|
2929
|
+
content: o,
|
|
2930
|
+
singleContent: ((h = c == null ? void 0 : c.contents) == null ? void 0 : h.length) > 0 ? Or(s) : s,
|
|
2931
|
+
index: n == null ? void 0 : n.index,
|
|
2932
|
+
buttonName: zl.value,
|
|
2933
|
+
column: B.value,
|
|
2934
|
+
parentTableId: n == null ? void 0 : n.parentTableId,
|
|
2935
|
+
filter: Y,
|
|
2936
|
+
allFilter: pe,
|
|
2937
|
+
pathIndex: (z = (y = n.itemData) == null ? void 0 : y.find((ge) => (ge == null ? void 0 : ge.key) === "relatedFilter")) == null ? void 0 : z.index,
|
|
2938
|
+
rowContents: xe.value,
|
|
2939
|
+
addArrayValues: ye.value
|
|
2940
|
+
};
|
|
2941
|
+
fl.setTableLoading(n == null ? void 0 : n.index), oa.value = !1, $l.value = void 0, Ue("change", Ke);
|
|
2942
|
+
}
|
|
2943
|
+
if ((t = (X = (O = xe.value) == null ? void 0 : O[0]) == null ? void 0 : X.optionUrl) != null && t.menuId) {
|
|
2944
|
+
oa.value = !1;
|
|
2945
|
+
let Y = (j = n.itemData) == null ? void 0 : j.filter((pe) => (pe == null ? void 0 : pe.key) === "filterAllType");
|
|
2946
|
+
if ((Y == null ? void 0 : Y.length) > 0) {
|
|
2947
|
+
let pe = Y == null ? void 0 : Y.map((ke) => ke == null ? void 0 : ke.value), Ke = (T = (J = (ve = pe.flat().find((ke) => {
|
|
2948
|
+
var Ee;
|
|
2949
|
+
return (Ee = ke == null ? void 0 : ke.content) == null ? void 0 : Ee.includes("@Num");
|
|
2950
|
+
})) == null ? void 0 : ve.content) == null ? void 0 : J.split(":")) == null ? void 0 : T[1];
|
|
2951
|
+
((ue = (ce = (R = pe.flat().find((ke) => {
|
|
2952
|
+
var Ee;
|
|
2953
|
+
return (Ee = ke == null ? void 0 : ke.content) == null ? void 0 : Ee.includes("@Type:");
|
|
2954
|
+
})) == null ? void 0 : R.content) == null ? void 0 : ce.split(":")) == null ? void 0 : ue[1]) !== "Manual" && (Ke = parseInt(Ke), I.value = (je = I.value) == null ? void 0 : je.slice(((se = I.value) == null ? void 0 : se.length) - Ke, (_e = I.value) == null ? void 0 : _e.length));
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
};
|
|
2958
|
+
ho(() => {
|
|
2959
|
+
B.value = [], I.value = [], L.value = [], fr.value = [], Xl.value = [], ia.value = [], Ra.value = [], Rl.value = [], xe.value = [], Il.value = [], m.value = null;
|
|
2960
|
+
});
|
|
2961
|
+
const ln = async (e, l, a) => {
|
|
2962
|
+
var g, x, k, w, $, N, M, _, K, Z, W;
|
|
2963
|
+
Vl.value = a == null ? void 0 : a.prop;
|
|
2964
|
+
const r = re(n.itemData), s = r == null ? void 0 : r.map((E) => {
|
|
2965
|
+
var A;
|
|
2966
|
+
return (E == null ? void 0 : E.key) === "header" && ((A = E.contents) == null || A.map((i, h) => {
|
|
2967
|
+
var y, z, O, X, t, j, ve, J, T, R, ce, ue, se, _e, je, Y, pe, Ke, ge;
|
|
2968
|
+
return i.type = i != null && i.type ? i.type : (X = (O = (z = (y = i == null ? void 0 : i.key) == null ? void 0 : y.split("$")) == null ? void 0 : z[1]) == null ? void 0 : O.split("(")) != null && X[0] ? (j = (t = Dr) == null ? void 0 : t.find((ke) => {
|
|
2969
|
+
var Ee, Ye, U, V;
|
|
2970
|
+
return (ke == null ? void 0 : ke.key) === ((V = (U = (Ye = (Ee = i == null ? void 0 : i.key) == null ? void 0 : Ee.split("$")) == null ? void 0 : Ye[1]) == null ? void 0 : U.split("(")) == null ? void 0 : V[0]);
|
|
2971
|
+
})) == null ? void 0 : j.value : "Input", i.options = i != null && i.options ? i.options : ((T = (J = (ve = i == null ? void 0 : i.key) == null ? void 0 : ve.split("$")) == null ? void 0 : J[1]) == null ? void 0 : T.length) > 0 ? (se = (ue = Er((ce = (R = i == null ? void 0 : i.key) == null ? void 0 : R.split("$")) == null ? void 0 : ce[1])) == null ? void 0 : ue.split(",")) == null ? void 0 : se.map((ke) => ({
|
|
2972
|
+
label: ke,
|
|
2973
|
+
value: ke
|
|
2974
|
+
})) : [], (_e = i == null ? void 0 : i.key) != null && _e.includes("$") && (i.key = (Y = (je = i == null ? void 0 : i.key) == null ? void 0 : je.split("$")) == null ? void 0 : Y[0]), i.value = (pe = Object.values(l)) == null ? void 0 : pe[h], i.optionUrl = i != null && i.formMenuSelect && ((Ke = i == null ? void 0 : i.formMenuSelect) == null ? void 0 : Ke.length) > 0 ? {
|
|
2975
|
+
groupSelect: (ge = i == null ? void 0 : i.groupSelect) == null ? void 0 : ge.split(/[::]/).map((ke) => ke.trim()),
|
|
2976
|
+
menuSelect: i == null ? void 0 : i.formMenuSelect,
|
|
2977
|
+
selectRelateType: "",
|
|
2978
|
+
type: (i == null ? void 0 : i.formType) ?? (i != null && i.groupSelect ? "Select" : "")
|
|
2979
|
+
} : null, i;
|
|
2980
|
+
})), E;
|
|
2981
|
+
});
|
|
2982
|
+
let u = re(xe.value), c = (x = (g = re(s)) == null ? void 0 : g.find((E) => (E == null ? void 0 : E.key) === "header")) == null ? void 0 : x.contents;
|
|
2983
|
+
u = u == null ? void 0 : u.map((E) => {
|
|
2984
|
+
var A;
|
|
2985
|
+
return E.value = (A = c == null ? void 0 : c.find((i, h) => h === (E == null ? void 0 : E.id))) == null ? void 0 : A.value, E;
|
|
2986
|
+
});
|
|
2987
|
+
let o = "", p = ($ = (w = (k = re(s)) == null ? void 0 : k.find((E) => (E == null ? void 0 : E.key) === "header")) == null ? void 0 : w.contents) == null ? void 0 : $.find((E, A) => {
|
|
2988
|
+
var i, h, y;
|
|
2989
|
+
return (E == null ? void 0 : E.label) === Vl.value || (A == null ? void 0 : A.toString()) === ((y = (h = (i = Vl.value) == null ? void 0 : i.split("a")) == null ? void 0 : h[1]) == null ? void 0 : y.toString());
|
|
2990
|
+
});
|
|
2991
|
+
if ((_ = (M = (N = re(s)) == null ? void 0 : N.find((E) => (E == null ? void 0 : E.key) === "header")) == null ? void 0 : M.contents) == null || _.forEach((E) => {
|
|
2992
|
+
var A, i, h, y, z;
|
|
2993
|
+
o === "" && ((h = (i = (A = E == null ? void 0 : E.optionUrl) == null ? void 0 : A.groupSelect) == null ? void 0 : i[1]) != null && h.includes("[")) && (o = (z = (y = E == null ? void 0 : E.optionUrl) == null ? void 0 : y.groupSelect) == null ? void 0 : z[1]);
|
|
2994
|
+
}), (K = p == null ? void 0 : p.optionUrl) != null && K.menuSelect) {
|
|
2995
|
+
let E = await Lr(p), A;
|
|
2996
|
+
if (E == null || E.forEach((i) => {
|
|
2997
|
+
var h, y, z, O, X, t, j, ve, J, T;
|
|
2998
|
+
o === ((y = (h = p == null ? void 0 : p.optionUrl) == null ? void 0 : h.groupSelect) == null ? void 0 : y[1]) && ((X = (O = (z = p == null ? void 0 : p.optionUrl) == null ? void 0 : z.groupSelect) == null ? void 0 : O[1]) != null && X.includes("[")) && ((T = re(i)) == null ? void 0 : T[(J = (ve = (j = (t = p == null ? void 0 : p.optionUrl) == null ? void 0 : t.groupSelect) == null ? void 0 : j[1]) == null ? void 0 : ve.replaceAll("[", "")) == null ? void 0 : J.replaceAll("]", "")]) === (p == null ? void 0 : p.value) && (A = i);
|
|
2999
|
+
}), A) {
|
|
3000
|
+
let i = re(u);
|
|
3001
|
+
i = i == null ? void 0 : i.map((y) => {
|
|
3002
|
+
var z, O, X, t, j, ve, J, T, R, ce, ue;
|
|
3003
|
+
return (A != null && A[y == null ? void 0 : y.label] || A != null && A[(t = (X = (O = (z = y == null ? void 0 : y.optionUrl) == null ? void 0 : z.groupSelect) == null ? void 0 : O[1]) == null ? void 0 : X.replaceAll("[", "")) == null ? void 0 : t.replaceAll("]", "")]) && ((J = (ve = (j = y == null ? void 0 : y.optionUrl) == null ? void 0 : j.groupSelect) == null ? void 0 : ve[1]) != null && J.includes("[")) && (y.value = (A == null ? void 0 : A[y == null ? void 0 : y.label]) || (A == null ? void 0 : A[(ue = (ce = (R = (T = y == null ? void 0 : y.optionUrl) == null ? void 0 : T.groupSelect) == null ? void 0 : R[1]) == null ? void 0 : ce.replaceAll("[", "")) == null ? void 0 : ue.replaceAll("]", "")])), y;
|
|
3004
|
+
}), I.value = (Z = re(I.value)) == null ? void 0 : Z.map((y) => {
|
|
3005
|
+
if ((y == null ? void 0 : y.id) === (l == null ? void 0 : l.id)) {
|
|
3006
|
+
const z = {};
|
|
3007
|
+
return i == null || i.forEach((O) => {
|
|
3008
|
+
z[O.name] = O.value;
|
|
3009
|
+
}), z.id = y == null ? void 0 : y.id, z;
|
|
3010
|
+
}
|
|
3011
|
+
return y;
|
|
3012
|
+
});
|
|
3013
|
+
let h = re(i);
|
|
3014
|
+
h = h == null ? void 0 : h.map((y) => {
|
|
3015
|
+
var z, O, X, t;
|
|
3016
|
+
return (O = (z = y == null ? void 0 : y.optionUrl) == null ? void 0 : z.menuSelect) != null && O.some((j) => j == null ? void 0 : j.includes) && (y.optionUrl.menuSelect = (t = (X = y == null ? void 0 : y.optionUrl) == null ? void 0 : X.menuSelect) == null ? void 0 : t.map((j) => {
|
|
3017
|
+
var ve, J, T, R;
|
|
3018
|
+
if (j != null && j.includes("[")) {
|
|
3019
|
+
let ce = (J = (ve = j == null ? void 0 : j.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : ve.split(":")) == null ? void 0 : J[1];
|
|
3020
|
+
j = (R = (T = re(i)) == null ? void 0 : T.find((ue) => (ue == null ? void 0 : ue.label) === ce)) == null ? void 0 : R.value;
|
|
3021
|
+
}
|
|
3022
|
+
return j;
|
|
3023
|
+
})), y;
|
|
3024
|
+
}), I.value = (W = re(I.value)) == null ? void 0 : W.map((y) => {
|
|
3025
|
+
if ((y == null ? void 0 : y.id) === (l == null ? void 0 : l.id)) {
|
|
3026
|
+
const z = {};
|
|
3027
|
+
return h == null || h.forEach((O) => {
|
|
3028
|
+
z[O.name] = O.value;
|
|
3029
|
+
}), z.id = y == null ? void 0 : y.id, z;
|
|
3030
|
+
}
|
|
3031
|
+
return y;
|
|
3032
|
+
});
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
3035
|
+
}, Is = async (e) => {
|
|
3036
|
+
var $, N, M, _, K, Z, W, E, A, i, h, y, z, O, X, t, j, ve, J, T, R, ce, ue, se, _e, je, Y, pe, Ke, ge, ke, Ee, Ye;
|
|
3037
|
+
if (!e) return;
|
|
3038
|
+
$l.value = e;
|
|
3039
|
+
const l = re(n.itemData);
|
|
3040
|
+
let a = l == null ? void 0 : l.map((U) => {
|
|
3041
|
+
var V, qe, Je, ul;
|
|
3042
|
+
return (U == null ? void 0 : U.key) === "header" && (Array.isArray((V = U.contents) == null ? void 0 : V[0]) ? U.contents = (Je = Pa((qe = U.contents) == null ? void 0 : qe[0])) == null ? void 0 : Je.map((f, de) => {
|
|
3043
|
+
var Ne, b, Ae, Be, kl, ml, Sl, _l, Al, Cl, gl, De, Pe, xl, Ll, jl, Bl, v, q, rl, ol, nl, wl, Gl;
|
|
3044
|
+
return f.type = f != null && f.type ? f.type : (Be = (Ae = (b = (Ne = f == null ? void 0 : f.key) == null ? void 0 : Ne.split("$")) == null ? void 0 : b[1]) == null ? void 0 : Ae.split("(")) != null && Be[0] ? (ml = (kl = Dr) == null ? void 0 : kl.find((Te) => {
|
|
3045
|
+
var Jl, Se, bl, F;
|
|
3046
|
+
return (Te == null ? void 0 : Te.key) === ((F = (bl = (Se = (Jl = f == null ? void 0 : f.key) == null ? void 0 : Jl.split("$")) == null ? void 0 : Se[1]) == null ? void 0 : bl.split("(")) == null ? void 0 : F[0]);
|
|
3047
|
+
})) == null ? void 0 : ml.value : "Input", f.options = f != null && f.options ? f.options : ((Al = (_l = (Sl = f == null ? void 0 : f.key) == null ? void 0 : Sl.split("$")) == null ? void 0 : _l[1]) == null ? void 0 : Al.length) > 0 ? (Pe = (De = Er((gl = (Cl = f == null ? void 0 : f.key) == null ? void 0 : Cl.split("$")) == null ? void 0 : gl[1])) == null ? void 0 : De.split(",")) == null ? void 0 : Pe.map((Te) => ({
|
|
3048
|
+
label: Te,
|
|
3049
|
+
value: Te
|
|
3050
|
+
})) : [], (xl = f == null ? void 0 : f.key) != null && xl.includes("$") && (f.key = (jl = (Ll = f == null ? void 0 : f.key) == null ? void 0 : Ll.split("$")) == null ? void 0 : jl[0]), ((q = (v = (Bl = xe.value) == null ? void 0 : Bl.find((Te) => (Te == null ? void 0 : Te.prop) === (f == null ? void 0 : f.prop))) == null ? void 0 : v.optionUrl) == null ? void 0 : q.multiple) === !0 && !Array.isArray((rl = Object.values(e)) == null ? void 0 : rl[de]) ? f.value = [(ol = Object.values(e)) == null ? void 0 : ol[de]] : f.value = (nl = Object.values(e)) == null ? void 0 : nl[de], f.optionUrl = f != null && f.formMenuSelect && ((wl = f == null ? void 0 : f.formMenuSelect) == null ? void 0 : wl.length) > 0 ? {
|
|
3051
|
+
groupSelect: (Gl = f == null ? void 0 : f.groupSelect) == null ? void 0 : Gl.split(/[::]/).map((Te) => Te.trim()),
|
|
3052
|
+
menuSelect: f == null ? void 0 : f.formMenuSelect,
|
|
3053
|
+
selectRelateType: "",
|
|
3054
|
+
type: (f == null ? void 0 : f.formType) ?? (f != null && f.groupSelect ? "Select" : "")
|
|
3055
|
+
} : null, f;
|
|
3056
|
+
}) : U.contents = (ul = U.contents) == null ? void 0 : ul.map((f, de) => {
|
|
3057
|
+
var Ne, b, Ae, Be, kl, ml, Sl, _l, Al, Cl, gl, De, Pe, xl, Ll, jl, Bl, v, q, rl, ol, nl, wl, Gl;
|
|
3058
|
+
return f.type = f != null && f.type ? f.type : (Be = (Ae = (b = (Ne = f == null ? void 0 : f.key) == null ? void 0 : Ne.split("$")) == null ? void 0 : b[1]) == null ? void 0 : Ae.split("(")) != null && Be[0] ? (ml = (kl = Dr) == null ? void 0 : kl.find((Te) => {
|
|
3059
|
+
var Jl, Se, bl, F;
|
|
3060
|
+
return (Te == null ? void 0 : Te.key) === ((F = (bl = (Se = (Jl = f == null ? void 0 : f.key) == null ? void 0 : Jl.split("$")) == null ? void 0 : Se[1]) == null ? void 0 : bl.split("(")) == null ? void 0 : F[0]);
|
|
3061
|
+
})) == null ? void 0 : ml.value : "Input", f.options = f != null && f.options ? f.options : ((Al = (_l = (Sl = f == null ? void 0 : f.key) == null ? void 0 : Sl.split("$")) == null ? void 0 : _l[1]) == null ? void 0 : Al.length) > 0 ? (Pe = (De = Er((gl = (Cl = f == null ? void 0 : f.key) == null ? void 0 : Cl.split("$")) == null ? void 0 : gl[1])) == null ? void 0 : De.split(",")) == null ? void 0 : Pe.map((Te) => ({
|
|
3062
|
+
label: Te,
|
|
3063
|
+
value: Te
|
|
3064
|
+
})) : [], (xl = f == null ? void 0 : f.key) != null && xl.includes("$") && (f.key = (jl = (Ll = f == null ? void 0 : f.key) == null ? void 0 : Ll.split("$")) == null ? void 0 : jl[0]), ((q = (v = (Bl = xe.value) == null ? void 0 : Bl.find((Te) => (Te == null ? void 0 : Te.prop) === (f == null ? void 0 : f.prop))) == null ? void 0 : v.optionUrl) == null ? void 0 : q.multiple) === !0 && !Array.isArray((rl = Object.values(e)) == null ? void 0 : rl[de]) ? f.value = [(ol = Object.values(e)) == null ? void 0 : ol[de]] : f.value = (nl = Object.values(e)) == null ? void 0 : nl[de], f.optionUrl = f != null && f.formMenuSelect && ((wl = f == null ? void 0 : f.formMenuSelect) == null ? void 0 : wl.length) > 0 ? {
|
|
3065
|
+
groupSelect: (Gl = f == null ? void 0 : f.groupSelect) == null ? void 0 : Gl.split(/[::]/).map((Te) => Te.trim()),
|
|
3066
|
+
menuSelect: f == null ? void 0 : f.formMenuSelect,
|
|
3067
|
+
selectRelateType: "",
|
|
3068
|
+
type: (f == null ? void 0 : f.formType) ?? (f != null && f.groupSelect ? "Select" : "")
|
|
3069
|
+
} : null, f;
|
|
3070
|
+
})), U;
|
|
3071
|
+
}), r = xe.value, s = (N = ($ = re(a)) == null ? void 0 : $.find((U) => (U == null ? void 0 : U.key) === "header")) == null ? void 0 : N.contents;
|
|
3072
|
+
if (s = s == null ? void 0 : s.filter((U) => (U == null ? void 0 : U.label) !== "操作"), s.push({
|
|
3073
|
+
label: "操作",
|
|
3074
|
+
type: "operate"
|
|
3075
|
+
}), r = r == null ? void 0 : r.map((U) => {
|
|
3076
|
+
var V;
|
|
3077
|
+
return U.value = U.value ?? ((V = s == null ? void 0 : s.find((qe, Je) => (qe == null ? void 0 : qe.prop) === (U == null ? void 0 : U.name))) == null ? void 0 : V.value), U;
|
|
3078
|
+
}), !za.value) return;
|
|
3079
|
+
let u = "", c = re(Vl.value);
|
|
3080
|
+
(M = Vl.value) != null && M.includes("·") && (Vl.value = (K = (_ = Vl.value) == null ? void 0 : _.split("·")) == null ? void 0 : K[0]);
|
|
3081
|
+
let o = (E = (W = (Z = re(a)) == null ? void 0 : Z.find((U) => (U == null ? void 0 : U.key) === "header")) == null ? void 0 : W.contents) == null ? void 0 : E.find((U, V) => {
|
|
3082
|
+
var qe, Je, ul;
|
|
3083
|
+
return (U == null ? void 0 : U.prop) === Vl.value || (V == null ? void 0 : V.toString()) === ((ul = (Je = (qe = Vl.value) == null ? void 0 : qe.split("a")) == null ? void 0 : Je[1]) == null ? void 0 : ul.toString());
|
|
3084
|
+
}), p = (A = o == null ? void 0 : o.optionUrl) == null ? void 0 : A.menuSelect, g = !0;
|
|
3085
|
+
(y = (h = (i = re(a)) == null ? void 0 : i.find((U) => (U == null ? void 0 : U.key) === "header")) == null ? void 0 : h.contents) == null || y.forEach((U) => {
|
|
3086
|
+
var qe, Je, ul, f, de, Ne, b;
|
|
3087
|
+
let V = (Je = (qe = U == null ? void 0 : U.optionUrl) == null ? void 0 : qe.groupSelect) == null ? void 0 : Je[1];
|
|
3088
|
+
!V && !Array.isArray((ul = U == null ? void 0 : U.optionUrl) == null ? void 0 : ul.groupSelect) && (V = (Ne = (de = (f = U == null ? void 0 : U.optionUrl) == null ? void 0 : f.groupSelect) == null ? void 0 : de.split(":")) == null ? void 0 : Ne[1]), g && (V != null && V.includes("[")) && (u = V, JSON.stringify(p) === JSON.stringify((b = U == null ? void 0 : U.optionUrl) == null ? void 0 : b.menuSelect) && (g = !1));
|
|
3089
|
+
});
|
|
3090
|
+
let x = re(r), k = dl.value;
|
|
3091
|
+
k != null && k.find((U) => (o == null ? void 0 : o.prop) === (U == null ? void 0 : U.key)) && (k = k == null ? void 0 : k.filter((U) => (o == null ? void 0 : o.prop) !== (U == null ? void 0 : U.key))), k != null && k.find((U) => c === (U == null ? void 0 : U.key)) && (k = k == null ? void 0 : k.filter((U) => c !== (U == null ? void 0 : U.key))), x = x == null ? void 0 : x.map((U) => {
|
|
3092
|
+
var V, qe, Je, ul, f, de, Ne, b, Ae;
|
|
3093
|
+
return (U == null ? void 0 : U.type) === "Select" && (((qe = (V = U == null ? void 0 : U.optionUrl) == null ? void 0 : V.allSelectionContents) == null ? void 0 : qe.length) > 0 && (U.optionUrl.contactValue = e), ((o == null ? void 0 : o.prop) === (U == null ? void 0 : U.prop) || c === (U == null ? void 0 : U.prop)) && o && (Array.isArray(o.value) && ((Je = o.value) == null ? void 0 : Je.length) > 0 && ((ul = o.value) != null && ul.every((Be) => typeof Be == "string")) ? (k.push({
|
|
3094
|
+
key: U == null ? void 0 : U.prop,
|
|
3095
|
+
value: [(de = o.value) == null ? void 0 : de[((f = o.value) == null ? void 0 : f.length) - 1]]
|
|
3096
|
+
}), U.selectValue = (Ne = k == null ? void 0 : k.find((Be) => (Be == null ? void 0 : Be.key) === (U == null ? void 0 : U.prop))) == null ? void 0 : Ne.value) : Array.isArray(o.value) && ((b = o.value) == null ? void 0 : b.length) === 0 ? (k = [], U.selectValue = [], e[U == null ? void 0 : U.prop] = "") : Array.isArray(U.value) && k.push({
|
|
3097
|
+
key: U == null ? void 0 : U.prop,
|
|
3098
|
+
value: [(Ae = U.value) == null ? void 0 : Ae[(U == null ? void 0 : U.length) - 1]]
|
|
3099
|
+
}))), U.value = e == null ? void 0 : e[U == null ? void 0 : U.prop], U;
|
|
3100
|
+
}), dl.value = k, xe.value = re(x);
|
|
3101
|
+
let w = (o == null ? void 0 : o.menuId) ?? ((X = (O = (z = xe.value) == null ? void 0 : z.find((U) => {
|
|
3102
|
+
var V;
|
|
3103
|
+
return (V = U == null ? void 0 : U.optionUrl) == null ? void 0 : V.menuId;
|
|
3104
|
+
})) == null ? void 0 : O.optionUrl) == null ? void 0 : X.menuId);
|
|
3105
|
+
if ((t = o == null ? void 0 : o.optionUrl) != null && t.menuSelect && za.value || w) {
|
|
3106
|
+
let U = await Lr(o, w), V;
|
|
3107
|
+
if (U == null || U.forEach((f) => {
|
|
3108
|
+
var de, Ne, b, Ae, Be, kl, ml, Sl, _l, Al, Cl, gl, De, Pe, xl, Ll, jl, Bl, v, q, rl, ol, nl, wl, Gl, Te, Jl;
|
|
3109
|
+
if (!w && u === ((Ne = (de = o == null ? void 0 : o.optionUrl) == null ? void 0 : de.groupSelect) == null ? void 0 : Ne[1]) && ((Be = (Ae = (b = o == null ? void 0 : o.optionUrl) == null ? void 0 : b.groupSelect) == null ? void 0 : Ae[1]) != null && Be.includes("[")) && ((Al = re(f)) == null ? void 0 : Al[(_l = (Sl = (ml = (kl = o == null ? void 0 : o.optionUrl) == null ? void 0 : kl.groupSelect) == null ? void 0 : ml[1]) == null ? void 0 : Sl.replaceAll("[", "")) == null ? void 0 : _l.replaceAll("]", "")]) === (o == null ? void 0 : o.value) && (V = f), w) {
|
|
3110
|
+
let Se = (gl = (Cl = xe.value) == null ? void 0 : Cl.find((d) => {
|
|
3111
|
+
var me;
|
|
3112
|
+
return (o == null ? void 0 : o.menuId) === ((me = d == null ? void 0 : d.optionUrl) == null ? void 0 : me.menuId);
|
|
3113
|
+
})) == null ? void 0 : gl.prop, bl = e[Se];
|
|
3114
|
+
if (Se != null && Se.includes("·"))
|
|
3115
|
+
if (!Array.isArray(e[Se]))
|
|
3116
|
+
bl = (Pe = (De = e[Se]) == null ? void 0 : De.split(" ")) == null ? void 0 : Pe[0], Se = (xl = Se == null ? void 0 : Se.split("·")) == null ? void 0 : xl[0];
|
|
3117
|
+
else {
|
|
3118
|
+
Se = (Ll = Se == null ? void 0 : Se.split("·")) == null ? void 0 : Ll[0];
|
|
3119
|
+
let d = (Bl = (jl = x == null ? void 0 : x.find((me) => (me == null ? void 0 : me.prop) === Se)) == null ? void 0 : jl.selectValue) == null ? void 0 : Bl[0];
|
|
3120
|
+
bl = (v = d == null ? void 0 : d.split(" ")) == null ? void 0 : v[0];
|
|
3121
|
+
}
|
|
3122
|
+
let F = (rl = (q = x == null ? void 0 : x.find((d) => {
|
|
3123
|
+
var me;
|
|
3124
|
+
return (d == null ? void 0 : d.prop) === Se || ((me = d == null ? void 0 : d.prop) == null ? void 0 : me.includes("." + Se));
|
|
3125
|
+
})) == null ? void 0 : q.selectValue) == null ? void 0 : rl[0];
|
|
3126
|
+
if (Se != null && Se.includes(".") && !f[Se] && (Se = (nl = Se == null ? void 0 : Se.split(".")) == null ? void 0 : nl[((ol = Se == null ? void 0 : Se.split(".")) == null ? void 0 : ol.length) - 1]), Array.isArray(bl) && !F && (F = bl == null ? void 0 : bl[0]), f[Se] === (Array.isArray(bl) ? F : bl) && (o == null ? void 0 : o.directiveLabel) === "#isMain") {
|
|
3127
|
+
if (c != null && c.includes("·")) {
|
|
3128
|
+
let d = c == null ? void 0 : c.split("·"), me = (Jl = (Te = (Gl = Array.isArray(e == null ? void 0 : e[c]) ? (wl = e == null ? void 0 : e[c]) == null ? void 0 : wl[0] : e == null ? void 0 : e[c]) == null ? void 0 : Gl.split(" ")) == null ? void 0 : Te.filter(($e) => $e && $e !== "")) == null ? void 0 : Jl.map(($e) => $e == null ? void 0 : $e.trim());
|
|
3129
|
+
d == null || d.forEach(($e, Ge) => {
|
|
3130
|
+
f[$e] = me == null ? void 0 : me[Ge];
|
|
3131
|
+
});
|
|
3132
|
+
}
|
|
3133
|
+
V = f;
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
}), el.value && (o == null ? void 0 : o.directiveLabel) === "#isMain" && (ye.value = []), !V) {
|
|
3137
|
+
if (el.value && (o == null ? void 0 : o.directiveLabel) === "#isMain")
|
|
3138
|
+
if (c != null && c.includes("·")) {
|
|
3139
|
+
let f = e, de = (J = (ve = (j = e == null ? void 0 : e[c]) == null ? void 0 : j.split(" ")) == null ? void 0 : ve.filter((b) => b && b !== "")) == null ? void 0 : J.map((b) => b == null ? void 0 : b.trim());
|
|
3140
|
+
(T = c == null ? void 0 : c.split("·")) == null || T.forEach((b, Ae) => {
|
|
3141
|
+
f[b] = de[Ae];
|
|
3142
|
+
});
|
|
3143
|
+
let Ne = (R = xe.value) == null ? void 0 : R.find((b) => (b == null ? void 0 : b.prop) === c);
|
|
3144
|
+
f[Ne.prop] = [Ne.value], V = f;
|
|
3145
|
+
} else {
|
|
3146
|
+
let f = (ce = xe.value) == null ? void 0 : ce.find((de) => (de == null ? void 0 : de.prop) === (o == null ? void 0 : o.prop));
|
|
3147
|
+
e[f.prop] = [f.value], V = e;
|
|
3148
|
+
}
|
|
3149
|
+
else if ((o == null ? void 0 : o.directiveLabel) === "#isMain") {
|
|
3150
|
+
let f = {};
|
|
3151
|
+
(ue = xe.value) == null || ue.forEach((de) => {
|
|
3152
|
+
var Ne, b;
|
|
3153
|
+
(de == null ? void 0 : de.prop) === c ? f[de.prop] = (Ne = de == null ? void 0 : de.selectValue) != null && Ne[0] ? [(b = de == null ? void 0 : de.selectValue) == null ? void 0 : b[0]] : "" : f[de.prop] = "";
|
|
3154
|
+
}), V = f;
|
|
3155
|
+
}
|
|
3156
|
+
}
|
|
3157
|
+
if (V) {
|
|
3158
|
+
let f = re(r);
|
|
3159
|
+
f = f == null ? void 0 : f.map((b) => {
|
|
3160
|
+
var Be, kl, ml, Sl, _l, Al, Cl, gl, De, Pe, xl, Ll, jl, Bl, v, q, rl, ol, nl, wl, Gl, Te, Jl, Se, bl, F, d, me, $e, Ge, yl, He, ca, pa, fa, Me, Wl, ea, ha, Pl, la, Xa, Qa, Ya;
|
|
3161
|
+
if (((Be = b == null ? void 0 : b.prop) != null && Be.includes(".") && (V != null && V[(_l = (kl = b == null ? void 0 : b.prop) == null ? void 0 : kl.split(".")) == null ? void 0 : _l[((Sl = (ml = b == null ? void 0 : b.prop) == null ? void 0 : ml.split(".")) == null ? void 0 : Sl.length) - 1]]) || V != null && V[b == null ? void 0 : b.prop] || V != null && V[(De = (gl = (Cl = (Al = b == null ? void 0 : b.optionUrl) == null ? void 0 : Al.groupSelect) == null ? void 0 : Cl[1]) == null ? void 0 : gl.replaceAll("[", "")) == null ? void 0 : De.replaceAll("]", "")]) && ((Ll = (xl = (Pe = b == null ? void 0 : b.optionUrl) == null ? void 0 : Pe.groupSelect) == null ? void 0 : xl[1]) != null && Ll.includes("[")) && !(b != null && b.relatedValueId))
|
|
3162
|
+
return b.value = (V == null ? void 0 : V[b == null ? void 0 : b.prop]) ?? (V == null ? void 0 : V[(q = (jl = b == null ? void 0 : b.prop) == null ? void 0 : jl.split(".")) == null ? void 0 : q[((v = (Bl = b == null ? void 0 : b.prop) == null ? void 0 : Bl.split(".")) == null ? void 0 : v.length) - 1]]) ?? (V == null ? void 0 : V[(wl = (nl = (ol = (rl = b == null ? void 0 : b.optionUrl) == null ? void 0 : rl.groupSelect) == null ? void 0 : ol[1]) == null ? void 0 : nl.replaceAll("[", "")) == null ? void 0 : wl.replaceAll("]", "")]), b;
|
|
3163
|
+
let Ae = V == null ? void 0 : V[b == null ? void 0 : b.prop];
|
|
3164
|
+
return (Gl = b == null ? void 0 : b.prop) != null && Gl.includes(".") && !Ae && ((Jl = (Te = o == null ? void 0 : o.prop) == null ? void 0 : Te.split(".")) == null ? void 0 : Jl[0]) === ((bl = (Se = b == null ? void 0 : b.prop) == null ? void 0 : Se.split(".")) == null ? void 0 : bl[0]) && (Ae = (V == null ? void 0 : V[($e = (F = b == null ? void 0 : b.prop) == null ? void 0 : F.split(".")) == null ? void 0 : $e[((me = (d = b == null ? void 0 : b.prop) == null ? void 0 : d.split(".")) == null ? void 0 : me.length) - 1]]) ?? (V == null ? void 0 : V[b == null ? void 0 : b.prop])), w && (Ae || Ae === "") && (b != null && b.relatedValueId) && zl.value === "新增" && ((b == null ? void 0 : b.prop) !== (o == null ? void 0 : o.prop) || c != null && c.includes((o == null ? void 0 : o.prop) + "·") || c != null && c.includes("·" + (b == null ? void 0 : b.prop))) ? b.value = Ae ?? (V == null ? void 0 : V[(ca = (He = (yl = (Ge = b == null ? void 0 : b.optionUrl) == null ? void 0 : Ge.groupSelect) == null ? void 0 : yl[1]) == null ? void 0 : He.replaceAll("[", "")) == null ? void 0 : ca.replaceAll("]", "")]) : (c != null && c.includes("·" + (b == null ? void 0 : b.prop)) || c != null && c.includes(".")) && (b == null ? void 0 : b.prop) !== (o == null ? void 0 : o.prop) && !Array.isArray((fa = (pa = xe.value) == null ? void 0 : pa.find((vl) => (vl == null ? void 0 : vl.prop) === (b == null ? void 0 : b.prop))) == null ? void 0 : fa.value) ? b.value = Ae ?? "" : ((Me = b == null ? void 0 : b.optionUrl) == null ? void 0 : Me.multiple) === !0 && !Array.isArray((ea = (Wl = xe.value) == null ? void 0 : Wl.find((vl) => (vl == null ? void 0 : vl.prop) === (b == null ? void 0 : b.prop))) == null ? void 0 : ea.value) ? b.value = ((Pl = (ha = xe.value) == null ? void 0 : ha.find((vl) => (vl == null ? void 0 : vl.prop) === (b == null ? void 0 : b.prop))) == null ? void 0 : Pl.value) === "" ? [] : [(Xa = (la = xe.value) == null ? void 0 : la.find((vl) => (vl == null ? void 0 : vl.prop) === (b == null ? void 0 : b.prop))) == null ? void 0 : Xa.value] : b.value = (Ya = (Qa = xe.value) == null ? void 0 : Qa.find((vl) => (vl == null ? void 0 : vl.prop) === (b == null ? void 0 : b.prop))) == null ? void 0 : Ya.value, b;
|
|
3165
|
+
}), xe.value = re(f);
|
|
3166
|
+
let de = re(f);
|
|
3167
|
+
de = de == null ? void 0 : de.map((b) => {
|
|
3168
|
+
var Ae, Be, kl, ml, Sl, _l, Al, Cl, gl;
|
|
3169
|
+
return (Be = (Ae = b == null ? void 0 : b.optionUrl) == null ? void 0 : Ae.menuSelect) != null && Be.some((De) => De == null ? void 0 : De.includes("[")) && (b.optionUrl.oldMenuSelect = (ml = (kl = re(b)) == null ? void 0 : kl.optionUrl) == null ? void 0 : ml.menuSelect, b.optionUrl.menuSelect = (_l = (Sl = b == null ? void 0 : b.optionUrl) == null ? void 0 : Sl.menuSelect) == null ? void 0 : _l.map((De) => {
|
|
3170
|
+
var Pe, xl, Ll, jl;
|
|
3171
|
+
if (De != null && De.includes("[")) {
|
|
3172
|
+
let Bl = (xl = (Pe = De == null ? void 0 : De.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : Pe.split(":")) == null ? void 0 : xl[1];
|
|
3173
|
+
De = (jl = (Ll = re(f)) == null ? void 0 : Ll.find((v) => (v == null ? void 0 : v.label) === Bl)) == null ? void 0 : jl.value;
|
|
3174
|
+
}
|
|
3175
|
+
return De;
|
|
3176
|
+
})), ((o == null ? void 0 : o.prop) === (b == null ? void 0 : b.prop) || c === (b == null ? void 0 : b.prop)) && Array.isArray(o.value) && (Al = o.value) != null && Al.every((De) => typeof De == "string") && (b.selectValue = ((Cl = k == null ? void 0 : k.find((De) => (De == null ? void 0 : De.key) === (b == null ? void 0 : b.prop))) == null ? void 0 : Cl.value) ?? ((gl = b.value) == null ? void 0 : gl[0])), b;
|
|
3177
|
+
}), xe.value = de;
|
|
3178
|
+
let Ne = {};
|
|
3179
|
+
(se = xe.value) == null || se.forEach((b) => {
|
|
3180
|
+
Ne[b.prop] = b == null ? void 0 : b.value;
|
|
3181
|
+
}), $l.value = Ne;
|
|
3182
|
+
}
|
|
3183
|
+
let qe = ye.value, Je = {};
|
|
3184
|
+
(_e = xe.value) == null || _e.forEach((f) => {
|
|
3185
|
+
var de, Ne, b, Ae, Be, kl, ml, Sl, _l, Al, Cl;
|
|
3186
|
+
if (((f == null ? void 0 : f.directiveLabel) === "#isMain" || (de = f == null ? void 0 : f.optionUrl) != null && de.menuId) && Array.isArray(f == null ? void 0 : f.value)) {
|
|
3187
|
+
if (Je[f.prop] || (Je[f.prop] = (b = f.value) == null ? void 0 : b[((Ne = f.value) == null ? void 0 : Ne.length) - 1]), (Ae = f == null ? void 0 : f.prop) != null && Ae.includes("·")) {
|
|
3188
|
+
let gl = (ml = (kl = (Be = f == null ? void 0 : f.prop) == null ? void 0 : Be.split("·")) == null ? void 0 : kl.filter((Pe) => Pe && Pe !== "")) == null ? void 0 : ml.map((Pe) => Pe == null ? void 0 : Pe.trim()), De = (Cl = (Al = (_l = (Sl = f == null ? void 0 : f.selectValue) == null ? void 0 : Sl[0]) == null ? void 0 : _l.split(" ")) == null ? void 0 : Al.filter((Pe) => Pe && Pe !== "")) == null ? void 0 : Cl.map((Pe) => Pe == null ? void 0 : Pe.trim());
|
|
3189
|
+
gl == null || gl.forEach((Pe, xl) => {
|
|
3190
|
+
Je = Object.assign({}, Je, { [Pe]: De == null ? void 0 : De[xl] });
|
|
3191
|
+
});
|
|
3192
|
+
}
|
|
3193
|
+
} else
|
|
3194
|
+
Je[f.prop] = (Je == null ? void 0 : Je[f == null ? void 0 : f.prop]) ?? f.value;
|
|
3195
|
+
});
|
|
3196
|
+
let ul = (je = xe.value) == null ? void 0 : je.find((f) => {
|
|
3197
|
+
var de;
|
|
3198
|
+
return (f == null ? void 0 : f.directiveLabel) === "#isMain" || ((de = f == null ? void 0 : f.optionUrl) == null ? void 0 : de.menuId);
|
|
3199
|
+
});
|
|
3200
|
+
(o == null ? void 0 : o.directiveLabel) === "#isMain" && ((pe = o == null ? void 0 : o.value) == null ? void 0 : pe[((Y = o == null ? void 0 : o.value) == null ? void 0 : Y.length) - 1]) !== "" ? qe.push({
|
|
3201
|
+
label: o == null ? void 0 : o.prop,
|
|
3202
|
+
value: (ge = o == null ? void 0 : o.value) == null ? void 0 : ge[((Ke = o == null ? void 0 : o.value) == null ? void 0 : Ke.length) - 1],
|
|
3203
|
+
objectValue: Je
|
|
3204
|
+
}) : ((ke = ul == null ? void 0 : ul.value) == null ? void 0 : ke.length) > 0 && ((Ye = o == null ? void 0 : o.value) == null ? void 0 : Ye[((Ee = o == null ? void 0 : o.value) == null ? void 0 : Ee.length) - 1]) !== "" && (qe = qe == null ? void 0 : qe.map((f) => {
|
|
3205
|
+
var de;
|
|
3206
|
+
return (f == null ? void 0 : f.value) === ((de = ul == null ? void 0 : ul.selectValue) == null ? void 0 : de[0]) && (f.objectValue = Je), f;
|
|
3207
|
+
})), ye.value = qe;
|
|
3208
|
+
}
|
|
3209
|
+
za.value = !0, el.value = !1;
|
|
3210
|
+
}, Vs = (e) => e ? (e == null ? void 0 : e.toUpperCase()) === "INPUT" ? "TEXTAREA" : e : "TEXTAREA", eo = (e) => {
|
|
3211
|
+
var u, c;
|
|
3212
|
+
const l = (c = (u = Xl.value) == null ? void 0 : u.find((o) => (o == null ? void 0 : o.label) === (e == null ? void 0 : e.label))) == null ? void 0 : c.multiple, a = e == null ? void 0 : e.prop;
|
|
3213
|
+
if ((e == null ? void 0 : e.formType) != "Select")
|
|
3214
|
+
return;
|
|
3215
|
+
I.value.forEach((o) => {
|
|
3216
|
+
const p = o == null ? void 0 : o[a];
|
|
3217
|
+
l && En(p) && (o[a] = [p]), !l && !En(p) && (o[a] = "");
|
|
3218
|
+
});
|
|
3219
|
+
}, an = (e, l) => {
|
|
3220
|
+
var a;
|
|
3221
|
+
return l == null || l.forEach((r) => {
|
|
3222
|
+
e[r == null ? void 0 : r.prop] = r == null ? void 0 : r.value;
|
|
3223
|
+
}), e.children && ((a = e.children) == null ? void 0 : a.length) > 0 && (e.children = e.children.map((r) => an(r, l))), e;
|
|
3224
|
+
}, xr = (e) => {
|
|
3225
|
+
var a, r, s, u, c, o;
|
|
3226
|
+
Ga("");
|
|
3227
|
+
const l = (a = xe.value) == null ? void 0 : a.reduce((p, g) => (p[g.name] = g.value, p), {});
|
|
3228
|
+
if (((r = Object.keys(l)) == null ? void 0 : r.length) > 0) {
|
|
3229
|
+
$l.value = l, sa.value = "", Oa.value = (s = I.value) == null ? void 0 : s.length, Rl.value = (u = Ml.value) == null ? void 0 : u.filter((g) => (g == null ? void 0 : g.label) !== "新增");
|
|
3230
|
+
const p = (o = (c = L.value) == null ? void 0 : c.filter((g) => (g == null ? void 0 : g.label) !== "操作")) == null ? void 0 : o.map((g) => {
|
|
3231
|
+
var k, w, $;
|
|
3232
|
+
const x = (w = (k = Xl.value) == null ? void 0 : k.find((N) => (N == null ? void 0 : N.label) === (g == null ? void 0 : g.label))) == null ? void 0 : w.multiple;
|
|
3233
|
+
return eo(g), {
|
|
3234
|
+
...g,
|
|
3235
|
+
contents: (g == null ? void 0 : g.options) ?? [],
|
|
3236
|
+
// type: 'edit',
|
|
3237
|
+
optionUrl: g != null && g.formMenuSelect && (($ = g == null ? void 0 : g.formMenuSelect) == null ? void 0 : $.length) > 0 ? {
|
|
3238
|
+
groupSelect: g == null ? void 0 : g.groupSelect,
|
|
3239
|
+
menuSelect: g == null ? void 0 : g.formMenuSelect,
|
|
3240
|
+
selectRelateType: "",
|
|
3241
|
+
type: g == null ? void 0 : g.formType,
|
|
3242
|
+
multiple: x
|
|
3243
|
+
} : null
|
|
3244
|
+
// 表格编辑视图组件类型:兼容表头类型切换逻辑,优先模型里定义的类型,其次是手动配置的类型
|
|
3245
|
+
// columnType: convertColType(col?.formType) || col?.columnType
|
|
3246
|
+
};
|
|
3247
|
+
});
|
|
3248
|
+
B.value = p == null ? void 0 : p.map((g) => an(g, [{
|
|
3249
|
+
prop: "type",
|
|
3250
|
+
value: "edit"
|
|
3251
|
+
}, { prop: "columnType", value: Vs(g == null ? void 0 : g.formType) || (g == null ? void 0 : g.columnType) }])), e === "createClick" && Ha(!1);
|
|
3252
|
+
}
|
|
3253
|
+
}, Da = {
|
|
3254
|
+
START: "开始时间",
|
|
3255
|
+
END: "结束时间",
|
|
3256
|
+
HOURS: "工时"
|
|
3257
|
+
}, lo = (e, l) => Number(On(l).diff(On(e), "day", !0).toFixed(1)), rn = (e) => {
|
|
3258
|
+
var u;
|
|
3259
|
+
const l = n.itemData, a = (u = l == null ? void 0 : l.find((c) => (c == null ? void 0 : c.key) === "header")) == null ? void 0 : u.contents, r = /* @__PURE__ */ new Map();
|
|
3260
|
+
return a == null || a.forEach((c, o) => {
|
|
3261
|
+
const { label: p } = c;
|
|
3262
|
+
r.set(p, o);
|
|
3263
|
+
}), !r.has(Da.START) || !r.has(Da.END) || !r.has(Da.HOURS) ? e : e == null ? void 0 : e.map((c) => {
|
|
3264
|
+
const o = c == null ? void 0 : c[Da.START], p = c == null ? void 0 : c[Da.END], g = lo(o, p);
|
|
3265
|
+
return o && p && (c[Da.HOURS] = `${g}天`), c;
|
|
3266
|
+
});
|
|
3267
|
+
}, nn = (e, l, a = 0) => {
|
|
3268
|
+
if (a > ((l == null ? void 0 : l.length) ?? "")) return e;
|
|
3269
|
+
const r = l == null ? void 0 : l[a], s = /* @__PURE__ */ new Map();
|
|
3270
|
+
for (const c of e) {
|
|
3271
|
+
const o = c[r];
|
|
3272
|
+
s.has(o) || s.set(o, []), s.get(o) && s.get(o).push(c);
|
|
3273
|
+
}
|
|
3274
|
+
const u = [];
|
|
3275
|
+
for (const [c, o] of s) {
|
|
3276
|
+
const [p, ...g] = o, x = { ...p };
|
|
3277
|
+
a + 1 === ((l == null ? void 0 : l.length) ?? "") ? x.children = o == null ? void 0 : o.map((k) => (k.level = re(a) + 1, k)).filter((k, w) => w !== 0) : g.length > 0 && (x.children = nn(g, l, a + 1)), x.level = a, u.push(x);
|
|
3278
|
+
}
|
|
3279
|
+
return u;
|
|
3280
|
+
}, sn = (e, l, a) => {
|
|
3281
|
+
var s;
|
|
3282
|
+
if (!(l != null && l.contents) || ((s = l == null ? void 0 : l.contents) == null ? void 0 : s.length) === 0)
|
|
3283
|
+
return e;
|
|
3284
|
+
let r = [];
|
|
3285
|
+
return r = nn(e, l == null ? void 0 : l.contents, 0), r;
|
|
3286
|
+
}, on = async (e, l) => {
|
|
3287
|
+
var M, _, K, Z, W, E, A, i, h, y, z, O, X, t, j, ve, J, T, R, ce, ue, se, _e, je, Y, pe, Ke, ge, ke, Ee, Ye, U, V, qe, Je, ul, f, de, Ne, b, Ae, Be, kl, ml, Sl, _l, Al, Cl, gl, De, Pe, xl, Ll, jl, Bl;
|
|
3288
|
+
const a = e == null ? void 0 : e.filter((v) => (v == null ? void 0 : v.key) === "header");
|
|
3289
|
+
e == null || e.filter((v) => (v == null ? void 0 : v.key) === "tableIndexColumn")[0];
|
|
3290
|
+
const r = e == null ? void 0 : e.filter((v) => (v == null ? void 0 : v.key) === "childTree")[0];
|
|
3291
|
+
let s = !0;
|
|
3292
|
+
if ((K = (_ = (M = e == null ? void 0 : e.find((v) => (v == null ? void 0 : v.key) === "filterAllType")) == null ? void 0 : M.value) == null ? void 0 : _.find((v) => (v == null ? void 0 : v.value) === "onPamButtonContents")) != null && K.content) {
|
|
3293
|
+
let v = (E = (W = (Z = e == null ? void 0 : e.find((q) => (q == null ? void 0 : q.key) === "filterAllType")) == null ? void 0 : Z.value) == null ? void 0 : W.find((q) => (q == null ? void 0 : q.value) === "onPamButtonContents")) == null ? void 0 : E.content;
|
|
3294
|
+
v = (A = v == null ? void 0 : v.split(":")) == null ? void 0 : A[1], v = (i = v.slice(1, (v == null ? void 0 : v.length) - 1)) == null ? void 0 : i.split(","), s = !!(v != null && v.find((q) => q === "操作"));
|
|
3295
|
+
}
|
|
3296
|
+
let u = l;
|
|
3297
|
+
const c = e == null ? void 0 : e.find((v) => (v == null ? void 0 : v.key) === "page"), o = e == null ? void 0 : e.find((v) => (v == null ? void 0 : v.key) === "rowButton"), p = e == null ? void 0 : e.find((v) => (v == null ? void 0 : v.key) === "extraButton"), g = e == null ? void 0 : e.filter((v) => (v == null ? void 0 : v.key) === "tableContents"), x = e == null ? void 0 : e.filter((v) => (v == null ? void 0 : v.key) === "tableIndex");
|
|
3298
|
+
Xl.value = (y = (h = e == null ? void 0 : e.filter((v) => (v == null ? void 0 : v.key) === "tableToForm")) == null ? void 0 : h[0]) == null ? void 0 : y.contents, Rr.value = (c == null ? void 0 : c.contents) ?? !0;
|
|
3299
|
+
let k = [];
|
|
3300
|
+
ma.value === "" ? k = a == null ? void 0 : a[0] : k = (a == null ? void 0 : a.find((v) => (v == null ? void 0 : v.selectLabel) === "(" + ma.value + ")")) ?? (a == null ? void 0 : a.find((v) => !(v != null && v.selectLabel)));
|
|
3301
|
+
let w = [];
|
|
3302
|
+
ma.value === "" ? w = x == null ? void 0 : x[0] : w = (x == null ? void 0 : x.find((v) => (v == null ? void 0 : v.selectLabel) === "(" + ma.value + ")")) ?? (x == null ? void 0 : x.find((v) => !(v != null && v.selectLabel)));
|
|
3303
|
+
let $ = [], N = [];
|
|
3304
|
+
if (((z = k == null ? void 0 : k.contents) == null ? void 0 : z.length) > 0) {
|
|
3305
|
+
let v = [], q = k == null ? void 0 : k.contents;
|
|
3306
|
+
if (Array.isArray(q == null ? void 0 : q[0]) && ((O = q == null ? void 0 : q[0]) != null && O.every((F) => !(F != null && F.children))) && (q = q == null ? void 0 : q[0]), q.some((F) => Array.isArray(F) && (F == null ? void 0 : F.find((d) => d.children))))
|
|
3307
|
+
Fa.value === "" ? v = (t = (X = Cn(q, s, u)) == null ? void 0 : X[0]) == null ? void 0 : t.filter((F) => !Array.isArray(F)) : (Fa.value.split("-"), v = (j = Cn(q, s, u)) == null ? void 0 : j[0]);
|
|
3308
|
+
else {
|
|
3309
|
+
let F = q.some((d) => Array.isArray(d)) ? q == null ? void 0 : q[0] : q;
|
|
3310
|
+
F != null && F.find((d) => (d == null ? void 0 : d.label) === "操作") || F.push({
|
|
3311
|
+
label: "操作"
|
|
3312
|
+
}), F == null || F.forEach((d, me) => {
|
|
3313
|
+
var yl, He, ca, pa, fa, Me, Wl, ea, ha, Pl, la, Xa, Qa, Ya, vl, tn, dn, pn, fn, hn, yn, vn;
|
|
3314
|
+
let $e = "";
|
|
3315
|
+
if ((He = (yl = We.value) == null ? void 0 : yl.split("/")) == null || He.forEach((Le) => {
|
|
3316
|
+
var Fe, ta, gn;
|
|
3317
|
+
if (Le !== "") {
|
|
3318
|
+
let bn = (gn = (ta = (Fe = Le == null ? void 0 : Le.split(he + "updateLoading")) == null ? void 0 : Fe[0]) == null ? void 0 : ta.split(he + "loading")) == null ? void 0 : gn[0];
|
|
3319
|
+
$e = $e === "" ? $e + bn : $e + "/" + bn;
|
|
3320
|
+
}
|
|
3321
|
+
}), d != null && d.methodContent) {
|
|
3322
|
+
let Le = (fa = (pa = (ca = d == null ? void 0 : d.methodContent) == null ? void 0 : ca.replace("@", "%%#")) == null ? void 0 : pa.split("%%#")) == null ? void 0 : fa[1];
|
|
3323
|
+
if (Le = Le == null ? void 0 : Le.slice(0, (Le == null ? void 0 : Le.length) - 1), Le = Uo(Le ?? "", ","), (Me = Le == null ? void 0 : Le.find((Fe) => Fe == null ? void 0 : Fe.includes("@Button"))) != null && Me.includes("Prop") && ((Wl = Le == null ? void 0 : Le.find((Fe) => Fe == null ? void 0 : Fe.includes("Type"))) != null && Wl.includes("Manual"))) {
|
|
3324
|
+
let Fe = (ha = (ea = Le == null ? void 0 : Le.find((ta) => ta == null ? void 0 : ta.includes("@Button"))) == null ? void 0 : ea.split(":")) == null ? void 0 : ha[1];
|
|
3325
|
+
Fe = ((Xa = (la = (Pl = Fe == null ? void 0 : Fe.replaceAll("[", "")) == null ? void 0 : Pl.replaceAll("]", "")) == null ? void 0 : la.split(",")) == null ? void 0 : Xa[1]) ?? "算法执行", $.push(Fe);
|
|
3326
|
+
} else if ((Qa = Le == null ? void 0 : Le.find((Fe) => Fe == null ? void 0 : Fe.includes("@Button"))) != null && Qa.includes("Row") && ((Ya = Le == null ? void 0 : Le.find((Fe) => Fe == null ? void 0 : Fe.includes("Type"))) != null && Ya.includes("Manual"))) {
|
|
3327
|
+
let Fe = (tn = (vl = Le == null ? void 0 : Le.find((ta) => ta == null ? void 0 : ta.includes("@Button"))) == null ? void 0 : vl.split(":")) == null ? void 0 : tn[1];
|
|
3328
|
+
Fe = ((fn = (pn = (dn = Fe == null ? void 0 : Fe.replaceAll("[", "")) == null ? void 0 : dn.replaceAll("]", "")) == null ? void 0 : pn.split(",")) == null ? void 0 : fn[1]) ?? "算法执行", N.push(Fe);
|
|
3329
|
+
}
|
|
3330
|
+
}
|
|
3331
|
+
$e = $e + "/";
|
|
3332
|
+
const Ge = (hn = Xl.value) == null ? void 0 : hn.find((Le) => (Le == null ? void 0 : Le.prop) === (d == null ? void 0 : d.prop));
|
|
3333
|
+
v.push({
|
|
3334
|
+
label: (d == null ? void 0 : d.label) === "操作" ? s ? "操作" : "" : (d == null ? void 0 : d.label) ?? "",
|
|
3335
|
+
prop: (d == null ? void 0 : d.label) === "操作" ? "operate" : (d == null ? void 0 : d.prop) ?? "a" + me,
|
|
3336
|
+
// width: t?.label === '操作' ? '200' : (t?.width ? parseInt(t.width) : ''),
|
|
3337
|
+
width: d != null && d.width ? parseInt(d.width) : "",
|
|
3338
|
+
fixed: (d == null ? void 0 : d.fixed) ?? void 0,
|
|
3339
|
+
sortable: (d == null ? void 0 : d.sortable) ?? !1,
|
|
3340
|
+
filterable: (d == null ? void 0 : d.filterable) ?? !1,
|
|
3341
|
+
operable: (d == null ? void 0 : d.operable) ?? !1,
|
|
3342
|
+
showSummary: (d == null ? void 0 : d.showSummary) ?? !1,
|
|
3343
|
+
align: (d == null ? void 0 : d.align) ?? "left",
|
|
3344
|
+
showOverflowTooltip: (d == null ? void 0 : d.showOverflowTooltip) ?? !0,
|
|
3345
|
+
isNotDrag: (d == null ? void 0 : d.isNotDrag) ?? !1,
|
|
3346
|
+
isEditCol: (d == null ? void 0 : d.isEditCol) ?? !1,
|
|
3347
|
+
isOperate: (d == null ? void 0 : d.isOperate) ?? !1,
|
|
3348
|
+
id: (d == null ? void 0 : d.id) ?? me,
|
|
3349
|
+
type: (d == null ? void 0 : d.label) === "操作" ? "operate" : void 0,
|
|
3350
|
+
formType: (d == null ? void 0 : d.formType) ?? (d != null && d.groupSelect ? "Select" : ""),
|
|
3351
|
+
isTableColHidden: d == null ? void 0 : d.isTableColHidden,
|
|
3352
|
+
isFormColHidden: d == null ? void 0 : d.isFormColHidden,
|
|
3353
|
+
disabled: d == null ? void 0 : d.disabled,
|
|
3354
|
+
options: (d == null ? void 0 : d.options) ?? [],
|
|
3355
|
+
value: (d == null ? void 0 : d.value) ?? "",
|
|
3356
|
+
formMenuSelect: (d == null ? void 0 : d.formMenuSelect) ?? [],
|
|
3357
|
+
isRoute: (d == null ? void 0 : d.isRoute) ?? !1,
|
|
3358
|
+
groupSelect: d != null && d.groupSelect ? (yn = d == null ? void 0 : d.groupSelect) == null ? void 0 : yn.replaceAll('"', "").split(":") : [],
|
|
3359
|
+
isMainKey: (d == null ? void 0 : d.isMainKey) || (d == null ? void 0 : d.directiveLabel) === "#isMain",
|
|
3360
|
+
// 同步弹窗列类型到表格列类型
|
|
3361
|
+
columnType: (Ge == null ? void 0 : Ge.type) || (d == null ? void 0 : d.columnType) || "TEXTAREA",
|
|
3362
|
+
directiveLabel: d == null ? void 0 : d.directiveLabel,
|
|
3363
|
+
directiveColor: (d == null ? void 0 : d.directiveColor) ?? !1,
|
|
3364
|
+
isExistChild: !!(d != null && d.directiveLabel && (u != null && u[$e]) && !((vn = d == null ? void 0 : d.directiveLabel) != null && vn.includes("@")) && (d == null ? void 0 : d.directiveLabel) === "#isMain"),
|
|
3365
|
+
childPath: (d == null ? void 0 : d.directiveLabel) !== "#isMain" ? $e : void 0,
|
|
3366
|
+
allSelectionContents: (d == null ? void 0 : d.allSelectionContents) ?? [],
|
|
3367
|
+
selectFilter: d == null ? void 0 : d.selectFilter,
|
|
3368
|
+
menuId: d == null ? void 0 : d.menuId,
|
|
3369
|
+
filterContent: d == null ? void 0 : d.filterContent,
|
|
3370
|
+
relatedValueId: d == null ? void 0 : d.relatedValueId,
|
|
3371
|
+
methodContent: d == null ? void 0 : d.methodContent
|
|
3372
|
+
});
|
|
3373
|
+
});
|
|
3374
|
+
}
|
|
3375
|
+
const rl = Eo(v);
|
|
3376
|
+
await ps(rl), Ri(Tl.value, rl), B.value = rl, fr.value = rl, S.value = (ve = B.value) == null ? void 0 : ve.map((F) => F == null ? void 0 : F.label);
|
|
3377
|
+
let ol = (T = (J = Tn(B.value)) == null ? void 0 : J.filter((F) => (F == null ? void 0 : F.type) !== "operate")) == null ? void 0 : T.map((F, d) => ({
|
|
3378
|
+
prop: (F == null ? void 0 : F.prop) ?? "a" + d,
|
|
3379
|
+
column: F.label
|
|
3380
|
+
}));
|
|
3381
|
+
Yl.value = ol;
|
|
3382
|
+
let nl = [];
|
|
3383
|
+
ma.value === "" ? nl = g == null ? void 0 : g[0] : nl = (g == null ? void 0 : g.find((F) => (F == null ? void 0 : F.selectLabel) === "(" + ma.value + ")")) ?? (g == null ? void 0 : g.find((F) => !(F != null && F.selectLabel)));
|
|
3384
|
+
let wl = Array.isArray((R = nl == null ? void 0 : nl.contents) == null ? void 0 : R[0]) && ((ce = nl == null ? void 0 : nl.contents) != null && ce[0].every((F) => Array.isArray(F))) ? (ue = nl == null ? void 0 : nl.contents) == null ? void 0 : ue[0] : nl == null ? void 0 : nl.contents;
|
|
3385
|
+
w != null && w.contents && ((se = w == null ? void 0 : w.contents) == null ? void 0 : se.length) !== 0 && (wl = (_e = re(wl)) == null ? void 0 : _e.map((F, d) => {
|
|
3386
|
+
if (!Array.isArray(F)) {
|
|
3387
|
+
let me = {};
|
|
3388
|
+
for (let $e in F)
|
|
3389
|
+
$e !== "id" && $e !== "index" && (me[$e] = F[$e]);
|
|
3390
|
+
F = Object.values(me);
|
|
3391
|
+
}
|
|
3392
|
+
return F;
|
|
3393
|
+
}));
|
|
3394
|
+
const Gl = !!((je = B.value) != null && je.find((F) => F.prop === "index"));
|
|
3395
|
+
wl = Bn(wl, w == null ? void 0 : w.contents, Gl);
|
|
3396
|
+
const Te = [];
|
|
3397
|
+
wl == null || wl.forEach((F, d) => {
|
|
3398
|
+
var $e;
|
|
3399
|
+
let me = {};
|
|
3400
|
+
if (Array.isArray(F)) {
|
|
3401
|
+
let Ge = [];
|
|
3402
|
+
F == null || F.filter((yl) => !(yl != null && yl.id)).forEach((yl, He) => {
|
|
3403
|
+
var ca, pa, fa, Me, Wl, ea;
|
|
3404
|
+
if ((ca = ol == null ? void 0 : ol[He]) != null && ca.prop && !Array.isArray(yl)) {
|
|
3405
|
+
let ha = {};
|
|
3406
|
+
ha[ol[He].column] = yl, Qe != null && Qe.value && ((pa = Qe == null ? void 0 : Qe.value) == null ? void 0 : pa.length) > 0 && ((fa = Qe == null ? void 0 : Qe.value) != null && fa.find((Pl) => JSON.stringify(Pl == null ? void 0 : Pl[0]) === JSON.stringify(ha))) && (Ge = (Me = Qe == null ? void 0 : Qe.value) == null ? void 0 : Me.find((Pl) => JSON.stringify(Pl == null ? void 0 : Pl[0]) === JSON.stringify(ha))), Ge && Ge.length > 0 ? me[ol[He].prop] = Ge != null && Ge.find((Pl) => {
|
|
3407
|
+
var la;
|
|
3408
|
+
return ((la = Object.keys(Pl)) == null ? void 0 : la[0]) === ol[He].column;
|
|
3409
|
+
}) ? (Wl = Ge == null ? void 0 : Ge.find((Pl) => {
|
|
3410
|
+
var la;
|
|
3411
|
+
return ((la = Object.keys(Pl)) == null ? void 0 : la[0]) === ol[He].column;
|
|
3412
|
+
})) == null ? void 0 : Wl[ol[He].column] : yl : me[ol[He].prop] = yl;
|
|
3413
|
+
} else Array.isArray(yl) && ((ea = ol[He]) != null && ea.prop ? me[ol[He].prop] = yl : me.children = jr(yl, ol));
|
|
3414
|
+
});
|
|
3415
|
+
} else
|
|
3416
|
+
me = F;
|
|
3417
|
+
if (Array.isArray(F) && F.some((Ge) => Ge == null ? void 0 : Ge.id)) {
|
|
3418
|
+
const Ge = ($e = F == null ? void 0 : F.find((yl) => yl.id)) == null ? void 0 : $e.id;
|
|
3419
|
+
Te.push(Object.assign(me, { id: qr(Ge) }));
|
|
3420
|
+
} else me.id ? Te.push(me) : Te.push(Object.assign(me, { id: d.toString() }));
|
|
3421
|
+
});
|
|
3422
|
+
try {
|
|
3423
|
+
const F = JSON.parse(sessionStorage.getItem("ocr_last_saved_table") || "null"), d = JSON.parse(sessionStorage.getItem("ocr_last_saved_ids") || "null"), me = F == null ? void 0 : F.tableId, $e = F == null ? void 0 : F.compIndex;
|
|
3424
|
+
if (me && Array.isArray(d) && d.length > 0 && String(me) === String(n == null ? void 0 : n.parentTableId) && String($e) === String(n == null ? void 0 : n.index)) {
|
|
3425
|
+
const Ge = new Set(Te.map((He) => String(He == null ? void 0 : He.id))), yl = d.filter((He) => !Ge.has(String(He)));
|
|
3426
|
+
if (yl.length > 0) {
|
|
3427
|
+
const He = F == null ? void 0 : F.pageKey, ca = He != null && He.startsWith("/") ? He.substring(1) : He;
|
|
3428
|
+
((l == null ? void 0 : l[He]) || (l == null ? void 0 : l[ca]) || []).filter(
|
|
3429
|
+
(Me) => {
|
|
3430
|
+
var Wl, ea;
|
|
3431
|
+
return ((Wl = Me == null ? void 0 : Me.key) == null ? void 0 : Wl.type) === "data" && String((ea = Me == null ? void 0 : Me.key) == null ? void 0 : ea.tableId) === String(me) && yl.includes(Me == null ? void 0 : Me.id);
|
|
3432
|
+
}
|
|
3433
|
+
).forEach((Me) => {
|
|
3434
|
+
var Wl;
|
|
3435
|
+
Ge.has(String(Me == null ? void 0 : Me.id)) || (Te.push({ id: Me == null ? void 0 : Me.id, ...((Wl = Me == null ? void 0 : Me.value) == null ? void 0 : Wl.tableData) || {} }), Ge.add(String(Me == null ? void 0 : Me.id)));
|
|
3436
|
+
});
|
|
3437
|
+
}
|
|
3438
|
+
}
|
|
3439
|
+
} catch {
|
|
3440
|
+
}
|
|
3441
|
+
const Jl = Array.from(((Y = ql.value) == null ? void 0 : Y.values()) || []).filter(
|
|
3442
|
+
(F) => (F == null ? void 0 : F._isOCRRow) && (F == null ? void 0 : F._ocrTableId) === (n == null ? void 0 : n.index)
|
|
3443
|
+
);
|
|
3444
|
+
I.value = sn(Te, r, B.value), na.value = Te, (pe = na.value) == null || pe.forEach((F) => {
|
|
3445
|
+
var d;
|
|
3446
|
+
(d = ql.value) == null || d.set(F.id, F);
|
|
3447
|
+
});
|
|
3448
|
+
const Se = JSON.parse(sessionStorage.getItem("ocr_last_saved_table") || "null"), bl = JSON.parse(sessionStorage.getItem("ocr_last_saved_ids") || "null");
|
|
3449
|
+
if (Se && Array.isArray(bl) && bl.length > 0 && String(Se == null ? void 0 : Se.compIndex) === String(n == null ? void 0 : n.index)) {
|
|
3450
|
+
const F = new Set((na.value || []).map((d) => String(d == null ? void 0 : d.id)));
|
|
3451
|
+
bl.filter((d) => !F.has(String(d)));
|
|
3452
|
+
}
|
|
3453
|
+
if (Jl.length > 0) {
|
|
3454
|
+
const F = new Set((I.value || []).map((me) => me == null ? void 0 : me.id)), d = Jl.filter((me) => !F.has(me.id));
|
|
3455
|
+
d.length > 0 && (I.value = [...I.value || [], ...d], na.value = [...na.value || [], ...d], d.forEach((me) => {
|
|
3456
|
+
var $e;
|
|
3457
|
+
return ($e = ql.value) == null ? void 0 : $e.set(me.id, me);
|
|
3458
|
+
}));
|
|
3459
|
+
}
|
|
3460
|
+
} else
|
|
3461
|
+
B.value = [], L.value = [], I.value = [], na.value = [], ql.value = /* @__PURE__ */ new Map();
|
|
3462
|
+
if (N = [...new Set(N)], N = N == null ? void 0 : N.map((v) => ({
|
|
3463
|
+
label: v,
|
|
3464
|
+
type: "methodButton"
|
|
3465
|
+
})), ((Ke = o == null ? void 0 : o.contents) == null ? void 0 : Ke.length) > 0)
|
|
3466
|
+
if ((Ee = (ke = (ge = e == null ? void 0 : e.find((v) => (v == null ? void 0 : v.key) === "filterAllType")) == null ? void 0 : ge.value) == null ? void 0 : ke.find((v) => (v == null ? void 0 : v.value) === "onRowButtonContents")) != null && Ee.content) {
|
|
3467
|
+
let v = (V = (U = (Ye = e == null ? void 0 : e.find((q) => (q == null ? void 0 : q.key) === "filterAllType")) == null ? void 0 : Ye.value) == null ? void 0 : U.find((q) => (q == null ? void 0 : q.value) === "onButtonContents")) == null ? void 0 : V.content;
|
|
3468
|
+
v = (qe = v == null ? void 0 : v.split(":")) == null ? void 0 : qe[1], v = (Je = v.slice(1, (v == null ? void 0 : v.length) - 1)) == null ? void 0 : Je.split(","), ia.value = (ul = o == null ? void 0 : o.contents) == null ? void 0 : ul.filter((q) => v == null ? void 0 : v.find((rl) => rl === (q == null ? void 0 : q.label)));
|
|
3469
|
+
} else
|
|
3470
|
+
ia.value = o == null ? void 0 : o.contents;
|
|
3471
|
+
else
|
|
3472
|
+
ia.value = [];
|
|
3473
|
+
if (ia.value = [...ia.value, ...N], $ = [...new Set($)], $ = $ == null ? void 0 : $.map((v) => ({
|
|
3474
|
+
label: v,
|
|
3475
|
+
type: "methodButton"
|
|
3476
|
+
})), ((f = p == null ? void 0 : p.contents) == null ? void 0 : f.length) > 0)
|
|
3477
|
+
if ((b = (Ne = (de = e == null ? void 0 : e.find((v) => (v == null ? void 0 : v.key) === "filterAllType")) == null ? void 0 : de.value) == null ? void 0 : Ne.find((v) => (v == null ? void 0 : v.value) === "onButtonContents")) != null && b.content) {
|
|
3478
|
+
let v = (kl = (Be = (Ae = e == null ? void 0 : e.find((q) => (q == null ? void 0 : q.key) === "filterAllType")) == null ? void 0 : Ae.value) == null ? void 0 : Be.find((q) => (q == null ? void 0 : q.value) === "onButtonContents")) == null ? void 0 : kl.content;
|
|
3479
|
+
if (v = (ml = v == null ? void 0 : v.split(":")) == null ? void 0 : ml[1], v = (Sl = v.slice(1, (v == null ? void 0 : v.length) - 1)) == null ? void 0 : Sl.split(","), Rl.value = (_l = p == null ? void 0 : p.contents) == null ? void 0 : _l.filter((q) => v == null ? void 0 : v.find((rl) => rl === (q == null ? void 0 : q.label))), Ml.value = (Al = p == null ? void 0 : p.contents) == null ? void 0 : Al.filter((q) => v == null ? void 0 : v.find((rl) => rl === (q == null ? void 0 : q.label))), (Cl = p == null ? void 0 : p.contents) != null && Cl.some((q) => (q == null ? void 0 : q.label) === "OCR识别") && !((gl = Rl.value) != null && gl.some((q) => (q == null ? void 0 : q.label) === "OCR识别"))) {
|
|
3480
|
+
const q = (De = p == null ? void 0 : p.contents) == null ? void 0 : De.find((rl) => (rl == null ? void 0 : rl.label) === "OCR识别");
|
|
3481
|
+
Rl.value = [...Rl.value, q], Ml.value = [...Ml.value, q];
|
|
3482
|
+
}
|
|
3483
|
+
Oe.value = !!(v != null && v.find((q) => q === "搜索")), ll.value = !!(v != null && v.find((q) => q === "块状显示"));
|
|
3484
|
+
} else
|
|
3485
|
+
Rl.value = p == null ? void 0 : p.contents, Ml.value = p == null ? void 0 : p.contents;
|
|
3486
|
+
else
|
|
3487
|
+
Rl.value = [], Ml.value = [];
|
|
3488
|
+
Rl.value = [...Rl.value, ...$], Ml.value = [...Ml.value, ...$], (Pe = Rl.value) != null && Pe.some((v) => (v == null ? void 0 : v.label) === "OCR识别") || (Rl.value = [...Rl.value || [], { label: "OCR识别" }]), (xl = Ml.value) != null && xl.some((v) => (v == null ? void 0 : v.label) === "OCR识别") || (Ml.value = [...Ml.value || [], { label: "OCR识别" }]), Oa.value = ((Ll = I == null ? void 0 : I.value) == null ? void 0 : Ll.length) ?? 0, rn(I.value), Ka.value = I.value, Zl.value && (B.value = (Bl = (jl = L.value) == null ? void 0 : jl.filter((v) => (v == null ? void 0 : v.label) !== "操作")) == null ? void 0 : Bl.map((v) => {
|
|
3489
|
+
var q;
|
|
3490
|
+
return {
|
|
3491
|
+
...v,
|
|
3492
|
+
type: "edit",
|
|
3493
|
+
optionUrl: v != null && v.formMenuSelect && ((q = v == null ? void 0 : v.formMenuSelect) == null ? void 0 : q.length) > 0 ? {
|
|
3494
|
+
groupSelect: v == null ? void 0 : v.groupSelect,
|
|
3495
|
+
menuSelect: v == null ? void 0 : v.formMenuSelect,
|
|
3496
|
+
selectRelateType: "",
|
|
3497
|
+
type: v == null ? void 0 : v.formType
|
|
3498
|
+
} : null
|
|
3499
|
+
};
|
|
3500
|
+
}), xr());
|
|
3501
|
+
};
|
|
3502
|
+
Fl(
|
|
3503
|
+
() => [n.itemData, ma.value, Xn.value, Fa.value, Qe == null ? void 0 : Qe.value],
|
|
3504
|
+
async () => {
|
|
3505
|
+
var e, l, a, r, s, u;
|
|
3506
|
+
if ((e = n == null ? void 0 : n.itemData) != null && e.find((c) => (c == null ? void 0 : c.key) === "columnPath") && !((l = Ba.value) != null && l.find((c) => {
|
|
3507
|
+
var o, p;
|
|
3508
|
+
return (c == null ? void 0 : c.key) === ((p = (o = n == null ? void 0 : n.itemData) == null ? void 0 : o.find((g) => (g == null ? void 0 : g.key) === "columnPath")) == null ? void 0 : p.contents);
|
|
3509
|
+
}))) {
|
|
3510
|
+
let c = Ba.value, o = {
|
|
3511
|
+
key: (r = (a = n == null ? void 0 : n.itemData) == null ? void 0 : a.find((p) => (p == null ? void 0 : p.key) === "columnPath")) == null ? void 0 : r.contents,
|
|
3512
|
+
value: (u = (s = n == null ? void 0 : n.itemData) == null ? void 0 : s.find((p) => (p == null ? void 0 : p.key) === "columnUsingPath")) == null ? void 0 : u.contents
|
|
3513
|
+
};
|
|
3514
|
+
c != null && c.find((p) => (p == null ? void 0 : p.key) === (o == null ? void 0 : o.key)) ? c = c == null ? void 0 : c.map((p) => ((p == null ? void 0 : p.key) === (o == null ? void 0 : o.key) && (p.value = o.value), p)) : c.push(o), fl.setTableViewContents(c);
|
|
3515
|
+
}
|
|
3516
|
+
on(n.itemData, n.allMapContents);
|
|
3517
|
+
},
|
|
3518
|
+
{ deep: !0, immediate: !0 }
|
|
3519
|
+
), Fl(() => n == null ? void 0 : n.operatingForm, (e) => {
|
|
3520
|
+
e != null && e.form && (Ga(e == null ? void 0 : e.form), zl.value = e == null ? void 0 : e.dialogTitle, nr.value = !0, oa.value = !0);
|
|
3521
|
+
}, { immediate: !0, deep: !0 });
|
|
3522
|
+
const un = () => {
|
|
3523
|
+
var e;
|
|
3524
|
+
(e = be.value) != null && e.includes("read") && (Zl.value = !Zl.value);
|
|
3525
|
+
}, ao = () => {
|
|
3526
|
+
ur.value = !ur.value;
|
|
3527
|
+
};
|
|
3528
|
+
Fl(() => {
|
|
3529
|
+
var e;
|
|
3530
|
+
return (e = n == null ? void 0 : n.config) == null ? void 0 : e.viewport;
|
|
3531
|
+
}, (e) => {
|
|
3532
|
+
var l;
|
|
3533
|
+
be.value = e, (e == null ? void 0 : e.length) === 0 ? Zl.value = !1 : (e != null && e.includes("read") || (Zl.value = !0), e != null && e.includes("edit") || (Zl.value = !1)), fe.value = ((l = n == null ? void 0 : n.config) == null ? void 0 : l.showIndex) || Zl.value;
|
|
3534
|
+
}, { immediate: !0 }), Fl(() => Zl.value, (e) => {
|
|
3535
|
+
var l;
|
|
3536
|
+
e ? (xr("viewChange"), fl.setCacheUpdatingData(null)) : (Rl.value = Ml.value, B.value = fr.value, Na.value && (fl.setTableLoading(n == null ? void 0 : n.index), Ue("change", Na.value))), Q.value = e, fe.value = e || ((l = n == null ? void 0 : n.config) == null ? void 0 : l.showIndex);
|
|
3537
|
+
}, { immediate: !0 }), Fl(() => {
|
|
3538
|
+
var e;
|
|
3539
|
+
return (e = Fr.value) == null ? void 0 : e.length;
|
|
3540
|
+
}, (e) => {
|
|
3541
|
+
e === 0 && (oe.currentPage = 1);
|
|
3542
|
+
}), Fl(() => n == null ? void 0 : n.compNames, (e) => {
|
|
3543
|
+
hl.contents = [
|
|
3544
|
+
{
|
|
3545
|
+
label: "列表名",
|
|
3546
|
+
prop: "groupName",
|
|
3547
|
+
name: "列表名",
|
|
3548
|
+
type: "select",
|
|
3549
|
+
value: "",
|
|
3550
|
+
id: 0,
|
|
3551
|
+
contents: e || [],
|
|
3552
|
+
width: 1
|
|
3553
|
+
}
|
|
3554
|
+
];
|
|
3555
|
+
}, { immediate: !0 }), G(!1);
|
|
3556
|
+
const ro = (e, l) => {
|
|
3557
|
+
var a;
|
|
3558
|
+
xr("createClick"), l === oe.pageSize && (oe.currentPage = Math.ceil(((a = I.value) == null ? void 0 : a.length) / oe.pageSize));
|
|
3559
|
+
}, no = (e, l, a) => {
|
|
3560
|
+
var r;
|
|
3561
|
+
ln(a, e, l), $l.value = re(e), sa.value = e == null ? void 0 : e.id, Oa.value = (r = I.value) == null ? void 0 : r.length, zl.value = typeof (e == null ? void 0 : e.id) == "string" ? "新增" : "编辑", Ha(!1);
|
|
3562
|
+
}, Nl = (e) => {
|
|
3563
|
+
var p, g, x, k, w, $, N, M, _, K;
|
|
3564
|
+
const { row: l, column: a, item: r, slotData: s } = e;
|
|
3565
|
+
let u = l != null && l[a == null ? void 0 : a.prop] || (l == null ? void 0 : l[a == null ? void 0 : a.prop]) === 0 ? ((g = (p = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : p[0]) == null ? void 0 : g.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]) : ((k = (x = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : x[0]) == null ? void 0 : k.contents) ?? (l == null ? void 0 : l[r == null ? void 0 : r.prop]) ?? (($ = (w = s == null ? void 0 : s[r == null ? void 0 : r.prop]) == null ? void 0 : w[0]) == null ? void 0 : $.contents) ?? (s == null ? void 0 : s[r == null ? void 0 : r.prop]) ?? ((_ = (M = l == null ? void 0 : l[(N = r == null ? void 0 : r.child) == null ? void 0 : N.prop]) == null ? void 0 : M[0]) == null ? void 0 : _.contents) ?? (l == null ? void 0 : l[(K = r == null ? void 0 : r.child) == null ? void 0 : K.prop]), o = Array.isArray(u) && !(u != null && u.every((Z) => typeof Z == "string" || typeof Z == "number")) ? "查看" : u;
|
|
3566
|
+
return o = Array.isArray(o) ? o.join(",") : o, o;
|
|
3567
|
+
}, so = (e) => {
|
|
3568
|
+
var g, x, k, w, $, N, M, _, K, Z;
|
|
3569
|
+
const { row: l, column: a, item: r, slotData: s } = e;
|
|
3570
|
+
let u = l != null && l[a == null ? void 0 : a.prop] ? ((x = (g = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : g[0]) == null ? void 0 : x.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) : ((w = (k = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : k[0]) == null ? void 0 : w.contents) ?? (l == null ? void 0 : l[r == null ? void 0 : r.prop]) ?? ((N = ($ = s == null ? void 0 : s[r == null ? void 0 : r.prop]) == null ? void 0 : $[0]) == null ? void 0 : N.contents) ?? (s == null ? void 0 : s[r == null ? void 0 : r.prop]) ?? ((K = (_ = l == null ? void 0 : l[(M = r == null ? void 0 : r.child) == null ? void 0 : M.prop]) == null ? void 0 : _[0]) == null ? void 0 : K.contents) ?? (l == null ? void 0 : l[(Z = r == null ? void 0 : r.child) == null ? void 0 : Z.prop]);
|
|
3571
|
+
const o = Array.isArray(u) && !(u != null && u.every((W) => typeof W == "string" || typeof W == "number")), p = Array.isArray(u) && (u == null ? void 0 : u.find((W) => W == null ? void 0 : W.url));
|
|
3572
|
+
return o && p;
|
|
3573
|
+
}, oo = (e) => {
|
|
3574
|
+
var c, o, p, g, x, k, w, $, N, M;
|
|
3575
|
+
const { row: l, column: a, item: r, slotData: s } = e || {};
|
|
3576
|
+
let u = l != null && l[a == null ? void 0 : a.prop] ? ((o = (c = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : c[0]) == null ? void 0 : o.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) : ((g = (p = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : p[0]) == null ? void 0 : g.contents) ?? (l == null ? void 0 : l[r == null ? void 0 : r.prop]) ?? ((k = (x = s == null ? void 0 : s[r == null ? void 0 : r.prop]) == null ? void 0 : x[0]) == null ? void 0 : k.contents) ?? (s == null ? void 0 : s[r == null ? void 0 : r.prop]) ?? ((N = ($ = l == null ? void 0 : l[(w = r == null ? void 0 : r.child) == null ? void 0 : w.prop]) == null ? void 0 : $[0]) == null ? void 0 : N.contents) ?? (l == null ? void 0 : l[(M = r == null ? void 0 : r.child) == null ? void 0 : M.prop]);
|
|
3577
|
+
return Array.isArray(u) ? (u == null ? void 0 : u.filter((_) => (_ == null ? void 0 : _.url) || (_ == null ? void 0 : _.downloadUrl))) ?? [] : [];
|
|
3578
|
+
}, io = (e, l) => e.find((a) => Object.values(a).some((r) => r === l));
|
|
3579
|
+
return Fl(() => Fn.value, async (e) => {
|
|
3580
|
+
if (e) {
|
|
3581
|
+
Ol.setContentLoading(!0), await Ia();
|
|
3582
|
+
const l = io(I.value, e == null ? void 0 : e.data);
|
|
3583
|
+
if (!l) return Ol.setContentLoading(!1);
|
|
3584
|
+
await Xr(e == null ? void 0 : e.data, null, l, { data: e == null ? void 0 : e.data, isMainKey: !0 }), Ol.setContentLoading(!1);
|
|
3585
|
+
}
|
|
3586
|
+
}, { deep: !0, immediate: !0 }), Fl(() => n == null ? void 0 : n.cacheNewData, (e) => {
|
|
3587
|
+
var l;
|
|
3588
|
+
e && (Array.isArray(e) ? e.forEach((a) => {
|
|
3589
|
+
var r, s, u, c, o, p, g;
|
|
3590
|
+
if ((a == null ? void 0 : a.compId) === (n == null ? void 0 : n.index) && (a != null && a.resId) && ((r = a == null ? void 0 : a.data) != null && r.id) && (I.value = (s = I.value) == null ? void 0 : s.map((x) => {
|
|
3591
|
+
var k;
|
|
3592
|
+
return (x == null ? void 0 : x.id) === ((k = a == null ? void 0 : a.data) == null ? void 0 : k.id) ? {
|
|
3593
|
+
...x,
|
|
3594
|
+
id: a == null ? void 0 : a.resId
|
|
3595
|
+
} : x;
|
|
3596
|
+
}), (o = (u = ql.value) == null ? void 0 : u.has) != null && o.call(u, (c = a == null ? void 0 : a.data) == null ? void 0 : c.id))) {
|
|
3597
|
+
const x = ql.value.get((p = a == null ? void 0 : a.data) == null ? void 0 : p.id);
|
|
3598
|
+
ql.value.delete((g = a == null ? void 0 : a.data) == null ? void 0 : g.id), ql.value.set(a == null ? void 0 : a.resId, { ...x, id: a == null ? void 0 : a.resId });
|
|
3599
|
+
}
|
|
3600
|
+
}) : (e == null ? void 0 : e.compId) === (n == null ? void 0 : n.index) && (I.value = (l = I.value) == null ? void 0 : l.map((a) => {
|
|
3601
|
+
var r;
|
|
3602
|
+
return (a == null ? void 0 : a.id) === ((r = e == null ? void 0 : e.data) == null ? void 0 : r.id) ? {
|
|
3603
|
+
...a,
|
|
3604
|
+
id: e == null ? void 0 : e.resId
|
|
3605
|
+
} : a;
|
|
3606
|
+
})));
|
|
3607
|
+
}, { immediate: !0, deep: !0 }), (e, l) => {
|
|
3608
|
+
var Z, W, E, A;
|
|
3609
|
+
const a = cl("svg-icon"), r = cl("el-popover"), s = cl("el-switch"), u = cl("el-checkbox"), c = cl("el-radio"), o = cl("el-radio-group"), p = cl("el-checkbox-group"), g = cl("el-button"), x = cl("LookComponent"), k = cl("el-icon"), w = cl("el-upload"), $ = cl("el-alert"), N = cl("el-table-column"), M = cl("el-input"), _ = cl("el-table"), K = yo("loading");
|
|
3610
|
+
return le(), Ce("div", qi, [
|
|
3611
|
+
Kr.value ? (le(), Xe(Ko, {
|
|
3612
|
+
id: "excel-table",
|
|
3613
|
+
pageObj: oe,
|
|
3614
|
+
showIndex: fe.value,
|
|
3615
|
+
isTree: (Z = D.compItem) == null ? void 0 : Z.isTree,
|
|
3616
|
+
summaryInfo: ie,
|
|
3617
|
+
columns: B.value,
|
|
3618
|
+
defaultSort: ae,
|
|
3619
|
+
isCardViewport: ur.value,
|
|
3620
|
+
checkedColumns: S.value,
|
|
3621
|
+
key: mr.value + JSON.stringify(B.value),
|
|
3622
|
+
tableData: Fr.value,
|
|
3623
|
+
isEditViewport: Zl.value,
|
|
3624
|
+
isShowPagination: Rr.value,
|
|
3625
|
+
isShowEdit: !1,
|
|
3626
|
+
isShowDelete: !1,
|
|
3627
|
+
allowSelect: Q.value,
|
|
3628
|
+
onDbClickRow: Ss,
|
|
3629
|
+
extraButton: Rl.value,
|
|
3630
|
+
rowButton: ia.value,
|
|
3631
|
+
cacheExtraButtons: Ml.value,
|
|
3632
|
+
isClearSelection: ((W = Il.value) == null ? void 0 : W.length) === 0,
|
|
3633
|
+
onDoCurrentChange: ls,
|
|
3634
|
+
onDoSizeChange: as,
|
|
3635
|
+
onContentClick: Xr,
|
|
3636
|
+
onRowClick: As,
|
|
3637
|
+
onSelectChange: cs,
|
|
3638
|
+
onCellChange: no,
|
|
3639
|
+
onChange: ln,
|
|
3640
|
+
onPreview: Wr,
|
|
3641
|
+
onSubmitEditingTable: us,
|
|
3642
|
+
onHandleColEditChange: os,
|
|
3643
|
+
onHandleColTypeChange: is,
|
|
3644
|
+
onClickButton: tr
|
|
3645
|
+
}, vo({
|
|
3646
|
+
headerButton: H((i) => {
|
|
3647
|
+
var h, y;
|
|
3648
|
+
return [
|
|
3649
|
+
D.showHeader ? (le(), Xe(ti, {
|
|
3650
|
+
key: 0,
|
|
3651
|
+
pageLayout: D.pageLayout,
|
|
3652
|
+
lockingPage: Hl(lr) === Hl(We),
|
|
3653
|
+
filterValues: Hr.value,
|
|
3654
|
+
selectNums: (h = Il.value) == null ? void 0 : h.length,
|
|
3655
|
+
dataNums: (y = I.value) == null ? void 0 : y.length,
|
|
3656
|
+
compName: D.compName,
|
|
3657
|
+
isDevMode: D.isDevMode,
|
|
3658
|
+
buttons: i.buttons,
|
|
3659
|
+
onButtonClick: l[1] || (l[1] = (z, O, X) => tr(z, O, { extra: X })),
|
|
3660
|
+
columns: B.value,
|
|
3661
|
+
onFilter: ms,
|
|
3662
|
+
onGetImportData: ns,
|
|
3663
|
+
level: D.level,
|
|
3664
|
+
filterShow: Oe.value
|
|
3665
|
+
}, null, 8, ["pageLayout", "lockingPage", "filterValues", "selectNums", "dataNums", "compName", "isDevMode", "buttons", "columns", "level", "filterShow"])) : Ie("", !0)
|
|
3666
|
+
];
|
|
3667
|
+
}),
|
|
3668
|
+
viewport: H(() => {
|
|
3669
|
+
var i, h, y, z;
|
|
3670
|
+
return [
|
|
3671
|
+
((i = I.value) == null ? void 0 : i.length) > 0 && D.allowOperate && ll.value ? (le(), Ce("div", Xi, [
|
|
3672
|
+
(h = be.value) != null && h.includes("read") && ((y = be.value) != null && y.includes("edit")) && ((z = ia.value) != null && z.some((O) => (O == null ? void 0 : O.label) === "编辑")) && !ur.value && Hl(lr) !== Hl(We) ? (le(), Ce("span", {
|
|
3673
|
+
key: 0,
|
|
3674
|
+
title: "编辑表格",
|
|
3675
|
+
onClick: un
|
|
3676
|
+
}, [
|
|
3677
|
+
ee(a, {
|
|
3678
|
+
name: "editTable",
|
|
3679
|
+
class: "view-icon"
|
|
3680
|
+
})
|
|
3681
|
+
])) : Ie("", !0),
|
|
3682
|
+
te("span", {
|
|
3683
|
+
title: "卡片视图",
|
|
3684
|
+
onClick: ao
|
|
3685
|
+
}, [
|
|
3686
|
+
ee(a, {
|
|
3687
|
+
name: "cardViewport",
|
|
3688
|
+
class: "view-icon"
|
|
3689
|
+
})
|
|
3690
|
+
])
|
|
3691
|
+
])) : Ie("", !0)
|
|
3692
|
+
];
|
|
3693
|
+
}),
|
|
3694
|
+
rowCreate: H(({ row: i, index: h }) => [
|
|
3695
|
+
te("span", {
|
|
3696
|
+
title: "新增",
|
|
3697
|
+
class: "row-create-wrap",
|
|
3698
|
+
onClick: (y) => ro(i, h)
|
|
3699
|
+
}, [
|
|
3700
|
+
ee(a, {
|
|
3701
|
+
name: "rowCreate",
|
|
3702
|
+
style: { width: "10px", height: "10px" }
|
|
3703
|
+
})
|
|
3704
|
+
], 8, Qi)
|
|
3705
|
+
]),
|
|
3706
|
+
operateCol: H(() => [
|
|
3707
|
+
ee(r, {
|
|
3708
|
+
title: "选择显示列信息",
|
|
3709
|
+
placement: "left-start",
|
|
3710
|
+
"popper-class": "menu-operate-popover",
|
|
3711
|
+
trigger: "hover",
|
|
3712
|
+
onShow: Zs
|
|
3713
|
+
}, {
|
|
3714
|
+
reference: H(() => [
|
|
3715
|
+
te("span", Yi, [
|
|
3716
|
+
ee(a, {
|
|
3717
|
+
name: "operate",
|
|
3718
|
+
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
3719
|
+
})
|
|
3720
|
+
])
|
|
3721
|
+
]),
|
|
3722
|
+
default: H(() => [
|
|
3723
|
+
te("div", Zi, [
|
|
3724
|
+
l[14] || (l[14] = te("div", { class: "group-title" }, "表格操作", -1)),
|
|
3725
|
+
ee(s, {
|
|
3726
|
+
"model-value": Re.value,
|
|
3727
|
+
"active-text": "排序",
|
|
3728
|
+
"inactive-text": "",
|
|
3729
|
+
style: { "margin-right": "8px" },
|
|
3730
|
+
onChange: l[3] || (l[3] = (i) => fs(i, "sortable"))
|
|
3731
|
+
}, null, 8, ["model-value"]),
|
|
3732
|
+
l[15] || (l[15] = te("div", { class: "group-title" }, "表格列操作", -1)),
|
|
3733
|
+
ee(p, {
|
|
3734
|
+
modelValue: S.value,
|
|
3735
|
+
"onUpdate:modelValue": l[4] || (l[4] = (i) => S.value = i),
|
|
3736
|
+
style: { height: "100%" },
|
|
3737
|
+
min: 2,
|
|
3738
|
+
ref_key: "checkboxGroupRef",
|
|
3739
|
+
ref: m
|
|
3740
|
+
}, {
|
|
3741
|
+
default: H(() => [
|
|
3742
|
+
(le(!0), Ce(aa, null, ra(Ja.value, (i) => (le(), Ce("div", {
|
|
3743
|
+
style: { display: "flex", "align-items": "center" },
|
|
3744
|
+
key: i.label
|
|
3745
|
+
}, [
|
|
3746
|
+
ee(u, {
|
|
3747
|
+
value: i.label,
|
|
3748
|
+
style: { width: "100%", marginRight: 0 }
|
|
3749
|
+
}, {
|
|
3750
|
+
default: H(() => [
|
|
3751
|
+
te("span", {
|
|
3752
|
+
title: i.label,
|
|
3753
|
+
style: { display: "inline-block", width: "250px", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }
|
|
3754
|
+
}, Ze(i.label), 9, Ii)
|
|
3755
|
+
]),
|
|
3756
|
+
_: 2
|
|
3757
|
+
}, 1032, ["value"]),
|
|
3758
|
+
ee(r, {
|
|
3759
|
+
"popper-class": "col-operate-popover",
|
|
3760
|
+
title: "列操作",
|
|
3761
|
+
placement: "left",
|
|
3762
|
+
teleported: !1,
|
|
3763
|
+
trigger: "hover"
|
|
3764
|
+
}, {
|
|
3765
|
+
reference: H(() => [
|
|
3766
|
+
ee(a, {
|
|
3767
|
+
name: "colOperate",
|
|
3768
|
+
style: { width: "15px", height: "15px", cursor: "pointer", color: "grey", position: "absolute", right: "40px" }
|
|
3769
|
+
})
|
|
3770
|
+
]),
|
|
3771
|
+
default: H(() => {
|
|
3772
|
+
var h;
|
|
3773
|
+
return [
|
|
3774
|
+
te("div", Vi, [
|
|
3775
|
+
(le(!0), Ce(aa, null, ra((h = Object.keys(i)) == null ? void 0 : h.filter((y) => {
|
|
3776
|
+
var z;
|
|
3777
|
+
return (z = pl.value) == null ? void 0 : z.find((O) => (O == null ? void 0 : O.value) === y);
|
|
3778
|
+
}), (y) => {
|
|
3779
|
+
var z, O;
|
|
3780
|
+
return le(), Ce("div", { key: y }, [
|
|
3781
|
+
sl[y] == "radio" ? (le(), Ce("div", eu, [
|
|
3782
|
+
l[13] || (l[13] = te("div", null, "固定:", -1)),
|
|
3783
|
+
ee(o, {
|
|
3784
|
+
"model-value": i == null ? void 0 : i[y],
|
|
3785
|
+
onChange: (X) => Jr(X, y, i)
|
|
3786
|
+
}, {
|
|
3787
|
+
default: H(() => {
|
|
3788
|
+
var X, t;
|
|
3789
|
+
return [
|
|
3790
|
+
(le(!0), Ce(aa, null, ra((t = (X = pl.value) == null ? void 0 : X.find((j) => (j == null ? void 0 : j.value) === y)) == null ? void 0 : t.options, (j) => (le(), Xe(c, {
|
|
3791
|
+
key: j == null ? void 0 : j.value,
|
|
3792
|
+
label: j == null ? void 0 : j.value,
|
|
3793
|
+
value: j == null ? void 0 : j.value
|
|
3794
|
+
}, {
|
|
3795
|
+
default: H(() => [
|
|
3796
|
+
Ve(Ze(j == null ? void 0 : j.label), 1)
|
|
3797
|
+
]),
|
|
3798
|
+
_: 2
|
|
3799
|
+
}, 1032, ["label", "value"]))), 128))
|
|
3800
|
+
];
|
|
3801
|
+
}),
|
|
3802
|
+
_: 2
|
|
3803
|
+
}, 1032, ["model-value", "onChange"])
|
|
3804
|
+
])) : Ie("", !0),
|
|
3805
|
+
sl[y] == "switch" ? (le(), Xe(s, {
|
|
3806
|
+
key: 1,
|
|
3807
|
+
"model-value": i == null ? void 0 : i[y],
|
|
3808
|
+
"active-text": (O = (z = pl.value) == null ? void 0 : z.find((X) => (X == null ? void 0 : X.value) === y)) == null ? void 0 : O.label,
|
|
3809
|
+
onChange: (X) => Jr(X, y, i)
|
|
3810
|
+
}, null, 8, ["model-value", "active-text", "onChange"])) : Ie("", !0)
|
|
3811
|
+
]);
|
|
3812
|
+
}), 128))
|
|
3813
|
+
])
|
|
3814
|
+
];
|
|
3815
|
+
}),
|
|
3816
|
+
_: 2
|
|
3817
|
+
}, 1024),
|
|
3818
|
+
te("span", lu, [
|
|
3819
|
+
ee(a, {
|
|
3820
|
+
name: "drag",
|
|
3821
|
+
class: "col-drag-icon",
|
|
3822
|
+
style: { width: "15px", height: "15px" }
|
|
3823
|
+
})
|
|
3824
|
+
])
|
|
3825
|
+
]))), 128))
|
|
3826
|
+
]),
|
|
3827
|
+
_: 1
|
|
3828
|
+
}, 8, ["modelValue"])
|
|
3829
|
+
])
|
|
3830
|
+
]),
|
|
3831
|
+
_: 1
|
|
3832
|
+
})
|
|
3833
|
+
]),
|
|
3834
|
+
content: H((i) => {
|
|
3835
|
+
var h, y, z, O, X, t, j, ve, J, T, R, ce, ue, se, _e, je, Y, pe, Ke, ge;
|
|
3836
|
+
return [
|
|
3837
|
+
((h = i == null ? void 0 : i.column) == null ? void 0 : h.label) === "OCR图片" || ((y = i == null ? void 0 : i.column) == null ? void 0 : y.prop) === "OCR图片" ? (le(), Ce("div", au, [
|
|
3838
|
+
ee(a, {
|
|
3839
|
+
name: "query",
|
|
3840
|
+
style: {
|
|
3841
|
+
width: "20px",
|
|
3842
|
+
height: "20px",
|
|
3843
|
+
color: "var(--ssComponent-theme-color)",
|
|
3844
|
+
cursor: "pointer"
|
|
3845
|
+
},
|
|
3846
|
+
onClick: dr((ke) => zs(i), ["stop"]),
|
|
3847
|
+
title: "查看OCR图片"
|
|
3848
|
+
}, null, 8, ["onClick"])
|
|
3849
|
+
])) : so(i) ? (le(), Xe(r, {
|
|
3850
|
+
key: 1,
|
|
3851
|
+
"popper-class": "file-popover",
|
|
3852
|
+
placement: "right",
|
|
3853
|
+
trigger: "hover",
|
|
3854
|
+
effect: "light",
|
|
3855
|
+
width: "auto"
|
|
3856
|
+
}, {
|
|
3857
|
+
reference: H(() => [
|
|
3858
|
+
te("span", ru, Ze(Nl(i)), 1)
|
|
3859
|
+
]),
|
|
3860
|
+
default: H(() => {
|
|
3861
|
+
var ke, Ee;
|
|
3862
|
+
return [
|
|
3863
|
+
te("div", nu, [
|
|
3864
|
+
(le(!0), Ce(aa, null, ra((Ee = i == null ? void 0 : i.row) == null ? void 0 : Ee[(ke = i == null ? void 0 : i.column) == null ? void 0 : ke.prop], (Ye) => (le(), Ce("div", su, [
|
|
3865
|
+
te("div", {
|
|
3866
|
+
class: "prop-url",
|
|
3867
|
+
title: Wa(Ye),
|
|
3868
|
+
onClick: (U) => Gr(Ye)
|
|
3869
|
+
}, Ze(Wa(Ye)), 9, ou),
|
|
3870
|
+
te("div", {
|
|
3871
|
+
class: "prop-download",
|
|
3872
|
+
onClick: (U) => vs(Ye)
|
|
3873
|
+
}, " 下载 ", 8, iu)
|
|
3874
|
+
]))), 256))
|
|
3875
|
+
])
|
|
3876
|
+
];
|
|
3877
|
+
}),
|
|
3878
|
+
_: 2
|
|
3879
|
+
}, 1024)) : (le(), Ce("div", {
|
|
3880
|
+
key: 2,
|
|
3881
|
+
style: ba({
|
|
3882
|
+
color: !Array.isArray(Nl(i)) && ((O = (z = Nl(i)) == null ? void 0 : z.toString()) != null && O.includes(".txt") || (t = (X = Nl(i)) == null ? void 0 : X.toString()) != null && t.includes(".cpt") || (ve = (j = Nl(i)) == null ? void 0 : j.toString()) != null && ve.includes(".cyd")) ? "var(--vertical-menuitem-active-bg)" : "",
|
|
3883
|
+
textDecoration: !Array.isArray(Nl(i)) && ((T = (J = Nl(i)) == null ? void 0 : J.toString()) != null && T.includes(".txt") || (ce = (R = Nl(i)) == null ? void 0 : R.toString()) != null && ce.includes(".cpt") || (se = (ue = Nl(i)) == null ? void 0 : ue.toString()) != null && se.includes(".cyd")) ? "underline" : "",
|
|
3884
|
+
cursor: !Array.isArray(Nl(i)) && ((je = (_e = Nl(i)) == null ? void 0 : _e.toString()) != null && je.includes(".txt") || (pe = (Y = Nl(i)) == null ? void 0 : Y.toString()) != null && pe.includes(".cpt") || (ge = (Ke = Nl(i)) == null ? void 0 : Ke.toString()) != null && ge.includes(".cyd")) ? "pointer" : "",
|
|
3885
|
+
marginLeft: (i == null ? void 0 : i.colIndex) === 0 ? `${((i == null ? void 0 : i.level) ?? 0) * 20}px` : 0
|
|
3886
|
+
}),
|
|
3887
|
+
onClick: (ke) => es(Nl(i))
|
|
3888
|
+
}, Ze(Nl(i) === 0 ? "0" : Nl(i)), 13, uu))
|
|
3889
|
+
];
|
|
3890
|
+
}),
|
|
3891
|
+
_: 2
|
|
3892
|
+
}, [
|
|
3893
|
+
((E = ia.value) == null ? void 0 : E.length) > 0 && Hl(lr) !== Hl(We) ? {
|
|
3894
|
+
name: "actions",
|
|
3895
|
+
fn: H(({ item: i, fIndex: h }) => [
|
|
3896
|
+
ee(r, {
|
|
3897
|
+
title: "",
|
|
3898
|
+
placement: "left-start",
|
|
3899
|
+
"popper-class": "menu-operate-popover"
|
|
3900
|
+
}, {
|
|
3901
|
+
reference: H(() => [
|
|
3902
|
+
ee(a, {
|
|
3903
|
+
name: "more",
|
|
3904
|
+
style: { cursor: "pointer", width: "15px", height: "15px" },
|
|
3905
|
+
onClick: l[0] || (l[0] = dr(() => {
|
|
3906
|
+
}, ["stop"]))
|
|
3907
|
+
})
|
|
3908
|
+
]),
|
|
3909
|
+
default: H(() => [
|
|
3910
|
+
te("div", Gi, [
|
|
3911
|
+
(le(!0), Ce(aa, null, ra(gs(ia.value, i), (y, z) => (le(), Ce("div", {
|
|
3912
|
+
class: "menu-config-item",
|
|
3913
|
+
key: z,
|
|
3914
|
+
onClick: dr((O) => tr(y == null ? void 0 : y.label, i, { extra: y, index: h }), ["stop"])
|
|
3915
|
+
}, [
|
|
3916
|
+
te("div", {
|
|
3917
|
+
style: ba({ color: y == null ? void 0 : y.textColor }),
|
|
3918
|
+
class: "extra-button-label"
|
|
3919
|
+
}, Ze(y == null ? void 0 : y.label), 5)
|
|
3920
|
+
], 8, Hi))), 128))
|
|
3921
|
+
])
|
|
3922
|
+
]),
|
|
3923
|
+
_: 2
|
|
3924
|
+
}, 1024)
|
|
3925
|
+
]),
|
|
3926
|
+
key: "0"
|
|
3927
|
+
} : void 0,
|
|
3928
|
+
((A = I.value) == null ? void 0 : A.length) > 0 ? {
|
|
3929
|
+
name: "batchButton",
|
|
3930
|
+
fn: H((i) => [
|
|
3931
|
+
wr(ee(pi, {
|
|
3932
|
+
lockingPage: Hl(lr) === Hl(We),
|
|
3933
|
+
buttons: i.buttons,
|
|
3934
|
+
selectTableItems: Il.value,
|
|
3935
|
+
onButtonClick: l[2] || (l[2] = (h) => tr(h, "", {}))
|
|
3936
|
+
}, null, 8, ["lockingPage", "buttons", "selectTableItems"]), [
|
|
3937
|
+
[mn, Q.value]
|
|
3938
|
+
]),
|
|
3939
|
+
wr(te("div", null, null, 512), [
|
|
3940
|
+
[mn, !Q.value]
|
|
3941
|
+
])
|
|
3942
|
+
]),
|
|
3943
|
+
key: "1"
|
|
3944
|
+
} : void 0
|
|
3945
|
+
]), 1032, ["pageObj", "showIndex", "isTree", "summaryInfo", "columns", "defaultSort", "isCardViewport", "checkedColumns", "tableData", "isEditViewport", "isShowPagination", "allowSelect", "extraButton", "rowButton", "cacheExtraButtons", "isClearSelection"])) : Ie("", !0),
|
|
3946
|
+
ee(ga, {
|
|
3947
|
+
title: zl.value,
|
|
3948
|
+
visible: oa.value,
|
|
3949
|
+
width: Yn.value,
|
|
3950
|
+
onBeforeDestroy: hs,
|
|
3951
|
+
style: { height: "74%" }
|
|
3952
|
+
}, {
|
|
3953
|
+
default: H(() => [
|
|
3954
|
+
te("div", cu, [
|
|
3955
|
+
ee($a, {
|
|
3956
|
+
rowContents: xe.value,
|
|
3957
|
+
isEnableWrap: !1,
|
|
3958
|
+
showOperator: !1,
|
|
3959
|
+
onChange: Is,
|
|
3960
|
+
onFixChangeValue: ks,
|
|
3961
|
+
onClickTrigger: ys,
|
|
3962
|
+
isEdit: ar.value,
|
|
3963
|
+
onBlurChange: ts,
|
|
3964
|
+
onCreate: ds,
|
|
3965
|
+
onTagChange: Vn
|
|
3966
|
+
}, null, 8, ["rowContents", "isEdit"])
|
|
3967
|
+
])
|
|
3968
|
+
]),
|
|
3969
|
+
footer: H(() => [
|
|
3970
|
+
nr.value ? (le(), Ce("div", tu, [
|
|
3971
|
+
ee(g, {
|
|
3972
|
+
onClick: l[5] || (l[5] = (i) => oa.value = !1),
|
|
3973
|
+
id: "themeBorderButton"
|
|
3974
|
+
}, {
|
|
3975
|
+
default: H(() => l[16] || (l[16] = [
|
|
3976
|
+
Ve(Ze("取消"))
|
|
3977
|
+
])),
|
|
3978
|
+
_: 1,
|
|
3979
|
+
__: [16]
|
|
3980
|
+
}),
|
|
3981
|
+
ee(g, {
|
|
3982
|
+
class: "ok-button",
|
|
3983
|
+
onClick: l[6] || (l[6] = (i) => Ha(!0)),
|
|
3984
|
+
id: "themeButton"
|
|
3985
|
+
}, {
|
|
3986
|
+
default: H(() => l[17] || (l[17] = [
|
|
3987
|
+
Ve(Ze("确认"))
|
|
3988
|
+
])),
|
|
3989
|
+
_: 1,
|
|
3990
|
+
__: [17]
|
|
3991
|
+
})
|
|
3992
|
+
])) : Ie("", !0)
|
|
3993
|
+
]),
|
|
3994
|
+
_: 1
|
|
3995
|
+
}, 8, ["title", "visible", "width"]),
|
|
3996
|
+
ee(ga, {
|
|
3997
|
+
title: zl.value,
|
|
3998
|
+
visible: rr.value,
|
|
3999
|
+
width: hr.value,
|
|
4000
|
+
onBeforeDestroy: l[8] || (l[8] = (i) => rr.value = !1)
|
|
4001
|
+
}, {
|
|
4002
|
+
default: H(() => [
|
|
4003
|
+
ee(bi)
|
|
4004
|
+
]),
|
|
4005
|
+
footer: H(() => [
|
|
4006
|
+
te("div", du, [
|
|
4007
|
+
ee(g, {
|
|
4008
|
+
onClick: l[7] || (l[7] = (i) => rr.value = !1),
|
|
4009
|
+
class: "cancel-button",
|
|
4010
|
+
id: "themeBorderButton"
|
|
4011
|
+
}, {
|
|
4012
|
+
default: H(() => l[18] || (l[18] = [
|
|
4013
|
+
Ve(Ze("取消"))
|
|
4014
|
+
])),
|
|
4015
|
+
_: 1,
|
|
4016
|
+
__: [18]
|
|
4017
|
+
}),
|
|
4018
|
+
ee(g, {
|
|
4019
|
+
class: "ok-button",
|
|
4020
|
+
onClick: Cs,
|
|
4021
|
+
id: "themeButton"
|
|
4022
|
+
}, {
|
|
4023
|
+
default: H(() => l[19] || (l[19] = [
|
|
4024
|
+
Ve(Ze("确认"))
|
|
4025
|
+
])),
|
|
4026
|
+
_: 1,
|
|
4027
|
+
__: [19]
|
|
4028
|
+
})
|
|
4029
|
+
])
|
|
4030
|
+
]),
|
|
4031
|
+
_: 1
|
|
4032
|
+
}, 8, ["title", "visible", "width"]),
|
|
4033
|
+
ka.value ? (le(), Xe(Dn, {
|
|
4034
|
+
key: 1,
|
|
4035
|
+
fileDataList: Ca.value,
|
|
4036
|
+
onDestroy: _s
|
|
4037
|
+
}, null, 8, ["fileDataList"])) : Ie("", !0),
|
|
4038
|
+
al.value ? (le(), Xe(ga, {
|
|
4039
|
+
key: 2,
|
|
4040
|
+
visible: al.value,
|
|
4041
|
+
onBeforeDestroy: Qs,
|
|
4042
|
+
style: { height: "80vh", width: "80vw" },
|
|
4043
|
+
"body-class": "three-dialog-body",
|
|
4044
|
+
"footer-class": "three-dialog-footer"
|
|
4045
|
+
}, {
|
|
4046
|
+
default: H(() => [
|
|
4047
|
+
ee(Jo, {
|
|
4048
|
+
files: Ra.value,
|
|
4049
|
+
threeData: we.value
|
|
4050
|
+
}, null, 8, ["files", "threeData"])
|
|
4051
|
+
]),
|
|
4052
|
+
_: 1
|
|
4053
|
+
}, 8, ["visible"])) : Ie("", !0),
|
|
4054
|
+
ee(ga, {
|
|
4055
|
+
visible: e.componentVisible,
|
|
4056
|
+
onBeforeDestroy: l[9] || (l[9] = (i) => e.componentVisible = !1),
|
|
4057
|
+
width: hr.value,
|
|
4058
|
+
style: { height: "70vh" }
|
|
4059
|
+
}, {
|
|
4060
|
+
default: H(() => [
|
|
4061
|
+
ee(x, { dialogItem: Sa.value }, null, 8, ["dialogItem"])
|
|
4062
|
+
]),
|
|
4063
|
+
_: 1
|
|
4064
|
+
}, 8, ["visible", "width"]),
|
|
4065
|
+
ee(ga, {
|
|
4066
|
+
title: "上传OCR图片",
|
|
4067
|
+
visible: sr.value,
|
|
4068
|
+
onBeforeDestroy: Yr,
|
|
4069
|
+
width: "600px"
|
|
4070
|
+
}, {
|
|
4071
|
+
default: H(() => [
|
|
4072
|
+
wr((le(), Ce("div", pu, [
|
|
4073
|
+
ee(w, {
|
|
4074
|
+
"file-list": ua.value,
|
|
4075
|
+
"onUpdate:fileList": l[10] || (l[10] = (i) => ua.value = i),
|
|
4076
|
+
multiple: "",
|
|
4077
|
+
drag: "",
|
|
4078
|
+
action: "",
|
|
4079
|
+
"auto-upload": !1,
|
|
4080
|
+
limit: 20,
|
|
4081
|
+
accept: "image/*,application/pdf",
|
|
4082
|
+
"on-change": Ps,
|
|
4083
|
+
class: "upload-content"
|
|
4084
|
+
}, {
|
|
4085
|
+
tip: H(() => l[20] || (l[20] = [
|
|
4086
|
+
te("div", { class: "el-upload__tip tip-content" }, " 请上传图片或PDF文件,大小不超过10MB ", -1)
|
|
4087
|
+
])),
|
|
4088
|
+
default: H(() => [
|
|
4089
|
+
ee(k, { class: "el-icon--upload" }, {
|
|
4090
|
+
default: H(() => [
|
|
4091
|
+
ee(Hl(ko))
|
|
4092
|
+
]),
|
|
4093
|
+
_: 1
|
|
4094
|
+
}),
|
|
4095
|
+
l[21] || (l[21] = te("div", { class: "el-upload__text" }, [
|
|
4096
|
+
Ve(" 将图片拖到此处或"),
|
|
4097
|
+
te("em", null, "点击上传")
|
|
4098
|
+
], -1))
|
|
4099
|
+
]),
|
|
4100
|
+
file: H(({ file: i, index: h }) => [
|
|
4101
|
+
te("div", fu, [
|
|
4102
|
+
te("div", {
|
|
4103
|
+
class: "upload-content-title",
|
|
4104
|
+
style: { flex: "1", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
|
|
4105
|
+
title: i == null ? void 0 : i.name
|
|
4106
|
+
}, Ze(i == null ? void 0 : i.name), 9, hu),
|
|
4107
|
+
te("div", yu, [
|
|
4108
|
+
ee(a, {
|
|
4109
|
+
class: "icon-blue",
|
|
4110
|
+
name: "EyeFill",
|
|
4111
|
+
style: { width: "15px", height: "15px", cursor: "pointer", color: "var(--ssform-label-color)" },
|
|
4112
|
+
onClick: (y) => Fs(i),
|
|
4113
|
+
title: "预览"
|
|
4114
|
+
}, null, 8, ["onClick"]),
|
|
4115
|
+
ee(a, {
|
|
4116
|
+
class: "icon-blue",
|
|
4117
|
+
name: "Cancel",
|
|
4118
|
+
style: { width: "15px", height: "15px", cursor: "pointer", color: "var(--ssform-label-color)" },
|
|
4119
|
+
onClick: (y) => Ws(h),
|
|
4120
|
+
title: "删除"
|
|
4121
|
+
}, null, 8, ["onClick"])
|
|
4122
|
+
])
|
|
4123
|
+
])
|
|
4124
|
+
]),
|
|
4125
|
+
_: 1
|
|
4126
|
+
}, 8, ["file-list"])
|
|
4127
|
+
])), [
|
|
4128
|
+
[K, va.value]
|
|
4129
|
+
])
|
|
4130
|
+
]),
|
|
4131
|
+
footer: H(() => [
|
|
4132
|
+
te("div", vu, [
|
|
4133
|
+
ee(g, {
|
|
4134
|
+
onClick: Us,
|
|
4135
|
+
id: "themeBorderButton",
|
|
4136
|
+
disabled: va.value
|
|
4137
|
+
}, {
|
|
4138
|
+
default: H(() => l[22] || (l[22] = [
|
|
4139
|
+
Ve("拍照")
|
|
4140
|
+
])),
|
|
4141
|
+
_: 1,
|
|
4142
|
+
__: [22]
|
|
4143
|
+
}, 8, ["disabled"]),
|
|
4144
|
+
ee(g, {
|
|
4145
|
+
onClick: Yr,
|
|
4146
|
+
id: "themeBorderButton",
|
|
4147
|
+
disabled: va.value
|
|
4148
|
+
}, {
|
|
4149
|
+
default: H(() => l[23] || (l[23] = [
|
|
4150
|
+
Ve("取消")
|
|
4151
|
+
])),
|
|
4152
|
+
_: 1,
|
|
4153
|
+
__: [23]
|
|
4154
|
+
}, 8, ["disabled"]),
|
|
4155
|
+
ee(g, {
|
|
4156
|
+
class: "ok-button",
|
|
4157
|
+
onClick: $s,
|
|
4158
|
+
id: "themeButton",
|
|
4159
|
+
disabled: va.value
|
|
4160
|
+
}, {
|
|
4161
|
+
default: H(() => l[24] || (l[24] = [
|
|
4162
|
+
Ve("确认")
|
|
4163
|
+
])),
|
|
4164
|
+
_: 1,
|
|
4165
|
+
__: [24]
|
|
4166
|
+
}, 8, ["disabled"])
|
|
4167
|
+
])
|
|
4168
|
+
]),
|
|
4169
|
+
_: 1
|
|
4170
|
+
}, 8, ["visible"]),
|
|
4171
|
+
ee(Pi, {
|
|
4172
|
+
visible: cr.value,
|
|
4173
|
+
onConfirm: Es,
|
|
4174
|
+
onCancel: l[11] || (l[11] = (i) => cr.value = !1)
|
|
4175
|
+
}, null, 8, ["visible"]),
|
|
4176
|
+
or.value ? (le(), Xe(Dn, {
|
|
4177
|
+
key: 3,
|
|
4178
|
+
fileDataList: ir.value,
|
|
4179
|
+
onDestroy: Js
|
|
4180
|
+
}, null, 8, ["fileDataList"])) : Ie("", !0),
|
|
4181
|
+
ee(ga, {
|
|
4182
|
+
title: "OCR识别结果预览",
|
|
4183
|
+
visible: vr.value,
|
|
4184
|
+
onBeforeDestroy: Cr,
|
|
4185
|
+
width: "90%",
|
|
4186
|
+
style: { maxWidth: "1200px" }
|
|
4187
|
+
}, {
|
|
4188
|
+
default: H(() => [
|
|
4189
|
+
te("div", gu, [
|
|
4190
|
+
te("div", bu, [
|
|
4191
|
+
ee($, {
|
|
4192
|
+
title: "请核对识别结果,您可以修改字段值后点击确认添加到表格。在表头勾选字段用于匹配并替换现有数据",
|
|
4193
|
+
type: "info",
|
|
4194
|
+
closable: !1,
|
|
4195
|
+
"show-icon": ""
|
|
4196
|
+
})
|
|
4197
|
+
]),
|
|
4198
|
+
te("div", ku, [
|
|
4199
|
+
ee(_, {
|
|
4200
|
+
data: xa.value,
|
|
4201
|
+
border: "",
|
|
4202
|
+
stripe: "",
|
|
4203
|
+
"max-height": "400",
|
|
4204
|
+
style: { width: "100%" }
|
|
4205
|
+
}, {
|
|
4206
|
+
default: H(() => [
|
|
4207
|
+
ee(N, {
|
|
4208
|
+
type: "index",
|
|
4209
|
+
label: "序号",
|
|
4210
|
+
width: "60",
|
|
4211
|
+
fixed: ""
|
|
4212
|
+
}),
|
|
4213
|
+
(le(!0), Ce(aa, null, ra(gr.value, (i) => (le(), Xe(N, {
|
|
4214
|
+
key: i.prop,
|
|
4215
|
+
prop: i.prop,
|
|
4216
|
+
"min-width": i.minWidth || 120,
|
|
4217
|
+
"class-name": i.isAccuracy ? "accuracy-column" : ""
|
|
4218
|
+
}, {
|
|
4219
|
+
header: H(() => [
|
|
4220
|
+
te("div", mu, [
|
|
4221
|
+
i.isAccuracy ? Ie("", !0) : (le(), Xe(u, {
|
|
4222
|
+
key: 0,
|
|
4223
|
+
"model-value": da.value.includes(i.prop),
|
|
4224
|
+
onChange: (h) => Rs(i.prop, h),
|
|
4225
|
+
onClick: l[12] || (l[12] = dr(() => {
|
|
4226
|
+
}, ["stop"]))
|
|
4227
|
+
}, null, 8, ["model-value", "onChange"])),
|
|
4228
|
+
te("span", null, Ze(i.label), 1)
|
|
4229
|
+
])
|
|
4230
|
+
]),
|
|
4231
|
+
default: H(({ row: h, $index: y }) => [
|
|
4232
|
+
i.isAccuracy ? (le(), Ce("span", {
|
|
4233
|
+
key: 0,
|
|
4234
|
+
class: "accuracy-value",
|
|
4235
|
+
style: ba({
|
|
4236
|
+
color: Ks(h[i.prop]),
|
|
4237
|
+
fontWeight: 500
|
|
4238
|
+
})
|
|
4239
|
+
}, Ze(Ms(h[i.prop])), 5)) : (le(), Xe(M, {
|
|
4240
|
+
key: 1,
|
|
4241
|
+
modelValue: h[i.prop],
|
|
4242
|
+
"onUpdate:modelValue": (z) => h[i.prop] = z,
|
|
4243
|
+
size: "small",
|
|
4244
|
+
placeholder: "请输入" + i.label,
|
|
4245
|
+
onChange: (z) => Bs(y, i.prop, z)
|
|
4246
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"]))
|
|
4247
|
+
]),
|
|
4248
|
+
_: 2
|
|
4249
|
+
}, 1032, ["prop", "min-width", "class-name"]))), 128))
|
|
4250
|
+
]),
|
|
4251
|
+
_: 1
|
|
4252
|
+
}, 8, ["data"])
|
|
4253
|
+
])
|
|
4254
|
+
])
|
|
4255
|
+
]),
|
|
4256
|
+
footer: H(() => [
|
|
4257
|
+
te("div", Su, [
|
|
4258
|
+
ee(g, {
|
|
4259
|
+
onClick: Cr,
|
|
4260
|
+
id: "themeBorderButton"
|
|
4261
|
+
}, {
|
|
4262
|
+
default: H(() => l[25] || (l[25] = [
|
|
4263
|
+
Ve("取消")
|
|
4264
|
+
])),
|
|
4265
|
+
_: 1,
|
|
4266
|
+
__: [25]
|
|
4267
|
+
}),
|
|
4268
|
+
ee(g, {
|
|
4269
|
+
class: "ok-button",
|
|
4270
|
+
onClick: Ns,
|
|
4271
|
+
id: "themeButton"
|
|
4272
|
+
}, {
|
|
4273
|
+
default: H(() => l[26] || (l[26] = [
|
|
4274
|
+
Ve("确认")
|
|
4275
|
+
])),
|
|
4276
|
+
_: 1,
|
|
4277
|
+
__: [26]
|
|
4278
|
+
})
|
|
4279
|
+
])
|
|
4280
|
+
]),
|
|
4281
|
+
_: 1
|
|
4282
|
+
}, 8, ["visible"]),
|
|
4283
|
+
ee(ga, {
|
|
4284
|
+
title: hl.title,
|
|
4285
|
+
visible: hl.show,
|
|
4286
|
+
width: hl.width,
|
|
4287
|
+
onBeforeDestroy: Ls
|
|
4288
|
+
}, {
|
|
4289
|
+
default: H(() => [
|
|
4290
|
+
te("div", _u, [
|
|
4291
|
+
ee($a, {
|
|
4292
|
+
rowContents: hl == null ? void 0 : hl.contents,
|
|
4293
|
+
formRules: hl == null ? void 0 : hl.formRules,
|
|
4294
|
+
showOperator: !1,
|
|
4295
|
+
buttonValue: hl.buttonValue,
|
|
4296
|
+
isEdit: ar.value,
|
|
4297
|
+
isStartJustify: !1,
|
|
4298
|
+
isEnableWrap: !1,
|
|
4299
|
+
onOnButtonClick: js
|
|
4300
|
+
}, null, 8, ["rowContents", "formRules", "buttonValue", "isEdit"])
|
|
4301
|
+
])
|
|
4302
|
+
]),
|
|
4303
|
+
_: 1
|
|
4304
|
+
}, 8, ["title", "visible", "width"])
|
|
4305
|
+
]);
|
|
4306
|
+
};
|
|
4307
|
+
}
|
|
4308
|
+
}, Ku = /* @__PURE__ */ er(Au, [["__scopeId", "data-v-2e95a016"]]);
|
|
4309
|
+
export {
|
|
4310
|
+
fi as a,
|
|
4311
|
+
Er as f,
|
|
4312
|
+
Lr as g,
|
|
4313
|
+
Ku as s,
|
|
4314
|
+
$i as u
|
|
4315
|
+
};
|