ss-component-new 1.1.124 → 1.1.125
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/{array-0K26SSg4.cjs → array-DgQ9KHce.cjs} +1 -1
- package/dist/{array-BxjTOqMI.js → array-Dx2qsIMP.js} +8 -8
- package/dist/{cloneDeep-BY7jbyTA.js → cloneDeep-BvVWmE15.js} +1 -1
- package/dist/{cloneDeep-TacB4EZO.cjs → cloneDeep-DRn1QjKu.cjs} +1 -1
- package/dist/{index-DZ5z3tU0.cjs → index-0o71PRSe.cjs} +1 -1
- package/dist/{index-D01NwDB8.js → index-B-NjHiwT.js} +6 -6
- package/dist/{index-BNWaoj6Z.js → index-B3nH6J4f.js} +12 -13
- package/dist/{index-B5RsyhWe.js → index-B5xB3M2p.js} +5 -5
- package/dist/{index-NiXp6EjT.js → index-BBS2U8yQ.js} +1 -1
- package/dist/{index-g1lOxgn5.js → index-BBUta35L.js} +1 -1
- package/dist/{index-q4qf3gNt.js → index-BMMSFJK-.js} +274 -271
- package/dist/{index-BcFYdS3F.js → index-BNY7DURy.js} +1 -1
- package/dist/{index-DlkIx2Ch.cjs → index-BP6Q9QF_.cjs} +1 -1
- package/dist/{index-DehKbitZ.cjs → index-BqYdJkDp.cjs} +1 -1
- package/dist/{index-BWmd705R.js → index-C5haV158.js} +4 -4
- package/dist/{index-C6RYDjmq.cjs → index-C7psxGT6.cjs} +1 -1
- package/dist/{index-iJAEvjVl.cjs → index-CNJERVhL.cjs} +1 -1
- package/dist/index-CQbgggKn.cjs +1 -0
- package/dist/{index-C-aZvFRW.cjs → index-CXBz1VKB.cjs} +1 -1
- package/dist/{index-DS-uNvzB.cjs → index-D0JT4tJn.cjs} +1 -1
- package/dist/index-DFeqxkj1.js +349 -0
- package/dist/index-DGm_tuv2.cjs +1 -0
- package/dist/index-DHneZ-e3.cjs +1 -0
- package/dist/{index-CxGJFuX5.cjs → index-DIvRbGz3.cjs} +1 -1
- package/dist/{index-DJjfdv-n.js → index-DOVX1dzy.js} +5 -5
- package/dist/{index-DcJlzFm_.cjs → index-DPZGJ0QQ.cjs} +1 -1
- package/dist/{index-xmI6kE3E.js → index-D_NlLGiw.js} +4 -4
- package/dist/{index-JeDCqfyX.cjs → index-DbFKGB53.cjs} +1 -1
- package/dist/{index-ReulmnrK.js → index-DeqCqRST.js} +7 -7
- package/dist/{index-BRbFWayD.cjs → index-Dis8TUVs.cjs} +1 -1
- package/dist/{index-B350Jd1Q.cjs → index-DrKgxYts.cjs} +1 -1
- package/dist/{index-DwhBlmrq.js → index-LCK5F6vK.js} +6 -6
- package/dist/{index-H6qiNlh1.js → index-LFpf4SQB.js} +1 -1
- package/dist/{index-CNVW_6cz.js → index-VYVINaK4.js} +1 -1
- package/dist/index-WG9ktGw5.js +332 -0
- package/dist/{index-BKjdsboN.js → index-aSS11kwZ.js} +8 -8
- package/dist/{index-gGDczXNR.cjs → index-dToT1kBj.cjs} +1 -1
- package/dist/{index-DlaRK5AT.cjs → index-jv_wgvqT.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-Bty5s4zO.js +238 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-WrF20u86.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DH217tni.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Cj5SZmLV.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Cik8OFj7.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DdxV72w9.js} +6 -6
- package/dist/{login-6xi181Q5.cjs → login-2wcI_7hO.cjs} +1 -1
- package/dist/{login-A-LN2ivr.js → login-xZK7AKwf.js} +2 -2
- package/dist/{main-CfDsaDSE.cjs → main-Dn6lSQF5.cjs} +1 -1
- package/dist/{main-DGayymHA.js → main-VjEHy8nG.js} +6 -6
- package/dist/{menu-Dk3VihkR.js → menu-DHsbCYvT.js} +1 -1
- package/dist/{menu-BiId5weS.cjs → menu-gPbP7vUD.cjs} +1 -1
- package/dist/{modelComp-ChjHbjpK.cjs → modelComp-BOUPy1BT.cjs} +1 -1
- package/dist/{modelComp-BmaHE37I.js → modelComp-BzaA6RdE.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +6 -6
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +1 -1
- package/dist/index-BpwVKq24.js +0 -333
- package/dist/index-CDx9lK-r.js +0 -327
- package/dist/index-DMXwpYH6.cjs +0 -1
- package/dist/index-DR-Tl8gC.cjs +0 -1
- package/dist/index-De3a9oEY.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-D7-HhkPl.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-DlcscNze.js +0 -238
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ref as m, watch as Q, nextTick as
|
|
2
|
-
import { p as Fe } from "./index-
|
|
3
|
-
import { f as
|
|
4
|
-
import { s as ze, a as
|
|
1
|
+
import { ref as m, watch as Q, nextTick as sa, resolveComponent as Se, createBlock as re, openBlock as j, withCtx as R, createElementVNode as F, renderSlot as je, onMounted as Ve, createElementBlock as S, createCommentVNode as Ie, Fragment as Me, renderList as Pe, normalizeStyle as We, toDisplayString as L, createVNode as G, unref as ra, createSlots as ta } from "vue";
|
|
2
|
+
import { p as Fe } from "./index-BBUta35L.js";
|
|
3
|
+
import { f as ua } from "./index-B5xB3M2p.js";
|
|
4
|
+
import { s as ze, a as ca, b as da } from "./index-C5haV158.js";
|
|
5
|
+
import { c as k } from "./cloneDeep-BvVWmE15.js";
|
|
5
6
|
import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { d as Ge, u as
|
|
7
|
-
import { c as
|
|
8
|
-
|
|
9
|
-
const ya = {
|
|
7
|
+
import { d as Ge, u as fa, s as se } from "./menu-DHsbCYvT.js";
|
|
8
|
+
import { g as He, d as pa, c as ha, u as ya } from "./index-BNY7DURy.js";
|
|
9
|
+
const ga = {
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
12
12
|
isVisible: {
|
|
@@ -23,7 +23,7 @@ const ya = {
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
setup(r) {
|
|
26
|
-
const t = r, a = m(null), e = m(!1),
|
|
26
|
+
const t = r, a = m(null), e = m(!1), n = m(null);
|
|
27
27
|
return Q(
|
|
28
28
|
() => t == null ? void 0 : t.isVisible,
|
|
29
29
|
() => {
|
|
@@ -31,9 +31,9 @@ const ya = {
|
|
|
31
31
|
},
|
|
32
32
|
{ deep: !0, immediate: !0 }
|
|
33
33
|
), Q(
|
|
34
|
-
() =>
|
|
34
|
+
() => n.value,
|
|
35
35
|
() => {
|
|
36
|
-
|
|
36
|
+
sa(() => {
|
|
37
37
|
var s, h;
|
|
38
38
|
(h = (s = a.value) == null ? void 0 : s.updatePopper) == null || h.call(s);
|
|
39
39
|
});
|
|
@@ -49,16 +49,16 @@ const ya = {
|
|
|
49
49
|
ref_key: "popOverRef",
|
|
50
50
|
ref: a
|
|
51
51
|
}, {
|
|
52
|
-
reference:
|
|
53
|
-
|
|
52
|
+
reference: R(() => [
|
|
53
|
+
F("div", null, [
|
|
54
54
|
je(s.$slots, "reference", {
|
|
55
55
|
ref_key: "referenceRef",
|
|
56
|
-
ref:
|
|
56
|
+
ref: n
|
|
57
57
|
})
|
|
58
58
|
])
|
|
59
59
|
]),
|
|
60
|
-
default:
|
|
61
|
-
|
|
60
|
+
default: R(() => [
|
|
61
|
+
F("div", null, [
|
|
62
62
|
je(s.$slots, "content")
|
|
63
63
|
])
|
|
64
64
|
]),
|
|
@@ -66,10 +66,62 @@ const ya = {
|
|
|
66
66
|
}, 8, ["visible", "title", "width"]);
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
},
|
|
69
|
+
}, J = m(0), ee = (r) => (J.value++, r == null ? void 0 : r.map((a) => Array.isArray(a) ? ee(a) : {
|
|
70
|
+
label: (a == null ? void 0 : a.label) ?? "",
|
|
71
|
+
prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : (a == null ? void 0 : a.prop) ?? "a" + J.value,
|
|
72
|
+
width: (a == null ? void 0 : a.label) === "操作" ? "160" : a != null && a.width ? parseInt(a.width) : "",
|
|
73
|
+
fixed: (a == null ? void 0 : a.fixed) ?? void 0,
|
|
74
|
+
sortable: (a == null ? void 0 : a.sortable) ?? !1,
|
|
75
|
+
align: (a == null ? void 0 : a.align) ?? "center",
|
|
76
|
+
showOverflowTooltip: (a == null ? void 0 : a.showOverflowTooltip) ?? !0,
|
|
77
|
+
isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
|
|
78
|
+
isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
|
|
79
|
+
isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
|
|
80
|
+
id: (a == null ? void 0 : a.id) ?? J.value,
|
|
81
|
+
type: (a == null ? void 0 : a.label) === "操作" ? "operate" : void 0,
|
|
82
|
+
formType: (a == null ? void 0 : a.formType) ?? "",
|
|
83
|
+
isHidden: a == null ? void 0 : a.isHidden,
|
|
84
|
+
options: (a == null ? void 0 : a.options) ?? [],
|
|
85
|
+
children: ee(a.children) ?? void 0
|
|
86
|
+
})), ba = (r) => {
|
|
87
|
+
const t = [];
|
|
88
|
+
function a(e) {
|
|
89
|
+
if (Array.isArray(e))
|
|
90
|
+
for (const n of e)
|
|
91
|
+
!n.children || n.children.length === 0 ? t.push(n) : a(n.children);
|
|
92
|
+
}
|
|
93
|
+
return a(r), t;
|
|
94
|
+
}, Re = (r) => k(r).map((a) => (Array.isArray(a) && (a = a.map((e) => (Array.isArray(e) ? e = ee(e) : (e = {
|
|
95
|
+
label: (e == null ? void 0 : e.label) ?? "",
|
|
96
|
+
prop: (e == null ? void 0 : e.label) === "操作" ? "operate" : (e == null ? void 0 : e.prop) ?? "a" + J.value,
|
|
97
|
+
width: (e == null ? void 0 : e.label) === "操作" ? "160" : e != null && e.width ? parseInt(e.width) : "",
|
|
98
|
+
fixed: (e == null ? void 0 : e.fixed) ?? void 0,
|
|
99
|
+
sortable: (e == null ? void 0 : e.sortable) ?? !1,
|
|
100
|
+
align: (e == null ? void 0 : e.align) ?? "center",
|
|
101
|
+
showOverflowTooltip: (e == null ? void 0 : e.showOverflowTooltip) ?? !0,
|
|
102
|
+
isNotDrag: (e == null ? void 0 : e.isNotDrag) ?? !1,
|
|
103
|
+
isEditCol: (e == null ? void 0 : e.isEditCol) ?? !1,
|
|
104
|
+
isOperate: (e == null ? void 0 : e.isOperate) ?? !1,
|
|
105
|
+
id: (e == null ? void 0 : e.id) ?? J.value,
|
|
106
|
+
type: (e == null ? void 0 : e.label) === "操作" ? "operate" : void 0,
|
|
107
|
+
formType: (e == null ? void 0 : e.formType) ?? "",
|
|
108
|
+
isHidden: e == null ? void 0 : e.isHidden,
|
|
109
|
+
options: (e == null ? void 0 : e.options) ?? [],
|
|
110
|
+
children: ee(e.children)
|
|
111
|
+
}, J.value++), e))), a)), Je = (r) => {
|
|
112
|
+
function t(a, e = []) {
|
|
113
|
+
if (!a || a.length === 0) return [];
|
|
114
|
+
let n = e;
|
|
115
|
+
return a == null || a.forEach((s) => {
|
|
116
|
+
var h;
|
|
117
|
+
s != null && s.children && ((h = s.children) == null ? void 0 : h.length) > 0 ? n = t(s == null ? void 0 : s.children, n) : n.push(s);
|
|
118
|
+
}), n;
|
|
119
|
+
}
|
|
120
|
+
return t(r);
|
|
121
|
+
}, ma = { class: "extra-button-content" }, Ca = {
|
|
70
122
|
key: 0,
|
|
71
123
|
class: "extra-header"
|
|
72
|
-
},
|
|
124
|
+
}, ka = ["onClick"], Aa = { class: "extra-button-filter" }, _a = { class: "form-content-value" }, Da = {
|
|
73
125
|
__name: "header",
|
|
74
126
|
props: {
|
|
75
127
|
buttons: {
|
|
@@ -83,75 +135,77 @@ const ya = {
|
|
|
83
135
|
},
|
|
84
136
|
emits: ["buttonClick"],
|
|
85
137
|
setup(r, { emit: t }) {
|
|
86
|
-
const a = t, e = r,
|
|
87
|
-
a("buttonClick",
|
|
88
|
-
},
|
|
89
|
-
var D;
|
|
90
|
-
s.value = (D =
|
|
138
|
+
const a = t, e = r, n = m(!1), s = m([]), h = m([{ label: "取消" }, { label: "确认" }]), p = (O) => {
|
|
139
|
+
a("buttonClick", O);
|
|
140
|
+
}, T = (O) => {
|
|
141
|
+
var D, v;
|
|
142
|
+
s.value = (v = (D = Je(k(O))) == null ? void 0 : D.filter((y) => (y == null ? void 0 : y.label) !== "" && (y == null ? void 0 : y.label) !== "操作")) == null ? void 0 : v.map((y) => ({
|
|
91
143
|
label: (y == null ? void 0 : y.label) ?? "",
|
|
92
144
|
value: "",
|
|
93
145
|
name: (y == null ? void 0 : y.prop) ?? ""
|
|
94
146
|
}));
|
|
95
|
-
}, w = (
|
|
96
|
-
|
|
147
|
+
}, w = (O) => {
|
|
148
|
+
n.value = !1;
|
|
97
149
|
};
|
|
98
150
|
return Ve(() => {
|
|
99
|
-
|
|
151
|
+
T(e.columns);
|
|
100
152
|
}), Q(
|
|
101
153
|
() => e.columns,
|
|
102
154
|
() => {
|
|
103
|
-
|
|
155
|
+
T(e.columns);
|
|
104
156
|
},
|
|
105
157
|
{ deep: !0, immediate: !0 }
|
|
106
|
-
), (
|
|
107
|
-
var
|
|
108
|
-
const
|
|
109
|
-
return j(), S("div",
|
|
110
|
-
e != null && e.buttons && ((
|
|
158
|
+
), (O, D) => {
|
|
159
|
+
var y;
|
|
160
|
+
const v = Se("el-tooltip");
|
|
161
|
+
return j(), S("div", ma, [
|
|
162
|
+
e != null && e.buttons && ((y = e == null ? void 0 : e.buttons) == null ? void 0 : y.length) > 0 ? (j(), S("div", Ca, [
|
|
111
163
|
(j(!0), S(Me, null, Pe(e == null ? void 0 : e.buttons, (C, $) => (j(), S("div", {
|
|
112
164
|
class: "extra-contents",
|
|
113
165
|
key: $
|
|
114
166
|
}, [
|
|
115
|
-
|
|
167
|
+
F("div", {
|
|
116
168
|
class: "extra-content",
|
|
117
169
|
style: We({ background: (C == null ? void 0 : C.background) ?? "var(--ssComponent-primary-color)", color: "white" }),
|
|
118
170
|
onClick: (V) => p(C == null ? void 0 : C.label)
|
|
119
|
-
}, L(C == null ? void 0 : C.label), 13,
|
|
171
|
+
}, L(C == null ? void 0 : C.label), 13, ka)
|
|
120
172
|
]))), 128))
|
|
121
173
|
])) : Ie("", !0),
|
|
122
|
-
|
|
123
|
-
G(
|
|
174
|
+
F("div", Aa, [
|
|
175
|
+
G(ga, {
|
|
124
176
|
title: "筛选数据",
|
|
125
177
|
width: 500,
|
|
126
|
-
isVisible:
|
|
178
|
+
isVisible: n.value
|
|
127
179
|
}, {
|
|
128
|
-
reference:
|
|
129
|
-
G(
|
|
180
|
+
reference: R(() => [
|
|
181
|
+
G(v, {
|
|
130
182
|
content: "筛选",
|
|
131
183
|
placement: "top-start"
|
|
132
184
|
}, {
|
|
133
|
-
default:
|
|
134
|
-
|
|
185
|
+
default: R(() => [
|
|
186
|
+
F("div", {
|
|
135
187
|
class: "button-style",
|
|
136
|
-
onClick: D[0] || (D[0] = (C) =>
|
|
188
|
+
onClick: D[0] || (D[0] = (C) => n.value = !n.value)
|
|
137
189
|
}, [
|
|
138
|
-
G(
|
|
190
|
+
G(ra(ua))
|
|
139
191
|
])
|
|
140
192
|
]),
|
|
141
193
|
_: 1
|
|
142
194
|
})
|
|
143
195
|
]),
|
|
144
|
-
content:
|
|
145
|
-
(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
196
|
+
content: R(() => [
|
|
197
|
+
F("div", _a, [
|
|
198
|
+
(j(), re(ze, {
|
|
199
|
+
rowContents: s.value,
|
|
200
|
+
buttonValue: h.value,
|
|
201
|
+
isRowFlex: !0,
|
|
202
|
+
isEnableWrap: !1,
|
|
203
|
+
isButtonRow: !1,
|
|
204
|
+
key: h.value,
|
|
205
|
+
isStartJustify: !1,
|
|
206
|
+
onOnButtonClick: w
|
|
207
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
208
|
+
])
|
|
155
209
|
]),
|
|
156
210
|
_: 1
|
|
157
211
|
}, 8, ["isVisible"])
|
|
@@ -159,7 +213,7 @@ const ya = {
|
|
|
159
213
|
]);
|
|
160
214
|
};
|
|
161
215
|
}
|
|
162
|
-
},
|
|
216
|
+
}, wa = /* @__PURE__ */ Ue(Da, [["__scopeId", "data-v-401da734"]]), va = Ge("formToTableComp", {
|
|
163
217
|
state: () => ({
|
|
164
218
|
selectArray: [],
|
|
165
219
|
selectString: ""
|
|
@@ -172,7 +226,7 @@ const ya = {
|
|
|
172
226
|
this.selectString = r;
|
|
173
227
|
}
|
|
174
228
|
}
|
|
175
|
-
}),
|
|
229
|
+
}), Ta = Ge("unit", {
|
|
176
230
|
state: () => ({
|
|
177
231
|
selectIndex: "",
|
|
178
232
|
selectMenu: "",
|
|
@@ -189,116 +243,64 @@ const ya = {
|
|
|
189
243
|
this.selectTitle = r;
|
|
190
244
|
}
|
|
191
245
|
}
|
|
192
|
-
}),
|
|
246
|
+
}), qe = (r, t) => {
|
|
193
247
|
let a = r, e = t;
|
|
194
|
-
return Array.isArray(a) && (a = a == null ? void 0 : a.map((
|
|
195
|
-
if (Array.isArray(
|
|
248
|
+
return Array.isArray(a) && (a = a == null ? void 0 : a.map((n, s) => {
|
|
249
|
+
if (Array.isArray(n)) {
|
|
196
250
|
let h = {};
|
|
197
|
-
return
|
|
251
|
+
return n = n == null ? void 0 : n.forEach((p, T) => {
|
|
198
252
|
var w;
|
|
199
|
-
(w = e == null ? void 0 : e[
|
|
253
|
+
(w = e == null ? void 0 : e[T]) != null && w.prop ? h[e[T].prop] = p : Array.isArray(p) && (h.children = qe(p, e));
|
|
200
254
|
}), Object.assign(h, { id: s });
|
|
201
255
|
} else
|
|
202
|
-
return
|
|
256
|
+
return n;
|
|
203
257
|
})), a;
|
|
204
|
-
},
|
|
205
|
-
let e = r,
|
|
258
|
+
}, Ke = (r, t, a) => {
|
|
259
|
+
let e = r, n = t;
|
|
206
260
|
return e = e == null ? void 0 : e.map((s, h) => {
|
|
207
|
-
var p,
|
|
208
|
-
return !Array.isArray(s) || !((p =
|
|
209
|
-
var
|
|
210
|
-
return Array.isArray(w) && (w =
|
|
261
|
+
var p, T;
|
|
262
|
+
return !Array.isArray(s) || !((p = n == null ? void 0 : n[h]) != null && p.label) && !a || (s.unshift(((T = n == null ? void 0 : n[h]) == null ? void 0 : T.label) ?? ""), s.some((w) => Array.isArray(w)) && (s = s == null ? void 0 : s.map((w) => {
|
|
263
|
+
var O;
|
|
264
|
+
return Array.isArray(w) && (w = Ke(w, (O = n == null ? void 0 : n[h]) == null ? void 0 : O.children, a)), w;
|
|
211
265
|
}))), s;
|
|
212
266
|
}), e;
|
|
213
|
-
},
|
|
267
|
+
}, Oa = (r, t, a) => {
|
|
214
268
|
if (t === "")
|
|
215
269
|
return r == null ? void 0 : r.filter((e) => (e == null ? void 0 : e.id) !== a);
|
|
216
270
|
{
|
|
217
271
|
const e = t.split("-");
|
|
218
|
-
return
|
|
272
|
+
return xa(r, e, a);
|
|
219
273
|
}
|
|
220
|
-
},
|
|
221
|
-
let e = r,
|
|
222
|
-
return (
|
|
223
|
-
},
|
|
274
|
+
}, xa = (r, t, a) => {
|
|
275
|
+
let e = r, n = t;
|
|
276
|
+
return (n == null ? void 0 : n.length) === 0 ? e = e == null ? void 0 : e.filter((s) => s.id !== a) : e = e == null ? void 0 : e.map((s) => (s.id.toString() === (n == null ? void 0 : n[0]) && (n == null || n.shift(), s = Qe(s, n, a)), s)), e;
|
|
277
|
+
}, Qe = (r, t, a) => {
|
|
224
278
|
var s, h;
|
|
225
|
-
let e = r,
|
|
226
|
-
return (
|
|
227
|
-
},
|
|
279
|
+
let e = r, n = t;
|
|
280
|
+
return (n == null ? void 0 : n.length) === 0 ? e.children = (s = e.children) == null ? void 0 : s.filter((p) => p.id !== a) : e.children = (h = e.children) == null ? void 0 : h.map((p) => (p.id.toString() === (n == null ? void 0 : n[0]) && (n == null || n.shift(), p = Qe(p, n, a)), p)), e;
|
|
281
|
+
}, Ea = (r, t, a) => {
|
|
228
282
|
if (t === "")
|
|
229
283
|
return a;
|
|
230
284
|
{
|
|
231
285
|
const e = t.split("-");
|
|
232
|
-
return
|
|
286
|
+
return Na(r, e, a);
|
|
233
287
|
}
|
|
234
|
-
},
|
|
235
|
-
let e = r,
|
|
236
|
-
return (
|
|
237
|
-
},
|
|
288
|
+
}, Na = (r, t, a) => {
|
|
289
|
+
let e = r, n = t;
|
|
290
|
+
return (n == null ? void 0 : n.length) === 0 ? e = a : e = e == null ? void 0 : e.map((s) => (s.id.toString() === (n == null ? void 0 : n[0]) && (n == null || n.shift(), s = Xe(s, n, a)), s)), e;
|
|
291
|
+
}, Xe = (r, t, a) => {
|
|
238
292
|
var s;
|
|
239
|
-
let e = r,
|
|
240
|
-
return (
|
|
241
|
-
},
|
|
242
|
-
|
|
243
|
-
prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : (a == null ? void 0 : a.prop) ?? "a" + J.value,
|
|
244
|
-
width: (a == null ? void 0 : a.label) === "操作" ? "160" : a != null && a.width ? parseInt(a.width) : "",
|
|
245
|
-
fixed: (a == null ? void 0 : a.fixed) ?? void 0,
|
|
246
|
-
sortable: (a == null ? void 0 : a.sortable) ?? !1,
|
|
247
|
-
align: (a == null ? void 0 : a.align) ?? "center",
|
|
248
|
-
showOverflowTooltip: (a == null ? void 0 : a.showOverflowTooltip) ?? !0,
|
|
249
|
-
isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
|
|
250
|
-
isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
|
|
251
|
-
isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
|
|
252
|
-
id: (a == null ? void 0 : a.id) ?? J.value,
|
|
253
|
-
type: (a == null ? void 0 : a.label) === "操作" ? "operate" : void 0,
|
|
254
|
-
formType: (a == null ? void 0 : a.formType) ?? "",
|
|
255
|
-
isHidden: a == null ? void 0 : a.isHidden,
|
|
256
|
-
options: (a == null ? void 0 : a.options) ?? [],
|
|
257
|
-
children: ee(a.children) ?? void 0
|
|
258
|
-
})), xa = (r) => {
|
|
259
|
-
const t = [];
|
|
260
|
-
function a(e) {
|
|
261
|
-
if (Array.isArray(e))
|
|
262
|
-
for (const l of e)
|
|
263
|
-
!l.children || l.children.length === 0 ? t.push(l) : a(l.children);
|
|
264
|
-
}
|
|
265
|
-
return a(r), t;
|
|
266
|
-
}, Re = (r) => _(r).map((a) => (Array.isArray(a) && (a = a.map((e) => (Array.isArray(e) ? e = ee(e) : (e = {
|
|
267
|
-
label: (e == null ? void 0 : e.label) ?? "",
|
|
268
|
-
prop: (e == null ? void 0 : e.label) === "操作" ? "operate" : (e == null ? void 0 : e.prop) ?? "a" + J.value,
|
|
269
|
-
width: (e == null ? void 0 : e.label) === "操作" ? "160" : e != null && e.width ? parseInt(e.width) : "",
|
|
270
|
-
fixed: (e == null ? void 0 : e.fixed) ?? void 0,
|
|
271
|
-
sortable: (e == null ? void 0 : e.sortable) ?? !1,
|
|
272
|
-
align: (e == null ? void 0 : e.align) ?? "center",
|
|
273
|
-
showOverflowTooltip: (e == null ? void 0 : e.showOverflowTooltip) ?? !0,
|
|
274
|
-
isNotDrag: (e == null ? void 0 : e.isNotDrag) ?? !1,
|
|
275
|
-
isEditCol: (e == null ? void 0 : e.isEditCol) ?? !1,
|
|
276
|
-
isOperate: (e == null ? void 0 : e.isOperate) ?? !1,
|
|
277
|
-
id: (e == null ? void 0 : e.id) ?? J.value,
|
|
278
|
-
type: (e == null ? void 0 : e.label) === "操作" ? "operate" : void 0,
|
|
279
|
-
formType: (e == null ? void 0 : e.formType) ?? "",
|
|
280
|
-
isHidden: e == null ? void 0 : e.isHidden,
|
|
281
|
-
options: (e == null ? void 0 : e.options) ?? [],
|
|
282
|
-
children: ee(e.children)
|
|
283
|
-
}, J.value++), e))), a)), Ea = (r) => {
|
|
284
|
-
function t(a, e = []) {
|
|
285
|
-
if (!a || a.length === 0) return [];
|
|
286
|
-
let l = e;
|
|
287
|
-
return a == null || a.forEach((s) => {
|
|
288
|
-
var h;
|
|
289
|
-
s != null && s.children && ((h = s.children) == null ? void 0 : h.length) > 0 ? l = t(s == null ? void 0 : s.children, l) : l.push(s);
|
|
290
|
-
}), l;
|
|
291
|
-
}
|
|
292
|
-
return t(r);
|
|
293
|
-
}, Na = async (r, t, a = "") => {
|
|
294
|
-
var w, T;
|
|
293
|
+
let e = r, n = t;
|
|
294
|
+
return (n == null ? void 0 : n.length) === 0 ? e.children = a : e.children = (s = e.children) == null ? void 0 : s.map((h) => (h.id.toString() === (n == null ? void 0 : n[0]) && (n == null || n.shift(), h = Xe(h, n, a)), h)), e;
|
|
295
|
+
}, Ba = async (r, t, a = "") => {
|
|
296
|
+
var w, O;
|
|
295
297
|
const e = await He({
|
|
296
298
|
key: {
|
|
297
299
|
pageKey: r,
|
|
298
300
|
systemKey: t,
|
|
299
301
|
parentTable: a
|
|
300
302
|
}
|
|
301
|
-
}),
|
|
303
|
+
}), n = (w = e.data.result) == null ? void 0 : w.map((D) => D.id), s = n == null ? void 0 : n.map((D) => He({
|
|
302
304
|
key: {
|
|
303
305
|
pageKey: r,
|
|
304
306
|
systemKey: t,
|
|
@@ -307,32 +309,32 @@ const ya = {
|
|
|
307
309
|
})), h = await Promise.all(s), p = [];
|
|
308
310
|
h == null || h.forEach((D) => {
|
|
309
311
|
var C, $, V, U;
|
|
310
|
-
const
|
|
312
|
+
const v = (C = D.data.result) == null ? void 0 : C.map((X) => {
|
|
311
313
|
const I = X.value.tableData;
|
|
312
314
|
return I.unshift({
|
|
313
315
|
id: X.id
|
|
314
316
|
}), I;
|
|
315
|
-
}),
|
|
317
|
+
}), y = (U = (V = ($ = D.data.result) == null ? void 0 : $[0]) == null ? void 0 : V.key) == null ? void 0 : U.tableId;
|
|
316
318
|
p.push({
|
|
317
|
-
key:
|
|
318
|
-
contents:
|
|
319
|
+
key: y,
|
|
320
|
+
contents: v
|
|
319
321
|
});
|
|
320
322
|
});
|
|
321
|
-
const
|
|
322
|
-
return (
|
|
323
|
+
const T = [];
|
|
324
|
+
return (O = e.data.result) == null || O.forEach((D) => {
|
|
323
325
|
var C;
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
+
const v = D.value.pageData, y = k(v.compData);
|
|
327
|
+
y.push({
|
|
326
328
|
key: "tableContents",
|
|
327
329
|
contents: (C = p == null ? void 0 : p.find(($) => ($ == null ? void 0 : $.key) === D.id)) == null ? void 0 : C.contents
|
|
328
|
-
}),
|
|
329
|
-
}),
|
|
330
|
-
},
|
|
331
|
-
await
|
|
330
|
+
}), v.compData = y, v.id = D.id, T.push(v);
|
|
331
|
+
}), T;
|
|
332
|
+
}, Ga = async (r) => {
|
|
333
|
+
await pa({
|
|
332
334
|
id: r
|
|
333
335
|
});
|
|
334
|
-
},
|
|
335
|
-
await
|
|
336
|
+
}, Ja = async (r, t, a, e, n) => {
|
|
337
|
+
await ha({
|
|
336
338
|
key: {
|
|
337
339
|
type: r,
|
|
338
340
|
pageKey: t,
|
|
@@ -340,26 +342,26 @@ const ya = {
|
|
|
340
342
|
systemKey: e
|
|
341
343
|
},
|
|
342
344
|
value: {
|
|
343
|
-
tableData:
|
|
345
|
+
tableData: n
|
|
344
346
|
}
|
|
345
347
|
});
|
|
346
|
-
},
|
|
347
|
-
await
|
|
348
|
+
}, qa = async (r, t, a, e, n, s) => {
|
|
349
|
+
await ya({
|
|
348
350
|
key: {
|
|
349
351
|
type: r,
|
|
350
352
|
pageKey: t,
|
|
351
353
|
tableId: a,
|
|
352
|
-
systemKey:
|
|
354
|
+
systemKey: n
|
|
353
355
|
},
|
|
354
356
|
value: {
|
|
355
357
|
tableData: s
|
|
356
358
|
},
|
|
357
359
|
id: e
|
|
358
360
|
});
|
|
359
|
-
},
|
|
361
|
+
}, $a = { class: "table-content" }, ja = ["onClick"], Fa = { class: "form-content" }, Ha = {
|
|
360
362
|
key: 0,
|
|
361
363
|
class: "dialog-footer"
|
|
362
|
-
},
|
|
364
|
+
}, Ra = {
|
|
363
365
|
__name: "index",
|
|
364
366
|
props: {
|
|
365
367
|
itemData: {
|
|
@@ -379,28 +381,28 @@ const ya = {
|
|
|
379
381
|
},
|
|
380
382
|
emits: ["change", "contentChange", "onButtonClick", "contentClick", "pageChange"],
|
|
381
383
|
setup(r, { emit: t }) {
|
|
382
|
-
const a = r, e = t,
|
|
384
|
+
const a = r, e = t, n = m([]), s = fa(), { activeMenuPath: h } = se(s), p = m([]), T = m("");
|
|
383
385
|
m();
|
|
384
|
-
const w = m(!0),
|
|
385
|
-
|
|
386
|
-
},
|
|
387
|
-
var b, f,
|
|
388
|
-
const
|
|
389
|
-
if (
|
|
386
|
+
const w = m(!0), O = m(0), D = m(!1), v = m(""), y = m(!1), C = m([]), $ = m(!1), V = m([]), U = m([]), X = m(), I = m(), Ye = va(Fe), te = m(), Y = Ta(Fe), { selectIndex: Ze, selectMenu: H, selectTitle: ae } = se(Y), { selectString: M } = se(Ye), Le = m(720), ea = () => {
|
|
387
|
+
y.value = !1;
|
|
388
|
+
}, aa = async (o) => {
|
|
389
|
+
var b, f, l, A, B, g, _;
|
|
390
|
+
const d = await Ba(h.value, sessionStorage.getItem("systemKey"), o.id);
|
|
391
|
+
if (d && d.length > 0) {
|
|
390
392
|
const q = !Array.isArray(ae.value) && ((b = ae.value) == null ? void 0 : b.key) !== "main" ? [] : ae.value;
|
|
391
393
|
q.push({
|
|
392
|
-
key:
|
|
393
|
-
value: o[(
|
|
394
|
-
}), Y.setSelectMenu(
|
|
394
|
+
key: H.value === "" ? (f = o == null ? void 0 : o.id) == null ? void 0 : f.toString() : H.value + "-" + ((l = o == null ? void 0 : o.id) == null ? void 0 : l.toString()),
|
|
395
|
+
value: o[(A = Object.keys(o)) == null ? void 0 : A.filter((K) => K !== "index" && K !== "id")[0]]
|
|
396
|
+
}), Y.setSelectMenu(H.value === "" ? (B = o == null ? void 0 : o.id) == null ? void 0 : B.toString() : H.value + "-" + ((g = o == null ? void 0 : o.id) == null ? void 0 : g.toString())), Y.setSelectTitle(q), Y.setSelectIndex((_ = o == null ? void 0 : o.id) == null ? void 0 : _.toString()), e("pageChange", d);
|
|
395
397
|
}
|
|
396
398
|
}, ue = (o) => {
|
|
397
399
|
var b;
|
|
398
|
-
const
|
|
400
|
+
const d = (b = k(a.itemData)) == null ? void 0 : b.map((f) => ((f == null ? void 0 : f.key) === "tableContents" && (f.contents = o), f));
|
|
399
401
|
e("contentChange", {
|
|
400
|
-
contents:
|
|
402
|
+
contents: d,
|
|
401
403
|
index: a.index
|
|
402
404
|
});
|
|
403
|
-
},
|
|
405
|
+
}, na = (o) => {
|
|
404
406
|
e("contentClick", o);
|
|
405
407
|
};
|
|
406
408
|
Q(
|
|
@@ -408,16 +410,16 @@ const ya = {
|
|
|
408
410
|
() => {
|
|
409
411
|
var b, f;
|
|
410
412
|
if (!a.changedContent) return;
|
|
411
|
-
let o = (b = p.value) == null ? void 0 : b.map((
|
|
412
|
-
var
|
|
413
|
-
return
|
|
413
|
+
let o = (b = p.value) == null ? void 0 : b.map((l) => {
|
|
414
|
+
var A;
|
|
415
|
+
return l.id === ((A = a.changedContent) == null ? void 0 : A.id) && (l = {
|
|
414
416
|
...a.changedContent,
|
|
415
417
|
id: a.changedContent.newId ? a.changedContent.newId : a.changedContent.id
|
|
416
|
-
}, delete
|
|
418
|
+
}, delete l.newId), l;
|
|
417
419
|
});
|
|
418
|
-
const
|
|
420
|
+
const d = (f = a.itemData) == null ? void 0 : f.map((l) => ((l == null ? void 0 : l.key) === "tableContents" && (l.contents = o), l));
|
|
419
421
|
p.value = o, e("contentChange", {
|
|
420
|
-
contents:
|
|
422
|
+
contents: d,
|
|
421
423
|
index: a.index
|
|
422
424
|
}), e("change", {
|
|
423
425
|
content: o,
|
|
@@ -428,71 +430,71 @@ const ya = {
|
|
|
428
430
|
},
|
|
429
431
|
{ deep: !0, immediate: !0 }
|
|
430
432
|
);
|
|
431
|
-
const
|
|
433
|
+
const ne = (o, d) => {
|
|
432
434
|
var b;
|
|
433
|
-
if (
|
|
434
|
-
p.value = (b =
|
|
435
|
-
const f =
|
|
435
|
+
if (T.value = "", $.value = !0, w.value = !0, e("onButtonClick", o, d), o === "删除") {
|
|
436
|
+
p.value = (b = k(p.value)) == null ? void 0 : b.filter((l) => (l == null ? void 0 : l.id) !== (d == null ? void 0 : d.id));
|
|
437
|
+
const f = Oa(te.value, H.value, d == null ? void 0 : d.id);
|
|
436
438
|
ue(f), e("change", {
|
|
437
439
|
content: f,
|
|
438
|
-
singleContent:
|
|
440
|
+
singleContent: d,
|
|
439
441
|
index: a == null ? void 0 : a.index,
|
|
440
442
|
type: "delete",
|
|
441
443
|
buttonName: o
|
|
442
444
|
});
|
|
443
|
-
} else o === "新增" ? (
|
|
444
|
-
},
|
|
445
|
+
} else o === "新增" ? (v.value = "新增", le(""), y.value = !0) : o === "编辑" ? (v.value = "编辑", le(d), y.value = !0) : o === "查看" && (v.value = "查看", le(d), $.value = !1, w.value = !1, y.value = !0);
|
|
446
|
+
}, le = (o) => {
|
|
445
447
|
var b, f;
|
|
446
|
-
const
|
|
447
|
-
(f =
|
|
448
|
-
|
|
449
|
-
label: (
|
|
450
|
-
name: (
|
|
451
|
-
type: !(
|
|
452
|
-
value: (o == null ? void 0 : o[
|
|
453
|
-
id: (
|
|
454
|
-
contents: (
|
|
448
|
+
const d = [];
|
|
449
|
+
(f = Je((b = k(n.value)) == null ? void 0 : b.filter((l) => l.label !== "" && (l == null ? void 0 : l.label) !== "操作"))) == null || f.forEach((l, A) => {
|
|
450
|
+
d.push({
|
|
451
|
+
label: (l == null ? void 0 : l.label) ?? "",
|
|
452
|
+
name: (l == null ? void 0 : l.prop) ?? "t" + A,
|
|
453
|
+
type: !(l != null && l.formType) || (l == null ? void 0 : l.formType) === "" ? "Input" : l == null ? void 0 : l.formType,
|
|
454
|
+
value: (o == null ? void 0 : o[l == null ? void 0 : l.prop]) ?? "",
|
|
455
|
+
id: (l == null ? void 0 : l.id) ?? A,
|
|
456
|
+
contents: (l == null ? void 0 : l.options) ?? [],
|
|
455
457
|
width: 1,
|
|
456
|
-
isHidden:
|
|
458
|
+
isHidden: l == null ? void 0 : l.isHidden
|
|
457
459
|
});
|
|
458
|
-
}), o === "" || !o || (
|
|
460
|
+
}), o === "" || !o || (T.value = o == null ? void 0 : o.id), U.value = d, console.log(111, U.value);
|
|
459
461
|
};
|
|
460
462
|
Ve(() => {
|
|
461
463
|
});
|
|
462
464
|
const la = () => {
|
|
463
|
-
let o,
|
|
464
|
-
|
|
465
|
-
const b =
|
|
466
|
-
ue(b),
|
|
465
|
+
let o, d = k(p.value);
|
|
466
|
+
T.value === "" ? (O.value++, d.push(Object.assign(I.value, { id: O.value })), o = Object.assign(I.value, { id: O.value })) : d = d == null ? void 0 : d.map((f) => ((f == null ? void 0 : f.id) === T.value && (f = Object.assign(f, I.value), o = f), f)), p.value = d;
|
|
467
|
+
const b = Ea(te.value, H.value, d);
|
|
468
|
+
ue(b), y.value = !1, e("change", {
|
|
467
469
|
content: b,
|
|
468
470
|
singleContent: o,
|
|
469
471
|
index: a == null ? void 0 : a.index,
|
|
470
|
-
buttonName:
|
|
472
|
+
buttonName: v.value
|
|
471
473
|
});
|
|
472
|
-
},
|
|
474
|
+
}, ia = (o) => {
|
|
473
475
|
I.value = o;
|
|
474
476
|
};
|
|
475
477
|
return Q(
|
|
476
|
-
() => [a.itemData, M.value,
|
|
478
|
+
() => [a.itemData, M.value, Ze.value, H.value],
|
|
477
479
|
() => {
|
|
478
|
-
var q, K,
|
|
480
|
+
var q, K, ce, de, fe, pe, he, ye, ge, be, me, Ce, ke, Ae, _e, De, we, ve, Te, Oe, xe, Ee, Ne, Be;
|
|
479
481
|
console.log(666, a.itemData);
|
|
480
|
-
const o = (q =
|
|
482
|
+
const o = (q = k(a.itemData)) == null ? void 0 : q.filter((u) => (u == null ? void 0 : u.key) === "header"), d = (K = k(a.itemData)) == null ? void 0 : K.filter((u) => (u == null ? void 0 : u.key) === "tableIndexColumn")[0], b = (ce = k(a.itemData)) == null ? void 0 : ce.find((u) => (u == null ? void 0 : u.key) === "page"), f = (de = k(a.itemData)) == null ? void 0 : de.find((u) => (u == null ? void 0 : u.key) === "rowButton"), l = (fe = k(a.itemData)) == null ? void 0 : fe.find((u) => (u == null ? void 0 : u.key) === "extraButton"), A = (pe = k(a.itemData)) == null ? void 0 : pe.filter((u) => (u == null ? void 0 : u.key) === "tableContents"), B = (he = k(a.itemData)) == null ? void 0 : he.filter((u) => (u == null ? void 0 : u.key) === "tableIndex");
|
|
481
483
|
D.value = (b == null ? void 0 : b.contents) ?? !0;
|
|
482
484
|
let g = [];
|
|
483
485
|
M.value === "" ? g = o == null ? void 0 : o[0] : g = (o == null ? void 0 : o.find((u) => (u == null ? void 0 : u.selectLabel) === "(" + M.value + ")")) ?? (o == null ? void 0 : o.find((u) => !(u != null && u.selectLabel)));
|
|
484
|
-
let
|
|
485
|
-
if (M.value === "" ?
|
|
486
|
+
let _ = [];
|
|
487
|
+
if (M.value === "" ? _ = B == null ? void 0 : B[0] : _ = (B == null ? void 0 : B.find((u) => (u == null ? void 0 : u.selectLabel) === "(" + M.value + ")")) ?? (B == null ? void 0 : B.find((u) => !(u != null && u.selectLabel))), ((ye = g == null ? void 0 : g.contents) == null ? void 0 : ye.length) > 0) {
|
|
486
488
|
let u = [];
|
|
487
|
-
if (
|
|
488
|
-
label: (
|
|
489
|
+
if (_ != null && _.contents && ((ge = _ == null ? void 0 : _.contents) == null ? void 0 : ge.length) !== 0 && u.push({
|
|
490
|
+
label: (d == null ? void 0 : d.contents) ?? "",
|
|
489
491
|
prop: "index",
|
|
490
492
|
sortable: !1
|
|
491
|
-
}), g != null && g.contents.some((
|
|
492
|
-
|
|
493
|
+
}), g != null && g.contents.some((c) => Array.isArray(c) && (c == null ? void 0 : c.find((i) => i.children))))
|
|
494
|
+
H.value === "" ? u = (me = (be = Re(k(g == null ? void 0 : g.contents))) == null ? void 0 : be[0]) == null ? void 0 : me.filter((c) => !Array.isArray(c)) : (H.value.split("-"), u = (Ce = Re(k(g == null ? void 0 : g.contents))) == null ? void 0 : Ce[0]);
|
|
493
495
|
else {
|
|
494
|
-
const
|
|
495
|
-
|
|
496
|
+
const c = g != null && g.contents.some((i) => Array.isArray(i)) ? (ke = g == null ? void 0 : g.contents) == null ? void 0 : ke[0] : g == null ? void 0 : g.contents;
|
|
497
|
+
c == null || c.forEach((i, E) => {
|
|
496
498
|
(i == null ? void 0 : i.label) !== "" && u.push({
|
|
497
499
|
label: (i == null ? void 0 : i.label) ?? "",
|
|
498
500
|
prop: (i == null ? void 0 : i.label) === "操作" ? "operate" : (i == null ? void 0 : i.prop) ?? "a" + E,
|
|
@@ -512,99 +514,100 @@ const ya = {
|
|
|
512
514
|
});
|
|
513
515
|
});
|
|
514
516
|
}
|
|
515
|
-
|
|
516
|
-
let P = (_e = (Ae =
|
|
517
|
-
prop: (
|
|
517
|
+
n.value = u;
|
|
518
|
+
let P = (_e = (Ae = ba(k(n.value))) == null ? void 0 : Ae.filter((c) => (c == null ? void 0 : c.type) !== "operate")) == null ? void 0 : _e.map((c, i) => ({
|
|
519
|
+
prop: (c == null ? void 0 : c.prop) ?? "a" + i
|
|
518
520
|
}));
|
|
519
521
|
X.value = P;
|
|
520
522
|
let x = [];
|
|
521
|
-
M.value === "" ? x =
|
|
522
|
-
let W = Array.isArray((De = x == null ? void 0 : x.contents) == null ? void 0 : De[0]) && ((we = x == null ? void 0 : x.contents) != null && we[0].every((
|
|
523
|
-
|
|
524
|
-
if (!Array.isArray(
|
|
523
|
+
M.value === "" ? x = A == null ? void 0 : A[0] : x = (A == null ? void 0 : A.find((c) => (c == null ? void 0 : c.selectLabel) === "(" + M.value + ")")) ?? (A == null ? void 0 : A.find((c) => !(c != null && c.selectLabel)));
|
|
524
|
+
let W = Array.isArray((De = x == null ? void 0 : x.contents) == null ? void 0 : De[0]) && ((we = x == null ? void 0 : x.contents) != null && we[0].every((c) => Array.isArray(c))) ? (ve = k(x == null ? void 0 : x.contents)) == null ? void 0 : ve[0] : k(x == null ? void 0 : x.contents);
|
|
525
|
+
_ != null && _.contents && ((Te = _ == null ? void 0 : _.contents) == null ? void 0 : Te.length) !== 0 && (W = (Oe = k(W)) == null ? void 0 : Oe.map((c, i) => {
|
|
526
|
+
if (!Array.isArray(c)) {
|
|
525
527
|
let E = {};
|
|
526
|
-
for (let z in
|
|
527
|
-
z !== "id" && z !== "index" && (E[z] =
|
|
528
|
-
|
|
528
|
+
for (let z in c)
|
|
529
|
+
z !== "id" && z !== "index" && (E[z] = c[z]);
|
|
530
|
+
c = Object.values(E);
|
|
529
531
|
}
|
|
530
|
-
return
|
|
532
|
+
return c;
|
|
531
533
|
}));
|
|
532
|
-
const
|
|
533
|
-
W =
|
|
534
|
+
const oa = !!((xe = n.value) != null && xe.find((c) => c.prop === "index"));
|
|
535
|
+
W = Ke(k(W), _ == null ? void 0 : _.contents, oa);
|
|
534
536
|
const Z = [];
|
|
535
|
-
W == null || W.forEach((
|
|
537
|
+
W == null || W.forEach((c, i) => {
|
|
536
538
|
var z;
|
|
537
539
|
let E = {};
|
|
538
|
-
Array.isArray(
|
|
540
|
+
Array.isArray(c) ? c == null || c.filter((N) => !N.id).forEach((N, ie) => {
|
|
539
541
|
var $e;
|
|
540
|
-
($e = P == null ? void 0 : P[ie]) != null && $e.prop && !Array.isArray(N) ? E[P[ie].prop] = N : Array.isArray(N) && (N.find((oe) => (oe == null ? void 0 : oe.key) === "tableContentName") ? E[P[ie].prop] = N : E.children =
|
|
541
|
-
}) : E =
|
|
542
|
+
($e = P == null ? void 0 : P[ie]) != null && $e.prop && !Array.isArray(N) ? E[P[ie].prop] = N : Array.isArray(N) && (N.find((oe) => (oe == null ? void 0 : oe.key) === "tableContentName") ? E[P[ie].prop] = N : E.children = qe(N, P));
|
|
543
|
+
}) : E = c, Array.isArray(c) && c.some((N) => N == null ? void 0 : N.id) ? Z.push(Object.assign(E, { id: (z = c == null ? void 0 : c.find((N) => N.id)) == null ? void 0 : z.id })) : E.id ? Z.push(E) : Z.push(Object.assign(E, { id: i }));
|
|
542
544
|
}), p.value = Z;
|
|
543
545
|
} else
|
|
544
|
-
|
|
545
|
-
((Ee = f == null ? void 0 : f.contents) == null ? void 0 : Ee.length) > 0 ? C.value = f == null ? void 0 : f.contents : C.value = [], ((Ne =
|
|
546
|
+
n.value = [], p.value = [];
|
|
547
|
+
((Ee = f == null ? void 0 : f.contents) == null ? void 0 : Ee.length) > 0 ? C.value = f == null ? void 0 : f.contents : C.value = [], ((Ne = l == null ? void 0 : l.contents) == null ? void 0 : Ne.length) > 0 ? V.value = l == null ? void 0 : l.contents : V.value = [], O.value = ((Be = p == null ? void 0 : p.value) == null ? void 0 : Be.length) ?? 0;
|
|
546
548
|
},
|
|
547
549
|
{ deep: !0, immediate: !0 }
|
|
548
|
-
), (o,
|
|
550
|
+
), (o, d) => {
|
|
549
551
|
var b;
|
|
550
|
-
return j(), S("div",
|
|
551
|
-
(j(), re(
|
|
552
|
-
columns:
|
|
553
|
-
key:
|
|
552
|
+
return j(), S("div", $a, [
|
|
553
|
+
(j(), re(ca, {
|
|
554
|
+
columns: n.value,
|
|
555
|
+
key: n.value,
|
|
554
556
|
tableData: p.value,
|
|
555
557
|
isShowPagination: D.value,
|
|
556
558
|
isShowEdit: !1,
|
|
557
559
|
isShowDelete: !1,
|
|
558
|
-
onDbClickRow:
|
|
560
|
+
onDbClickRow: aa,
|
|
559
561
|
extraButton: V.value,
|
|
560
|
-
onButtonClick:
|
|
561
|
-
onContentClick:
|
|
562
|
-
},
|
|
563
|
-
headerButton:
|
|
564
|
-
G(
|
|
562
|
+
onButtonClick: d[1] || (d[1] = (f) => ne(f, "")),
|
|
563
|
+
onContentClick: na
|
|
564
|
+
}, ta({
|
|
565
|
+
headerButton: R((f) => [
|
|
566
|
+
G(wa, {
|
|
565
567
|
buttons: f.buttons,
|
|
566
|
-
onButtonClick:
|
|
567
|
-
|
|
568
|
+
onButtonClick: d[0] || (d[0] = (l) => ne(l, "")),
|
|
569
|
+
columns: n.value
|
|
570
|
+
}, null, 8, ["buttons", "columns"])
|
|
568
571
|
]),
|
|
569
572
|
_: 2
|
|
570
573
|
}, [
|
|
571
574
|
((b = C.value) == null ? void 0 : b.length) > 0 ? {
|
|
572
575
|
name: "actions",
|
|
573
|
-
fn:
|
|
574
|
-
(j(!0), S(Me, null, Pe(C.value, (
|
|
575
|
-
|
|
576
|
-
style: We({ color:
|
|
576
|
+
fn: R(({ item: f }) => [
|
|
577
|
+
(j(!0), S(Me, null, Pe(C.value, (l, A) => (j(), S("div", { key: A }, [
|
|
578
|
+
F("div", {
|
|
579
|
+
style: We({ color: l == null ? void 0 : l.textColor }),
|
|
577
580
|
class: "extra-button-label",
|
|
578
|
-
onClick: (B) =>
|
|
579
|
-
}, L(
|
|
581
|
+
onClick: (B) => ne(l == null ? void 0 : l.label, f)
|
|
582
|
+
}, L(l == null ? void 0 : l.label), 13, ja)
|
|
580
583
|
]))), 128))
|
|
581
584
|
]),
|
|
582
585
|
key: "0"
|
|
583
586
|
} : void 0
|
|
584
587
|
]), 1032, ["columns", "tableData", "isShowPagination", "extraButton"])),
|
|
585
588
|
G(da, {
|
|
586
|
-
title:
|
|
587
|
-
visible:
|
|
588
|
-
width:
|
|
589
|
-
onBeforeDestroy:
|
|
589
|
+
title: v.value,
|
|
590
|
+
visible: y.value,
|
|
591
|
+
width: Le.value,
|
|
592
|
+
onBeforeDestroy: ea
|
|
590
593
|
}, {
|
|
591
|
-
default:
|
|
592
|
-
|
|
594
|
+
default: R(() => [
|
|
595
|
+
F("div", Fa, [
|
|
593
596
|
G(ze, {
|
|
594
597
|
rowContents: U.value,
|
|
595
598
|
isEnableWrap: !1,
|
|
596
|
-
onChange:
|
|
599
|
+
onChange: ia,
|
|
597
600
|
isEdit: w.value
|
|
598
601
|
}, null, 8, ["rowContents", "isEdit"])
|
|
599
602
|
])
|
|
600
603
|
]),
|
|
601
|
-
footer:
|
|
602
|
-
$.value ? (j(), S("div",
|
|
603
|
-
|
|
604
|
-
onClick:
|
|
604
|
+
footer: R(() => [
|
|
605
|
+
$.value ? (j(), S("div", Ha, [
|
|
606
|
+
F("div", {
|
|
607
|
+
onClick: d[2] || (d[2] = (f) => y.value = !1),
|
|
605
608
|
class: "cancel-button"
|
|
606
609
|
}, L("取消")),
|
|
607
|
-
|
|
610
|
+
F("div", {
|
|
608
611
|
class: "ok-button",
|
|
609
612
|
onClick: la
|
|
610
613
|
}, L("确认"))
|
|
@@ -615,13 +618,13 @@ const ya = {
|
|
|
615
618
|
]);
|
|
616
619
|
};
|
|
617
620
|
}
|
|
618
|
-
},
|
|
621
|
+
}, Ka = /* @__PURE__ */ Ue(Ra, [["__scopeId", "data-v-8a9497ec"]]);
|
|
619
622
|
export {
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
623
|
+
Ta as a,
|
|
624
|
+
Ja as b,
|
|
625
|
+
Ga as d,
|
|
626
|
+
qa as f,
|
|
627
|
+
Ba as g,
|
|
628
|
+
Ka as s,
|
|
629
|
+
va as u
|
|
627
630
|
};
|