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