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