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