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