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