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