vue-2024-ui 0.0.82 → 0.0.84
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/index.es.js +1324 -1323
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _t, { ElForm as We, ElButtonGroup as Ge, ElButton as _e, ElPopover as Ke, ElMessage as Te, ElMessageBox as vt, ElDialog as kt, ElDrawer as Ct } from "element-plus";
|
|
2
|
-
import { mergeModels as Be, useModel as Ie, ref as
|
|
2
|
+
import { mergeModels as Be, useModel as Ie, ref as me, nextTick as yt, onMounted as Ne, resolveComponent as j, openBlock as r, createElementBlock as q, unref as L, createBlock as S, mergeProps as F, withCtx as v, renderSlot as m, Fragment as P, renderList as I, createTextVNode as we, toDisplayString as Ee, createSlots as fe, createVNode as Z, createCommentVNode as $e, normalizeProps as Qe, createElementVNode as J, useSlots as ht, inject as rt, useAttrs as ut, onUnmounted as Dt, computed as Ye, normalizeStyle as Oe, withModifiers as ct, guardReactiveProps as ft, resolveDynamicComponent as Ae, Transition as Vt, withDirectives as Mt, vShow as Tt, h as qe, onBeforeUnmount as Ft, normalizeClass as gt, watchEffect as St, watch as qt, createApp as xt } from "vue";
|
|
3
3
|
import { FullScreen as Ot, Remove as At } from "@element-plus/icons-vue";
|
|
4
4
|
import bt from "sortablejs";
|
|
5
5
|
import { Dexie as Bt } from "dexie";
|
|
@@ -181,195 +181,195 @@ var It = {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
}, Yt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
184
|
-
function Ut(
|
|
185
|
-
return
|
|
184
|
+
function Ut(c) {
|
|
185
|
+
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
|
|
186
186
|
}
|
|
187
187
|
var $t = { exports: {} };
|
|
188
|
-
(function(
|
|
188
|
+
(function(c, d) {
|
|
189
189
|
(function(t, e) {
|
|
190
|
-
|
|
190
|
+
c.exports = e();
|
|
191
191
|
})(Yt, function() {
|
|
192
|
-
var t = 1e3, e = 6e4,
|
|
193
|
-
var
|
|
194
|
-
return "[" +
|
|
195
|
-
} },
|
|
196
|
-
var
|
|
197
|
-
return !
|
|
198
|
-
}, de = { s:
|
|
199
|
-
var
|
|
200
|
-
return (
|
|
201
|
-
}, m: function
|
|
202
|
-
if (
|
|
203
|
-
var
|
|
204
|
-
return +(-(
|
|
205
|
-
}, a: function(
|
|
206
|
-
return
|
|
207
|
-
}, p: function(
|
|
208
|
-
return { M: z, y: R, w:
|
|
209
|
-
}, u: function(
|
|
210
|
-
return
|
|
211
|
-
} },
|
|
212
|
-
pe
|
|
213
|
-
var
|
|
214
|
-
return
|
|
215
|
-
},
|
|
216
|
-
var
|
|
217
|
-
if (
|
|
218
|
-
if (typeof
|
|
219
|
-
var
|
|
220
|
-
|
|
221
|
-
var
|
|
222
|
-
if (!
|
|
192
|
+
var t = 1e3, e = 6e4, o = 36e5, i = "millisecond", Y = "second", M = "minute", T = "hour", $ = "day", C = "week", z = "month", ae = "quarter", R = "year", D = "date", g = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, K = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, oe = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(A) {
|
|
193
|
+
var b = ["th", "st", "nd", "rd"], h = A % 100;
|
|
194
|
+
return "[" + A + (b[(h - 20) % 10] || b[h] || b[0]) + "]";
|
|
195
|
+
} }, te = function(A, b, h) {
|
|
196
|
+
var E = String(A);
|
|
197
|
+
return !E || E.length >= b ? A : "" + Array(b + 1 - E.length).join(h) + A;
|
|
198
|
+
}, de = { s: te, z: function(A) {
|
|
199
|
+
var b = -A.utcOffset(), h = Math.abs(b), E = Math.floor(h / 60), n = h % 60;
|
|
200
|
+
return (b <= 0 ? "+" : "-") + te(E, 2, "0") + ":" + te(n, 2, "0");
|
|
201
|
+
}, m: function A(b, h) {
|
|
202
|
+
if (b.date() < h.date()) return -A(h, b);
|
|
203
|
+
var E = 12 * (h.year() - b.year()) + (h.month() - b.month()), n = b.clone().add(E, z), s = h - n < 0, O = b.clone().add(E + (s ? -1 : 1), z);
|
|
204
|
+
return +(-(E + (h - n) / (s ? n - O : O - n)) || 0);
|
|
205
|
+
}, a: function(A) {
|
|
206
|
+
return A < 0 ? Math.ceil(A) || 0 : Math.floor(A);
|
|
207
|
+
}, p: function(A) {
|
|
208
|
+
return { M: z, y: R, w: C, d: $, D, h: T, m: M, s: Y, ms: i, Q: ae }[A] || String(A || "").toLowerCase().replace(/s$/, "");
|
|
209
|
+
}, u: function(A) {
|
|
210
|
+
return A === void 0;
|
|
211
|
+
} }, pe = "en", ve = {};
|
|
212
|
+
ve[pe] = oe;
|
|
213
|
+
var f = "$isDayjsObject", V = function(A) {
|
|
214
|
+
return A instanceof ee || !(!A || !A[f]);
|
|
215
|
+
}, k = function A(b, h, E) {
|
|
216
|
+
var n;
|
|
217
|
+
if (!b) return pe;
|
|
218
|
+
if (typeof b == "string") {
|
|
219
|
+
var s = b.toLowerCase();
|
|
220
|
+
ve[s] && (n = s), h && (ve[s] = h, n = s);
|
|
221
|
+
var O = b.split("-");
|
|
222
|
+
if (!n && O.length > 1) return A(O[0]);
|
|
223
223
|
} else {
|
|
224
|
-
var H =
|
|
225
|
-
|
|
224
|
+
var H = b.name;
|
|
225
|
+
ve[H] = b, n = H;
|
|
226
226
|
}
|
|
227
|
-
return !
|
|
228
|
-
},
|
|
229
|
-
if (
|
|
230
|
-
var
|
|
231
|
-
return
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
return
|
|
227
|
+
return !E && n && (pe = n), n || !E && pe;
|
|
228
|
+
}, y = function(A, b) {
|
|
229
|
+
if (V(A)) return A.clone();
|
|
230
|
+
var h = typeof b == "object" ? b : {};
|
|
231
|
+
return h.date = A, h.args = arguments, new ee(h);
|
|
232
|
+
}, B = de;
|
|
233
|
+
B.l = k, B.i = V, B.w = function(A, b) {
|
|
234
|
+
return y(A, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
|
|
235
235
|
};
|
|
236
236
|
var ee = function() {
|
|
237
|
-
function
|
|
238
|
-
this.$L =
|
|
237
|
+
function A(h) {
|
|
238
|
+
this.$L = k(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[f] = !0;
|
|
239
239
|
}
|
|
240
|
-
var
|
|
241
|
-
return
|
|
242
|
-
this.$d = function(
|
|
243
|
-
var
|
|
244
|
-
if (
|
|
245
|
-
if (
|
|
246
|
-
if (
|
|
247
|
-
if (typeof
|
|
248
|
-
var
|
|
249
|
-
if (
|
|
250
|
-
var H =
|
|
251
|
-
return
|
|
240
|
+
var b = A.prototype;
|
|
241
|
+
return b.parse = function(h) {
|
|
242
|
+
this.$d = function(E) {
|
|
243
|
+
var n = E.date, s = E.utc;
|
|
244
|
+
if (n === null) return /* @__PURE__ */ new Date(NaN);
|
|
245
|
+
if (B.u(n)) return /* @__PURE__ */ new Date();
|
|
246
|
+
if (n instanceof Date) return new Date(n);
|
|
247
|
+
if (typeof n == "string" && !/Z$/i.test(n)) {
|
|
248
|
+
var O = n.match(_);
|
|
249
|
+
if (O) {
|
|
250
|
+
var H = O[2] - 1 || 0, X = (O[7] || "0").substring(0, 3);
|
|
251
|
+
return s ? new Date(Date.UTC(O[1], H, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, X)) : new Date(O[1], H, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, X);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
return new Date(
|
|
255
|
-
}(
|
|
256
|
-
},
|
|
257
|
-
var
|
|
258
|
-
this.$y =
|
|
259
|
-
},
|
|
260
|
-
return
|
|
261
|
-
},
|
|
262
|
-
return this.$d.toString() !==
|
|
263
|
-
},
|
|
264
|
-
var
|
|
265
|
-
return this.startOf(
|
|
266
|
-
},
|
|
267
|
-
return h
|
|
268
|
-
},
|
|
269
|
-
return this.endOf(
|
|
270
|
-
},
|
|
271
|
-
return
|
|
272
|
-
},
|
|
254
|
+
return new Date(n);
|
|
255
|
+
}(h), this.init();
|
|
256
|
+
}, b.init = function() {
|
|
257
|
+
var h = this.$d;
|
|
258
|
+
this.$y = h.getFullYear(), this.$M = h.getMonth(), this.$D = h.getDate(), this.$W = h.getDay(), this.$H = h.getHours(), this.$m = h.getMinutes(), this.$s = h.getSeconds(), this.$ms = h.getMilliseconds();
|
|
259
|
+
}, b.$utils = function() {
|
|
260
|
+
return B;
|
|
261
|
+
}, b.isValid = function() {
|
|
262
|
+
return this.$d.toString() !== g;
|
|
263
|
+
}, b.isSame = function(h, E) {
|
|
264
|
+
var n = y(h);
|
|
265
|
+
return this.startOf(E) <= n && n <= this.endOf(E);
|
|
266
|
+
}, b.isAfter = function(h, E) {
|
|
267
|
+
return y(h) < this.startOf(E);
|
|
268
|
+
}, b.isBefore = function(h, E) {
|
|
269
|
+
return this.endOf(E) < y(h);
|
|
270
|
+
}, b.$g = function(h, E, n) {
|
|
271
|
+
return B.u(h) ? this[E] : this.set(n, h);
|
|
272
|
+
}, b.unix = function() {
|
|
273
273
|
return Math.floor(this.valueOf() / 1e3);
|
|
274
|
-
},
|
|
274
|
+
}, b.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
|
-
},
|
|
277
|
-
var
|
|
278
|
-
var N =
|
|
279
|
-
return
|
|
276
|
+
}, b.startOf = function(h, E) {
|
|
277
|
+
var n = this, s = !!B.u(E) || E, O = B.p(h), H = function(De, u) {
|
|
278
|
+
var N = B.w(n.$u ? Date.UTC(n.$y, u, De) : new Date(n.$y, u, De), n);
|
|
279
|
+
return s ? N : N.endOf($);
|
|
280
280
|
}, X = function(De, u) {
|
|
281
|
-
return
|
|
282
|
-
}, se = this.$W, ce = this.$M, he = this.$D,
|
|
283
|
-
switch (
|
|
281
|
+
return B.w(n.toDate()[De].apply(n.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(u)), n);
|
|
282
|
+
}, se = this.$W, ce = this.$M, he = this.$D, ye = "set" + (this.$u ? "UTC" : "");
|
|
283
|
+
switch (O) {
|
|
284
284
|
case R:
|
|
285
|
-
return
|
|
285
|
+
return s ? H(1, 0) : H(31, 11);
|
|
286
286
|
case z:
|
|
287
|
-
return
|
|
288
|
-
case
|
|
287
|
+
return s ? H(1, ce) : H(0, ce + 1);
|
|
288
|
+
case C:
|
|
289
289
|
var Ce = this.$locale().weekStart || 0, Fe = (se < Ce ? se + 7 : se) - Ce;
|
|
290
|
-
return H(
|
|
291
|
-
case
|
|
292
|
-
case
|
|
293
|
-
return X(
|
|
294
|
-
case F:
|
|
295
|
-
return X(ve + "Minutes", 1);
|
|
290
|
+
return H(s ? he - Fe : he + (6 - Fe), ce);
|
|
291
|
+
case $:
|
|
292
|
+
case D:
|
|
293
|
+
return X(ye + "Hours", 0);
|
|
296
294
|
case T:
|
|
297
|
-
return X(
|
|
298
|
-
case
|
|
299
|
-
return X(
|
|
295
|
+
return X(ye + "Minutes", 1);
|
|
296
|
+
case M:
|
|
297
|
+
return X(ye + "Seconds", 2);
|
|
298
|
+
case Y:
|
|
299
|
+
return X(ye + "Milliseconds", 3);
|
|
300
300
|
default:
|
|
301
301
|
return this.clone();
|
|
302
302
|
}
|
|
303
|
-
},
|
|
304
|
-
return this.startOf(
|
|
305
|
-
},
|
|
306
|
-
var
|
|
307
|
-
if (
|
|
308
|
-
var se = this.clone().set(
|
|
309
|
-
se.$d[H](X), se.init(), this.$d = se.set(
|
|
303
|
+
}, b.endOf = function(h) {
|
|
304
|
+
return this.startOf(h, !1);
|
|
305
|
+
}, b.$set = function(h, E) {
|
|
306
|
+
var n, s = B.p(h), O = "set" + (this.$u ? "UTC" : ""), H = (n = {}, n[$] = O + "Date", n[D] = O + "Date", n[z] = O + "Month", n[R] = O + "FullYear", n[T] = O + "Hours", n[M] = O + "Minutes", n[Y] = O + "Seconds", n[i] = O + "Milliseconds", n)[s], X = s === $ ? this.$D + (E - this.$W) : E;
|
|
307
|
+
if (s === z || s === R) {
|
|
308
|
+
var se = this.clone().set(D, 1);
|
|
309
|
+
se.$d[H](X), se.init(), this.$d = se.set(D, Math.min(this.$D, se.daysInMonth())).$d;
|
|
310
310
|
} else H && this.$d[H](X);
|
|
311
311
|
return this.init(), this;
|
|
312
|
-
},
|
|
313
|
-
return this.clone().$set(
|
|
314
|
-
},
|
|
315
|
-
return this[
|
|
316
|
-
},
|
|
317
|
-
var
|
|
318
|
-
|
|
319
|
-
var
|
|
320
|
-
var he =
|
|
321
|
-
return
|
|
312
|
+
}, b.set = function(h, E) {
|
|
313
|
+
return this.clone().$set(h, E);
|
|
314
|
+
}, b.get = function(h) {
|
|
315
|
+
return this[B.p(h)]();
|
|
316
|
+
}, b.add = function(h, E) {
|
|
317
|
+
var n, s = this;
|
|
318
|
+
h = Number(h);
|
|
319
|
+
var O = B.p(E), H = function(ce) {
|
|
320
|
+
var he = y(s);
|
|
321
|
+
return B.w(he.date(he.date() + Math.round(ce * h)), s);
|
|
322
322
|
};
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
327
|
-
var X = (
|
|
328
|
-
return
|
|
329
|
-
},
|
|
330
|
-
return this.add(-1 *
|
|
331
|
-
},
|
|
332
|
-
var
|
|
333
|
-
if (!this.isValid()) return
|
|
334
|
-
var
|
|
335
|
-
return u && (u[N] || u(
|
|
323
|
+
if (O === z) return this.set(z, this.$M + h);
|
|
324
|
+
if (O === R) return this.set(R, this.$y + h);
|
|
325
|
+
if (O === $) return H(1);
|
|
326
|
+
if (O === C) return H(7);
|
|
327
|
+
var X = (n = {}, n[M] = e, n[T] = o, n[Y] = t, n)[O] || 1, se = this.$d.getTime() + h * X;
|
|
328
|
+
return B.w(se, this);
|
|
329
|
+
}, b.subtract = function(h, E) {
|
|
330
|
+
return this.add(-1 * h, E);
|
|
331
|
+
}, b.format = function(h) {
|
|
332
|
+
var E = this, n = this.$locale();
|
|
333
|
+
if (!this.isValid()) return n.invalidDate || g;
|
|
334
|
+
var s = h || "YYYY-MM-DDTHH:mm:ssZ", O = B.z(this), H = this.$H, X = this.$m, se = this.$M, ce = n.weekdays, he = n.months, ye = n.meridiem, Ce = function(u, N, ie, Ve) {
|
|
335
|
+
return u && (u[N] || u(E, s)) || ie[N].slice(0, Ve);
|
|
336
336
|
}, Fe = function(u) {
|
|
337
|
-
return
|
|
338
|
-
}, De =
|
|
337
|
+
return B.s(H % 12 || 12, u, "0");
|
|
338
|
+
}, De = ye || function(u, N, ie) {
|
|
339
339
|
var Ve = u < 12 ? "AM" : "PM";
|
|
340
340
|
return ie ? Ve.toLowerCase() : Ve;
|
|
341
341
|
};
|
|
342
|
-
return
|
|
342
|
+
return s.replace(K, function(u, N) {
|
|
343
343
|
return N || function(ie) {
|
|
344
344
|
switch (ie) {
|
|
345
345
|
case "YY":
|
|
346
|
-
return String(
|
|
346
|
+
return String(E.$y).slice(-2);
|
|
347
347
|
case "YYYY":
|
|
348
|
-
return
|
|
348
|
+
return B.s(E.$y, 4, "0");
|
|
349
349
|
case "M":
|
|
350
350
|
return se + 1;
|
|
351
351
|
case "MM":
|
|
352
|
-
return
|
|
352
|
+
return B.s(se + 1, 2, "0");
|
|
353
353
|
case "MMM":
|
|
354
|
-
return Ce(
|
|
354
|
+
return Ce(n.monthsShort, se, he, 3);
|
|
355
355
|
case "MMMM":
|
|
356
356
|
return Ce(he, se);
|
|
357
357
|
case "D":
|
|
358
|
-
return
|
|
358
|
+
return E.$D;
|
|
359
359
|
case "DD":
|
|
360
|
-
return
|
|
360
|
+
return B.s(E.$D, 2, "0");
|
|
361
361
|
case "d":
|
|
362
|
-
return String(
|
|
362
|
+
return String(E.$W);
|
|
363
363
|
case "dd":
|
|
364
|
-
return Ce(
|
|
364
|
+
return Ce(n.weekdaysMin, E.$W, ce, 2);
|
|
365
365
|
case "ddd":
|
|
366
|
-
return Ce(
|
|
366
|
+
return Ce(n.weekdaysShort, E.$W, ce, 3);
|
|
367
367
|
case "dddd":
|
|
368
|
-
return ce[
|
|
368
|
+
return ce[E.$W];
|
|
369
369
|
case "H":
|
|
370
370
|
return String(H);
|
|
371
371
|
case "HH":
|
|
372
|
-
return
|
|
372
|
+
return B.s(H, 2, "0");
|
|
373
373
|
case "h":
|
|
374
374
|
return Fe(1);
|
|
375
375
|
case "hh":
|
|
@@ -381,83 +381,83 @@ var $t = { exports: {} };
|
|
|
381
381
|
case "m":
|
|
382
382
|
return String(X);
|
|
383
383
|
case "mm":
|
|
384
|
-
return
|
|
384
|
+
return B.s(X, 2, "0");
|
|
385
385
|
case "s":
|
|
386
|
-
return String(
|
|
386
|
+
return String(E.$s);
|
|
387
387
|
case "ss":
|
|
388
|
-
return
|
|
388
|
+
return B.s(E.$s, 2, "0");
|
|
389
389
|
case "SSS":
|
|
390
|
-
return
|
|
390
|
+
return B.s(E.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
|
-
return
|
|
392
|
+
return O;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}(u) ||
|
|
395
|
+
}(u) || O.replace(":", "");
|
|
396
396
|
});
|
|
397
|
-
},
|
|
397
|
+
}, b.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
|
-
},
|
|
400
|
-
var
|
|
401
|
-
return
|
|
399
|
+
}, b.diff = function(h, E, n) {
|
|
400
|
+
var s, O = this, H = B.p(E), X = y(h), se = (X.utcOffset() - this.utcOffset()) * e, ce = this - X, he = function() {
|
|
401
|
+
return B.m(O, X);
|
|
402
402
|
};
|
|
403
403
|
switch (H) {
|
|
404
404
|
case R:
|
|
405
|
-
|
|
405
|
+
s = he() / 12;
|
|
406
406
|
break;
|
|
407
407
|
case z:
|
|
408
|
-
|
|
408
|
+
s = he();
|
|
409
409
|
break;
|
|
410
|
-
case
|
|
411
|
-
|
|
410
|
+
case ae:
|
|
411
|
+
s = he() / 3;
|
|
412
412
|
break;
|
|
413
|
-
case
|
|
414
|
-
|
|
413
|
+
case C:
|
|
414
|
+
s = (ce - se) / 6048e5;
|
|
415
415
|
break;
|
|
416
|
-
case
|
|
417
|
-
|
|
418
|
-
break;
|
|
419
|
-
case F:
|
|
420
|
-
i = ce / a;
|
|
416
|
+
case $:
|
|
417
|
+
s = (ce - se) / 864e5;
|
|
421
418
|
break;
|
|
422
419
|
case T:
|
|
423
|
-
|
|
420
|
+
s = ce / o;
|
|
421
|
+
break;
|
|
422
|
+
case M:
|
|
423
|
+
s = ce / e;
|
|
424
424
|
break;
|
|
425
|
-
case
|
|
426
|
-
|
|
425
|
+
case Y:
|
|
426
|
+
s = ce / t;
|
|
427
427
|
break;
|
|
428
428
|
default:
|
|
429
|
-
|
|
429
|
+
s = ce;
|
|
430
430
|
}
|
|
431
|
-
return
|
|
432
|
-
},
|
|
431
|
+
return n ? s : B.a(s);
|
|
432
|
+
}, b.daysInMonth = function() {
|
|
433
433
|
return this.endOf(z).$D;
|
|
434
|
-
},
|
|
435
|
-
return
|
|
436
|
-
},
|
|
437
|
-
if (!
|
|
438
|
-
var
|
|
439
|
-
return
|
|
440
|
-
},
|
|
441
|
-
return
|
|
442
|
-
},
|
|
434
|
+
}, b.$locale = function() {
|
|
435
|
+
return ve[this.$L];
|
|
436
|
+
}, b.locale = function(h, E) {
|
|
437
|
+
if (!h) return this.$L;
|
|
438
|
+
var n = this.clone(), s = k(h, E, !0);
|
|
439
|
+
return s && (n.$L = s), n;
|
|
440
|
+
}, b.clone = function() {
|
|
441
|
+
return B.w(this.$d, this);
|
|
442
|
+
}, b.toDate = function() {
|
|
443
443
|
return new Date(this.valueOf());
|
|
444
|
-
},
|
|
444
|
+
}, b.toJSON = function() {
|
|
445
445
|
return this.isValid() ? this.toISOString() : null;
|
|
446
|
-
},
|
|
446
|
+
}, b.toISOString = function() {
|
|
447
447
|
return this.$d.toISOString();
|
|
448
|
-
},
|
|
448
|
+
}, b.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
|
-
},
|
|
450
|
+
}, A;
|
|
451
451
|
}(), ne = ee.prototype;
|
|
452
|
-
return
|
|
453
|
-
ne[
|
|
454
|
-
return this.$g(
|
|
452
|
+
return y.prototype = ne, [["$ms", i], ["$s", Y], ["$m", M], ["$H", T], ["$W", $], ["$M", z], ["$y", R], ["$D", D]].forEach(function(A) {
|
|
453
|
+
ne[A[1]] = function(b) {
|
|
454
|
+
return this.$g(b, A[0], A[1]);
|
|
455
455
|
};
|
|
456
|
-
}),
|
|
457
|
-
return
|
|
458
|
-
},
|
|
459
|
-
return
|
|
460
|
-
},
|
|
456
|
+
}), y.extend = function(A, b) {
|
|
457
|
+
return A.$i || (A(b, ee, y), A.$i = !0), y;
|
|
458
|
+
}, y.locale = k, y.isDayjs = V, y.unix = function(A) {
|
|
459
|
+
return y(1e3 * A);
|
|
460
|
+
}, y.en = ve[pe], y.Ls = ve, y.p = {}, y;
|
|
461
461
|
});
|
|
462
462
|
})($t);
|
|
463
463
|
var jt = $t.exports;
|
|
@@ -474,8 +474,8 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
474
474
|
modelModifiers: {}
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
|
-
setup(
|
|
478
|
-
const
|
|
477
|
+
setup(c) {
|
|
478
|
+
const d = Ie(c, "modelValue"), t = c, e = me(t.item || {}), o = me(t.ctrlKey), i = me(t.ctrlType), Y = me(t.model), M = me([]), T = me([]), $ = () => Object.keys(ht()).filter((g) => g.startsWith(`${t.t}-${o}-`)).map((g) => g.replace(`${t.t}-${o}-`, "")), C = (g) => [
|
|
479
479
|
"year",
|
|
480
480
|
"years",
|
|
481
481
|
"month",
|
|
@@ -488,7 +488,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
488
488
|
"daterange",
|
|
489
489
|
"monthrange",
|
|
490
490
|
"yearrange"
|
|
491
|
-
].includes(
|
|
491
|
+
].includes(g), z = (g) => ({
|
|
492
492
|
year: "YYYY",
|
|
493
493
|
years: "YYYY",
|
|
494
494
|
month: "YYYY-MM",
|
|
@@ -502,105 +502,106 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
502
502
|
daterange: "YYYY-MM-DD",
|
|
503
503
|
monthrange: "YYYY-MM",
|
|
504
504
|
yearrange: "YYYY"
|
|
505
|
-
})[
|
|
505
|
+
})[g] || "YYYY-MM-DD", ae = me({
|
|
506
506
|
filterable: !0,
|
|
507
|
-
remote: !!(e && e["remote-method"]),
|
|
508
|
-
...e
|
|
509
|
-
}), R =
|
|
510
|
-
e["remote-method"](
|
|
507
|
+
remote: !!(e.value && e.value["remote-method"]),
|
|
508
|
+
...e.value
|
|
509
|
+
}), R = me((g) => {
|
|
510
|
+
e.value["remote-method"](g, (_) => {
|
|
511
511
|
yt(() => {
|
|
512
|
-
|
|
512
|
+
T.value = _;
|
|
513
513
|
});
|
|
514
514
|
});
|
|
515
|
-
}),
|
|
515
|
+
}), D = async (g = "options") => {
|
|
516
|
+
var _;
|
|
516
517
|
try {
|
|
517
|
-
const
|
|
518
|
-
if (typeof
|
|
519
|
-
|
|
518
|
+
const K = await ((_ = e.value) == null ? void 0 : _.getDicts(t.formInfo));
|
|
519
|
+
if (typeof K == "string")
|
|
520
|
+
T.value = [{ label: K, value: d.value }];
|
|
520
521
|
else {
|
|
521
|
-
const
|
|
522
|
-
...
|
|
523
|
-
value:
|
|
524
|
-
label:
|
|
522
|
+
const oe = K == null ? void 0 : K.map((te, de) => ({
|
|
523
|
+
...te,
|
|
524
|
+
value: te.value ?? te.label ?? de,
|
|
525
|
+
label: te.label || "未知选项"
|
|
525
526
|
}));
|
|
526
|
-
|
|
527
|
+
T.value = oe || [];
|
|
527
528
|
}
|
|
528
|
-
} catch (
|
|
529
|
-
throw console.error("获取选项失败:",
|
|
529
|
+
} catch (K) {
|
|
530
|
+
throw console.error("获取选项失败:", K), K;
|
|
530
531
|
}
|
|
531
532
|
};
|
|
532
533
|
return Ne(async () => {
|
|
533
|
-
var
|
|
534
|
-
e && e["remote-method"] && (
|
|
535
|
-
const
|
|
536
|
-
typeof e.getDicts == "function" &&
|
|
537
|
-
console.error(`Failed to load ${de} for ${
|
|
534
|
+
var K, oe;
|
|
535
|
+
e.value && e.value["remote-method"] && (ae.value["remote-method"] = R), (oe = (K = Y.value[o.value]) == null ? void 0 : K.options) != null && oe.length && (T.value = Y.value[o.value].options);
|
|
536
|
+
const g = (te, de = "options", pe = Y.value[o.value]) => {
|
|
537
|
+
typeof e.value.getDicts == "function" && D(de).catch((ve) => {
|
|
538
|
+
console.error(`Failed to load ${de} for ${te}:`, ve);
|
|
538
539
|
});
|
|
539
540
|
};
|
|
540
|
-
["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(
|
|
541
|
+
["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(i.value) && g(i.value), i.value === be.TREESELECT && await (async () => {
|
|
541
542
|
try {
|
|
542
|
-
typeof e.getDicts == "function" ?
|
|
543
|
+
typeof e.value.getDicts == "function" ? M.value = await e.value.getDicts(t.formInfo) : M.value = T.value;
|
|
543
544
|
} catch (de) {
|
|
544
545
|
console.error("Failed to load data for tree-select:", de);
|
|
545
546
|
}
|
|
546
547
|
})();
|
|
547
|
-
}), (
|
|
548
|
+
}), (g, _) => {
|
|
548
549
|
var Ce, Fe, De;
|
|
549
|
-
const
|
|
550
|
-
return
|
|
551
|
-
|
|
550
|
+
const K = j("el-radio"), oe = j("el-radio-group"), te = j("el-radio-button"), de = j("el-checkbox"), pe = j("el-checkbox-group"), ve = j("el-checkbox-button"), f = j("g-select-option"), V = j("el-option"), k = j("el-select"), y = j("el-tree-select"), B = j("el-time-picker"), ee = j("el-time-select"), ne = j("el-date-picker"), A = j("el-color-picker"), b = j("el-rate"), h = j("el-slider"), E = j("el-switch"), n = j("el-transfer"), s = j("el-cascader"), O = j("el-button"), H = j("el-upload"), X = j("el-autocomplete"), se = j("el-input-number"), ce = j("el-input"), he = j("el-link"), ye = j("el-tag");
|
|
551
|
+
return r(), q("div", Lt, [
|
|
552
|
+
i.value == L(be).RADIO ? (r(), S(oe, F({
|
|
552
553
|
key: 0,
|
|
553
|
-
modelValue:
|
|
554
|
-
"onUpdate:modelValue":
|
|
555
|
-
},
|
|
556
|
-
default:
|
|
557
|
-
|
|
558
|
-
(
|
|
559
|
-
default:
|
|
560
|
-
|
|
554
|
+
modelValue: d.value,
|
|
555
|
+
"onUpdate:modelValue": _[0] || (_[0] = (u) => d.value = u)
|
|
556
|
+
}, e.value), {
|
|
557
|
+
default: v(() => [
|
|
558
|
+
m(g.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
|
|
559
|
+
(r(!0), q(P, null, I(T.value, (u) => (r(), S(K, F({ ref_for: !0 }, u), {
|
|
560
|
+
default: v(() => [
|
|
561
|
+
m(g.$slots, `${t.t}-${o.value}-options`, { option: u })
|
|
561
562
|
]),
|
|
562
563
|
_: 2
|
|
563
564
|
}, 1040))), 256))
|
|
564
565
|
])
|
|
565
566
|
]),
|
|
566
567
|
_: 3
|
|
567
|
-
}, 16, ["modelValue"])) :
|
|
568
|
+
}, 16, ["modelValue"])) : i.value == L(be).RADIOBUTTON ? (r(), S(oe, F({
|
|
568
569
|
key: 1,
|
|
569
|
-
modelValue:
|
|
570
|
-
"onUpdate:modelValue":
|
|
571
|
-
},
|
|
572
|
-
default:
|
|
573
|
-
|
|
574
|
-
(
|
|
575
|
-
default:
|
|
576
|
-
|
|
570
|
+
modelValue: d.value,
|
|
571
|
+
"onUpdate:modelValue": _[1] || (_[1] = (u) => d.value = u)
|
|
572
|
+
}, e.value), {
|
|
573
|
+
default: v(() => [
|
|
574
|
+
m(g.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
|
|
575
|
+
(r(!0), q(P, null, I(T.value, (u) => (r(), S(te, F({ ref_for: !0 }, u), {
|
|
576
|
+
default: v(() => [
|
|
577
|
+
m(g.$slots, `${t.t}-${o.value}-options`, { option: u })
|
|
577
578
|
]),
|
|
578
579
|
_: 2
|
|
579
580
|
}, 1040))), 256))
|
|
580
581
|
])
|
|
581
582
|
]),
|
|
582
583
|
_: 3
|
|
583
|
-
}, 16, ["modelValue"])) :
|
|
584
|
+
}, 16, ["modelValue"])) : i.value == L(be).CHECKBOX ? (r(), S(de, F({
|
|
584
585
|
key: 2,
|
|
585
|
-
modelValue:
|
|
586
|
-
"onUpdate:modelValue":
|
|
587
|
-
},
|
|
588
|
-
default:
|
|
589
|
-
|
|
590
|
-
|
|
586
|
+
modelValue: d.value,
|
|
587
|
+
"onUpdate:modelValue": _[2] || (_[2] = (u) => d.value = u)
|
|
588
|
+
}, e.value), {
|
|
589
|
+
default: v(() => [
|
|
590
|
+
m(g.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
|
|
591
|
+
_[20] || (_[20] = we(Ee(" ")))
|
|
591
592
|
])
|
|
592
593
|
]),
|
|
593
594
|
_: 3
|
|
594
|
-
}, 16, ["modelValue"])) :
|
|
595
|
+
}, 16, ["modelValue"])) : i.value == L(be).CHECKBOXGROUP ? (r(), S(pe, F({
|
|
595
596
|
key: 3,
|
|
596
|
-
modelValue:
|
|
597
|
-
"onUpdate:modelValue":
|
|
598
|
-
},
|
|
599
|
-
default:
|
|
600
|
-
|
|
601
|
-
(
|
|
602
|
-
default:
|
|
603
|
-
|
|
597
|
+
modelValue: d.value,
|
|
598
|
+
"onUpdate:modelValue": _[3] || (_[3] = (u) => d.value = u)
|
|
599
|
+
}, e.value), {
|
|
600
|
+
default: v(() => [
|
|
601
|
+
m(g.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
|
|
602
|
+
(r(!0), q(P, null, I(T.value, (u) => (r(), S(de, F({ ref_for: !0 }, u), {
|
|
603
|
+
default: v(() => [
|
|
604
|
+
m(g.$slots, `${t.t}-${o.value}-options`, { option: u }, () => [
|
|
604
605
|
we(Ee(u.label), 1)
|
|
605
606
|
])
|
|
606
607
|
]),
|
|
@@ -609,56 +610,56 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
609
610
|
])
|
|
610
611
|
]),
|
|
611
612
|
_: 3
|
|
612
|
-
}, 16, ["modelValue"])) :
|
|
613
|
+
}, 16, ["modelValue"])) : i.value == L(be).CHECKBOXGROUPBUTTON ? (r(), S(pe, F({
|
|
613
614
|
key: 4,
|
|
614
|
-
modelValue:
|
|
615
|
-
"onUpdate:modelValue":
|
|
616
|
-
},
|
|
617
|
-
default:
|
|
618
|
-
|
|
619
|
-
(
|
|
620
|
-
default:
|
|
621
|
-
|
|
615
|
+
modelValue: d.value,
|
|
616
|
+
"onUpdate:modelValue": _[4] || (_[4] = (u) => d.value = u)
|
|
617
|
+
}, e.value), {
|
|
618
|
+
default: v(() => [
|
|
619
|
+
m(g.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
|
|
620
|
+
(r(!0), q(P, null, I(T.value, (u) => (r(), S(ve, F({ ref_for: !0 }, u), {
|
|
621
|
+
default: v(() => [
|
|
622
|
+
m(g.$slots, `${t.t}-${o.value}-options`, { option: u })
|
|
622
623
|
]),
|
|
623
624
|
_: 2
|
|
624
625
|
}, 1040))), 256))
|
|
625
626
|
])
|
|
626
627
|
]),
|
|
627
628
|
_: 3
|
|
628
|
-
}, 16, ["modelValue"])) :
|
|
629
|
+
}, 16, ["modelValue"])) : i.value === L(be).SELECT ? (r(), S(k, F({
|
|
629
630
|
key: 5,
|
|
630
|
-
modelValue:
|
|
631
|
-
"onUpdate:modelValue":
|
|
632
|
-
placeholder:
|
|
633
|
-
},
|
|
634
|
-
default:
|
|
635
|
-
|
|
636
|
-
(
|
|
631
|
+
modelValue: d.value,
|
|
632
|
+
"onUpdate:modelValue": _[5] || (_[5] = (u) => d.value = u),
|
|
633
|
+
placeholder: Y.value[o.value].label
|
|
634
|
+
}, ae.value), fe({
|
|
635
|
+
default: v(() => [
|
|
636
|
+
m(g.$slots, `${t.t}-${o.value}`, { options: T.value }, () => [
|
|
637
|
+
(r(!0), q(P, null, I(T.value, (u) => (r(), q(P, {
|
|
637
638
|
key: u.value
|
|
638
639
|
}, [
|
|
639
|
-
Z(
|
|
640
|
-
onClick: (N) =>
|
|
640
|
+
Z(V, F({ ref_for: !0 }, L(ke)(u, (N) => N != "children"), {
|
|
641
|
+
onClick: (N) => ae.value.change && ae.value.change(u)
|
|
641
642
|
}), {
|
|
642
|
-
default:
|
|
643
|
+
default: v(() => {
|
|
643
644
|
var N;
|
|
644
645
|
return [
|
|
645
|
-
(N =
|
|
646
|
+
(N = e.value) != null && N.columns ? m(g.$slots, `${t.t}-${o.value}-options`, {
|
|
646
647
|
key: 0,
|
|
647
648
|
option: u
|
|
648
649
|
}, () => {
|
|
649
650
|
var ie;
|
|
650
651
|
return [
|
|
651
|
-
Z(
|
|
652
|
-
columns: (ie =
|
|
652
|
+
Z(f, {
|
|
653
|
+
columns: (ie = e.value) == null ? void 0 : ie.columns,
|
|
653
654
|
data: u,
|
|
654
655
|
t: t.t
|
|
655
656
|
}, fe({ _: 2 }, [
|
|
656
|
-
|
|
657
|
+
I(g.$slots, (Ve, l) => ({
|
|
657
658
|
name: l,
|
|
658
|
-
fn:
|
|
659
|
-
|
|
659
|
+
fn: v((a) => [
|
|
660
|
+
m(g.$slots, l, {
|
|
660
661
|
option: u,
|
|
661
|
-
data:
|
|
662
|
+
data: a
|
|
662
663
|
})
|
|
663
664
|
])
|
|
664
665
|
}))
|
|
@@ -669,33 +670,33 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
669
670
|
}),
|
|
670
671
|
_: 2
|
|
671
672
|
}, 1040, ["onClick"]),
|
|
672
|
-
u.children && u.children.length ? (
|
|
673
|
+
u.children && u.children.length ? (r(!0), q(P, { key: 0 }, I(u.children, (N) => (r(), S(V, F({
|
|
673
674
|
style: { "margin-left": "20px" },
|
|
674
675
|
key: N.value,
|
|
675
676
|
ref_for: !0
|
|
676
|
-
},
|
|
677
|
-
onClick: (ie) =>
|
|
677
|
+
}, L(ke)(N, (ie) => ie != "children"), {
|
|
678
|
+
onClick: (ie) => ae.value.change && ae.value.change(N)
|
|
678
679
|
}), {
|
|
679
|
-
default:
|
|
680
|
+
default: v(() => {
|
|
680
681
|
var ie;
|
|
681
682
|
return [
|
|
682
|
-
(ie =
|
|
683
|
+
(ie = e.value) != null && ie.columns ? m(g.$slots, `${t.t}-${o.value}-options`, {
|
|
683
684
|
key: 0,
|
|
684
685
|
option: N
|
|
685
686
|
}, () => {
|
|
686
687
|
var Ve;
|
|
687
688
|
return [
|
|
688
|
-
Z(
|
|
689
|
-
columns: (Ve =
|
|
689
|
+
Z(f, {
|
|
690
|
+
columns: (Ve = e.value) == null ? void 0 : Ve.columns,
|
|
690
691
|
data: N,
|
|
691
692
|
t: t.t
|
|
692
693
|
}, fe({ _: 2 }, [
|
|
693
|
-
|
|
694
|
-
name:
|
|
695
|
-
fn:
|
|
696
|
-
|
|
694
|
+
I(g.$slots, (l, a) => ({
|
|
695
|
+
name: a,
|
|
696
|
+
fn: v((p) => [
|
|
697
|
+
m(g.$slots, a, {
|
|
697
698
|
option: N,
|
|
698
|
-
data:
|
|
699
|
+
data: p
|
|
699
700
|
})
|
|
700
701
|
])
|
|
701
702
|
}))
|
|
@@ -711,20 +712,20 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
711
712
|
]),
|
|
712
713
|
_: 2
|
|
713
714
|
}, [
|
|
714
|
-
(Ce =
|
|
715
|
+
(Ce = e.value) != null && Ce.columns ? {
|
|
715
716
|
name: "header",
|
|
716
|
-
fn:
|
|
717
|
+
fn: v(() => {
|
|
717
718
|
var u;
|
|
718
719
|
return [
|
|
719
|
-
Z(
|
|
720
|
-
columns: (u =
|
|
720
|
+
Z(f, {
|
|
721
|
+
columns: (u = e.value) == null ? void 0 : u.columns,
|
|
721
722
|
title: !0,
|
|
722
723
|
t: t.t
|
|
723
724
|
}, fe({ _: 2 }, [
|
|
724
|
-
|
|
725
|
+
I(g.$slots, (N, ie) => ({
|
|
725
726
|
name: ie,
|
|
726
|
-
fn:
|
|
727
|
-
|
|
727
|
+
fn: v((Ve) => [
|
|
728
|
+
m(g.$slots, ie, { data: Ve })
|
|
728
729
|
])
|
|
729
730
|
}))
|
|
730
731
|
]), 1032, ["columns", "t"])
|
|
@@ -732,102 +733,102 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
732
733
|
}),
|
|
733
734
|
key: "0"
|
|
734
735
|
} : void 0,
|
|
735
|
-
|
|
736
|
+
I($(), (u) => ({
|
|
736
737
|
name: u,
|
|
737
|
-
fn:
|
|
738
|
-
|
|
738
|
+
fn: v((N) => [
|
|
739
|
+
m(g.$slots, `${t.t}-${o.value}-${u}`, { data: N })
|
|
739
740
|
])
|
|
740
741
|
}))
|
|
741
|
-
]), 1040, ["modelValue", "placeholder"])) :
|
|
742
|
+
]), 1040, ["modelValue", "placeholder"])) : i.value == L(be).TREESELECT ? (r(), S(y, F({
|
|
742
743
|
key: 6,
|
|
743
|
-
modelValue:
|
|
744
|
-
"onUpdate:modelValue":
|
|
745
|
-
placeholder:
|
|
746
|
-
},
|
|
747
|
-
|
|
744
|
+
modelValue: d.value,
|
|
745
|
+
"onUpdate:modelValue": _[6] || (_[6] = (u) => d.value = u),
|
|
746
|
+
placeholder: Y.value[o.value].label
|
|
747
|
+
}, e.value, { data: M.value }), fe({ _: 2 }, [
|
|
748
|
+
I($(), (u) => ({
|
|
748
749
|
name: u,
|
|
749
|
-
fn:
|
|
750
|
-
|
|
750
|
+
fn: v((N) => [
|
|
751
|
+
m(g.$slots, `${t.t}-${o.value}-${u}`, { data: N })
|
|
751
752
|
])
|
|
752
753
|
}))
|
|
753
|
-
]), 1040, ["modelValue", "placeholder", "data"])) :
|
|
754
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : i.value == L(be).TIME ? (r(), S(B, F({
|
|
754
755
|
key: 7,
|
|
755
|
-
modelValue:
|
|
756
|
-
"onUpdate:modelValue":
|
|
756
|
+
modelValue: d.value,
|
|
757
|
+
"onUpdate:modelValue": _[7] || (_[7] = (u) => d.value = u),
|
|
757
758
|
"arrow-control": ""
|
|
758
|
-
},
|
|
759
|
-
placeholder:
|
|
760
|
-
}), null, 16, ["modelValue", "placeholder"])) :
|
|
759
|
+
}, e.value, {
|
|
760
|
+
placeholder: Y.value[o.value].label
|
|
761
|
+
}), null, 16, ["modelValue", "placeholder"])) : i.value == L(be).TIMESELECT ? (r(), S(ee, F({
|
|
761
762
|
key: 8,
|
|
762
|
-
modelValue:
|
|
763
|
-
"onUpdate:modelValue":
|
|
763
|
+
modelValue: d.value,
|
|
764
|
+
"onUpdate:modelValue": _[8] || (_[8] = (u) => d.value = u),
|
|
764
765
|
start: "06:30",
|
|
765
766
|
step: "00:15",
|
|
766
767
|
end: "23:30",
|
|
767
|
-
placeholder:
|
|
768
|
-
},
|
|
768
|
+
placeholder: Y.value[o.value].label
|
|
769
|
+
}, e.value), null, 16, ["modelValue", "placeholder"])) : C(i.value) ? (r(), S(ne, F({
|
|
769
770
|
key: 9,
|
|
770
|
-
modelValue:
|
|
771
|
-
"onUpdate:modelValue":
|
|
772
|
-
type:
|
|
773
|
-
placeholder:
|
|
774
|
-
"value-format": z(
|
|
775
|
-
},
|
|
776
|
-
|
|
771
|
+
modelValue: d.value,
|
|
772
|
+
"onUpdate:modelValue": _[9] || (_[9] = (u) => d.value = u),
|
|
773
|
+
type: i.value,
|
|
774
|
+
placeholder: Y.value[o.value].label,
|
|
775
|
+
"value-format": z(i.value)
|
|
776
|
+
}, e.value), fe({ _: 2 }, [
|
|
777
|
+
I($(), (u) => ({
|
|
777
778
|
name: u,
|
|
778
|
-
fn:
|
|
779
|
-
|
|
779
|
+
fn: v((N) => [
|
|
780
|
+
m(g.$slots, `${t.t}-${o.value}-${u}`, { data: N })
|
|
780
781
|
])
|
|
781
782
|
}))
|
|
782
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) :
|
|
783
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : i.value == L(be).COLOR ? (r(), S(A, F({
|
|
783
784
|
key: 10,
|
|
784
|
-
modelValue:
|
|
785
|
-
"onUpdate:modelValue":
|
|
786
|
-
},
|
|
785
|
+
modelValue: d.value,
|
|
786
|
+
"onUpdate:modelValue": _[10] || (_[10] = (u) => d.value = u)
|
|
787
|
+
}, e.value), null, 16, ["modelValue"])) : i.value == L(be).RATE ? (r(), S(b, F({
|
|
787
788
|
key: 11,
|
|
788
|
-
modelValue:
|
|
789
|
-
"onUpdate:modelValue":
|
|
790
|
-
},
|
|
789
|
+
modelValue: d.value,
|
|
790
|
+
"onUpdate:modelValue": _[11] || (_[11] = (u) => d.value = u)
|
|
791
|
+
}, e.value), null, 16, ["modelValue"])) : i.value == L(be).SLIDER ? (r(), S(h, F({
|
|
791
792
|
key: 12,
|
|
792
|
-
modelValue:
|
|
793
|
-
"onUpdate:modelValue":
|
|
794
|
-
},
|
|
793
|
+
modelValue: d.value,
|
|
794
|
+
"onUpdate:modelValue": _[12] || (_[12] = (u) => d.value = u)
|
|
795
|
+
}, e.value), null, 16, ["modelValue"])) : i.value == L(be).SWITCH ? (r(), S(E, F({
|
|
795
796
|
key: 13,
|
|
796
|
-
modelValue:
|
|
797
|
-
"onUpdate:modelValue":
|
|
798
|
-
},
|
|
799
|
-
|
|
797
|
+
modelValue: d.value,
|
|
798
|
+
"onUpdate:modelValue": _[13] || (_[13] = (u) => d.value = u)
|
|
799
|
+
}, e.value), fe({ _: 2 }, [
|
|
800
|
+
I($(), (u) => ({
|
|
800
801
|
name: u,
|
|
801
|
-
fn:
|
|
802
|
-
|
|
802
|
+
fn: v((N) => [
|
|
803
|
+
m(g.$slots, `${t.t}-${o.value}-${u}`, { data: N })
|
|
803
804
|
])
|
|
804
805
|
}))
|
|
805
|
-
]), 1040, ["modelValue"])) :
|
|
806
|
+
]), 1040, ["modelValue"])) : i.value == L(be).TRANSFER ? (r(), S(n, F({
|
|
806
807
|
key: 14,
|
|
807
|
-
modelValue:
|
|
808
|
-
"onUpdate:modelValue":
|
|
809
|
-
},
|
|
810
|
-
|
|
808
|
+
modelValue: d.value,
|
|
809
|
+
"onUpdate:modelValue": _[14] || (_[14] = (u) => d.value = u)
|
|
810
|
+
}, e.value), fe({ _: 2 }, [
|
|
811
|
+
I($(), (u) => ({
|
|
811
812
|
name: u,
|
|
812
|
-
fn:
|
|
813
|
-
|
|
813
|
+
fn: v((N) => [
|
|
814
|
+
m(g.$slots, `${t.t}-${o.value}-${u}`, { data: N })
|
|
814
815
|
])
|
|
815
816
|
}))
|
|
816
|
-
]), 1040, ["modelValue"])) :
|
|
817
|
+
]), 1040, ["modelValue"])) : i.value == L(be).CASCADER ? (r(), S(s, F({
|
|
817
818
|
key: 15,
|
|
818
|
-
modelValue:
|
|
819
|
-
"onUpdate:modelValue":
|
|
820
|
-
},
|
|
821
|
-
|
|
819
|
+
modelValue: d.value,
|
|
820
|
+
"onUpdate:modelValue": _[15] || (_[15] = (u) => d.value = u)
|
|
821
|
+
}, e.value, { options: T.value }), fe({ _: 2 }, [
|
|
822
|
+
I($(), (u) => ({
|
|
822
823
|
name: u,
|
|
823
|
-
fn:
|
|
824
|
-
|
|
824
|
+
fn: v((N) => [
|
|
825
|
+
m(g.$slots, `${t.t}-${o.value}-${u}`, { data: N })
|
|
825
826
|
])
|
|
826
827
|
}))
|
|
827
|
-
]), 1040, ["modelValue", "options"])) :
|
|
828
|
-
default:
|
|
829
|
-
Z(
|
|
830
|
-
default:
|
|
828
|
+
]), 1040, ["modelValue", "options"])) : i.value == L(be).IMAGE ? (r(), S(H, Qe(F({ key: 16 }, e.value)), fe({
|
|
829
|
+
default: v(() => [
|
|
830
|
+
Z(O, { type: "primary" }, {
|
|
831
|
+
default: v(() => _[21] || (_[21] = [
|
|
831
832
|
we("点击上传")
|
|
832
833
|
])),
|
|
833
834
|
_: 1
|
|
@@ -835,100 +836,100 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
835
836
|
]),
|
|
836
837
|
_: 2
|
|
837
838
|
}, [
|
|
838
|
-
|
|
839
|
+
I($(), (u, N) => ({
|
|
839
840
|
name: u,
|
|
840
|
-
fn:
|
|
841
|
-
|
|
841
|
+
fn: v((ie) => [
|
|
842
|
+
m(g.$slots, `${t.t}-${o.value}-${u}`, { data: ie })
|
|
842
843
|
])
|
|
843
844
|
}))
|
|
844
|
-
]), 1040)) :
|
|
845
|
+
]), 1040)) : i.value == L(be).AUTOCOMPLETE ? (r(), S(X, F({
|
|
845
846
|
key: 17,
|
|
846
|
-
modelValue:
|
|
847
|
-
"onUpdate:modelValue":
|
|
848
|
-
},
|
|
849
|
-
placeholder:
|
|
847
|
+
modelValue: d.value,
|
|
848
|
+
"onUpdate:modelValue": _[16] || (_[16] = (u) => d.value = u)
|
|
849
|
+
}, e.value, {
|
|
850
|
+
placeholder: Y.value[o.value].label
|
|
850
851
|
}), fe({ _: 2 }, [
|
|
851
|
-
|
|
852
|
+
I($(), (u, N) => ({
|
|
852
853
|
name: u,
|
|
853
|
-
fn:
|
|
854
|
-
|
|
854
|
+
fn: v((ie) => [
|
|
855
|
+
m(g.$slots, `${t.t}-${o.value}-${u}`, { data: ie })
|
|
855
856
|
])
|
|
856
857
|
}))
|
|
857
|
-
]), 1040, ["modelValue", "placeholder"])) :
|
|
858
|
+
]), 1040, ["modelValue", "placeholder"])) : i.value == L(be).INPUTNUMBER ? (r(), S(se, F({
|
|
858
859
|
key: 18,
|
|
859
|
-
modelValue:
|
|
860
|
-
"onUpdate:modelValue":
|
|
860
|
+
modelValue: d.value,
|
|
861
|
+
"onUpdate:modelValue": _[17] || (_[17] = (u) => d.value = u),
|
|
861
862
|
min: 0,
|
|
862
863
|
max: 1e8,
|
|
863
|
-
placeholder:
|
|
864
|
-
},
|
|
865
|
-
|
|
864
|
+
placeholder: Y.value[o.value].label
|
|
865
|
+
}, e.value), fe({ _: 2 }, [
|
|
866
|
+
I($(), (u, N) => ({
|
|
866
867
|
name: u,
|
|
867
|
-
fn:
|
|
868
|
-
|
|
868
|
+
fn: v((ie) => [
|
|
869
|
+
m(g.$slots, `${t.t}-${o.value}-${u}`, { data: ie })
|
|
869
870
|
])
|
|
870
871
|
}))
|
|
871
|
-
]), 1040, ["modelValue", "placeholder"])) :
|
|
872
|
-
Z(ce,
|
|
873
|
-
modelValue:
|
|
874
|
-
"onUpdate:modelValue":
|
|
875
|
-
placeholder:
|
|
876
|
-
type:
|
|
877
|
-
maxlength: ((Fe =
|
|
878
|
-
}, { ...
|
|
879
|
-
suffix:
|
|
872
|
+
]), 1040, ["modelValue", "placeholder"])) : i.value == L(be).MONEY ? (r(), q("div", Rt, [
|
|
873
|
+
Z(ce, F({
|
|
874
|
+
modelValue: d.value,
|
|
875
|
+
"onUpdate:modelValue": _[18] || (_[18] = (u) => d.value = u),
|
|
876
|
+
placeholder: Y.value[o.value].label,
|
|
877
|
+
type: L(be).NUMBER,
|
|
878
|
+
maxlength: ((Fe = e.value) == null ? void 0 : Fe.max) || 25
|
|
879
|
+
}, { ...e.value, type: i.value }), fe({
|
|
880
|
+
suffix: v(() => [
|
|
880
881
|
J("div", {
|
|
881
|
-
title:
|
|
882
|
+
title: L(ot)(d.value),
|
|
882
883
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
883
|
-
}, Ee(
|
|
884
|
+
}, Ee(L(ot)(d.value)), 9, Ht)
|
|
884
885
|
]),
|
|
885
886
|
_: 2
|
|
886
887
|
}, [
|
|
887
|
-
|
|
888
|
+
I($(), (u, N) => ({
|
|
888
889
|
name: u,
|
|
889
|
-
fn:
|
|
890
|
-
|
|
890
|
+
fn: v((ie) => [
|
|
891
|
+
m(g.$slots, `${t.t}-${o.value}-${u}`, { data: ie })
|
|
891
892
|
])
|
|
892
893
|
}))
|
|
893
894
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
894
|
-
])) : (
|
|
895
|
-
Z(he,
|
|
896
|
-
innerHTML:
|
|
895
|
+
])) : (i.value === "primary" || i.value === "success" || i.value === "warning" || i.value == "danger" || i.value === "info" || i.value == "default") && e.value.isLink === !0 ? (r(), q("div", Nt, [
|
|
896
|
+
Z(he, F(e.value, {
|
|
897
|
+
innerHTML: e.value.innerHtml || d.value
|
|
897
898
|
}), null, 16, ["innerHTML"])
|
|
898
|
-
])) : (
|
|
899
|
-
Array.isArray(
|
|
900
|
-
typeof u == "object" ? (
|
|
899
|
+
])) : (i.value === "primary" || i.value === "success" || i.value === "warning" || i.value == "danger" || i.value === "info") && e.value.isTag === !0 ? (r(), q("div", Pt, [
|
|
900
|
+
Array.isArray(e.value.innerHtml) && e.value.innerHtml.length > 1 ? (r(!0), q(P, { key: 0 }, I(e.value.innerHtml, (u, N) => (r(), q(P, { key: N }, [
|
|
901
|
+
typeof u == "object" ? (r(), S(ye, F({
|
|
901
902
|
key: 0,
|
|
902
903
|
ref_for: !0
|
|
903
904
|
}, u, {
|
|
904
905
|
innerHTML: u == null ? void 0 : u.value,
|
|
905
906
|
style: { "margin-right": "3px" }
|
|
906
|
-
}), null, 16, ["innerHTML"])) : (
|
|
907
|
+
}), null, 16, ["innerHTML"])) : (r(), S(ye, F({
|
|
907
908
|
key: 1,
|
|
908
909
|
ref_for: !0
|
|
909
|
-
},
|
|
910
|
+
}, e.value, {
|
|
910
911
|
innerHTML: u,
|
|
911
912
|
style: { "margin-right": "3px" }
|
|
912
913
|
}), null, 16, ["innerHTML"]))
|
|
913
|
-
], 64))), 128)) : (
|
|
914
|
-
innerHTML:
|
|
914
|
+
], 64))), 128)) : (r(), S(ye, F({ key: 1 }, e.value, {
|
|
915
|
+
innerHTML: e.value.innerHtml || d.value
|
|
915
916
|
}), null, 16, ["innerHTML"]))
|
|
916
|
-
])) :
|
|
917
|
-
innerHTML:
|
|
918
|
-
}), null, 16, zt)) :
|
|
919
|
-
innerHTML:
|
|
920
|
-
}), null, 16, Wt)) : (
|
|
917
|
+
])) : i.value == "div" ? (r(), q("div", F({ key: 22 }, e.value, {
|
|
918
|
+
innerHTML: e.value.innerHtml || d.value
|
|
919
|
+
}), null, 16, zt)) : i.value == "span" ? (r(), q("span", F({ key: 23 }, e.value, {
|
|
920
|
+
innerHTML: e.value.innerHtml || d.value
|
|
921
|
+
}), null, 16, Wt)) : (r(), S(ce, F({
|
|
921
922
|
key: 24,
|
|
922
|
-
modelValue:
|
|
923
|
-
"onUpdate:modelValue":
|
|
924
|
-
placeholder:
|
|
925
|
-
maxlength: ((De =
|
|
923
|
+
modelValue: d.value,
|
|
924
|
+
"onUpdate:modelValue": _[19] || (_[19] = (u) => d.value = u),
|
|
925
|
+
placeholder: Y.value[o.value].label,
|
|
926
|
+
maxlength: ((De = e.value) == null ? void 0 : De.max) || 25,
|
|
926
927
|
clearable: !0
|
|
927
|
-
}, { ...
|
|
928
|
-
|
|
928
|
+
}, { ...e.value, type: i.value }), fe({ _: 2 }, [
|
|
929
|
+
I($(), (u, N) => ({
|
|
929
930
|
name: u,
|
|
930
|
-
fn:
|
|
931
|
-
|
|
931
|
+
fn: v((ie) => [
|
|
932
|
+
m(g.$slots, `${t.t}-${o.value}-${u}`, { data: ie })
|
|
932
933
|
])
|
|
933
934
|
}))
|
|
934
935
|
]), 1040, ["modelValue", "placeholder", "maxlength"]))
|
|
@@ -945,9 +946,9 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
945
946
|
modelModifiers: {}
|
|
946
947
|
},
|
|
947
948
|
emits: /* @__PURE__ */ Be(["submit", "reset"], ["update:modelValue"]),
|
|
948
|
-
setup(
|
|
949
|
-
var
|
|
950
|
-
const t = Ie(
|
|
949
|
+
setup(c, { emit: d }) {
|
|
950
|
+
var te, de, pe, ve;
|
|
951
|
+
const t = Ie(c, "modelValue"), e = d, o = me(null), i = rt("options"), Y = {
|
|
951
952
|
inline: !0,
|
|
952
953
|
type: "hidden",
|
|
953
954
|
"scroll-to-error": !0,
|
|
@@ -957,7 +958,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
957
958
|
style: {
|
|
958
959
|
display: "flex",
|
|
959
960
|
flexWrap: "wrap",
|
|
960
|
-
...(
|
|
961
|
+
...(te = ut()) == null ? void 0 : te.style
|
|
961
962
|
},
|
|
962
963
|
// 表单底部属性
|
|
963
964
|
footer: {
|
|
@@ -985,11 +986,11 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
985
986
|
hidden: !1,
|
|
986
987
|
plain: !0,
|
|
987
988
|
click: () => {
|
|
988
|
-
if (!
|
|
989
|
-
let
|
|
990
|
-
e("reset", (
|
|
991
|
-
|
|
992
|
-
}),
|
|
989
|
+
if (!o.value) return;
|
|
990
|
+
let f = !0;
|
|
991
|
+
e("reset", (V) => {
|
|
992
|
+
f = V;
|
|
993
|
+
}), f && o.value.resetFields();
|
|
993
994
|
}
|
|
994
995
|
},
|
|
995
996
|
slots: {},
|
|
@@ -999,25 +1000,25 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
999
1000
|
}
|
|
1000
1001
|
};
|
|
1001
1002
|
t.value.form = Me(
|
|
1002
|
-
|
|
1003
|
-
|
|
1003
|
+
Y,
|
|
1004
|
+
i == null ? void 0 : i.form,
|
|
1004
1005
|
(de = t.value) == null ? void 0 : de.form
|
|
1005
1006
|
);
|
|
1006
|
-
const
|
|
1007
|
-
let
|
|
1008
|
-
for (;
|
|
1009
|
-
if (await yt(),
|
|
1010
|
-
|
|
1011
|
-
|
|
1007
|
+
const M = async (f, V) => {
|
|
1008
|
+
let k = 5;
|
|
1009
|
+
for (; k > 0; ) {
|
|
1010
|
+
if (await yt(), o.value) {
|
|
1011
|
+
o.value.validate((y, B) => {
|
|
1012
|
+
y ? e("submit", f, V) : console.log("表单验证不通过!", B);
|
|
1012
1013
|
});
|
|
1013
1014
|
return;
|
|
1014
1015
|
}
|
|
1015
|
-
|
|
1016
|
+
k--, await new Promise((y) => setTimeout(y, 50));
|
|
1016
1017
|
}
|
|
1017
1018
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1018
1019
|
};
|
|
1019
|
-
t.value.form.submit.click =
|
|
1020
|
-
const
|
|
1020
|
+
t.value.form.submit.click = M;
|
|
1021
|
+
const T = {
|
|
1021
1022
|
type: "hidden",
|
|
1022
1023
|
labelPosition: "right",
|
|
1023
1024
|
style: {
|
|
@@ -1025,25 +1026,25 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1025
1026
|
}
|
|
1026
1027
|
};
|
|
1027
1028
|
t.value.formItems = Me(
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
(
|
|
1029
|
+
T,
|
|
1030
|
+
i == null ? void 0 : i.formItems,
|
|
1031
|
+
(pe = t == null ? void 0 : t.value) == null ? void 0 : pe.formItems
|
|
1031
1032
|
);
|
|
1032
|
-
const
|
|
1033
|
+
const $ = {
|
|
1033
1034
|
span: 12,
|
|
1034
1035
|
offset: 0
|
|
1035
1036
|
};
|
|
1036
1037
|
t.value.form.cols = Me(
|
|
1037
|
-
|
|
1038
|
-
(
|
|
1038
|
+
$,
|
|
1039
|
+
(ve = i == null ? void 0 : i.form) == null ? void 0 : ve.cols,
|
|
1039
1040
|
t.value.form.cols
|
|
1040
1041
|
);
|
|
1041
|
-
const
|
|
1042
|
-
let
|
|
1043
|
-
if (
|
|
1044
|
-
|
|
1042
|
+
const C = (f) => {
|
|
1043
|
+
let V = [];
|
|
1044
|
+
if (f.rules)
|
|
1045
|
+
V = f.rules;
|
|
1045
1046
|
else {
|
|
1046
|
-
const
|
|
1047
|
+
const y = { ...{
|
|
1047
1048
|
required: void 0,
|
|
1048
1049
|
max: void 0,
|
|
1049
1050
|
min: void 0,
|
|
@@ -1051,73 +1052,73 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1051
1052
|
url: void 0,
|
|
1052
1053
|
pattern: void 0,
|
|
1053
1054
|
validate: void 0
|
|
1054
|
-
}, ...
|
|
1055
|
-
|
|
1056
|
-
validator: (
|
|
1057
|
-
ee &&
|
|
1055
|
+
}, ...f };
|
|
1056
|
+
y.required && V.push({ required: !0, message: `${y.label}不能为空!`, trigger: "blur" }), y.max && y.min && V.push({
|
|
1057
|
+
validator: (B, ee, ne) => {
|
|
1058
|
+
ee && f.type == "number" && (ee < y.min || ee > y.max) ? ne(new Error(`${y.label} 必须在 ${y.min} 和 ${y.max} 之间!`)) : ee && f.type !== "number" && (ee.toString().length < y.min || ee.toString().length > y.max) ? ne(new Error(`字符长度必须在 ${y.min} 和 ${y.max} 之间!`)) : ne();
|
|
1058
1059
|
}
|
|
1059
|
-
}),
|
|
1060
|
-
validator: (
|
|
1061
|
-
ee && ee >
|
|
1060
|
+
}), y.max && !y.min && f.type == "number" && V.push({
|
|
1061
|
+
validator: (B, ee, ne) => {
|
|
1062
|
+
ee && ee > y.max ? ne(new Error(`${y.label}不能大于${y.max}!`)) : ne();
|
|
1062
1063
|
}
|
|
1063
|
-
}),
|
|
1064
|
-
validator: (
|
|
1065
|
-
ee && ee <
|
|
1064
|
+
}), y.min && !y.max && f.type == "number" && V.push({
|
|
1065
|
+
validator: (B, ee, ne) => {
|
|
1066
|
+
ee && ee < y.min ? ne(new Error(`${y.label}不能小于${y.min}!`)) : ne();
|
|
1066
1067
|
}
|
|
1067
|
-
}),
|
|
1068
|
-
validator: (
|
|
1068
|
+
}), y.type == "email" && V.push({ type: "email", message: "不是一个正确的邮箱地址!" }), y.type == "url" && V.push({ type: "url", message: "不是一个合正确的URL!" }), y.pattern && V.push({ pattern: y == null ? void 0 : y.pattern, message: (y == null ? void 0 : y.message) || "格式不正确!" }), y.validate && V.push({
|
|
1069
|
+
validator: (B, ee, ne) => y.validate(B, ee, ne)
|
|
1069
1070
|
});
|
|
1070
1071
|
}
|
|
1071
|
-
return
|
|
1072
|
-
}, z = (
|
|
1073
|
-
var
|
|
1074
|
-
const
|
|
1072
|
+
return V;
|
|
1073
|
+
}, z = (f, V = !1) => {
|
|
1074
|
+
var B, ee, ne, A, b;
|
|
1075
|
+
const k = V ? f : f == null ? void 0 : f.item, y = typeof (k == null ? void 0 : k.editor) == "function" ? k.editor(g.value, (B = t.value.form) == null ? void 0 : B.modalState) : (k == null ? void 0 : k.editor) || {};
|
|
1075
1076
|
if (((ee = t.value.form) == null ? void 0 : ee.modalState) === "edit") {
|
|
1076
|
-
const
|
|
1077
|
-
return { ...
|
|
1077
|
+
const h = typeof (k == null ? void 0 : k.editor) == "object" ? (ne = k.editor) == null ? void 0 : ne.ep : typeof (k == null ? void 0 : k.editor) == "function" ? y == null ? void 0 : y.ep : {};
|
|
1078
|
+
return { ...y, ...h };
|
|
1078
1079
|
}
|
|
1079
|
-
if (((
|
|
1080
|
-
const
|
|
1081
|
-
return { ...
|
|
1080
|
+
if (((A = t.value.form) == null ? void 0 : A.modalState) === "add") {
|
|
1081
|
+
const h = typeof (k == null ? void 0 : k.editor) == "object" ? (b = k.editor) == null ? void 0 : b.ap : typeof (k == null ? void 0 : k.editor) == "function" ? y == null ? void 0 : y.ap : {};
|
|
1082
|
+
return { ...y, ...h };
|
|
1082
1083
|
}
|
|
1083
|
-
return
|
|
1084
|
-
},
|
|
1085
|
-
var
|
|
1086
|
-
const
|
|
1087
|
-
return ((
|
|
1084
|
+
return y;
|
|
1085
|
+
}, ae = (f) => {
|
|
1086
|
+
var k, y, B, ee, ne;
|
|
1087
|
+
const V = typeof f.editor == "function" ? f.editor(g.value, (k = t.value.form) == null ? void 0 : k.modalState) : f.editor;
|
|
1088
|
+
return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((B = V == null ? void 0 : V.ep) == null ? void 0 : B.type) ?? (V == null ? void 0 : V.type) ?? f.type : ((ee = t.value.form) == null ? void 0 : ee.modalState) === "add" ? ((ne = V == null ? void 0 : V.ap) == null ? void 0 : ne.type) ?? (V == null ? void 0 : V.type) ?? f.type : (V == null ? void 0 : V.type) ?? f.type;
|
|
1088
1089
|
};
|
|
1089
1090
|
Ne(() => {
|
|
1090
1091
|
R();
|
|
1091
1092
|
}), Dt(() => {
|
|
1092
|
-
|
|
1093
|
+
o.value = null;
|
|
1093
1094
|
});
|
|
1094
1095
|
const R = () => {
|
|
1095
|
-
for (const [
|
|
1096
|
-
t.value[
|
|
1097
|
-
},
|
|
1098
|
-
var
|
|
1099
|
-
const
|
|
1100
|
-
return t.value.form.modalState === "edit" ? ((
|
|
1101
|
-
}).map((
|
|
1102
|
-
const
|
|
1103
|
-
return Object.entries(
|
|
1104
|
-
if (
|
|
1105
|
-
const
|
|
1106
|
-
|
|
1107
|
-
groupName:
|
|
1096
|
+
for (const [f, V] of Object.entries(D.value))
|
|
1097
|
+
t.value[f].formItem = { ...t.value[f].formItem, ...V.formItem }, t.value[f].formItem.style = { ...t.value[f].formItem.style, ...V.formItem.style };
|
|
1098
|
+
}, D = Ye(() => Object.fromEntries(Object.entries(t.value).filter((f) => f[1].type != "hidden").filter((f) => f[1].edit !== !1).filter((f) => !["table", "tableColumns", "query", "queryItems"].includes(f[0])).filter((f) => f[1].editor !== !1).filter((f) => f[1].type !== "control").filter((f) => {
|
|
1099
|
+
var k, y, B;
|
|
1100
|
+
const V = typeof f[1].editor == "function" ? f[1].editor(g.value, (k = t.value.form) == null ? void 0 : k.modalState) : f[1].editor;
|
|
1101
|
+
return t.value.form.modalState === "edit" ? ((y = V == null ? void 0 : V.ep) == null ? void 0 : y.editor) !== !1 : t.value.form.modalState === "add" ? ((B = V == null ? void 0 : V.ap) == null ? void 0 : B.editor) !== !1 : !0;
|
|
1102
|
+
}).map((f) => [f[0], f[1]]))), g = Ye(() => Object.fromEntries(Object.entries(t.value).filter((f) => f[1].type != "hidden").filter((f) => f[1].type != "control").map((f) => [f[0], f[1].value]))), _ = Ye(() => {
|
|
1103
|
+
const f = /* @__PURE__ */ new Map();
|
|
1104
|
+
return Object.entries(D.value).forEach(([V, k]) => {
|
|
1105
|
+
if (k.groupName) {
|
|
1106
|
+
const y = k.groupName;
|
|
1107
|
+
f.has(y) || f.set(y, {
|
|
1108
|
+
groupName: y,
|
|
1108
1109
|
items: []
|
|
1109
|
-
}),
|
|
1110
|
+
}), f.get(y).items.push({ key: V, item: k });
|
|
1110
1111
|
}
|
|
1111
|
-
}),
|
|
1112
|
-
|
|
1113
|
-
}), Array.from(
|
|
1114
|
-
}),
|
|
1112
|
+
}), f.forEach((V) => {
|
|
1113
|
+
V.tabPane = Me(...V.items.map(({ item: k }) => k.tabPane || {}));
|
|
1114
|
+
}), Array.from(f.values());
|
|
1115
|
+
}), K = [
|
|
1115
1116
|
{
|
|
1116
1117
|
name: "f-submit",
|
|
1117
1118
|
label: t.value.form.submit.label,
|
|
1118
1119
|
click: t.value.form.submit.click,
|
|
1119
1120
|
hidden: t.value.form.submit.hidden,
|
|
1120
|
-
info: ke(t.value.form.submit, (
|
|
1121
|
+
info: ke(t.value.form.submit, (f) => !["click"].includes(f)),
|
|
1121
1122
|
sort: t.value.form.submit.sort ?? 1,
|
|
1122
1123
|
// 使用空值合并运算符
|
|
1123
1124
|
originalOrder: 0
|
|
@@ -1127,78 +1128,78 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1127
1128
|
name: "f-reset",
|
|
1128
1129
|
label: t.value.form.reset.label,
|
|
1129
1130
|
click: t.value.form.reset.click,
|
|
1130
|
-
info: ke(t.value.form.reset, (
|
|
1131
|
+
info: ke(t.value.form.reset, (f) => !["click"].includes(f)),
|
|
1131
1132
|
hidden: t.value.form.reset.hidden,
|
|
1132
1133
|
sort: t.value.form.reset.sort ?? 2,
|
|
1133
1134
|
// 使用空值合并运算符
|
|
1134
1135
|
originalOrder: 1
|
|
1135
1136
|
// 添加原始顺序标识
|
|
1136
1137
|
}
|
|
1137
|
-
],
|
|
1138
|
-
return (
|
|
1139
|
-
const
|
|
1140
|
-
return
|
|
1138
|
+
], oe = Ye(() => K.filter((f) => !f.hidden).sort((f, V) => f.sort - V.sort || f.originalOrder - V.originalOrder));
|
|
1139
|
+
return (f, V) => {
|
|
1140
|
+
const k = j("el-form-item"), y = j("el-col"), B = j("el-tab-pane"), ee = j("el-tabs"), ne = j("el-button"), A = j("el-form");
|
|
1141
|
+
return r(), S(A, F({
|
|
1141
1142
|
ref_key: "gform",
|
|
1142
|
-
ref:
|
|
1143
|
+
ref: o,
|
|
1143
1144
|
model: t.value,
|
|
1144
1145
|
style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
|
|
1145
|
-
},
|
|
1146
|
-
default:
|
|
1147
|
-
|
|
1148
|
-
var
|
|
1146
|
+
}, L(ke)(t.value.form, (b) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(b)), { class: "g-form-container" }), {
|
|
1147
|
+
default: v(() => [
|
|
1148
|
+
_.value.length > 0 ? m(f.$slots, "default", { key: 0 }, () => {
|
|
1149
|
+
var b, h, E;
|
|
1149
1150
|
return [
|
|
1150
|
-
Z(ee,
|
|
1151
|
+
Z(ee, F({
|
|
1151
1152
|
class: "demo-tabs",
|
|
1152
|
-
modelValue:
|
|
1153
|
-
"onUpdate:modelValue":
|
|
1153
|
+
modelValue: _.value[0].groupName,
|
|
1154
|
+
"onUpdate:modelValue": V[0] || (V[0] = (n) => _.value[0].groupName = n),
|
|
1154
1155
|
style: { width: "100%" }
|
|
1155
1156
|
}, t.value.form.tabs), {
|
|
1156
|
-
default:
|
|
1157
|
-
(
|
|
1158
|
-
key:
|
|
1159
|
-
label:
|
|
1160
|
-
name:
|
|
1157
|
+
default: v(() => [
|
|
1158
|
+
(r(!0), q(P, null, I(_.value, (n) => (r(), S(B, F({
|
|
1159
|
+
key: n.groupName,
|
|
1160
|
+
label: n.groupName,
|
|
1161
|
+
name: n.groupName,
|
|
1161
1162
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" },
|
|
1162
1163
|
ref_for: !0
|
|
1163
|
-
},
|
|
1164
|
-
default:
|
|
1165
|
-
(
|
|
1166
|
-
key:
|
|
1164
|
+
}, n.tabPane), {
|
|
1165
|
+
default: v(() => [
|
|
1166
|
+
(r(!0), q(P, null, I(n.items, (s, O) => (r(), S(y, F({ ref_for: !0 }, { ...t.value.form.cols, ...s == null ? void 0 : s.item.col }, {
|
|
1167
|
+
key: s.key,
|
|
1167
1168
|
style: { width: "100%" }
|
|
1168
1169
|
}), {
|
|
1169
|
-
default:
|
|
1170
|
+
default: v(() => {
|
|
1170
1171
|
var H, X;
|
|
1171
1172
|
return [
|
|
1172
|
-
Z(
|
|
1173
|
-
label:
|
|
1174
|
-
prop: `${
|
|
1175
|
-
rules:
|
|
1173
|
+
Z(k, F({
|
|
1174
|
+
label: s == null ? void 0 : s.item.label,
|
|
1175
|
+
prop: `${s.key}.value`,
|
|
1176
|
+
rules: C(s == null ? void 0 : s.item),
|
|
1176
1177
|
ref_for: !0
|
|
1177
|
-
}, { ...(H = t.value) == null ? void 0 : H.formItems, ...(X =
|
|
1178
|
-
default:
|
|
1179
|
-
|
|
1180
|
-
item:
|
|
1181
|
-
formInfo:
|
|
1178
|
+
}, { ...(H = t.value) == null ? void 0 : H.formItems, ...(X = s == null ? void 0 : s.item) == null ? void 0 : X.formItem }, { style: { width: "100%" } }), {
|
|
1179
|
+
default: v(() => [
|
|
1180
|
+
m(f.$slots, "f-" + s.key, {
|
|
1181
|
+
item: s == null ? void 0 : s.item,
|
|
1182
|
+
formInfo: g.value,
|
|
1182
1183
|
model: t.value
|
|
1183
1184
|
}, () => [
|
|
1184
|
-
(
|
|
1185
|
-
modelValue: t.value[
|
|
1186
|
-
"onUpdate:modelValue": (se) => t.value[
|
|
1187
|
-
item: z(
|
|
1188
|
-
ctrlKey:
|
|
1189
|
-
ctrlType:
|
|
1185
|
+
(r(), S(Xe, {
|
|
1186
|
+
modelValue: t.value[s.key].value,
|
|
1187
|
+
"onUpdate:modelValue": (se) => t.value[s.key].value = se,
|
|
1188
|
+
item: z(s),
|
|
1189
|
+
ctrlKey: s.key,
|
|
1190
|
+
ctrlType: ae(s == null ? void 0 : s.item),
|
|
1190
1191
|
model: t.value,
|
|
1191
|
-
key:
|
|
1192
|
+
key: s.key,
|
|
1192
1193
|
class: "g-ctrl-container",
|
|
1193
1194
|
t: "f",
|
|
1194
|
-
formInfo:
|
|
1195
|
+
formInfo: g.value
|
|
1195
1196
|
}, fe({ _: 2 }, [
|
|
1196
|
-
|
|
1197
|
+
I(f.$slots, (se, ce) => ({
|
|
1197
1198
|
name: ce,
|
|
1198
|
-
fn:
|
|
1199
|
-
|
|
1199
|
+
fn: v((he) => [
|
|
1200
|
+
m(f.$slots, ce, {
|
|
1200
1201
|
data: he,
|
|
1201
|
-
item:
|
|
1202
|
+
item: s.item,
|
|
1202
1203
|
model: t.value
|
|
1203
1204
|
})
|
|
1204
1205
|
])
|
|
@@ -1218,78 +1219,78 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1218
1219
|
]),
|
|
1219
1220
|
_: 3
|
|
1220
1221
|
}, 16, ["modelValue"]),
|
|
1221
|
-
(
|
|
1222
|
+
(E = (h = (b = t.value) == null ? void 0 : b.form) == null ? void 0 : h.footer) != null && E.hidden ? $e("", !0) : m(f.$slots, "f-footer", { key: 0 }, () => [
|
|
1222
1223
|
J("div", {
|
|
1223
1224
|
style: Oe(t.value.form.footer.style)
|
|
1224
1225
|
}, [
|
|
1225
|
-
|
|
1226
|
-
(
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
Z(ne,
|
|
1230
|
-
onClick: ct((
|
|
1226
|
+
m(f.$slots, "f-footer-left"),
|
|
1227
|
+
(r(!0), q(P, null, I(oe.value, (n) => (r(), q(P, null, [
|
|
1228
|
+
m(f.$slots, n.name + "-left"),
|
|
1229
|
+
m(f.$slots, n.name, {}, () => [
|
|
1230
|
+
Z(ne, F({ ref_for: !0 }, n.info, {
|
|
1231
|
+
onClick: ct((s) => n.click(g.value, t.value), ["stop"])
|
|
1231
1232
|
}), {
|
|
1232
|
-
default:
|
|
1233
|
-
we(Ee(
|
|
1233
|
+
default: v(() => [
|
|
1234
|
+
we(Ee(n == null ? void 0 : n.label), 1)
|
|
1234
1235
|
]),
|
|
1235
1236
|
_: 2
|
|
1236
1237
|
}, 1040, ["onClick"])
|
|
1237
1238
|
]),
|
|
1238
|
-
|
|
1239
|
+
m(f.$slots, n.name + "-right")
|
|
1239
1240
|
], 64))), 256)),
|
|
1240
|
-
|
|
1241
|
+
m(f.$slots, "f-footer-right")
|
|
1241
1242
|
], 4)
|
|
1242
1243
|
])
|
|
1243
1244
|
];
|
|
1244
|
-
}) :
|
|
1245
|
-
var
|
|
1245
|
+
}) : m(f.$slots, "default", { key: 1 }, () => {
|
|
1246
|
+
var b, h, E;
|
|
1246
1247
|
return [
|
|
1247
|
-
(
|
|
1248
|
-
key:
|
|
1248
|
+
(r(!0), q(P, null, I(D.value, (n, s) => (r(), S(y, F({ ref_for: !0 }, { ...t.value.form.cols, ...n.col }, {
|
|
1249
|
+
key: s,
|
|
1249
1250
|
style: { width: "100%" }
|
|
1250
1251
|
}), {
|
|
1251
|
-
default:
|
|
1252
|
-
var
|
|
1252
|
+
default: v(() => {
|
|
1253
|
+
var O;
|
|
1253
1254
|
return [
|
|
1254
|
-
Z(
|
|
1255
|
-
label:
|
|
1256
|
-
prop: `${
|
|
1257
|
-
rules:
|
|
1255
|
+
Z(k, F({
|
|
1256
|
+
label: n.label,
|
|
1257
|
+
prop: `${s}.value`,
|
|
1258
|
+
rules: C(n),
|
|
1258
1259
|
ref_for: !0
|
|
1259
|
-
}, { ...(
|
|
1260
|
-
label:
|
|
1261
|
-
|
|
1260
|
+
}, { ...(O = t.value) == null ? void 0 : O.formItems, ...n == null ? void 0 : n.formItem }, { style: { width: "100%" } }), {
|
|
1261
|
+
label: v((H) => [
|
|
1262
|
+
m(f.$slots, `f-${s}-label`, {
|
|
1262
1263
|
data: H,
|
|
1263
|
-
item:
|
|
1264
|
+
item: n,
|
|
1264
1265
|
model: t.value
|
|
1265
1266
|
}, () => [
|
|
1266
|
-
we(Ee(
|
|
1267
|
+
we(Ee(n.label), 1)
|
|
1267
1268
|
])
|
|
1268
1269
|
]),
|
|
1269
|
-
default:
|
|
1270
|
-
|
|
1271
|
-
item:
|
|
1272
|
-
formInfo:
|
|
1270
|
+
default: v(() => [
|
|
1271
|
+
m(f.$slots, "f-" + s, {
|
|
1272
|
+
item: n,
|
|
1273
|
+
formInfo: g.value,
|
|
1273
1274
|
model: t.value
|
|
1274
1275
|
}, () => [
|
|
1275
|
-
(
|
|
1276
|
-
modelValue: t.value[
|
|
1277
|
-
"onUpdate:modelValue": (H) => t.value[
|
|
1278
|
-
item: z(
|
|
1279
|
-
ctrlKey:
|
|
1280
|
-
ctrlType:
|
|
1281
|
-
key:
|
|
1276
|
+
(r(), S(Xe, {
|
|
1277
|
+
modelValue: t.value[s].value,
|
|
1278
|
+
"onUpdate:modelValue": (H) => t.value[s].value = H,
|
|
1279
|
+
item: z(n, !0),
|
|
1280
|
+
ctrlKey: s,
|
|
1281
|
+
ctrlType: ae(n),
|
|
1282
|
+
key: s,
|
|
1282
1283
|
model: t.value,
|
|
1283
1284
|
class: "g-ctrl-container",
|
|
1284
1285
|
t: "f",
|
|
1285
|
-
formInfo:
|
|
1286
|
+
formInfo: g.value
|
|
1286
1287
|
}, fe({ _: 2 }, [
|
|
1287
|
-
|
|
1288
|
+
I(f.$slots, (H, X) => ({
|
|
1288
1289
|
name: X,
|
|
1289
|
-
fn:
|
|
1290
|
-
|
|
1290
|
+
fn: v((se) => [
|
|
1291
|
+
m(f.$slots, X, {
|
|
1291
1292
|
data: se,
|
|
1292
|
-
item:
|
|
1293
|
+
item: n,
|
|
1293
1294
|
model: t.value
|
|
1294
1295
|
})
|
|
1295
1296
|
])
|
|
@@ -1303,26 +1304,26 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1303
1304
|
}),
|
|
1304
1305
|
_: 2
|
|
1305
1306
|
}, 1040))), 128)),
|
|
1306
|
-
(
|
|
1307
|
+
(E = (h = (b = t.value) == null ? void 0 : b.form) == null ? void 0 : h.footer) != null && E.hidden ? $e("", !0) : m(f.$slots, "f-footer", { key: 0 }, () => [
|
|
1307
1308
|
J("div", {
|
|
1308
1309
|
style: Oe(t.value.form.footer.style)
|
|
1309
1310
|
}, [
|
|
1310
|
-
|
|
1311
|
-
(
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
Z(ne,
|
|
1315
|
-
onClick: ct((
|
|
1311
|
+
m(f.$slots, "f-footer-left"),
|
|
1312
|
+
(r(!0), q(P, null, I(oe.value, (n) => (r(), q(P, null, [
|
|
1313
|
+
m(f.$slots, n.name + "-left"),
|
|
1314
|
+
m(f.$slots, n.name, {}, () => [
|
|
1315
|
+
Z(ne, F({ ref_for: !0 }, n.info, {
|
|
1316
|
+
onClick: ct((s) => n.click(g.value, t.value), ["stop"])
|
|
1316
1317
|
}), {
|
|
1317
|
-
default:
|
|
1318
|
-
we(Ee(
|
|
1318
|
+
default: v(() => [
|
|
1319
|
+
we(Ee(n == null ? void 0 : n.label), 1)
|
|
1319
1320
|
]),
|
|
1320
1321
|
_: 2
|
|
1321
1322
|
}, 1040, ["onClick"])
|
|
1322
1323
|
]),
|
|
1323
|
-
|
|
1324
|
+
m(f.$slots, n.name + "-right")
|
|
1324
1325
|
], 64))), 256)),
|
|
1325
|
-
|
|
1326
|
+
m(f.$slots, "f-footer-right")
|
|
1326
1327
|
], 4)
|
|
1327
1328
|
])
|
|
1328
1329
|
];
|
|
@@ -1341,47 +1342,47 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1341
1342
|
infoModifiers: {}
|
|
1342
1343
|
}),
|
|
1343
1344
|
emits: ["update:modelValue", "update:info"],
|
|
1344
|
-
setup(
|
|
1345
|
-
const
|
|
1346
|
-
const
|
|
1347
|
-
return (
|
|
1345
|
+
setup(c) {
|
|
1346
|
+
const d = Ie(c, "modelValue"), t = c, e = Ie(c, "info"), o = (M) => Ye(() => Object.fromEntries(Object.entries(d.value).filter((T) => typeof T[1].search == "function" ? T[1].search && T[1].search(e.value).more === M : T[1].search && T[1].search.more === M).map((T) => [T[0], T[1]]))).value, i = (M) => typeof M.search == "function" ? M.search(e.value) : M.search || {}, Y = (M) => {
|
|
1347
|
+
const T = i(M);
|
|
1348
|
+
return (T == null ? void 0 : T.type) || M.type;
|
|
1348
1349
|
};
|
|
1349
|
-
return (
|
|
1350
|
-
const
|
|
1351
|
-
return
|
|
1350
|
+
return (M, T) => {
|
|
1351
|
+
const $ = j("el-form-item");
|
|
1352
|
+
return r(!0), q(P, null, I(o(t.more), (C, z) => m(M.$slots, `q-${z}`, {
|
|
1352
1353
|
key: z,
|
|
1353
|
-
item:
|
|
1354
|
+
item: C,
|
|
1354
1355
|
queryModel: e.value,
|
|
1355
|
-
model:
|
|
1356
|
+
model: d.value
|
|
1356
1357
|
}, () => [
|
|
1357
|
-
Z(
|
|
1358
|
-
label:
|
|
1358
|
+
Z($, F({
|
|
1359
|
+
label: C.label,
|
|
1359
1360
|
ref_for: !0
|
|
1360
|
-
}, { ...
|
|
1361
|
-
label:
|
|
1362
|
-
|
|
1363
|
-
item:
|
|
1364
|
-
model:
|
|
1361
|
+
}, { ...d.value.queryItems, ...i(C) }), {
|
|
1362
|
+
label: v(() => [
|
|
1363
|
+
m(M.$slots, `q-${z}-label`, {
|
|
1364
|
+
item: C,
|
|
1365
|
+
model: d.value
|
|
1365
1366
|
})
|
|
1366
1367
|
]),
|
|
1367
|
-
default:
|
|
1368
|
+
default: v(() => [
|
|
1368
1369
|
Z(Xe, {
|
|
1369
1370
|
modelValue: e.value[z],
|
|
1370
|
-
"onUpdate:modelValue": (
|
|
1371
|
-
item: { ...
|
|
1371
|
+
"onUpdate:modelValue": (ae) => e.value[z] = ae,
|
|
1372
|
+
item: { ...C == null ? void 0 : C.editor, ...i(C) },
|
|
1372
1373
|
ctrlKey: z,
|
|
1373
|
-
ctrlType:
|
|
1374
|
-
model:
|
|
1374
|
+
ctrlType: Y(C),
|
|
1375
|
+
model: d.value,
|
|
1375
1376
|
t: "q",
|
|
1376
1377
|
formInfo: e.value
|
|
1377
1378
|
}, fe({ _: 2 }, [
|
|
1378
|
-
|
|
1379
|
-
name:
|
|
1380
|
-
fn:
|
|
1381
|
-
|
|
1379
|
+
I(Object.keys(M.$slots), (ae) => ({
|
|
1380
|
+
name: ae,
|
|
1381
|
+
fn: v((R) => [
|
|
1382
|
+
m(M.$slots, ae, {
|
|
1382
1383
|
data: R,
|
|
1383
|
-
item:
|
|
1384
|
-
model:
|
|
1384
|
+
item: C,
|
|
1385
|
+
model: d.value
|
|
1385
1386
|
})
|
|
1386
1387
|
])
|
|
1387
1388
|
}))
|
|
@@ -1392,10 +1393,10 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1392
1393
|
])), 128);
|
|
1393
1394
|
};
|
|
1394
1395
|
}
|
|
1395
|
-
}, Ue = (
|
|
1396
|
-
const t =
|
|
1397
|
-
for (const [e,
|
|
1398
|
-
t[e] =
|
|
1396
|
+
}, Ue = (c, d) => {
|
|
1397
|
+
const t = c.__vccOpts || c;
|
|
1398
|
+
for (const [e, o] of d)
|
|
1399
|
+
t[e] = o;
|
|
1399
1400
|
return t;
|
|
1400
1401
|
}, Gt = {
|
|
1401
1402
|
key: 0,
|
|
@@ -1407,10 +1408,10 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1407
1408
|
modelModifiers: {}
|
|
1408
1409
|
},
|
|
1409
1410
|
emits: /* @__PURE__ */ Be(["query", "reset"], ["update:modelValue"]),
|
|
1410
|
-
setup(
|
|
1411
|
-
const t = Ie(
|
|
1412
|
-
let
|
|
1413
|
-
const
|
|
1411
|
+
setup(c, { emit: d }) {
|
|
1412
|
+
const t = Ie(c, "modelValue"), e = d, o = rt("options"), i = me(!1);
|
|
1413
|
+
let Y = Object.fromEntries(Object.entries(t.value).filter((D) => D[1].search).map(([D, g]) => [D, g.value]));
|
|
1414
|
+
const M = me(Y), T = {
|
|
1414
1415
|
hidden: !1,
|
|
1415
1416
|
type: "hidden",
|
|
1416
1417
|
labelWidth: 100,
|
|
@@ -1427,7 +1428,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1427
1428
|
type: "primary",
|
|
1428
1429
|
label: "更多",
|
|
1429
1430
|
click: () => {
|
|
1430
|
-
|
|
1431
|
+
i.value = !i.value;
|
|
1431
1432
|
}
|
|
1432
1433
|
},
|
|
1433
1434
|
reset: {
|
|
@@ -1436,7 +1437,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1436
1437
|
hidden: !1,
|
|
1437
1438
|
plain: !1,
|
|
1438
1439
|
click: () => {
|
|
1439
|
-
|
|
1440
|
+
M.value = me(Y), e("reset", M.value);
|
|
1440
1441
|
}
|
|
1441
1442
|
},
|
|
1442
1443
|
query: {
|
|
@@ -1444,7 +1445,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1444
1445
|
type: "primary",
|
|
1445
1446
|
label: "查询",
|
|
1446
1447
|
click: () => {
|
|
1447
|
-
e("query",
|
|
1448
|
+
e("query", M.value), i.value = !1;
|
|
1448
1449
|
}
|
|
1449
1450
|
},
|
|
1450
1451
|
btns: {
|
|
@@ -1458,8 +1459,8 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1458
1459
|
}
|
|
1459
1460
|
}
|
|
1460
1461
|
};
|
|
1461
|
-
t.value.query = Me(
|
|
1462
|
-
const
|
|
1462
|
+
t.value.query = Me(T, o == null ? void 0 : o.query, t.value.query);
|
|
1463
|
+
const $ = {
|
|
1463
1464
|
2: {
|
|
1464
1465
|
title: "更多查询",
|
|
1465
1466
|
showClose: !1,
|
|
@@ -1477,35 +1478,35 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1477
1478
|
}
|
|
1478
1479
|
};
|
|
1479
1480
|
t.value.query.more.dialog = Me(
|
|
1480
|
-
|
|
1481
|
+
$[t.value.query.more.mode] || {},
|
|
1481
1482
|
t.value.query.more.dialog
|
|
1482
1483
|
);
|
|
1483
|
-
const
|
|
1484
|
+
const C = {
|
|
1484
1485
|
type: "hidden",
|
|
1485
1486
|
labelPosition: "right",
|
|
1486
1487
|
style: {
|
|
1487
1488
|
width: "280px"
|
|
1488
1489
|
}
|
|
1489
1490
|
};
|
|
1490
|
-
t.value.queryItems = Me(
|
|
1491
|
-
const z = (
|
|
1492
|
-
const
|
|
1491
|
+
t.value.queryItems = Me(C, o == null ? void 0 : o.queryItems, t.value.queryItems);
|
|
1492
|
+
const z = (D, g) => {
|
|
1493
|
+
const _ = Object.keys(D.slots).filter((K) => K !== "default").reduce((K, oe) => (K[oe] = (te) => D.slots[oe]({
|
|
1493
1494
|
model: t.value
|
|
1494
1495
|
// 传递当前模型数据
|
|
1495
|
-
}),
|
|
1496
|
+
}), K), {});
|
|
1496
1497
|
return qe(mt, {
|
|
1497
1498
|
modelValue: t.value,
|
|
1498
|
-
"onUpdate:modelValue": (
|
|
1499
|
-
info:
|
|
1500
|
-
"onUpdate:info": (
|
|
1501
|
-
more:
|
|
1502
|
-
},
|
|
1503
|
-
},
|
|
1504
|
-
var
|
|
1505
|
-
const
|
|
1499
|
+
"onUpdate:modelValue": (K) => t.value = K,
|
|
1500
|
+
info: M.value,
|
|
1501
|
+
"onUpdate:info": (K) => M.value = K,
|
|
1502
|
+
more: g
|
|
1503
|
+
}, _);
|
|
1504
|
+
}, ae = ht(), R = () => {
|
|
1505
|
+
var _, K, oe, te, de, pe, ve, f, V;
|
|
1506
|
+
const D = [
|
|
1506
1507
|
{
|
|
1507
1508
|
key: "query",
|
|
1508
|
-
hidden: (
|
|
1509
|
+
hidden: (oe = (K = (_ = t.value) == null ? void 0 : _.query) == null ? void 0 : K.query) == null ? void 0 : oe.hidden,
|
|
1509
1510
|
component: _e,
|
|
1510
1511
|
props: {
|
|
1511
1512
|
...t.value.query.query,
|
|
@@ -1516,7 +1517,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1516
1517
|
},
|
|
1517
1518
|
{
|
|
1518
1519
|
key: "reset",
|
|
1519
|
-
hidden: (
|
|
1520
|
+
hidden: (pe = (de = (te = t.value) == null ? void 0 : te.query) == null ? void 0 : de.reset) == null ? void 0 : pe.hidden,
|
|
1520
1521
|
component: _e,
|
|
1521
1522
|
props: {
|
|
1522
1523
|
...t.value.query.reset,
|
|
@@ -1527,7 +1528,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1527
1528
|
},
|
|
1528
1529
|
{
|
|
1529
1530
|
key: "more",
|
|
1530
|
-
hidden: (
|
|
1531
|
+
hidden: (V = (f = (ve = t.value) == null ? void 0 : ve.query) == null ? void 0 : f.more) == null ? void 0 : V.hidden,
|
|
1531
1532
|
component: t.value.query.more.mode === 3 ? Ke : _e,
|
|
1532
1533
|
props: t.value.query.more.mode === 3 ? { ...t.value.query.more.dialog } : {
|
|
1533
1534
|
...t.value.query.more,
|
|
@@ -1537,55 +1538,55 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1537
1538
|
sort: t.value.query.more.sort || 0,
|
|
1538
1539
|
content: t.value.query.more.mode === 3 ? () => qe(We, {
|
|
1539
1540
|
class: "query-form",
|
|
1540
|
-
...ke(t.value.query, (
|
|
1541
|
-
}, () => z({ slots:
|
|
1541
|
+
...ke(t.value.query, (k) => !["query", "more", "reset"].includes(k))
|
|
1542
|
+
}, () => z({ slots: ae }, !0)) : null
|
|
1542
1543
|
}
|
|
1543
1544
|
];
|
|
1544
|
-
return
|
|
1545
|
-
reference: () => qe(_e, t.value.query.more, () =>
|
|
1546
|
-
default:
|
|
1547
|
-
}) : (
|
|
1545
|
+
return D.sort((k, y) => k.sort - y.sort), D.filter((k) => !k.hidden).map((k) => k.key === "more" && k.component === Ke ? qe(Ke, k.props, {
|
|
1546
|
+
reference: () => qe(_e, t.value.query.more, () => k.label),
|
|
1547
|
+
default: k.content
|
|
1548
|
+
}) : (k.props.slot = "query-" + k.key, k.label ? qe(k.component, k.props, () => k.label) : qe(k.component, k.props)));
|
|
1548
1549
|
};
|
|
1549
|
-
return (
|
|
1550
|
-
var
|
|
1551
|
-
const
|
|
1552
|
-
return
|
|
1550
|
+
return (D, g) => {
|
|
1551
|
+
var oe, te, de, pe, ve, f, V, k, y, B, ee, ne, A, b, h, E, n;
|
|
1552
|
+
const _ = j("el-form-item"), K = j("el-drawer");
|
|
1553
|
+
return r(), q(P, null, [
|
|
1553
1554
|
J("div", {
|
|
1554
1555
|
class: "g-query-container",
|
|
1555
|
-
style: Oe((
|
|
1556
|
+
style: Oe((te = (oe = t.value.query) == null ? void 0 : oe.container) == null ? void 0 : te.style)
|
|
1556
1557
|
}, [
|
|
1557
|
-
Z(
|
|
1558
|
-
default:
|
|
1559
|
-
var
|
|
1558
|
+
Z(L(We), Qe(ft(L(ke)(t.value.query, (s) => !["query", "more", "reset", "btns"].includes(s)))), {
|
|
1559
|
+
default: v(() => {
|
|
1560
|
+
var s, O;
|
|
1560
1561
|
return [
|
|
1561
|
-
(
|
|
1562
|
-
((
|
|
1563
|
-
default:
|
|
1562
|
+
(r(), S(Ae(z({ slots: D.$slots }, void 0)))),
|
|
1563
|
+
((O = (s = t.value.query) == null ? void 0 : s.container) == null ? void 0 : O.inline) === !0 ? (r(), S(_, { key: 0 }, {
|
|
1564
|
+
default: v(() => {
|
|
1564
1565
|
var H, X, se, ce, he;
|
|
1565
1566
|
return [
|
|
1566
1567
|
J("div", {
|
|
1567
1568
|
style: Oe((X = (H = t.value.query) == null ? void 0 : H.btns) == null ? void 0 : X.style)
|
|
1568
1569
|
}, [
|
|
1569
|
-
t.value.query.group ? (
|
|
1570
|
-
default:
|
|
1571
|
-
(
|
|
1572
|
-
(
|
|
1570
|
+
t.value.query.group ? (r(), S(L(Ge), { key: 0 }, {
|
|
1571
|
+
default: v(() => [
|
|
1572
|
+
(r(!0), q(P, null, I(R(), (ye) => m(D.$slots, ye.props.slot, {}, () => [
|
|
1573
|
+
(r(), S(Ae(ye)))
|
|
1573
1574
|
], !0)), 256)),
|
|
1574
|
-
|
|
1575
|
+
m(D.$slots, "q-btns", {}, void 0, !0)
|
|
1575
1576
|
]),
|
|
1576
1577
|
_: 3
|
|
1577
|
-
})) : (
|
|
1578
|
-
(he = (ce = (se = t.value) == null ? void 0 : se.query) == null ? void 0 : ce.btns) != null && he.group ? (
|
|
1579
|
-
default:
|
|
1580
|
-
(
|
|
1581
|
-
(
|
|
1578
|
+
})) : (r(), q(P, { key: 1 }, [
|
|
1579
|
+
(he = (ce = (se = t.value) == null ? void 0 : se.query) == null ? void 0 : ce.btns) != null && he.group ? (r(), S(L(Ge), { key: 0 }, {
|
|
1580
|
+
default: v(() => [
|
|
1581
|
+
(r(!0), q(P, null, I(R(), (ye) => m(D.$slots, ye.props.slot, {}, () => [
|
|
1582
|
+
(r(), S(Ae(ye)))
|
|
1582
1583
|
], !0)), 256))
|
|
1583
1584
|
]),
|
|
1584
1585
|
_: 3
|
|
1585
|
-
})) : (
|
|
1586
|
-
(
|
|
1586
|
+
})) : (r(!0), q(P, { key: 1 }, I(R(), (ye) => m(D.$slots, ye.props.slot, {}, () => [
|
|
1587
|
+
(r(), S(Ae(ye)))
|
|
1587
1588
|
], !0)), 256)),
|
|
1588
|
-
|
|
1589
|
+
m(D.$slots, "q-btns", {}, void 0, !0)
|
|
1589
1590
|
], 64))
|
|
1590
1591
|
], 4)
|
|
1591
1592
|
];
|
|
@@ -1596,54 +1597,54 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1596
1597
|
}),
|
|
1597
1598
|
_: 3
|
|
1598
1599
|
}, 16),
|
|
1599
|
-
((
|
|
1600
|
+
((ve = (pe = (de = t.value) == null ? void 0 : de.query) == null ? void 0 : pe.container) == null ? void 0 : ve.inline) === !1 ? (r(), q("div", {
|
|
1600
1601
|
key: 0,
|
|
1601
|
-
style: Oe((
|
|
1602
|
+
style: Oe((V = (f = t.value.query) == null ? void 0 : f.btns) == null ? void 0 : V.style)
|
|
1602
1603
|
}, [
|
|
1603
|
-
t.value.query.group ? (
|
|
1604
|
-
default:
|
|
1605
|
-
(
|
|
1606
|
-
(
|
|
1604
|
+
t.value.query.group ? (r(), S(L(Ge), { key: 0 }, {
|
|
1605
|
+
default: v(() => [
|
|
1606
|
+
(r(!0), q(P, null, I(R(), (s) => m(D.$slots, s.props.slot, {}, () => [
|
|
1607
|
+
(r(), S(Ae(s)))
|
|
1607
1608
|
], !0)), 256)),
|
|
1608
|
-
|
|
1609
|
+
m(D.$slots, "q-btns", {}, void 0, !0)
|
|
1609
1610
|
]),
|
|
1610
1611
|
_: 3
|
|
1611
|
-
})) : (
|
|
1612
|
-
(
|
|
1613
|
-
default:
|
|
1614
|
-
(
|
|
1615
|
-
(
|
|
1612
|
+
})) : (r(), q(P, { key: 1 }, [
|
|
1613
|
+
(y = (k = t.value.query) == null ? void 0 : k.btns) != null && y.group ? (r(), S(L(Ge), { key: 0 }, {
|
|
1614
|
+
default: v(() => [
|
|
1615
|
+
(r(!0), q(P, null, I(R(), (s) => m(D.$slots, s.props.slot, {}, () => [
|
|
1616
|
+
(r(), S(Ae(s)))
|
|
1616
1617
|
], !0)), 256))
|
|
1617
1618
|
]),
|
|
1618
1619
|
_: 3
|
|
1619
|
-
})) : (
|
|
1620
|
-
(
|
|
1620
|
+
})) : (r(!0), q(P, { key: 1 }, I(R(), (s) => m(D.$slots, s.props.slot, {}, () => [
|
|
1621
|
+
(r(), S(Ae(s)))
|
|
1621
1622
|
], !0)), 256)),
|
|
1622
|
-
|
|
1623
|
+
m(D.$slots, "q-btns", {}, void 0, !0)
|
|
1623
1624
|
], 64))
|
|
1624
1625
|
], 4)) : $e("", !0)
|
|
1625
1626
|
], 4),
|
|
1626
|
-
|
|
1627
|
+
i.value && !((ne = (ee = (B = t.value) == null ? void 0 : B.query) == null ? void 0 : ee.more) != null && ne.hidden) && t.value.query.more.mode == 2 ? (r(), S(K, F({
|
|
1627
1628
|
key: 0,
|
|
1628
|
-
modelValue:
|
|
1629
|
-
"onUpdate:modelValue":
|
|
1629
|
+
modelValue: i.value,
|
|
1630
|
+
"onUpdate:modelValue": g[4] || (g[4] = (s) => i.value = s),
|
|
1630
1631
|
title: "更多查询",
|
|
1631
1632
|
"show-close": !1
|
|
1632
1633
|
}, t.value.query.more.dialog), fe({
|
|
1633
|
-
default:
|
|
1634
|
-
Z(
|
|
1635
|
-
default:
|
|
1634
|
+
default: v(() => [
|
|
1635
|
+
Z(L(We), F(L(ke)(t.value.query, (s) => !["query", "more", "reset"].includes(s)), { style: { width: "98%" } }), {
|
|
1636
|
+
default: v(() => [
|
|
1636
1637
|
Z(mt, {
|
|
1637
1638
|
modelValue: t.value,
|
|
1638
|
-
"onUpdate:modelValue":
|
|
1639
|
-
info:
|
|
1640
|
-
"onUpdate:info":
|
|
1639
|
+
"onUpdate:modelValue": g[0] || (g[0] = (s) => t.value = s),
|
|
1640
|
+
info: M.value,
|
|
1641
|
+
"onUpdate:info": g[1] || (g[1] = (s) => M.value = s),
|
|
1641
1642
|
more: !0
|
|
1642
1643
|
}, fe({ _: 2 }, [
|
|
1643
|
-
|
|
1644
|
-
name:
|
|
1645
|
-
fn:
|
|
1646
|
-
|
|
1644
|
+
I(D.$slots, (s, O, H) => ({
|
|
1645
|
+
name: O,
|
|
1646
|
+
fn: v((X) => [
|
|
1647
|
+
m(D.$slots, O, { model: t.value }, void 0, !0)
|
|
1647
1648
|
])
|
|
1648
1649
|
}))
|
|
1649
1650
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1653,22 +1654,22 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1653
1654
|
]),
|
|
1654
1655
|
_: 2
|
|
1655
1656
|
}, [
|
|
1656
|
-
(
|
|
1657
|
+
(n = (E = (h = (b = (A = t.value) == null ? void 0 : A.query) == null ? void 0 : b.more) == null ? void 0 : h.dialog) == null ? void 0 : E.footer) != null && n.hidden ? void 0 : {
|
|
1657
1658
|
name: "footer",
|
|
1658
|
-
fn:
|
|
1659
|
+
fn: v(() => [
|
|
1659
1660
|
J("div", Qe(ft(t.value.query.more.dialog.footer)), [
|
|
1660
|
-
Z(
|
|
1661
|
-
onClick:
|
|
1661
|
+
Z(L(_e), F(t.value.query.query, {
|
|
1662
|
+
onClick: g[2] || (g[2] = (s) => t.value.query.query.click())
|
|
1662
1663
|
}), {
|
|
1663
|
-
default:
|
|
1664
|
+
default: v(() => [
|
|
1664
1665
|
we(Ee(t.value.query.query.label), 1)
|
|
1665
1666
|
]),
|
|
1666
1667
|
_: 1
|
|
1667
1668
|
}, 16),
|
|
1668
|
-
Z(
|
|
1669
|
-
onClick:
|
|
1669
|
+
Z(L(_e), F(t.value.query.reset, {
|
|
1670
|
+
onClick: g[3] || (g[3] = (s) => t.value.query.reset.click())
|
|
1670
1671
|
}), {
|
|
1671
|
-
default:
|
|
1672
|
+
default: v(() => [
|
|
1672
1673
|
we(Ee(t.value.query.reset.label), 1)
|
|
1673
1674
|
]),
|
|
1674
1675
|
_: 1
|
|
@@ -1683,18 +1684,18 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1683
1684
|
name: "nested",
|
|
1684
1685
|
style: { padding: "10px" }
|
|
1685
1686
|
}, {
|
|
1686
|
-
default:
|
|
1687
|
-
var
|
|
1687
|
+
default: v(() => {
|
|
1688
|
+
var s, O, H;
|
|
1688
1689
|
return [
|
|
1689
|
-
|
|
1690
|
+
i.value && !((H = (O = (s = t.value) == null ? void 0 : s.query) == null ? void 0 : O.more) != null && H.hidden) && t.value.query.more.mode == 1 ? (r(), q("div", Gt, [
|
|
1690
1691
|
J("div", Qt, [
|
|
1691
|
-
t.value.query.more.mode == 1 ? Mt((
|
|
1692
|
-
default:
|
|
1693
|
-
(
|
|
1692
|
+
t.value.query.more.mode == 1 ? Mt((r(), S(L(We), Qe(F({ key: 0 }, L(ke)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
|
|
1693
|
+
default: v(() => [
|
|
1694
|
+
(r(), S(Ae(z({ slots: D.$slots }, !0))))
|
|
1694
1695
|
]),
|
|
1695
1696
|
_: 1
|
|
1696
1697
|
}, 16)), [
|
|
1697
|
-
[Tt,
|
|
1698
|
+
[Tt, i.value]
|
|
1698
1699
|
]) : $e("", !0)
|
|
1699
1700
|
])
|
|
1700
1701
|
])) : $e("", !0)
|
|
@@ -1708,59 +1709,59 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1708
1709
|
}, Jt = /* @__PURE__ */ Ue(Xt, [["__scopeId", "data-v-2a0af9cc"]]), Zt = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Kt = { style: { padding: "10px", "box-sizing": "border-box" } }, el = { style: { margin: "10px" } }, tl = {
|
|
1709
1710
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
1710
1711
|
id: "excelSortEl"
|
|
1711
|
-
}, ll = ["textContent"],
|
|
1712
|
+
}, ll = ["textContent"], al = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, ol = {
|
|
1712
1713
|
__name: "check-excel-item",
|
|
1713
1714
|
props: {
|
|
1714
1715
|
items: Array,
|
|
1715
1716
|
commitText: String
|
|
1716
1717
|
},
|
|
1717
1718
|
emits: ["excel"],
|
|
1718
|
-
setup(
|
|
1719
|
-
const t =
|
|
1720
|
-
|
|
1721
|
-
|
|
1719
|
+
setup(c, { emit: d }) {
|
|
1720
|
+
const t = c, e = d, o = me(t.items), i = () => {
|
|
1721
|
+
o.value.forEach((T) => {
|
|
1722
|
+
T.value = !0;
|
|
1722
1723
|
});
|
|
1723
|
-
},
|
|
1724
|
-
|
|
1725
|
-
|
|
1724
|
+
}, Y = () => {
|
|
1725
|
+
o.value.forEach((T) => {
|
|
1726
|
+
T.value = !1;
|
|
1726
1727
|
});
|
|
1727
|
-
},
|
|
1728
|
-
e("excel",
|
|
1729
|
-
if (!
|
|
1728
|
+
}, M = () => {
|
|
1729
|
+
e("excel", o.value, (T, $ = "excel.xls") => {
|
|
1730
|
+
if (!T) {
|
|
1730
1731
|
console.error("下载链接无效");
|
|
1731
1732
|
return;
|
|
1732
1733
|
}
|
|
1733
1734
|
try {
|
|
1734
|
-
const
|
|
1735
|
-
|
|
1736
|
-
} catch (
|
|
1737
|
-
console.error("下载文件时出现错误:",
|
|
1735
|
+
const C = document.createElement("a");
|
|
1736
|
+
C.href = T, C.download = $, C.style.display = "none", document.body.appendChild(C), C.click(), document.body.removeChild(C);
|
|
1737
|
+
} catch (C) {
|
|
1738
|
+
console.error("下载文件时出现错误:", C);
|
|
1738
1739
|
}
|
|
1739
1740
|
});
|
|
1740
1741
|
};
|
|
1741
1742
|
return Ne(() => {
|
|
1742
|
-
const
|
|
1743
|
+
const T = new bt(document.getElementById("excelSortEl"), {
|
|
1743
1744
|
animation: 150,
|
|
1744
1745
|
onEnd: () => {
|
|
1745
|
-
let
|
|
1746
|
-
console.log(
|
|
1746
|
+
let C = T.toArray();
|
|
1747
|
+
console.log(C);
|
|
1747
1748
|
}
|
|
1748
|
-
}),
|
|
1749
|
+
}), $ = T;
|
|
1749
1750
|
Ft(() => {
|
|
1750
|
-
|
|
1751
|
+
$ && $.destroy();
|
|
1751
1752
|
});
|
|
1752
|
-
}), (
|
|
1753
|
-
const
|
|
1754
|
-
return
|
|
1753
|
+
}), (T, $) => {
|
|
1754
|
+
const C = j("el-divider"), z = j("el-alert"), ae = j("el-checkbox"), R = j("el-button");
|
|
1755
|
+
return r(), q("div", Zt, [
|
|
1755
1756
|
J("div", Kt, [
|
|
1756
1757
|
J("div", el, [
|
|
1757
1758
|
J("a", {
|
|
1758
|
-
onClick:
|
|
1759
|
+
onClick: i,
|
|
1759
1760
|
style: { cursor: "pointer" }
|
|
1760
1761
|
}, "全选"),
|
|
1761
|
-
Z(
|
|
1762
|
+
Z(C, { direction: "vertical" }),
|
|
1762
1763
|
J("a", {
|
|
1763
|
-
onClick:
|
|
1764
|
+
onClick: Y,
|
|
1764
1765
|
style: { cursor: "pointer" }
|
|
1765
1766
|
}, "全不选")
|
|
1766
1767
|
]),
|
|
@@ -1771,20 +1772,20 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1771
1772
|
closable: !1,
|
|
1772
1773
|
style: { "margin-bottom": "10px" }
|
|
1773
1774
|
}),
|
|
1774
|
-
|
|
1775
|
+
$[0] || ($[0] = J("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
1775
1776
|
J("div", tl, [
|
|
1776
|
-
(
|
|
1777
|
+
(r(!0), q(P, null, I(o.value, (D) => (r(), S(ae, {
|
|
1777
1778
|
class: "check-box-hover",
|
|
1778
1779
|
style: { width: "120px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "3px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
1779
|
-
"data-id":
|
|
1780
|
-
modelValue:
|
|
1781
|
-
"onUpdate:modelValue": (
|
|
1782
|
-
key:
|
|
1783
|
-
title:
|
|
1780
|
+
"data-id": D.key,
|
|
1781
|
+
modelValue: D.value,
|
|
1782
|
+
"onUpdate:modelValue": (g) => D.value = g,
|
|
1783
|
+
key: D.key,
|
|
1784
|
+
title: D.label
|
|
1784
1785
|
}, {
|
|
1785
|
-
default:
|
|
1786
|
+
default: v(() => [
|
|
1786
1787
|
J("span", {
|
|
1787
|
-
textContent: Ee(
|
|
1788
|
+
textContent: Ee(D.label),
|
|
1788
1789
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
1789
1790
|
}, null, 8, ll)
|
|
1790
1791
|
]),
|
|
@@ -1792,13 +1793,13 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1792
1793
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
1793
1794
|
])
|
|
1794
1795
|
]),
|
|
1795
|
-
J("div",
|
|
1796
|
+
J("div", al, [
|
|
1796
1797
|
Z(R, {
|
|
1797
1798
|
type: "primary",
|
|
1798
|
-
onClick:
|
|
1799
|
-
disabled:
|
|
1799
|
+
onClick: M,
|
|
1800
|
+
disabled: o.value.filter((D) => D.value).length < 1
|
|
1800
1801
|
}, {
|
|
1801
|
-
default:
|
|
1802
|
+
default: v(() => [
|
|
1802
1803
|
we(Ee(t.commitText), 1)
|
|
1803
1804
|
]),
|
|
1804
1805
|
_: 1
|
|
@@ -1807,36 +1808,36 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1807
1808
|
]);
|
|
1808
1809
|
};
|
|
1809
1810
|
}
|
|
1810
|
-
},
|
|
1811
|
+
}, rl = /* @__PURE__ */ Ue(ol, [["__scopeId", "data-v-51dfb7ef"]]), xe = new Bt("gyc");
|
|
1811
1812
|
xe.version(1).stores({
|
|
1812
1813
|
tableInfo: "++id,[user+page+key],user,page,key,showCol,width,sort",
|
|
1813
1814
|
tableList: "++id,name"
|
|
1814
1815
|
});
|
|
1815
|
-
async function He(
|
|
1816
|
-
if (await xe.tableInfo.where({ user:
|
|
1817
|
-
let
|
|
1818
|
-
return await xe.tableInfo.put({ ...
|
|
1816
|
+
async function He(c, d, t, e = {}) {
|
|
1817
|
+
if (await xe.tableInfo.where({ user: c, page: d, key: t }).count() > 0) {
|
|
1818
|
+
let i = await xe.tableInfo.where({ user: c, page: d, key: t }).first();
|
|
1819
|
+
return await xe.tableInfo.put({ ...i, ...e }), "update success";
|
|
1819
1820
|
} else {
|
|
1820
|
-
let
|
|
1821
|
-
return await xe.tableInfo.add({ user:
|
|
1821
|
+
let i = { showCol: !0, width: "auto", sort: 0, ...e };
|
|
1822
|
+
return await xe.tableInfo.add({ user: c, page: d, key: t, ...i }), "add success";
|
|
1822
1823
|
}
|
|
1823
1824
|
}
|
|
1824
|
-
async function
|
|
1825
|
-
return await xe.tableInfo.where({ user:
|
|
1825
|
+
async function ul(c, d) {
|
|
1826
|
+
return await xe.tableInfo.where({ user: c, page: d }).toArray();
|
|
1826
1827
|
}
|
|
1827
|
-
async function
|
|
1828
|
+
async function nl(c, d) {
|
|
1828
1829
|
try {
|
|
1829
|
-
const t = await xe.tableInfo.where({ user:
|
|
1830
|
+
const t = await xe.tableInfo.where({ user: c, page: d }).delete();
|
|
1830
1831
|
return console.log("删除了" + t + "条数据"), t;
|
|
1831
1832
|
} catch (t) {
|
|
1832
1833
|
throw console.error("删除表格项设置信息时出错:", t), t;
|
|
1833
1834
|
}
|
|
1834
1835
|
}
|
|
1835
|
-
async function sl(
|
|
1836
|
-
return await xe.tableList.where({ name:
|
|
1836
|
+
async function sl(c) {
|
|
1837
|
+
return await xe.tableList.where({ name: c }).first();
|
|
1837
1838
|
}
|
|
1838
|
-
async function il(
|
|
1839
|
-
return typeof
|
|
1839
|
+
async function il(c) {
|
|
1840
|
+
return typeof c == "string" && (c = { name: c }), await xe.tableList.add(c), "add success";
|
|
1840
1841
|
}
|
|
1841
1842
|
const dl = {
|
|
1842
1843
|
style: { margin: "10px" },
|
|
@@ -1856,11 +1857,11 @@ const dl = {
|
|
|
1856
1857
|
modelModifiers: {}
|
|
1857
1858
|
}),
|
|
1858
1859
|
emits: ["update:modelValue"],
|
|
1859
|
-
setup(
|
|
1860
|
-
const
|
|
1861
|
-
|
|
1860
|
+
setup(c) {
|
|
1861
|
+
const d = c, t = me([]), e = Ie(c, "modelValue"), o = async ($, C) => {
|
|
1862
|
+
$ ? e.value[C].showCol = !0 : e.value[C].showCol = !1;
|
|
1862
1863
|
try {
|
|
1863
|
-
const z = await He(e.value.table.user,
|
|
1864
|
+
const z = await He(e.value.table.user, d.name, C, { showCol: $ });
|
|
1864
1865
|
console.log(z);
|
|
1865
1866
|
} catch (z) {
|
|
1866
1867
|
console.error("列显示状态保存信息时出错:", z), Te({
|
|
@@ -1868,23 +1869,23 @@ const dl = {
|
|
|
1868
1869
|
message: "列显示状态保存信息失败!"
|
|
1869
1870
|
});
|
|
1870
1871
|
}
|
|
1871
|
-
},
|
|
1872
|
-
const
|
|
1873
|
-
if (
|
|
1874
|
-
let
|
|
1872
|
+
}, i = () => {
|
|
1873
|
+
const $ = document.getElementById("cols");
|
|
1874
|
+
if ($) {
|
|
1875
|
+
let C = bt.create($, {
|
|
1875
1876
|
animation: 150,
|
|
1876
1877
|
filter: ".filtered",
|
|
1877
1878
|
//
|
|
1878
1879
|
sort: !0,
|
|
1879
1880
|
onEnd: () => {
|
|
1880
|
-
|
|
1881
|
-
e.value[
|
|
1882
|
-
let
|
|
1881
|
+
C.toArray().forEach(async (ae, R) => {
|
|
1882
|
+
e.value[ae].sort = R;
|
|
1883
|
+
let D = e.value[ae].width || "auto";
|
|
1883
1884
|
try {
|
|
1884
|
-
const
|
|
1885
|
-
console.log(
|
|
1886
|
-
} catch (
|
|
1887
|
-
console.error("列排序和宽度保存信息时出错:",
|
|
1885
|
+
const g = await He(e.value.table.user, d.name, ae, { sort: R, width: D });
|
|
1886
|
+
console.log(g);
|
|
1887
|
+
} catch (g) {
|
|
1888
|
+
console.error("列排序和宽度保存信息时出错:", g), Te({
|
|
1888
1889
|
type: "error",
|
|
1889
1890
|
message: "列排序和宽度保存信息失败!"
|
|
1890
1891
|
});
|
|
@@ -1893,51 +1894,51 @@ const dl = {
|
|
|
1893
1894
|
}
|
|
1894
1895
|
});
|
|
1895
1896
|
}
|
|
1896
|
-
},
|
|
1897
|
+
}, Y = async () => {
|
|
1897
1898
|
try {
|
|
1898
|
-
for (const
|
|
1899
|
-
|
|
1900
|
-
const
|
|
1899
|
+
for (const $ of t.value) {
|
|
1900
|
+
$.showCol = !0, e.value[$.value].showCol = !0;
|
|
1901
|
+
const C = await He(e.value.table.user, d.name, $.value, {
|
|
1901
1902
|
showCol: !0,
|
|
1902
|
-
width:
|
|
1903
|
-
sort:
|
|
1903
|
+
width: $.width,
|
|
1904
|
+
sort: $.sort
|
|
1904
1905
|
});
|
|
1905
|
-
console.log(
|
|
1906
|
+
console.log(C);
|
|
1906
1907
|
}
|
|
1907
|
-
} catch (
|
|
1908
|
-
console.error("全选列保存信息时出错:",
|
|
1908
|
+
} catch ($) {
|
|
1909
|
+
console.error("全选列保存信息时出错:", $), Te({
|
|
1909
1910
|
type: "error",
|
|
1910
1911
|
message: "全选列保存信息失败!"
|
|
1911
1912
|
});
|
|
1912
1913
|
}
|
|
1913
|
-
},
|
|
1914
|
+
}, M = async () => {
|
|
1914
1915
|
try {
|
|
1915
|
-
const
|
|
1916
|
-
for (const
|
|
1917
|
-
|
|
1918
|
-
const z = await He(e.value.table.user,
|
|
1916
|
+
const $ = t.value.filter((C) => !C.alwaysShow);
|
|
1917
|
+
for (const C of $) {
|
|
1918
|
+
C.showCol = !1, e.value[C.value].showCol = !1;
|
|
1919
|
+
const z = await He(e.value.table.user, d.name, C.value, {
|
|
1919
1920
|
showCol: !1,
|
|
1920
|
-
width:
|
|
1921
|
-
sort:
|
|
1921
|
+
width: C.width,
|
|
1922
|
+
sort: C.sort
|
|
1922
1923
|
});
|
|
1923
1924
|
console.log(z);
|
|
1924
1925
|
}
|
|
1925
|
-
} catch (
|
|
1926
|
-
console.error("清除列保存信息时出错:",
|
|
1926
|
+
} catch ($) {
|
|
1927
|
+
console.error("清除列保存信息时出错:", $), Te({
|
|
1927
1928
|
type: "error",
|
|
1928
1929
|
message: "清除列保存信息失败!"
|
|
1929
1930
|
});
|
|
1930
1931
|
}
|
|
1931
|
-
},
|
|
1932
|
+
}, T = () => {
|
|
1932
1933
|
vt.confirm("确定要复位吗?", "提示", {
|
|
1933
1934
|
confirmButtonText: "确定",
|
|
1934
1935
|
cancelButtonText: "取消",
|
|
1935
1936
|
type: "warning"
|
|
1936
1937
|
}).then(() => {
|
|
1937
|
-
|
|
1938
|
-
console.log(
|
|
1939
|
-
}).catch((
|
|
1940
|
-
console.error("复位操作出错:",
|
|
1938
|
+
nl(e.value.table.user, d.name).then(($) => {
|
|
1939
|
+
console.log($), window.location.reload();
|
|
1940
|
+
}).catch(($) => {
|
|
1941
|
+
console.error("复位操作出错:", $), Te({
|
|
1941
1942
|
type: "info",
|
|
1942
1943
|
message: "复位失败!"
|
|
1943
1944
|
});
|
|
@@ -1945,25 +1946,25 @@ const dl = {
|
|
|
1945
1946
|
});
|
|
1946
1947
|
};
|
|
1947
1948
|
return Ne(async () => {
|
|
1948
|
-
t.value = Object.entries(e.value).filter(([,
|
|
1949
|
-
label:
|
|
1950
|
-
value:
|
|
1951
|
-
alwaysShow:
|
|
1952
|
-
showCol:
|
|
1953
|
-
sort:
|
|
1954
|
-
width:
|
|
1955
|
-
})).sort((
|
|
1956
|
-
}), (
|
|
1957
|
-
const z =
|
|
1958
|
-
return
|
|
1949
|
+
t.value = Object.entries(e.value).filter(([, $]) => $.visible !== !1).filter(([, $]) => $.type != "hidden").map(([$, C]) => ({
|
|
1950
|
+
label: C.label,
|
|
1951
|
+
value: $,
|
|
1952
|
+
alwaysShow: C.alwaysShow,
|
|
1953
|
+
showCol: C.showCol !== !1,
|
|
1954
|
+
sort: C.sort || 0,
|
|
1955
|
+
width: C.width || "auto"
|
|
1956
|
+
})).sort(($, C) => $.sort - C.sort), i();
|
|
1957
|
+
}), ($, C) => {
|
|
1958
|
+
const z = j("el-divider"), ae = j("el-alert"), R = j("el-checkbox");
|
|
1959
|
+
return r(), q("div", null, [
|
|
1959
1960
|
J("div", dl, [
|
|
1960
|
-
J("a", { onClick:
|
|
1961
|
+
J("a", { onClick: Y }, "全选"),
|
|
1961
1962
|
Z(z, { direction: "vertical" }),
|
|
1962
|
-
J("a", { onClick:
|
|
1963
|
+
J("a", { onClick: M }, "全不选"),
|
|
1963
1964
|
Z(z, { direction: "vertical" }),
|
|
1964
|
-
J("a", { onClick:
|
|
1965
|
+
J("a", { onClick: T }, "复位")
|
|
1965
1966
|
]),
|
|
1966
|
-
Z(
|
|
1967
|
+
Z(ae, {
|
|
1967
1968
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
1968
1969
|
type: "warning",
|
|
1969
1970
|
"show-icon": "",
|
|
@@ -1972,21 +1973,21 @@ const dl = {
|
|
|
1972
1973
|
}),
|
|
1973
1974
|
J("div", null, [
|
|
1974
1975
|
J("div", cl, [
|
|
1975
|
-
(
|
|
1976
|
-
modelValue:
|
|
1977
|
-
"onUpdate:modelValue": (
|
|
1978
|
-
"data-id":
|
|
1979
|
-
class: gt(["check-box-hover",
|
|
1980
|
-
onChange: (
|
|
1976
|
+
(r(!0), q(P, null, I(t.value, (D) => (r(), S(R, {
|
|
1977
|
+
modelValue: D.showCol,
|
|
1978
|
+
"onUpdate:modelValue": (g) => D.showCol = g,
|
|
1979
|
+
"data-id": D.value,
|
|
1980
|
+
class: gt(["check-box-hover", D.value == "control" ? "filtered" : ""]),
|
|
1981
|
+
onChange: (g) => o(g, D.value),
|
|
1981
1982
|
style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
1982
|
-
value:
|
|
1983
|
-
title:
|
|
1984
|
-
disabled:
|
|
1985
|
-
key:
|
|
1983
|
+
value: D.value,
|
|
1984
|
+
title: D.label,
|
|
1985
|
+
disabled: D.alwaysShow,
|
|
1986
|
+
key: D.value
|
|
1986
1987
|
}, {
|
|
1987
|
-
default:
|
|
1988
|
+
default: v(() => [
|
|
1988
1989
|
J("span", {
|
|
1989
|
-
textContent: Ee(
|
|
1990
|
+
textContent: Ee(D.label),
|
|
1990
1991
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
1991
1992
|
}, null, 8, fl)
|
|
1992
1993
|
]),
|
|
@@ -2016,11 +2017,11 @@ const dl = {
|
|
|
2016
2017
|
modelModifiers: {}
|
|
2017
2018
|
}),
|
|
2018
2019
|
emits: /* @__PURE__ */ Be(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
|
|
2019
|
-
setup(
|
|
2020
|
+
setup(c, { emit: d }) {
|
|
2020
2021
|
var Ce, Fe, De, u, N, ie, Ve;
|
|
2021
|
-
const t =
|
|
2022
|
-
|
|
2023
|
-
const
|
|
2022
|
+
const t = d, e = Ie(c, "modelValue"), o = rt("options"), i = me({}), Y = Object.entries(e.value).filter(([l, a]) => (a == null ? void 0 : a.search) !== void 0).map(([l, a]) => [l, a.value]);
|
|
2023
|
+
i.value = Object.fromEntries(Y);
|
|
2024
|
+
const M = me(!1), T = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], $ = me([]), C = c, z = ut(), ae = me({}), R = me([]), D = {
|
|
2024
2025
|
autoWatch: !1,
|
|
2025
2026
|
data: [],
|
|
2026
2027
|
border: !0,
|
|
@@ -2029,30 +2030,30 @@ const dl = {
|
|
|
2029
2030
|
fit: !1,
|
|
2030
2031
|
type: "hidden",
|
|
2031
2032
|
load: () => {
|
|
2032
|
-
let { currentPage: l, pageSize:
|
|
2033
|
+
let { currentPage: l, pageSize: a } = e.value.table.page;
|
|
2033
2034
|
try {
|
|
2034
|
-
t("load", { currentPage: l, pageSize:
|
|
2035
|
-
var
|
|
2036
|
-
if (!Array.isArray(
|
|
2035
|
+
t("load", { currentPage: l, pageSize: a, ...i.value }, (p, x, { fields: G = [], sums: Q = {} } = {}) => {
|
|
2036
|
+
var re, Se;
|
|
2037
|
+
if (!Array.isArray(p)) {
|
|
2037
2038
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), Te.error("数据加载失败,请检查数据格式。");
|
|
2038
2039
|
return;
|
|
2039
2040
|
}
|
|
2040
|
-
if (typeof
|
|
2041
|
+
if (typeof x != "number") {
|
|
2041
2042
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Te.error("数据加载失败,请检查数据格式。");
|
|
2042
2043
|
return;
|
|
2043
2044
|
}
|
|
2044
|
-
e.value.table.data =
|
|
2045
|
+
e.value.table.data = p, ((Se = (re = e.value.control) == null ? void 0 : re.add) == null ? void 0 : Se.inline) === !0 && e.value.table.data.unshift(de), e.value.table.page.total = x, R.value = G, ae.value = Q, ce();
|
|
2045
2046
|
});
|
|
2046
|
-
} catch (
|
|
2047
|
-
console.error("触发 load 事件时出现错误:",
|
|
2047
|
+
} catch (p) {
|
|
2048
|
+
console.error("触发 load 事件时出现错误:", p), Te.error("数据加载时出现错误,请稍后重试。");
|
|
2048
2049
|
}
|
|
2049
2050
|
},
|
|
2050
|
-
onHeaderDragend: (l,
|
|
2051
|
-
var
|
|
2052
|
-
He((
|
|
2051
|
+
onHeaderDragend: (l, a, p) => {
|
|
2052
|
+
var x;
|
|
2053
|
+
He((x = e.value.table) == null ? void 0 : x.user, C.name, p.property, { width: l });
|
|
2053
2054
|
},
|
|
2054
|
-
onRowDblclick: (l,
|
|
2055
|
-
e.value.table.dblclickType == "edit" ?
|
|
2055
|
+
onRowDblclick: (l, a, p) => {
|
|
2056
|
+
e.value.table.dblclickType == "edit" ? k(l, a, p, e) : e.value.table.dblclickType == "view" && B(l, a, p, e);
|
|
2056
2057
|
},
|
|
2057
2058
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2058
2059
|
page: {
|
|
@@ -2076,18 +2077,18 @@ const dl = {
|
|
|
2076
2077
|
}
|
|
2077
2078
|
},
|
|
2078
2079
|
dblclickType: "edit",
|
|
2079
|
-
"summary-method": ({ columns: l, data:
|
|
2080
|
-
onSortChange: ({ column: l, prop:
|
|
2080
|
+
"summary-method": ({ columns: l, data: a }, p) => p,
|
|
2081
|
+
onSortChange: ({ column: l, prop: a, order: p }, x) => {
|
|
2081
2082
|
}
|
|
2082
2083
|
};
|
|
2083
2084
|
e.value.table = Me(
|
|
2084
|
-
|
|
2085
|
-
|
|
2085
|
+
D,
|
|
2086
|
+
o == null ? void 0 : o.table,
|
|
2086
2087
|
e.value.table,
|
|
2087
2088
|
z
|
|
2088
2089
|
// 继承父组件的属性
|
|
2089
2090
|
);
|
|
2090
|
-
const
|
|
2091
|
+
const g = {
|
|
2091
2092
|
type: "control",
|
|
2092
2093
|
label: "操作",
|
|
2093
2094
|
width: 250,
|
|
@@ -2107,25 +2108,25 @@ const dl = {
|
|
|
2107
2108
|
text: !0,
|
|
2108
2109
|
type: "success",
|
|
2109
2110
|
mode: "dialog",
|
|
2110
|
-
auth: (l,
|
|
2111
|
+
auth: (l, a, p) => !1
|
|
2111
2112
|
},
|
|
2112
2113
|
edit: {
|
|
2113
2114
|
label: "编辑",
|
|
2114
2115
|
text: !0,
|
|
2115
2116
|
type: "primary",
|
|
2116
2117
|
mode: "dialog",
|
|
2117
|
-
auth: (l,
|
|
2118
|
-
var
|
|
2119
|
-
return ((Q = (G = (
|
|
2118
|
+
auth: (l, a, p) => {
|
|
2119
|
+
var x, G, Q;
|
|
2120
|
+
return ((Q = (G = (x = e.value) == null ? void 0 : x.control) == null ? void 0 : G.add) == null ? void 0 : Q.inline) === !1;
|
|
2120
2121
|
}
|
|
2121
2122
|
},
|
|
2122
2123
|
delete: {
|
|
2123
2124
|
text: !0,
|
|
2124
2125
|
label: "删除",
|
|
2125
2126
|
type: "danger",
|
|
2126
|
-
auth: (l,
|
|
2127
|
-
var
|
|
2128
|
-
return !(((Q = (G = (
|
|
2127
|
+
auth: (l, a, p) => {
|
|
2128
|
+
var x, G, Q;
|
|
2129
|
+
return !(((Q = (G = (x = e.value) == null ? void 0 : x.control) == null ? void 0 : G.add) == null ? void 0 : Q.inline) === !0 && p === 0);
|
|
2129
2130
|
},
|
|
2130
2131
|
dialog: {
|
|
2131
2132
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2155,39 +2156,39 @@ const dl = {
|
|
|
2155
2156
|
sort: -1,
|
|
2156
2157
|
addLabel: "新增",
|
|
2157
2158
|
auth: () => {
|
|
2158
|
-
var l,
|
|
2159
|
-
return ((
|
|
2159
|
+
var l, a, p;
|
|
2160
|
+
return ((p = (a = (l = e.value) == null ? void 0 : l.control) == null ? void 0 : a.add) == null ? void 0 : p.inline) === !0;
|
|
2160
2161
|
}
|
|
2161
2162
|
}
|
|
2162
2163
|
};
|
|
2163
2164
|
e.value.control = Me(
|
|
2164
|
-
|
|
2165
|
-
|
|
2165
|
+
g,
|
|
2166
|
+
o == null ? void 0 : o.control,
|
|
2166
2167
|
(De = e.value) == null ? void 0 : De.control
|
|
2167
2168
|
);
|
|
2168
|
-
const
|
|
2169
|
+
const _ = {
|
|
2169
2170
|
type: "hidden",
|
|
2170
2171
|
minWidth: 120,
|
|
2171
2172
|
align: "center",
|
|
2172
|
-
formatter: (l,
|
|
2173
|
+
formatter: (l, a, p, x) => p
|
|
2173
2174
|
};
|
|
2174
2175
|
e.value.tableColumns = Me(
|
|
2175
|
-
|
|
2176
|
-
|
|
2176
|
+
_,
|
|
2177
|
+
o == null ? void 0 : o.tableColumns,
|
|
2177
2178
|
(u = e.value) == null ? void 0 : u.tableColumns
|
|
2178
2179
|
);
|
|
2179
|
-
const
|
|
2180
|
+
const K = {
|
|
2180
2181
|
type: "hidden",
|
|
2181
2182
|
disabled: void 0,
|
|
2182
2183
|
footer: { hidden: !1 },
|
|
2183
2184
|
modalState: void 0
|
|
2184
2185
|
};
|
|
2185
2186
|
e.value.form = Me(
|
|
2186
|
-
|
|
2187
|
-
|
|
2187
|
+
K,
|
|
2188
|
+
o == null ? void 0 : o.form,
|
|
2188
2189
|
(N = e.value) == null ? void 0 : N.form
|
|
2189
2190
|
);
|
|
2190
|
-
const
|
|
2191
|
+
const oe = {
|
|
2191
2192
|
type: "hidden",
|
|
2192
2193
|
labelPosition: "right",
|
|
2193
2194
|
style: {
|
|
@@ -2195,11 +2196,11 @@ const dl = {
|
|
|
2195
2196
|
}
|
|
2196
2197
|
};
|
|
2197
2198
|
e.value.formItems = Me(
|
|
2198
|
-
|
|
2199
|
-
|
|
2199
|
+
oe,
|
|
2200
|
+
o == null ? void 0 : o.formItems,
|
|
2200
2201
|
(ie = e == null ? void 0 : e.value) == null ? void 0 : ie.formItems
|
|
2201
2202
|
);
|
|
2202
|
-
const
|
|
2203
|
+
const te = {
|
|
2203
2204
|
title: "编辑",
|
|
2204
2205
|
mode: "drawer",
|
|
2205
2206
|
type: "hidden",
|
|
@@ -2208,282 +2209,282 @@ const dl = {
|
|
|
2208
2209
|
fullScreen: !1
|
|
2209
2210
|
};
|
|
2210
2211
|
e.value.dialog = Me(
|
|
2211
|
-
|
|
2212
|
-
|
|
2212
|
+
te,
|
|
2213
|
+
o == null ? void 0 : o.dialog,
|
|
2213
2214
|
(Ve = e.value) == null ? void 0 : Ve.dialog
|
|
2214
2215
|
);
|
|
2215
|
-
const de = Object.fromEntries(Object.entries(ke(e.value, (l,
|
|
2216
|
-
let
|
|
2217
|
-
if (l.decimals && !isNaN(parseFloat(
|
|
2216
|
+
const de = Object.fromEntries(Object.entries(ke(e.value, (l, a) => a.type != "control" && a.editor !== !1 && a.type != "hidden")).map(([l, a]) => [l, a.value])), pe = (l, a) => {
|
|
2217
|
+
let p = a;
|
|
2218
|
+
if (l.decimals && !isNaN(parseFloat(a)) && (typeof l.decimals == "number" ? p = parseFloat(p).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? p = parseFloat(p).toFixed(l.decimals.num) : p = parseFloat(parseFloat(p).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && et(a).isValid()) {
|
|
2218
2219
|
const G = {
|
|
2219
2220
|
date: "YYYY-MM-DD",
|
|
2220
2221
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2221
2222
|
time: "HH:mm:ss"
|
|
2222
2223
|
};
|
|
2223
|
-
|
|
2224
|
+
p = l.format ? et(p).format(l.format) : et(p).format(G[l.type]);
|
|
2224
2225
|
}
|
|
2225
|
-
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130,
|
|
2226
|
-
},
|
|
2227
|
-
|
|
2228
|
-
},
|
|
2229
|
-
|
|
2230
|
-
},
|
|
2231
|
-
var
|
|
2226
|
+
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, p = `<span title="${ot(parseFloat(p))}">${Rl(parseFloat(p))}</span>`), l.prefix && p && (p = `<span>${l.prefix}${p}</span>`), l.suffix && p && (p = `${p}<span>${l.suffix}</span>`), p;
|
|
2227
|
+
}, ve = (l) => {
|
|
2228
|
+
i.value = l.value;
|
|
2229
|
+
}, f = (l) => {
|
|
2230
|
+
i.value = l, e.value.table.load();
|
|
2231
|
+
}, V = async (l) => {
|
|
2232
|
+
var a, p;
|
|
2232
2233
|
e.value.form.modalState = "add";
|
|
2233
2234
|
try {
|
|
2234
|
-
if (!await ((
|
|
2235
|
-
} catch (
|
|
2236
|
-
console.error("验证失败:",
|
|
2235
|
+
if (!await ((a = e.value.control) == null ? void 0 : a.validate("add", { m: l }))) return;
|
|
2236
|
+
} catch (x) {
|
|
2237
|
+
console.error("验证失败:", x);
|
|
2237
2238
|
return;
|
|
2238
2239
|
}
|
|
2239
|
-
(
|
|
2240
|
-
e.value[
|
|
2241
|
-
}),
|
|
2242
|
-
},
|
|
2240
|
+
(p = e.value.control.add) != null && p.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (console.log(de), e.value.table.data.unshift(de), t("open", "row-add", { initFormData: de })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(de).forEach((x) => {
|
|
2241
|
+
e.value[x] && (e.value[x].value = de[x]);
|
|
2242
|
+
}), M.value = !0, t("open", "add", { m: l }));
|
|
2243
|
+
}, k = async (l, a, p, x) => {
|
|
2243
2244
|
var G, Q;
|
|
2244
2245
|
e.value.form.modalState = "edit";
|
|
2245
2246
|
try {
|
|
2246
|
-
if (!await ((G = e.value.control) == null ? void 0 : G.validate("edit", { row: l, column:
|
|
2247
|
-
} catch (
|
|
2248
|
-
console.error("验证失败:",
|
|
2247
|
+
if (!await ((G = e.value.control) == null ? void 0 : G.validate("edit", { row: l, column: a, $index: p, m: x }))) return;
|
|
2248
|
+
} catch (re) {
|
|
2249
|
+
console.error("验证失败:", re);
|
|
2249
2250
|
return;
|
|
2250
2251
|
}
|
|
2251
|
-
(Q = e.value.control.edit) != null && Q.click ? e.value.control.edit.click(l,
|
|
2252
|
-
e.value[
|
|
2253
|
-
}),
|
|
2254
|
-
},
|
|
2252
|
+
(Q = e.value.control.edit) != null && Q.click ? e.value.control.edit.click(l, a, p, x) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((re) => {
|
|
2253
|
+
e.value[re] && (e.value[re].value = l[re]);
|
|
2254
|
+
}), M.value = !0, t("open", "edit", { m: x, row: l, column: a, $index: p }));
|
|
2255
|
+
}, y = async (l, a, p, x) => {
|
|
2255
2256
|
var G, Q;
|
|
2256
2257
|
try {
|
|
2257
|
-
if (!await ((G = e.value.control) == null ? void 0 : G.validate("delete", { row: l, column:
|
|
2258
|
-
} catch (
|
|
2259
|
-
console.error("验证失败:",
|
|
2258
|
+
if (!await ((G = e.value.control) == null ? void 0 : G.validate("delete", { row: l, column: a, $index: p, m: x }))) return;
|
|
2259
|
+
} catch (re) {
|
|
2260
|
+
console.error("验证失败:", re);
|
|
2260
2261
|
return;
|
|
2261
2262
|
}
|
|
2262
2263
|
if ((Q = e.value.control.delete) != null && Q.click)
|
|
2263
|
-
e.value.control.delete.click(l,
|
|
2264
|
+
e.value.control.delete.click(l, a, p, x);
|
|
2264
2265
|
else {
|
|
2265
|
-
let { message:
|
|
2266
|
-
vt.confirm(
|
|
2267
|
-
t("delete", { row: l, column:
|
|
2268
|
-
ze && (e.value.table.data.splice(
|
|
2266
|
+
let { message: re, title: Se, options: Pe } = e.value.control.delete.dialog;
|
|
2267
|
+
vt.confirm(re, Se, Pe).then(() => {
|
|
2268
|
+
t("delete", { row: l, column: a, $index: p }, (ze) => {
|
|
2269
|
+
ze && (e.value.table.data.splice(p, 1), e.value.table.page.total--);
|
|
2269
2270
|
});
|
|
2270
2271
|
}).catch(() => {
|
|
2271
2272
|
});
|
|
2272
2273
|
}
|
|
2273
|
-
},
|
|
2274
|
+
}, B = async (l, a, p, x) => {
|
|
2274
2275
|
var G, Q;
|
|
2275
2276
|
e.value.form.modalState = void 0;
|
|
2276
2277
|
try {
|
|
2277
|
-
if (!await ((G = e.value.control) == null ? void 0 : G.validate("view", { row: l, column:
|
|
2278
|
-
} catch (
|
|
2279
|
-
console.error("验证失败:",
|
|
2278
|
+
if (!await ((G = e.value.control) == null ? void 0 : G.validate("view", { row: l, column: a, $index: p, m: x }))) return;
|
|
2279
|
+
} catch (re) {
|
|
2280
|
+
console.error("验证失败:", re);
|
|
2280
2281
|
return;
|
|
2281
2282
|
}
|
|
2282
|
-
(Q = e.value.control.view) != null && Q.click ? e.value.control.view.click(l,
|
|
2283
|
-
e.value[
|
|
2284
|
-
}),
|
|
2285
|
-
}, ee = (l,
|
|
2283
|
+
(Q = e.value.control.view) != null && Q.click ? e.value.control.view.click(l, a, p, x) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((re) => {
|
|
2284
|
+
e.value[re] && (e.value[re].value = l[re]);
|
|
2285
|
+
}), M.value = !0, t("open", "view", { m: x, row: l, column: a, $index: p }));
|
|
2286
|
+
}, ee = (l, a, p, x) => {
|
|
2286
2287
|
var G;
|
|
2287
|
-
(G = e.value.control.save) != null && G.click ? e.value.control.save.click(l,
|
|
2288
|
+
(G = e.value.control.save) != null && G.click ? e.value.control.save.click(l, a, p, x) : t("row-save", { row: l, column: a, $index: p, data: e.value.table.data }, (Q) => {
|
|
2288
2289
|
Q && e.value.table.load();
|
|
2289
2290
|
});
|
|
2290
|
-
}, ne = (l,
|
|
2291
|
-
t("submit", e.value.form.modalState, l,
|
|
2292
|
-
|
|
2291
|
+
}, ne = (l, a) => {
|
|
2292
|
+
t("submit", e.value.form.modalState, l, a, (p) => {
|
|
2293
|
+
p && (M.value = !1, a.table.load());
|
|
2293
2294
|
});
|
|
2294
|
-
},
|
|
2295
|
+
}, A = (l) => {
|
|
2295
2296
|
t("reset", l);
|
|
2296
|
-
},
|
|
2297
|
-
var
|
|
2298
|
-
if ((
|
|
2299
|
-
l.control.download.click(l,
|
|
2297
|
+
}, b = (l, a) => {
|
|
2298
|
+
var p;
|
|
2299
|
+
if ((p = l.control.download) != null && p.click)
|
|
2300
|
+
l.control.download.click(l, a);
|
|
2300
2301
|
else {
|
|
2301
|
-
let
|
|
2302
|
+
let x = at({
|
|
2302
2303
|
title: l.control.download.label,
|
|
2303
2304
|
size: 480,
|
|
2304
2305
|
width: 600,
|
|
2305
2306
|
slots: {
|
|
2306
|
-
default: () => qe(
|
|
2307
|
-
items:
|
|
2307
|
+
default: () => qe(rl, {
|
|
2308
|
+
items: a,
|
|
2308
2309
|
commitText: l.control.download.excelLabel,
|
|
2309
2310
|
onExcel: (G, Q) => {
|
|
2310
|
-
t("download", G, Q),
|
|
2311
|
+
t("download", G, Q), x();
|
|
2311
2312
|
}
|
|
2312
2313
|
})
|
|
2313
2314
|
}
|
|
2314
2315
|
}, l.control.download.mode);
|
|
2315
2316
|
}
|
|
2316
|
-
},
|
|
2317
|
-
var
|
|
2318
|
-
(
|
|
2317
|
+
}, h = (l) => {
|
|
2318
|
+
var a;
|
|
2319
|
+
(a = l.control.setting) != null && a.click ? l.control.setting.click(l) : at({
|
|
2319
2320
|
title: l.control.setting.label,
|
|
2320
2321
|
size: 470,
|
|
2321
2322
|
width: 600,
|
|
2322
2323
|
slots: {
|
|
2323
2324
|
default: () => qe(pl, {
|
|
2324
2325
|
modelValue: l,
|
|
2325
|
-
name:
|
|
2326
|
+
name: C.name
|
|
2326
2327
|
})
|
|
2327
2328
|
}
|
|
2328
2329
|
}, l.control.setting.mode);
|
|
2329
|
-
},
|
|
2330
|
-
{ type: "add", func:
|
|
2331
|
-
{ type: "download", func:
|
|
2332
|
-
{ type: "setting", func:
|
|
2333
|
-
{ type: "view", func:
|
|
2334
|
-
{ type: "edit", func:
|
|
2335
|
-
{ type: "delete", func:
|
|
2330
|
+
}, E = e.value.control, n = [
|
|
2331
|
+
{ type: "add", func: V },
|
|
2332
|
+
{ type: "download", func: b },
|
|
2333
|
+
{ type: "setting", func: h },
|
|
2334
|
+
{ type: "view", func: B },
|
|
2335
|
+
{ type: "edit", func: k },
|
|
2336
|
+
{ type: "delete", func: y },
|
|
2336
2337
|
{ type: "save", func: ee }
|
|
2337
|
-
],
|
|
2338
|
-
var
|
|
2338
|
+
], s = (l) => n.filter((a) => l.includes(a.type)).map(({ type: a, func: p }) => {
|
|
2339
|
+
var x, G, Q;
|
|
2339
2340
|
return {
|
|
2340
|
-
name: `control-${
|
|
2341
|
-
attr:
|
|
2342
|
-
func:
|
|
2343
|
-
label: (
|
|
2344
|
-
sort: ((G =
|
|
2345
|
-
groupName: ((Q =
|
|
2341
|
+
name: `control-${a}`,
|
|
2342
|
+
attr: E == null ? void 0 : E[a],
|
|
2343
|
+
func: p,
|
|
2344
|
+
label: (x = E == null ? void 0 : E[a]) == null ? void 0 : x.label,
|
|
2345
|
+
sort: ((G = E == null ? void 0 : E[a]) == null ? void 0 : G.sort) || 0,
|
|
2346
|
+
groupName: ((Q = E == null ? void 0 : E[a]) == null ? void 0 : Q.groupName) || "default"
|
|
2346
2347
|
};
|
|
2347
|
-
}).sort((
|
|
2348
|
-
const
|
|
2349
|
-
return
|
|
2348
|
+
}).sort((a, p) => a.sort - p.sort), O = (l) => s(l).reduce((a, p) => {
|
|
2349
|
+
const x = p.groupName || "default";
|
|
2350
|
+
return a[x] || (a[x] = []), a[x].push(p), a;
|
|
2350
2351
|
}, {}), H = Ye(() => Object.fromEntries(
|
|
2351
|
-
Object.entries(e.value).filter(([l,
|
|
2352
|
-
)), X =
|
|
2353
|
-
const
|
|
2354
|
-
for (const Q of
|
|
2352
|
+
Object.entries(e.value).filter(([l, a]) => a.type !== "hidden").filter(([l, a]) => a.visible !== !1).filter(([l, a]) => a.showCol !== !1).map(([l, a]) => (a.sort = typeof a.sort == "number" ? a.sort : 0, [l, a])).sort((l, a) => l[1].sort - a[1].sort)
|
|
2353
|
+
)), X = me({}), se = (l, a) => {
|
|
2354
|
+
const p = (x, G) => {
|
|
2355
|
+
for (const Q of x) {
|
|
2355
2356
|
if (Q.value == G) return Q.label;
|
|
2356
2357
|
if (Q.children) {
|
|
2357
|
-
const
|
|
2358
|
-
if (
|
|
2358
|
+
const re = p(Q.children, G);
|
|
2359
|
+
if (re) return re;
|
|
2359
2360
|
}
|
|
2360
2361
|
}
|
|
2361
2362
|
return null;
|
|
2362
2363
|
};
|
|
2363
2364
|
if (l.getDicts) {
|
|
2364
|
-
const
|
|
2365
|
-
return X.value[
|
|
2366
|
-
X.value[
|
|
2365
|
+
const x = a.toString();
|
|
2366
|
+
return X.value[x] ? (l.options = X.value[x], l.formatter || (l.formatter = (G, Q, re, Se) => l.options && p(l.options, re) || re), Promise.resolve()) : l.getDicts(e.value.table.data).then((G) => {
|
|
2367
|
+
X.value[x] = G, l.options = G, l.formatter || (l.formatter = (Q, re, Se, Pe) => l.options && p(l.options, Se) || Se);
|
|
2367
2368
|
});
|
|
2368
2369
|
}
|
|
2369
2370
|
return Promise.resolve();
|
|
2370
2371
|
}, ce = () => {
|
|
2371
2372
|
const l = [];
|
|
2372
|
-
Object.keys(e.value).forEach((
|
|
2373
|
-
if (e.value[
|
|
2374
|
-
const
|
|
2375
|
-
e.value.table.data.forEach((
|
|
2373
|
+
Object.keys(e.value).forEach((a) => {
|
|
2374
|
+
if (e.value[a].getDicts) {
|
|
2375
|
+
const p = se(e.value[a], a).then(() => {
|
|
2376
|
+
e.value.table.data.forEach((x) => {
|
|
2376
2377
|
var G;
|
|
2377
|
-
if (e.value[
|
|
2378
|
-
const Q =
|
|
2379
|
-
|
|
2378
|
+
if (e.value[a].getDicts && ((G = e.value[a]) == null ? void 0 : G.forceString) !== !1) {
|
|
2379
|
+
const Q = x[a];
|
|
2380
|
+
x[a] = Q != null ? Q.toString() : Q;
|
|
2380
2381
|
}
|
|
2381
2382
|
});
|
|
2382
|
-
}).catch((
|
|
2383
|
-
console.error(`加载字典${
|
|
2383
|
+
}).catch((x) => {
|
|
2384
|
+
console.error(`加载字典${a}出错:`, x);
|
|
2384
2385
|
});
|
|
2385
|
-
l.push(
|
|
2386
|
+
l.push(p);
|
|
2386
2387
|
}
|
|
2387
|
-
}), Promise.all(l).catch((
|
|
2388
|
-
console.error("字典加载过程中发生错误:",
|
|
2388
|
+
}), Promise.all(l).catch((a) => {
|
|
2389
|
+
console.error("字典加载过程中发生错误:", a);
|
|
2389
2390
|
});
|
|
2390
|
-
}, he = (l,
|
|
2391
|
+
}, he = (l, a, p, x) => {
|
|
2391
2392
|
var G, Q;
|
|
2392
|
-
return l.table ? (G = l.table(
|
|
2393
|
-
},
|
|
2393
|
+
return l.table ? (G = l.table(a, p, x)) != null && G.auth ? (Q = l.table(a, p, x)) == null ? void 0 : Q.auth(a, p, x) : !0 : !1;
|
|
2394
|
+
}, ye = (l, a) => l.name === "control-save" && a === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label;
|
|
2394
2395
|
return St(() => {
|
|
2395
2396
|
e.value.table.autoWatch && e.value.table.load();
|
|
2396
2397
|
}), Ne(async () => {
|
|
2397
2398
|
var l;
|
|
2398
|
-
if (
|
|
2399
|
+
if ($.value = Object.values(e.value).filter((a) => a.type !== "hidden").filter((a) => a.type !== "control").filter((a) => a.visible !== !1).map((a) => ({ key: a.key || "", label: a.label, value: !0 })), !((l = e.value.table) != null && l.user)) {
|
|
2399
2400
|
Te.error("必须给使用此表格的用户一个名字!");
|
|
2400
2401
|
return;
|
|
2401
2402
|
}
|
|
2402
|
-
if (!
|
|
2403
|
+
if (!C.name) {
|
|
2403
2404
|
Te.error("必须给表格一个唯一的name属性");
|
|
2404
2405
|
return;
|
|
2405
2406
|
}
|
|
2406
2407
|
try {
|
|
2407
|
-
let
|
|
2408
|
-
if (
|
|
2409
|
-
if (
|
|
2408
|
+
let a = await sl(C.name);
|
|
2409
|
+
if (a) {
|
|
2410
|
+
if (C.name !== a.name) {
|
|
2410
2411
|
Te.error("此表格已经存在,请换一个名字!");
|
|
2411
2412
|
return;
|
|
2412
2413
|
}
|
|
2413
2414
|
} else
|
|
2414
|
-
await il({ name:
|
|
2415
|
-
} catch (
|
|
2416
|
-
console.error("检查表格名称时出现错误:",
|
|
2415
|
+
await il({ name: C.name });
|
|
2416
|
+
} catch (a) {
|
|
2417
|
+
console.error("检查表格名称时出现错误:", a), Te.error("检查表格名称时出现错误,请稍后重试。");
|
|
2417
2418
|
}
|
|
2418
2419
|
try {
|
|
2419
|
-
const
|
|
2420
|
-
|
|
2421
|
-
e.value[
|
|
2420
|
+
const a = await ul(e.value.table.user, C.name);
|
|
2421
|
+
a && a.forEach((p) => {
|
|
2422
|
+
e.value[p.key] && (e.value[p.key].width = p.width, e.value[p.key].showCol = p.showCol, e.value[p.key].sort = p.sort);
|
|
2422
2423
|
});
|
|
2423
|
-
} catch (
|
|
2424
|
-
console.error("Error fetching table column settings:",
|
|
2424
|
+
} catch (a) {
|
|
2425
|
+
console.error("Error fetching table column settings:", a);
|
|
2425
2426
|
}
|
|
2426
2427
|
e.value.table.autoWatch || e.value.table.load();
|
|
2427
|
-
}), (l,
|
|
2428
|
-
var ze,
|
|
2429
|
-
const
|
|
2430
|
-
return
|
|
2428
|
+
}), (l, a) => {
|
|
2429
|
+
var ze, nt, st, it, dt;
|
|
2430
|
+
const p = j("el-button-group"), x = j("el-table-column"), G = j("el-table"), Q = j("el-pagination"), re = j("el-icon"), Se = j("el-dialog"), Pe = j("el-drawer");
|
|
2431
|
+
return r(), q(P, null, [
|
|
2431
2432
|
J("div", vl, [
|
|
2432
|
-
((
|
|
2433
|
-
|
|
2433
|
+
((nt = (ze = e.value) == null ? void 0 : ze.query) == null ? void 0 : nt.hidden) != !0 ? (r(), q("div", yl, [
|
|
2434
|
+
m(l.$slots, "query", {}, () => [
|
|
2434
2435
|
Z(Jt, {
|
|
2435
2436
|
modelValue: e.value,
|
|
2436
|
-
"onUpdate:modelValue":
|
|
2437
|
-
onQuery:
|
|
2438
|
-
onReset:
|
|
2437
|
+
"onUpdate:modelValue": a[0] || (a[0] = (U) => e.value = U),
|
|
2438
|
+
onQuery: f,
|
|
2439
|
+
onReset: ve
|
|
2439
2440
|
}, fe({
|
|
2440
|
-
"q-btns":
|
|
2441
|
-
|
|
2442
|
-
(
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
(
|
|
2446
|
-
|
|
2441
|
+
"q-btns": v(() => [
|
|
2442
|
+
m(l.$slots, "q-btns", {}, () => [
|
|
2443
|
+
(r(!0), q(P, null, I(O(["add", "download", "setting"]), (U, le) => (r(), q(P, null, [
|
|
2444
|
+
le == "default" ? (r(!0), q(P, { key: 0 }, I(U, (w) => (r(), q(P, null, [
|
|
2445
|
+
m(l.$slots, w.name + "-left", {}, void 0, !0),
|
|
2446
|
+
(w.name === "control-add" ? w.attr.auth() && w.attr.inline === !1 : w.attr.auth()) ? m(l.$slots, w.name, { key: 0 }, () => [
|
|
2447
|
+
w.label ? (r(), S(L(_e), F({
|
|
2447
2448
|
key: 0,
|
|
2448
2449
|
ref_for: !0
|
|
2449
|
-
},
|
|
2450
|
-
onClick: (W) =>
|
|
2450
|
+
}, w.attr, {
|
|
2451
|
+
onClick: (W) => w.func(e.value, $.value)
|
|
2451
2452
|
}), {
|
|
2452
|
-
default:
|
|
2453
|
-
we(Ee(
|
|
2453
|
+
default: v(() => [
|
|
2454
|
+
we(Ee(w.label), 1)
|
|
2454
2455
|
]),
|
|
2455
2456
|
_: 2
|
|
2456
|
-
}, 1040, ["onClick"])) : (
|
|
2457
|
+
}, 1040, ["onClick"])) : (r(), S(L(_e), F({
|
|
2457
2458
|
key: 1,
|
|
2458
2459
|
ref_for: !0
|
|
2459
|
-
},
|
|
2460
|
-
onClick: (W) =>
|
|
2460
|
+
}, w.attr, {
|
|
2461
|
+
onClick: (W) => w.func(e.value, $.value)
|
|
2461
2462
|
}), null, 16, ["onClick"]))
|
|
2462
2463
|
], !0) : $e("", !0),
|
|
2463
|
-
|
|
2464
|
-
], 64))), 256)) : (
|
|
2465
|
-
default:
|
|
2466
|
-
(
|
|
2467
|
-
|
|
2468
|
-
(
|
|
2469
|
-
|
|
2464
|
+
m(l.$slots, w.name + "-right", {}, void 0, !0)
|
|
2465
|
+
], 64))), 256)) : (r(), S(p, { key: 1 }, {
|
|
2466
|
+
default: v(() => [
|
|
2467
|
+
(r(!0), q(P, null, I(U, (w) => (r(), q(P, null, [
|
|
2468
|
+
m(l.$slots, w.name + "-left", {}, void 0, !0),
|
|
2469
|
+
(w.name === "control-add" ? w.attr.auth() && w.attr.inline === !1 : w.attr.auth()) ? m(l.$slots, w.name, { key: 0 }, () => [
|
|
2470
|
+
w.label ? (r(), S(L(_e), F({
|
|
2470
2471
|
key: 0,
|
|
2471
2472
|
ref_for: !0
|
|
2472
|
-
},
|
|
2473
|
-
onClick: (W) =>
|
|
2473
|
+
}, w.attr, {
|
|
2474
|
+
onClick: (W) => w.func(e.value, $.value)
|
|
2474
2475
|
}), {
|
|
2475
|
-
default:
|
|
2476
|
-
we(Ee(
|
|
2476
|
+
default: v(() => [
|
|
2477
|
+
we(Ee(w.label), 1)
|
|
2477
2478
|
]),
|
|
2478
2479
|
_: 2
|
|
2479
|
-
}, 1040, ["onClick"])) : (
|
|
2480
|
+
}, 1040, ["onClick"])) : (r(), S(L(_e), F({
|
|
2480
2481
|
key: 1,
|
|
2481
2482
|
ref_for: !0
|
|
2482
|
-
},
|
|
2483
|
-
onClick: (W) =>
|
|
2483
|
+
}, w.attr, {
|
|
2484
|
+
onClick: (W) => w.func(e.value, $.value)
|
|
2484
2485
|
}), null, 16, ["onClick"]))
|
|
2485
2486
|
], !0) : $e("", !0),
|
|
2486
|
-
|
|
2487
|
+
m(l.$slots, w.name + "-right", {}, void 0, !0)
|
|
2487
2488
|
], 64))), 256))
|
|
2488
2489
|
]),
|
|
2489
2490
|
_: 2
|
|
@@ -2493,224 +2494,224 @@ const dl = {
|
|
|
2493
2494
|
]),
|
|
2494
2495
|
_: 2
|
|
2495
2496
|
}, [
|
|
2496
|
-
|
|
2497
|
-
name:
|
|
2498
|
-
fn:
|
|
2499
|
-
|
|
2497
|
+
I(l.$slots, (U, le, w) => ({
|
|
2498
|
+
name: le,
|
|
2499
|
+
fn: v((W) => [
|
|
2500
|
+
m(l.$slots, le, { model: e.value }, void 0, !0)
|
|
2500
2501
|
])
|
|
2501
2502
|
}))
|
|
2502
2503
|
]), 1032, ["modelValue"])
|
|
2503
2504
|
], !0)
|
|
2504
2505
|
])) : $e("", !0),
|
|
2505
2506
|
J("div", hl, [
|
|
2506
|
-
Z(G,
|
|
2507
|
-
"summary-method": (
|
|
2508
|
-
onSortChange:
|
|
2509
|
-
var
|
|
2510
|
-
e.value.table.onSortChange(
|
|
2507
|
+
Z(G, F({ ...l.$attrs, ...L(ke)(e.value.table, (U) => !["dblclickType", "page"].includes(U)) }, {
|
|
2508
|
+
"summary-method": (U) => e.value.table["summary-method"](U, { fields: R.value, sums: ae.value }),
|
|
2509
|
+
onSortChange: a[1] || (a[1] = (U) => {
|
|
2510
|
+
var le, w;
|
|
2511
|
+
e.value.table.onSortChange(U, i.value), ((le = U == null ? void 0 : U.column) == null ? void 0 : le.sortable) === "custom" && ((w = e.value.table) == null || w.load());
|
|
2511
2512
|
})
|
|
2512
2513
|
}), {
|
|
2513
|
-
append:
|
|
2514
|
-
|
|
2514
|
+
append: v(() => [
|
|
2515
|
+
m(l.$slots, "append", {}, void 0, !0)
|
|
2515
2516
|
]),
|
|
2516
|
-
empty:
|
|
2517
|
-
|
|
2517
|
+
empty: v(() => [
|
|
2518
|
+
m(l.$slots, "empty", {}, void 0, !0)
|
|
2518
2519
|
]),
|
|
2519
|
-
default:
|
|
2520
|
-
|
|
2521
|
-
(
|
|
2522
|
-
prop:
|
|
2523
|
-
key:
|
|
2520
|
+
default: v(() => [
|
|
2521
|
+
m(l.$slots, "default", {}, () => [
|
|
2522
|
+
(r(!0), q(P, null, I(H.value, (U, le) => (r(), S(x, F({
|
|
2523
|
+
prop: le,
|
|
2524
|
+
key: le,
|
|
2524
2525
|
ref_for: !0
|
|
2525
|
-
}, { ...e.value.tableColumns, ...
|
|
2526
|
-
header:
|
|
2527
|
-
|
|
2526
|
+
}, { ...e.value.tableColumns, ...L(ke)(U, (w) => T.includes(w)) }, { "header-align": "center" }), fe({
|
|
2527
|
+
header: v(({ column: w, $index: W }) => [
|
|
2528
|
+
le == "control" ? m(l.$slots, `${le}-header`, {
|
|
2528
2529
|
key: 0,
|
|
2529
|
-
column:
|
|
2530
|
+
column: w,
|
|
2530
2531
|
$index: W
|
|
2531
2532
|
}, () => [
|
|
2532
|
-
|
|
2533
|
-
], !0) :
|
|
2533
|
+
a[10] || (a[10] = J("span", null, "操作", -1))
|
|
2534
|
+
], !0) : m(l.$slots, `${le}-header`, {
|
|
2534
2535
|
key: 1,
|
|
2535
|
-
column:
|
|
2536
|
+
column: w,
|
|
2536
2537
|
$index: W
|
|
2537
2538
|
}, void 0, !0)
|
|
2538
2539
|
]),
|
|
2539
|
-
"filter-icon":
|
|
2540
|
-
|
|
2540
|
+
"filter-icon": v((w) => [
|
|
2541
|
+
m(l.$slots, `${le}-filter-icon`, { data: w }, void 0, !0)
|
|
2541
2542
|
]),
|
|
2542
2543
|
_: 2
|
|
2543
2544
|
}, [
|
|
2544
|
-
|
|
2545
|
+
U.type === "image" ? {
|
|
2545
2546
|
name: "default",
|
|
2546
|
-
fn:
|
|
2547
|
-
|
|
2548
|
-
row:
|
|
2547
|
+
fn: v(({ row: w, column: W, $index: ue }) => [
|
|
2548
|
+
m(l.$slots, `${le}`, {
|
|
2549
|
+
row: w,
|
|
2549
2550
|
column: W,
|
|
2550
|
-
$index:
|
|
2551
|
+
$index: ue
|
|
2551
2552
|
}, () => [
|
|
2552
|
-
J("img",
|
|
2553
|
+
J("img", F({
|
|
2553
2554
|
style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
|
|
2554
|
-
src:
|
|
2555
|
+
src: w[le],
|
|
2555
2556
|
ref_for: !0
|
|
2556
|
-
},
|
|
2557
|
+
}, U), null, 16, gl)
|
|
2557
2558
|
], !0)
|
|
2558
2559
|
]),
|
|
2559
2560
|
key: "0"
|
|
2560
|
-
} :
|
|
2561
|
+
} : U.type === "expand" ? {
|
|
2561
2562
|
name: "default",
|
|
2562
|
-
fn:
|
|
2563
|
-
|
|
2564
|
-
row:
|
|
2563
|
+
fn: v(({ row: w, column: W, $index: ue }) => [
|
|
2564
|
+
m(l.$slots, `${le}`, {
|
|
2565
|
+
row: w,
|
|
2565
2566
|
column: W,
|
|
2566
|
-
$index:
|
|
2567
|
+
$index: ue
|
|
2567
2568
|
}, void 0, !0)
|
|
2568
2569
|
]),
|
|
2569
2570
|
key: "1"
|
|
2570
|
-
} :
|
|
2571
|
+
} : U.type == "control" ? {
|
|
2571
2572
|
name: "default",
|
|
2572
|
-
fn:
|
|
2573
|
+
fn: v(({ row: w, column: W, $index: ue }) => {
|
|
2573
2574
|
var je, Le;
|
|
2574
2575
|
return [
|
|
2575
2576
|
J("div", {
|
|
2576
2577
|
class: gt(["control", (je = e.value.control) == null ? void 0 : je.class]),
|
|
2577
2578
|
style: Oe((Le = e.value.control) == null ? void 0 : Le.style)
|
|
2578
2579
|
}, [
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
row:
|
|
2580
|
+
m(l.$slots, "control", {}, () => [
|
|
2581
|
+
m(l.$slots, "control-left", {
|
|
2582
|
+
row: w,
|
|
2582
2583
|
column: W,
|
|
2583
|
-
$index:
|
|
2584
|
+
$index: ue
|
|
2584
2585
|
}, void 0, !0),
|
|
2585
|
-
(
|
|
2586
|
-
Je == "default" ? (
|
|
2587
|
-
|
|
2588
|
-
row:
|
|
2586
|
+
(r(!0), q(P, null, I(O(["view", "edit", "delete", "save"]), (Re, Je) => (r(), q(P, null, [
|
|
2587
|
+
Je == "default" ? (r(!0), q(P, { key: 0 }, I(Re, (ge) => (r(), q(P, null, [
|
|
2588
|
+
m(l.$slots, ge.name + "-left", {
|
|
2589
|
+
row: w,
|
|
2589
2590
|
column: W,
|
|
2590
|
-
$index:
|
|
2591
|
+
$index: ue
|
|
2591
2592
|
}, void 0, !0),
|
|
2592
|
-
ge.attr.auth(
|
|
2593
|
+
ge.attr.auth(w, W, ue) ? m(l.$slots, ge.name, {
|
|
2593
2594
|
key: 0,
|
|
2594
|
-
row:
|
|
2595
|
+
row: w,
|
|
2595
2596
|
column: W,
|
|
2596
|
-
$index:
|
|
2597
|
+
$index: ue
|
|
2597
2598
|
}, () => [
|
|
2598
|
-
ge.label ? (
|
|
2599
|
+
ge.label ? (r(), S(L(_e), F({
|
|
2599
2600
|
key: 0,
|
|
2600
2601
|
ref_for: !0
|
|
2601
2602
|
}, ge.attr, {
|
|
2602
|
-
onClick: (Ze) => ge.func(
|
|
2603
|
+
onClick: (Ze) => ge.func(w, W, ue, e.value)
|
|
2603
2604
|
}), {
|
|
2604
|
-
default:
|
|
2605
|
-
we(Ee(
|
|
2605
|
+
default: v(() => [
|
|
2606
|
+
we(Ee(ye(ge, ue)), 1)
|
|
2606
2607
|
]),
|
|
2607
2608
|
_: 2
|
|
2608
|
-
}, 1040, ["onClick"])) : (
|
|
2609
|
+
}, 1040, ["onClick"])) : (r(), S(L(_e), F({
|
|
2609
2610
|
key: 1,
|
|
2610
2611
|
ref_for: !0
|
|
2611
2612
|
}, ge.attr, {
|
|
2612
|
-
onClick: (Ze) => ge.func(
|
|
2613
|
+
onClick: (Ze) => ge.func(w, W, ue, e.value)
|
|
2613
2614
|
}), null, 16, ["onClick"]))
|
|
2614
2615
|
], !0) : $e("", !0),
|
|
2615
|
-
|
|
2616
|
-
row:
|
|
2616
|
+
m(l.$slots, ge.name + "-right", {
|
|
2617
|
+
row: w,
|
|
2617
2618
|
column: W,
|
|
2618
|
-
$index:
|
|
2619
|
+
$index: ue
|
|
2619
2620
|
}, void 0, !0)
|
|
2620
|
-
], 64))), 256)) : (
|
|
2621
|
-
default:
|
|
2622
|
-
(
|
|
2623
|
-
|
|
2624
|
-
row:
|
|
2621
|
+
], 64))), 256)) : (r(), S(p, { key: 1 }, {
|
|
2622
|
+
default: v(() => [
|
|
2623
|
+
(r(!0), q(P, null, I(Re, (ge) => (r(), q(P, null, [
|
|
2624
|
+
m(l.$slots, ge.name + "-left", {
|
|
2625
|
+
row: w,
|
|
2625
2626
|
column: W,
|
|
2626
|
-
$index:
|
|
2627
|
+
$index: ue
|
|
2627
2628
|
}, void 0, !0),
|
|
2628
|
-
ge.attr.auth(
|
|
2629
|
+
ge.attr.auth(w, W, ue) ? m(l.$slots, ge.name, {
|
|
2629
2630
|
key: 0,
|
|
2630
|
-
row:
|
|
2631
|
+
row: w,
|
|
2631
2632
|
column: W,
|
|
2632
|
-
$index:
|
|
2633
|
+
$index: ue
|
|
2633
2634
|
}, () => [
|
|
2634
|
-
ge.label ? (
|
|
2635
|
+
ge.label ? (r(), S(L(_e), F({
|
|
2635
2636
|
key: 0,
|
|
2636
2637
|
ref_for: !0
|
|
2637
2638
|
}, ge.attr, {
|
|
2638
|
-
onClick: (Ze) => ge.func(
|
|
2639
|
+
onClick: (Ze) => ge.func(w, W, ue, e.value)
|
|
2639
2640
|
}), {
|
|
2640
|
-
default:
|
|
2641
|
-
we(Ee(
|
|
2641
|
+
default: v(() => [
|
|
2642
|
+
we(Ee(ye(ge, ue)), 1)
|
|
2642
2643
|
]),
|
|
2643
2644
|
_: 2
|
|
2644
|
-
}, 1040, ["onClick"])) : (
|
|
2645
|
+
}, 1040, ["onClick"])) : (r(), S(L(_e), F({
|
|
2645
2646
|
key: 1,
|
|
2646
2647
|
ref_for: !0
|
|
2647
2648
|
}, ge.attr, {
|
|
2648
|
-
onClick: (Ze) => ge.func(
|
|
2649
|
+
onClick: (Ze) => ge.func(w, W, ue, e.value)
|
|
2649
2650
|
}), null, 16, ["onClick"]))
|
|
2650
2651
|
], !0) : $e("", !0),
|
|
2651
|
-
|
|
2652
|
-
row:
|
|
2652
|
+
m(l.$slots, ge.name + "-right", {
|
|
2653
|
+
row: w,
|
|
2653
2654
|
column: W,
|
|
2654
|
-
$index:
|
|
2655
|
+
$index: ue
|
|
2655
2656
|
}, void 0, !0)
|
|
2656
2657
|
], 64))), 256))
|
|
2657
2658
|
]),
|
|
2658
2659
|
_: 2
|
|
2659
2660
|
}, 1024))
|
|
2660
2661
|
], 64))), 256)),
|
|
2661
|
-
|
|
2662
|
-
row:
|
|
2662
|
+
m(l.$slots, "control-right", {
|
|
2663
|
+
row: w,
|
|
2663
2664
|
column: W,
|
|
2664
|
-
$index:
|
|
2665
|
+
$index: ue
|
|
2665
2666
|
}, void 0, !0)
|
|
2666
2667
|
], !0)
|
|
2667
2668
|
], 6)
|
|
2668
2669
|
];
|
|
2669
2670
|
}),
|
|
2670
2671
|
key: "2"
|
|
2671
|
-
} :
|
|
2672
|
+
} : U.type != "selection" && U.type != "index" ? {
|
|
2672
2673
|
name: "default",
|
|
2673
|
-
fn:
|
|
2674
|
-
he(
|
|
2674
|
+
fn: v(({ row: w, column: W, $index: ue }) => [
|
|
2675
|
+
he(U, w, W, ue) && ue != -1 ? m(l.$slots, `${le}`, {
|
|
2675
2676
|
key: 0,
|
|
2676
|
-
row:
|
|
2677
|
+
row: w,
|
|
2677
2678
|
column: W,
|
|
2678
|
-
$index:
|
|
2679
|
+
$index: ue
|
|
2679
2680
|
}, () => {
|
|
2680
2681
|
var je;
|
|
2681
2682
|
return [
|
|
2682
|
-
(
|
|
2683
|
-
modelValue:
|
|
2684
|
-
"onUpdate:modelValue": (Le) =>
|
|
2685
|
-
item:
|
|
2686
|
-
ctrlKey:
|
|
2687
|
-
key:
|
|
2688
|
-
ctrlType: (je =
|
|
2683
|
+
(r(), S(Xe, {
|
|
2684
|
+
modelValue: w[le],
|
|
2685
|
+
"onUpdate:modelValue": (Le) => w[le] = Le,
|
|
2686
|
+
item: U == null ? void 0 : U.table(w, W, ue),
|
|
2687
|
+
ctrlKey: le,
|
|
2688
|
+
key: le + "-" + ue,
|
|
2689
|
+
ctrlType: (je = U.table(w, W, ue)) != null && je.type ? U.table(w, W, ue).type : U.type,
|
|
2689
2690
|
model: e.value,
|
|
2690
2691
|
class: "g-ctrl-container",
|
|
2691
2692
|
t: "t",
|
|
2692
|
-
formInfo:
|
|
2693
|
+
formInfo: w
|
|
2693
2694
|
}, fe({ _: 2 }, [
|
|
2694
|
-
|
|
2695
|
+
I(l.$slots, (Le, Re) => ({
|
|
2695
2696
|
name: Re,
|
|
2696
|
-
fn:
|
|
2697
|
-
|
|
2697
|
+
fn: v((Je) => [
|
|
2698
|
+
m(l.$slots, Re, {
|
|
2698
2699
|
data: Je,
|
|
2699
|
-
item:
|
|
2700
|
+
item: U,
|
|
2700
2701
|
model: e.value
|
|
2701
2702
|
}, void 0, !0)
|
|
2702
2703
|
])
|
|
2703
2704
|
}))
|
|
2704
2705
|
]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
|
|
2705
2706
|
];
|
|
2706
|
-
}, !0) :
|
|
2707
|
+
}, !0) : m(l.$slots, `${le}`, {
|
|
2707
2708
|
key: 1,
|
|
2708
|
-
row:
|
|
2709
|
+
row: w,
|
|
2709
2710
|
column: W,
|
|
2710
|
-
$index:
|
|
2711
|
+
$index: ue
|
|
2711
2712
|
}, () => [
|
|
2712
2713
|
J("div", {
|
|
2713
|
-
innerHTML:
|
|
2714
|
+
innerHTML: pe(U, W.formatter(w, W, w[le], ue))
|
|
2714
2715
|
}, null, 8, bl)
|
|
2715
2716
|
], !0)
|
|
2716
2717
|
]),
|
|
@@ -2721,62 +2722,62 @@ const dl = {
|
|
|
2721
2722
|
]),
|
|
2722
2723
|
_: 3
|
|
2723
2724
|
}, 16, ["summary-method"]),
|
|
2724
|
-
(dt = (it = (st = e.value) == null ? void 0 : st.table) == null ? void 0 : it.page) != null && dt.hidden ? $e("", !0) :
|
|
2725
|
-
Z(Q,
|
|
2725
|
+
(dt = (it = (st = e.value) == null ? void 0 : st.table) == null ? void 0 : it.page) != null && dt.hidden ? $e("", !0) : m(l.$slots, "page", { key: 0 }, () => [
|
|
2726
|
+
Z(Q, F({
|
|
2726
2727
|
"page-size": e.value.table.page.pageSize,
|
|
2727
|
-
"onUpdate:pageSize":
|
|
2728
|
+
"onUpdate:pageSize": a[2] || (a[2] = (U) => e.value.table.page.pageSize = U),
|
|
2728
2729
|
"current-page": e.value.table.page.currentPage,
|
|
2729
|
-
"onUpdate:currentPage":
|
|
2730
|
+
"onUpdate:currentPage": a[3] || (a[3] = (U) => e.value.table.page.currentPage = U)
|
|
2730
2731
|
}, e.value.table.page), {
|
|
2731
|
-
default:
|
|
2732
|
-
|
|
2732
|
+
default: v(() => [
|
|
2733
|
+
m(l.$slots, "table-page", {}, void 0, !0)
|
|
2733
2734
|
]),
|
|
2734
2735
|
_: 3
|
|
2735
2736
|
}, 16, ["page-size", "current-page"])
|
|
2736
2737
|
], !0)
|
|
2737
2738
|
])
|
|
2738
2739
|
]),
|
|
2739
|
-
e.value.dialog.mode == "dialog" &&
|
|
2740
|
-
Z(Se,
|
|
2741
|
-
modelValue:
|
|
2742
|
-
"onUpdate:modelValue":
|
|
2740
|
+
e.value.dialog.mode == "dialog" && M.value ? (r(), q("div", $l, [
|
|
2741
|
+
Z(Se, F({
|
|
2742
|
+
modelValue: M.value,
|
|
2743
|
+
"onUpdate:modelValue": a[7] || (a[7] = (U) => M.value = U),
|
|
2743
2744
|
fullscreen: e.value.dialog.fullScreen
|
|
2744
|
-
},
|
|
2745
|
-
width:
|
|
2745
|
+
}, L(ke)(e.value.dialog, (U) => !["size"].includes(U)), {
|
|
2746
|
+
width: L(wt)(e.value.dialog.width) + 35
|
|
2746
2747
|
}), {
|
|
2747
|
-
header:
|
|
2748
|
-
var
|
|
2748
|
+
header: v(() => {
|
|
2749
|
+
var U, le, w, W;
|
|
2749
2750
|
return [
|
|
2750
2751
|
J("div", El, [
|
|
2751
2752
|
J("div", wl, [
|
|
2752
|
-
|
|
2753
|
+
m(l.$slots, "f-header", {}, () => [
|
|
2753
2754
|
J("div", null, Ee(e.value.dialog.title), 1)
|
|
2754
2755
|
], !0)
|
|
2755
2756
|
]),
|
|
2756
|
-
((
|
|
2757
|
+
((le = (U = e.value) == null ? void 0 : U.dialog) == null ? void 0 : le.fullScreen) === !1 ? (r(), q("div", {
|
|
2757
2758
|
key: 0,
|
|
2758
|
-
onClick:
|
|
2759
|
+
onClick: a[4] || (a[4] = (ue) => {
|
|
2759
2760
|
e.value.dialog.fullScreen = !0;
|
|
2760
2761
|
}),
|
|
2761
2762
|
class: "max"
|
|
2762
2763
|
}, [
|
|
2763
|
-
Z(
|
|
2764
|
-
default:
|
|
2765
|
-
Z(
|
|
2764
|
+
Z(re, null, {
|
|
2765
|
+
default: v(() => [
|
|
2766
|
+
Z(L(Ot))
|
|
2766
2767
|
]),
|
|
2767
2768
|
_: 1
|
|
2768
2769
|
})
|
|
2769
2770
|
])) : $e("", !0),
|
|
2770
|
-
((W = (
|
|
2771
|
+
((W = (w = e.value) == null ? void 0 : w.dialog) == null ? void 0 : W.fullScreen) === !0 ? (r(), q("div", {
|
|
2771
2772
|
key: 1,
|
|
2772
|
-
onClick:
|
|
2773
|
+
onClick: a[5] || (a[5] = (ue) => {
|
|
2773
2774
|
e.value.dialog.fullScreen = !1;
|
|
2774
2775
|
}),
|
|
2775
2776
|
class: "max"
|
|
2776
2777
|
}, [
|
|
2777
|
-
Z(
|
|
2778
|
-
default:
|
|
2779
|
-
Z(
|
|
2778
|
+
Z(re, null, {
|
|
2779
|
+
default: v(() => [
|
|
2780
|
+
Z(L(At))
|
|
2780
2781
|
]),
|
|
2781
2782
|
_: 1
|
|
2782
2783
|
})
|
|
@@ -2784,19 +2785,19 @@ const dl = {
|
|
|
2784
2785
|
])
|
|
2785
2786
|
];
|
|
2786
2787
|
}),
|
|
2787
|
-
default:
|
|
2788
|
+
default: v(() => [
|
|
2788
2789
|
J("div", _l, [
|
|
2789
|
-
|
|
2790
|
+
m(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
2790
2791
|
Z(tt, {
|
|
2791
2792
|
modelValue: e.value,
|
|
2792
|
-
"onUpdate:modelValue":
|
|
2793
|
+
"onUpdate:modelValue": a[6] || (a[6] = (U) => e.value = U),
|
|
2793
2794
|
onSubmit: ne,
|
|
2794
|
-
onReset:
|
|
2795
|
+
onReset: A
|
|
2795
2796
|
}, fe({ _: 2 }, [
|
|
2796
|
-
|
|
2797
|
-
name:
|
|
2798
|
-
fn:
|
|
2799
|
-
|
|
2797
|
+
I(l.$slots, (U, le, w) => ({
|
|
2798
|
+
name: le,
|
|
2799
|
+
fn: v((W) => [
|
|
2800
|
+
m(l.$slots, le, { model: W }, void 0, !0)
|
|
2800
2801
|
])
|
|
2801
2802
|
}))
|
|
2802
2803
|
]), 1032, ["modelValue"])
|
|
@@ -2806,32 +2807,32 @@ const dl = {
|
|
|
2806
2807
|
_: 3
|
|
2807
2808
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2808
2809
|
])) : $e("", !0),
|
|
2809
|
-
e.value.dialog.mode == "drawer" &&
|
|
2810
|
-
Z(Pe,
|
|
2811
|
-
modelValue:
|
|
2812
|
-
"onUpdate:modelValue":
|
|
2813
|
-
},
|
|
2814
|
-
header:
|
|
2810
|
+
e.value.dialog.mode == "drawer" && M.value ? (r(), q("div", kl, [
|
|
2811
|
+
Z(Pe, F({
|
|
2812
|
+
modelValue: M.value,
|
|
2813
|
+
"onUpdate:modelValue": a[9] || (a[9] = (U) => M.value = U)
|
|
2814
|
+
}, L(ke)(e.value.dialog, (U) => !["width"].includes(U))), {
|
|
2815
|
+
header: v(() => [
|
|
2815
2816
|
J("div", Cl, [
|
|
2816
2817
|
J("div", Dl, [
|
|
2817
|
-
|
|
2818
|
+
m(l.$slots, "f-header", {}, () => [
|
|
2818
2819
|
J("div", null, Ee(e.value.dialog.title), 1)
|
|
2819
2820
|
], !0)
|
|
2820
2821
|
])
|
|
2821
2822
|
])
|
|
2822
2823
|
]),
|
|
2823
|
-
default:
|
|
2824
|
-
|
|
2824
|
+
default: v(() => [
|
|
2825
|
+
m(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
2825
2826
|
Z(tt, {
|
|
2826
2827
|
modelValue: e.value,
|
|
2827
|
-
"onUpdate:modelValue":
|
|
2828
|
+
"onUpdate:modelValue": a[8] || (a[8] = (U) => e.value = U),
|
|
2828
2829
|
onSubmit: ne,
|
|
2829
|
-
onReset:
|
|
2830
|
+
onReset: A
|
|
2830
2831
|
}, fe({ _: 2 }, [
|
|
2831
|
-
|
|
2832
|
-
name:
|
|
2833
|
-
fn:
|
|
2834
|
-
|
|
2832
|
+
I(l.$slots, (U, le, w) => ({
|
|
2833
|
+
name: le,
|
|
2834
|
+
fn: v((W) => [
|
|
2835
|
+
m(l.$slots, le, { model: W }, void 0, !0)
|
|
2835
2836
|
])
|
|
2836
2837
|
}))
|
|
2837
2838
|
]), 1032, ["modelValue"])
|
|
@@ -2843,7 +2844,7 @@ const dl = {
|
|
|
2843
2844
|
], 64);
|
|
2844
2845
|
};
|
|
2845
2846
|
}
|
|
2846
|
-
}), Ml = /* @__PURE__ */ Ue(Vl, [["__scopeId", "data-v-
|
|
2847
|
+
}), Ml = /* @__PURE__ */ Ue(Vl, [["__scopeId", "data-v-491299e5"]]), Tl = { class: "g-tree-table" }, Fl = { class: "g-tree-container" }, Sl = { class: "g-tree-table-container" }, ql = /* @__PURE__ */ Object.assign({
|
|
2847
2848
|
name: "g-tree-table",
|
|
2848
2849
|
inheritAttrs: !1
|
|
2849
2850
|
}, {
|
|
@@ -2853,71 +2854,71 @@ const dl = {
|
|
|
2853
2854
|
modelModifiers: {}
|
|
2854
2855
|
},
|
|
2855
2856
|
emits: /* @__PURE__ */ Be(["load"], ["update:modelValue"]),
|
|
2856
|
-
setup(
|
|
2857
|
-
const t =
|
|
2858
|
-
var
|
|
2857
|
+
setup(c, { emit: d }) {
|
|
2858
|
+
const t = d, e = Ie(c, "modelValue"), o = ut(), i = me((o == null ? void 0 : o.width) || "180px"), Y = me((o == null ? void 0 : o.search) === void 0 ? !0 : o == null ? void 0 : o.search), M = me({}), T = me(""), $ = me(null), C = (R, D) => {
|
|
2859
|
+
var _, K;
|
|
2859
2860
|
if (!R) return !0;
|
|
2860
|
-
const
|
|
2861
|
-
return
|
|
2862
|
-
}, z = (R,
|
|
2863
|
-
t("load",
|
|
2864
|
-
},
|
|
2865
|
-
|
|
2861
|
+
const g = ((K = (_ = o.tree) == null ? void 0 : _.props) == null ? void 0 : K.label) || "label";
|
|
2862
|
+
return D[g].includes(R);
|
|
2863
|
+
}, z = (R, D) => {
|
|
2864
|
+
t("load", M.value, R, D);
|
|
2865
|
+
}, ae = (R) => {
|
|
2866
|
+
M.value = R, e.value.table.load();
|
|
2866
2867
|
};
|
|
2867
|
-
return qt(
|
|
2868
|
-
|
|
2869
|
-
}), (R,
|
|
2870
|
-
const
|
|
2871
|
-
return
|
|
2868
|
+
return qt(T, (R) => {
|
|
2869
|
+
$.value.filter(R);
|
|
2870
|
+
}), (R, D) => {
|
|
2871
|
+
const g = j("el-input"), _ = j("el-tree"), K = j("g-table");
|
|
2872
|
+
return r(), q("div", Tl, [
|
|
2872
2873
|
J("div", {
|
|
2873
2874
|
class: "g-tree-left",
|
|
2874
|
-
style: Oe({ width:
|
|
2875
|
+
style: Oe({ width: i.value })
|
|
2875
2876
|
}, [
|
|
2876
|
-
|
|
2877
|
+
Y.value ? (r(), S(g, {
|
|
2877
2878
|
key: 0,
|
|
2878
|
-
modelValue:
|
|
2879
|
-
"onUpdate:modelValue":
|
|
2879
|
+
modelValue: T.value,
|
|
2880
|
+
"onUpdate:modelValue": D[0] || (D[0] = (oe) => T.value = oe),
|
|
2880
2881
|
style: { width: "100%", padding: "0 10px", "box-sizing": "border-box" },
|
|
2881
2882
|
placeholder: "输入节点查询",
|
|
2882
2883
|
clearable: ""
|
|
2883
2884
|
}, null, 8, ["modelValue"])) : $e("", !0),
|
|
2884
2885
|
J("div", Fl, [
|
|
2885
|
-
Z(
|
|
2886
|
-
style: { width:
|
|
2887
|
-
"filter-node-method":
|
|
2886
|
+
Z(_, F({
|
|
2887
|
+
style: { width: i.value },
|
|
2888
|
+
"filter-node-method": C,
|
|
2888
2889
|
"expand-on-click-node": !1,
|
|
2889
2890
|
ref_key: "treeRef",
|
|
2890
|
-
ref:
|
|
2891
|
-
onNodeClick:
|
|
2891
|
+
ref: $,
|
|
2892
|
+
onNodeClick: ae
|
|
2892
2893
|
}, R.$attrs.tree), fe({
|
|
2893
|
-
default:
|
|
2894
|
-
|
|
2895
|
-
node:
|
|
2896
|
-
data:
|
|
2894
|
+
default: v(({ node: oe, data: te }) => [
|
|
2895
|
+
m(R.$slots, "tree", {
|
|
2896
|
+
node: oe,
|
|
2897
|
+
data: te
|
|
2897
2898
|
}, () => [
|
|
2898
|
-
J("span", null, Ee(
|
|
2899
|
+
J("span", null, Ee(oe.label), 1)
|
|
2899
2900
|
], !0)
|
|
2900
2901
|
]),
|
|
2901
2902
|
_: 2
|
|
2902
2903
|
}, [
|
|
2903
|
-
|
|
2904
|
-
name:
|
|
2905
|
-
fn:
|
|
2906
|
-
|
|
2904
|
+
I(R.$slots, (oe, te, de) => ({
|
|
2905
|
+
name: te,
|
|
2906
|
+
fn: v((pe) => [
|
|
2907
|
+
m(R.$slots, te, { data: pe }, void 0, !0)
|
|
2907
2908
|
])
|
|
2908
2909
|
}))
|
|
2909
2910
|
]), 1040, ["style"])
|
|
2910
2911
|
])
|
|
2911
2912
|
], 4),
|
|
2912
2913
|
J("div", Sl, [
|
|
2913
|
-
Z(
|
|
2914
|
+
Z(K, F({
|
|
2914
2915
|
modelValue: e.value,
|
|
2915
|
-
"onUpdate:modelValue":
|
|
2916
|
+
"onUpdate:modelValue": D[1] || (D[1] = (oe) => e.value = oe)
|
|
2916
2917
|
}, R.$attrs, { onLoad: z }), fe({ _: 2 }, [
|
|
2917
|
-
|
|
2918
|
-
name:
|
|
2919
|
-
fn:
|
|
2920
|
-
|
|
2918
|
+
I(R.$slots, (oe, te, de) => ({
|
|
2919
|
+
name: te,
|
|
2920
|
+
fn: v((pe) => [
|
|
2921
|
+
m(R.$slots, te, { data: pe }, void 0, !0)
|
|
2921
2922
|
])
|
|
2922
2923
|
}))
|
|
2923
2924
|
]), 1040, ["modelValue"])
|
|
@@ -2951,25 +2952,25 @@ const dl = {
|
|
|
2951
2952
|
default: ""
|
|
2952
2953
|
}
|
|
2953
2954
|
},
|
|
2954
|
-
setup(
|
|
2955
|
-
const
|
|
2956
|
-
return (t, e) =>
|
|
2957
|
-
(
|
|
2958
|
-
style: Oe({ width: (
|
|
2959
|
-
key:
|
|
2955
|
+
setup(c) {
|
|
2956
|
+
const d = c;
|
|
2957
|
+
return (t, e) => d.title ? (r(), q("div", Ol, [
|
|
2958
|
+
(r(!0), q(P, null, I(d.columns, (o) => (r(), q("span", {
|
|
2959
|
+
style: Oe({ width: (o == null ? void 0 : o.width) || pt, ...o == null ? void 0 : o.titleStyle, textAlign: (o == null ? void 0 : o.align) || "center" }),
|
|
2960
|
+
key: o.key
|
|
2960
2961
|
}, [
|
|
2961
|
-
|
|
2962
|
-
we(Ee(
|
|
2962
|
+
m(t.$slots, `${c.t}-title-${o.key}`, { col: o }, () => [
|
|
2963
|
+
we(Ee(o.label), 1)
|
|
2963
2964
|
], !0)
|
|
2964
2965
|
], 4))), 128))
|
|
2965
|
-
])) : (
|
|
2966
|
-
(
|
|
2967
|
-
style: Oe({ width: (
|
|
2968
|
-
key:
|
|
2969
|
-
title:
|
|
2966
|
+
])) : (r(), q("div", Al, [
|
|
2967
|
+
(r(!0), q(P, null, I(d.columns, (o) => (r(), q("span", {
|
|
2968
|
+
style: Oe({ width: (o == null ? void 0 : o.width) || pt, textAlign: (o == null ? void 0 : o.align) || "center", ...o == null ? void 0 : o.style }),
|
|
2969
|
+
key: o.key,
|
|
2970
|
+
title: c.data[o.key]
|
|
2970
2971
|
}, [
|
|
2971
|
-
|
|
2972
|
-
we(Ee(
|
|
2972
|
+
m(t.$slots, `${c.t}-option-${o.key}`, { col: o }, () => [
|
|
2973
|
+
we(Ee(c.data[o.key]), 1)
|
|
2973
2974
|
], !0)
|
|
2974
2975
|
], 12, Bl))), 128))
|
|
2975
2976
|
]));
|
|
@@ -2977,119 +2978,119 @@ const dl = {
|
|
|
2977
2978
|
}), Yl = /* @__PURE__ */ Ue(Il, [["__scopeId", "data-v-ba0fcda6"]]), Ul = Object.freeze({}), Et = [Ml, tt, xl, Yl];
|
|
2978
2979
|
let lt = {};
|
|
2979
2980
|
const Gl = {
|
|
2980
|
-
install: (
|
|
2981
|
-
lt = Object.freeze({ ...Ul, ...
|
|
2982
|
-
|
|
2983
|
-
}),
|
|
2981
|
+
install: (c, d = {}) => {
|
|
2982
|
+
lt = Object.freeze({ ...Ul, ...d }), Et.forEach((t) => {
|
|
2983
|
+
c.component(t.name, t);
|
|
2984
|
+
}), c.provide("options", lt), c.config.globalProperties.$openModal = at;
|
|
2984
2985
|
}
|
|
2985
|
-
}, jl = (
|
|
2986
|
+
}, jl = (c) => ({ dialog: kt, drawer: Ct })[c] || null, at = (c = {}, d = "dialog") => {
|
|
2986
2987
|
if (typeof document > "u") return () => {
|
|
2987
2988
|
};
|
|
2988
2989
|
const t = document.createElement("div");
|
|
2989
2990
|
let e = () => {
|
|
2990
2991
|
};
|
|
2991
|
-
const
|
|
2992
|
-
if (!
|
|
2992
|
+
const o = jl(d);
|
|
2993
|
+
if (!o) return () => {
|
|
2993
2994
|
};
|
|
2994
|
-
const
|
|
2995
|
+
const i = me(!0), Y = xt({
|
|
2995
2996
|
setup() {
|
|
2996
2997
|
return e = () => {
|
|
2997
|
-
|
|
2998
|
-
|
|
2998
|
+
i.value = !1, setTimeout(() => {
|
|
2999
|
+
Y.unmount(), t.remove();
|
|
2999
3000
|
}, 300);
|
|
3000
3001
|
}, () => {
|
|
3001
|
-
var
|
|
3002
|
-
return qe(
|
|
3003
|
-
modelValue:
|
|
3004
|
-
"onUpdate:modelValue": (
|
|
3005
|
-
...
|
|
3002
|
+
var M, T, $;
|
|
3003
|
+
return qe(o, {
|
|
3004
|
+
modelValue: i.value,
|
|
3005
|
+
"onUpdate:modelValue": (C) => i.value = C,
|
|
3006
|
+
...c,
|
|
3006
3007
|
appendToBody: !0,
|
|
3007
3008
|
destroyOnClose: !0
|
|
3008
3009
|
}, {
|
|
3009
|
-
default: (
|
|
3010
|
-
header: (
|
|
3011
|
-
footer: (
|
|
3010
|
+
default: (M = c.slots) == null ? void 0 : M.default,
|
|
3011
|
+
header: (T = c.slots) == null ? void 0 : T.header,
|
|
3012
|
+
footer: ($ = c.slots) == null ? void 0 : $.footer
|
|
3012
3013
|
});
|
|
3013
3014
|
};
|
|
3014
3015
|
}
|
|
3015
3016
|
});
|
|
3016
|
-
return Et.forEach((
|
|
3017
|
-
|
|
3018
|
-
}),
|
|
3017
|
+
return Et.forEach((M) => {
|
|
3018
|
+
Y.component(M.name, M);
|
|
3019
|
+
}), Y.provide("options", lt), Y.use(_t, { locale: It }), document.body.appendChild(t), Y.mount(t), e;
|
|
3019
3020
|
};
|
|
3020
|
-
function wt(
|
|
3021
|
-
if (typeof
|
|
3022
|
-
return
|
|
3023
|
-
if (
|
|
3024
|
-
return parseFloat(
|
|
3021
|
+
function wt(c, d = window.innerWidth) {
|
|
3022
|
+
if (typeof c == "number")
|
|
3023
|
+
return c;
|
|
3024
|
+
if (c.endsWith("px"))
|
|
3025
|
+
return parseFloat(c);
|
|
3025
3026
|
const t = window.innerHeight, e = window.innerWidth;
|
|
3026
|
-
if (
|
|
3027
|
-
return t * parseFloat(
|
|
3028
|
-
if (
|
|
3029
|
-
return e * parseFloat(
|
|
3030
|
-
if (
|
|
3031
|
-
if (typeof
|
|
3027
|
+
if (c.endsWith("vh"))
|
|
3028
|
+
return t * parseFloat(c) / 100;
|
|
3029
|
+
if (c.endsWith("vw"))
|
|
3030
|
+
return e * parseFloat(c) / 100;
|
|
3031
|
+
if (c.endsWith("%")) {
|
|
3032
|
+
if (typeof d != "number")
|
|
3032
3033
|
throw new Error("Reference size is required to convert % to px");
|
|
3033
|
-
return
|
|
3034
|
+
return d * parseFloat(c) / 100;
|
|
3034
3035
|
}
|
|
3035
|
-
if (
|
|
3036
|
-
let
|
|
3037
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
3038
|
-
return new Function("return " +
|
|
3036
|
+
if (c.startsWith("calc(") && c.endsWith(")")) {
|
|
3037
|
+
let i = function(M) {
|
|
3038
|
+
if (/[0-9+\-*/().\s]+$/.test(M))
|
|
3039
|
+
return new Function("return " + M)();
|
|
3039
3040
|
throw new Error("Invalid calc expression");
|
|
3040
3041
|
};
|
|
3041
|
-
const
|
|
3042
|
-
return
|
|
3042
|
+
const o = c.slice(5, -1).trim();
|
|
3043
|
+
return i(o.replace(/([0-9.]+)([a-z%]+)/g, (M, T, $) => wt(T + $, d)));
|
|
3043
3044
|
}
|
|
3044
|
-
throw new Error("Unsupported unit in value: " +
|
|
3045
|
+
throw new Error("Unsupported unit in value: " + c);
|
|
3045
3046
|
}
|
|
3046
|
-
const Me = (...
|
|
3047
|
-
const
|
|
3048
|
-
e[
|
|
3047
|
+
const Me = (...c) => {
|
|
3048
|
+
const d = {}, t = (e, o) => (Object.keys(o).forEach((i) => {
|
|
3049
|
+
e[i] = typeof o[i] == "object" && !Array.isArray(o[i]) ? t(e[i] || {}, o[i]) : o[i];
|
|
3049
3050
|
}), e);
|
|
3050
|
-
return
|
|
3051
|
+
return c.forEach((e = {}) => t(d, e)), d;
|
|
3051
3052
|
};
|
|
3052
|
-
function ke(
|
|
3053
|
+
function ke(c, d = (t, e) => d(t, e)) {
|
|
3053
3054
|
const t = {};
|
|
3054
|
-
for (const e in
|
|
3055
|
-
|
|
3055
|
+
for (const e in c)
|
|
3056
|
+
c.hasOwnProperty(e) && d(e, c[e]) && (t[e] = c[e]);
|
|
3056
3057
|
return t;
|
|
3057
3058
|
}
|
|
3058
|
-
function Ll(
|
|
3059
|
-
for (const
|
|
3060
|
-
if (
|
|
3061
|
-
return
|
|
3062
|
-
if (
|
|
3063
|
-
const
|
|
3064
|
-
if (
|
|
3065
|
-
return
|
|
3059
|
+
function Ll(c, d, t = "value", e = "label", o = "children") {
|
|
3060
|
+
for (const i of c) {
|
|
3061
|
+
if (i[t] === d)
|
|
3062
|
+
return i[e];
|
|
3063
|
+
if (i[o] && i[o].length > 0) {
|
|
3064
|
+
const Y = Ll(i[o], d, t, e, o);
|
|
3065
|
+
if (Y)
|
|
3066
|
+
return Y;
|
|
3066
3067
|
}
|
|
3067
3068
|
}
|
|
3068
3069
|
return null;
|
|
3069
3070
|
}
|
|
3070
|
-
function
|
|
3071
|
-
if (!
|
|
3072
|
-
const
|
|
3071
|
+
function ot(c) {
|
|
3072
|
+
if (!c || isNaN(c)) return "零";
|
|
3073
|
+
const d = ["角", "分"], t = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], e = [
|
|
3073
3074
|
["元", "万", "亿"],
|
|
3074
3075
|
["", "拾", "佰", "仟"]
|
|
3075
|
-
],
|
|
3076
|
-
|
|
3077
|
-
let
|
|
3078
|
-
for (let
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
for (let
|
|
3082
|
-
let
|
|
3083
|
-
for (let
|
|
3084
|
-
|
|
3085
|
-
|
|
3076
|
+
], o = c < 0 ? "欠" : "";
|
|
3077
|
+
c = Math.abs(c);
|
|
3078
|
+
let i = "";
|
|
3079
|
+
for (let Y = 0; Y < d.length; Y++)
|
|
3080
|
+
i += (t[Math.floor(c * 10 * Math.pow(10, Y)) % 10] + d[Y]).replace(/零./, "");
|
|
3081
|
+
i = i || "整", c = Math.floor(c);
|
|
3082
|
+
for (let Y = 0; Y < e[0].length && c > 0; Y++) {
|
|
3083
|
+
let M = "";
|
|
3084
|
+
for (let T = 0; T < e[1].length && c > 0; T++)
|
|
3085
|
+
M = t[c % 10] + e[1][T] + M, c = Math.floor(c / 10);
|
|
3086
|
+
i = M.replace(/(零.)*零$/, "").replace(/^$/, "零") + e[0][Y] + i;
|
|
3086
3087
|
}
|
|
3087
|
-
return
|
|
3088
|
+
return o + i.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3088
3089
|
}
|
|
3089
|
-
function Rl(
|
|
3090
|
-
if (typeof
|
|
3090
|
+
function Rl(c) {
|
|
3091
|
+
if (typeof c != "number" || isNaN(c) || !isFinite(c))
|
|
3091
3092
|
return "0.00";
|
|
3092
|
-
const
|
|
3093
|
+
const d = c.toFixed(2), [t, e] = d.split(".");
|
|
3093
3094
|
return `${t.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${e}`;
|
|
3094
3095
|
}
|
|
3095
3096
|
const be = {
|
|
@@ -3129,6 +3130,6 @@ export {
|
|
|
3129
3130
|
Ll as findTreeLabelByValue,
|
|
3130
3131
|
Rl as formatAmount,
|
|
3131
3132
|
Me as mergeObjects,
|
|
3132
|
-
|
|
3133
|
-
|
|
3133
|
+
ot as moneyToChinese,
|
|
3134
|
+
at as openModal
|
|
3134
3135
|
};
|