vue-2024-ui 0.0.60 → 0.0.62
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 +872 -874
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mergeModels as Se, useModel as Oe, ref as
|
|
1
|
+
import Et, { ElForm as Pe, ElButtonGroup as ze, ElButton as he, ElPopover as Xe, ElMessage as we, ElMessageBox as ft, ElDialog as wt, ElDrawer as _t } from "element-plus";
|
|
2
|
+
import { mergeModels as Se, useModel as Oe, ref as ye, onMounted as Ne, watch as ct, resolveComponent as R, openBlock as s, createElementBlock as B, unref as o, createBlock as S, mergeProps as x, withCtx as g, renderSlot as p, Fragment as W, renderList as U, createTextVNode as ge, toDisplayString as pe, createSlots as de, createVNode as G, createCommentVNode as ve, normalizeProps as je, createElementVNode as Q, useSlots as mt, inject as lt, useAttrs as He, onUnmounted as kt, computed as xe, normalizeStyle as Fe, withModifiers as st, guardReactiveProps as Ze, resolveDynamicComponent as qe, Transition as Ct, withDirectives as pt, vShow as vt, h as De, onBeforeUnmount as Dt, normalizeClass as yt, watchEffect as Vt, createApp as Ft } from "vue";
|
|
3
3
|
import { FullScreen as Tt, Remove as Mt } from "@element-plus/icons-vue";
|
|
4
|
-
import
|
|
4
|
+
import ht from "sortablejs";
|
|
5
5
|
import { Dexie as qt } from "dexie";
|
|
6
6
|
var St = {
|
|
7
7
|
name: "zh-cn",
|
|
@@ -184,56 +184,56 @@ var St = {
|
|
|
184
184
|
function xt(m) {
|
|
185
185
|
return m && m.__esModule && Object.prototype.hasOwnProperty.call(m, "default") ? m.default : m;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var gt = { exports: {} };
|
|
188
188
|
(function(m, f) {
|
|
189
189
|
(function(t, e) {
|
|
190
190
|
m.exports = e();
|
|
191
191
|
})(Ot, function() {
|
|
192
|
-
var t = 1e3, e = 6e4, a = 36e5, v = "millisecond",
|
|
192
|
+
var t = 1e3, e = 6e4, a = 36e5, v = "millisecond", F = "second", T = "minute", q = "hour", E = "day", _ = "week", z = "month", ne = "quarter", V = "year", u = "date", A = "Invalid Date", K = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ee = /\[([^\]]+)]|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, se = { 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(k) {
|
|
193
193
|
var $ = ["th", "st", "nd", "rd"], b = k % 100;
|
|
194
194
|
return "[" + k + ($[(b - 20) % 10] || $[b] || $[0]) + "]";
|
|
195
|
-
} },
|
|
195
|
+
} }, ce = function(k, $, b) {
|
|
196
196
|
var c = String(k);
|
|
197
197
|
return !c || c.length >= $ ? k : "" + Array($ + 1 - c.length).join(b) + k;
|
|
198
|
-
},
|
|
198
|
+
}, ie = { s: ce, z: function(k) {
|
|
199
199
|
var $ = -k.utcOffset(), b = Math.abs($), c = Math.floor(b / 60), i = b % 60;
|
|
200
|
-
return ($ <= 0 ? "+" : "-") +
|
|
200
|
+
return ($ <= 0 ? "+" : "-") + ce(c, 2, "0") + ":" + ce(i, 2, "0");
|
|
201
201
|
}, m: function k($, b) {
|
|
202
202
|
if ($.date() < b.date()) return -k(b, $);
|
|
203
|
-
var c = 12 * (b.year() - $.year()) + (b.month() - $.month()), i = $.clone().add(c,
|
|
204
|
-
return +(-(c + (b - i) / (w ? i -
|
|
203
|
+
var c = 12 * (b.year() - $.year()) + (b.month() - $.month()), i = $.clone().add(c, z), w = b - i < 0, M = $.clone().add(c + (w ? -1 : 1), z);
|
|
204
|
+
return +(-(c + (b - i) / (w ? i - M : M - i)) || 0);
|
|
205
205
|
}, a: function(k) {
|
|
206
206
|
return k < 0 ? Math.ceil(k) || 0 : Math.floor(k);
|
|
207
207
|
}, p: function(k) {
|
|
208
|
-
return { M:
|
|
208
|
+
return { M: z, y: V, w: _, d: E, D: u, h: q, m: T, s: F, ms: v, Q: ne }[k] || String(k || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(k) {
|
|
210
210
|
return k === void 0;
|
|
211
|
-
} },
|
|
212
|
-
d[
|
|
211
|
+
} }, re = "en", d = {};
|
|
212
|
+
d[re] = se;
|
|
213
213
|
var D = "$isDayjsObject", I = function(k) {
|
|
214
|
-
return k instanceof
|
|
214
|
+
return k instanceof te || !(!k || !k[D]);
|
|
215
215
|
}, y = function k($, b, c) {
|
|
216
216
|
var i;
|
|
217
|
-
if (!$) return
|
|
217
|
+
if (!$) return re;
|
|
218
218
|
if (typeof $ == "string") {
|
|
219
219
|
var w = $.toLowerCase();
|
|
220
220
|
d[w] && (i = w), b && (d[w] = b, i = w);
|
|
221
|
-
var
|
|
222
|
-
if (!i &&
|
|
221
|
+
var M = $.split("-");
|
|
222
|
+
if (!i && M.length > 1) return k(M[0]);
|
|
223
223
|
} else {
|
|
224
|
-
var
|
|
225
|
-
d[
|
|
224
|
+
var P = $.name;
|
|
225
|
+
d[P] = $, i = P;
|
|
226
226
|
}
|
|
227
|
-
return !c && i && (
|
|
227
|
+
return !c && i && (re = i), i || !c && re;
|
|
228
228
|
}, L = function(k, $) {
|
|
229
229
|
if (I(k)) return k.clone();
|
|
230
230
|
var b = typeof $ == "object" ? $ : {};
|
|
231
|
-
return b.date = k, b.args = arguments, new
|
|
232
|
-
}, O =
|
|
231
|
+
return b.date = k, b.args = arguments, new te(b);
|
|
232
|
+
}, O = ie;
|
|
233
233
|
O.l = y, O.i = I, O.w = function(k, $) {
|
|
234
234
|
return L(k, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
|
|
235
235
|
};
|
|
236
|
-
var
|
|
236
|
+
var te = function() {
|
|
237
237
|
function k(b) {
|
|
238
238
|
this.$L = y(b.locale, null, !0), this.parse(b), this.$x = this.$x || b.x || {}, this[D] = !0;
|
|
239
239
|
}
|
|
@@ -245,10 +245,10 @@ var ht = { exports: {} };
|
|
|
245
245
|
if (O.u(i)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (i instanceof Date) return new Date(i);
|
|
247
247
|
if (typeof i == "string" && !/Z$/i.test(i)) {
|
|
248
|
-
var
|
|
249
|
-
if (
|
|
250
|
-
var
|
|
251
|
-
return w ? new Date(Date.UTC(
|
|
248
|
+
var M = i.match(K);
|
|
249
|
+
if (M) {
|
|
250
|
+
var P = M[2] - 1 || 0, X = (M[7] || "0").substring(0, 3);
|
|
251
|
+
return w ? new Date(Date.UTC(M[1], P, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, X)) : new Date(M[1], P, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, X);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(i);
|
|
@@ -274,40 +274,40 @@ var ht = { exports: {} };
|
|
|
274
274
|
}, $.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
276
|
}, $.startOf = function(b, c) {
|
|
277
|
-
var i = this, w = !!O.u(c) || c,
|
|
278
|
-
var r = O.w(i.$u ? Date.UTC(i.$y, l,
|
|
277
|
+
var i = this, w = !!O.u(c) || c, M = O.p(b), P = function(Ce, l) {
|
|
278
|
+
var r = O.w(i.$u ? Date.UTC(i.$y, l, Ce) : new Date(i.$y, l, Ce), i);
|
|
279
279
|
return w ? r : r.endOf(E);
|
|
280
|
-
}, X = function(
|
|
281
|
-
return O.w(i.toDate()[
|
|
282
|
-
}, oe = this.$W,
|
|
283
|
-
switch (
|
|
280
|
+
}, X = function(Ce, l) {
|
|
281
|
+
return O.w(i.toDate()[Ce].apply(i.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(l)), i);
|
|
282
|
+
}, oe = this.$W, n = this.$M, H = this.$D, ae = "set" + (this.$u ? "UTC" : "");
|
|
283
|
+
switch (M) {
|
|
284
284
|
case V:
|
|
285
|
-
return w ?
|
|
286
|
-
case
|
|
287
|
-
return w ?
|
|
285
|
+
return w ? P(1, 0) : P(31, 11);
|
|
286
|
+
case z:
|
|
287
|
+
return w ? P(1, n) : P(0, n + 1);
|
|
288
288
|
case _:
|
|
289
|
-
var
|
|
290
|
-
return
|
|
289
|
+
var ke = this.$locale().weekStart || 0, Te = (oe < ke ? oe + 7 : oe) - ke;
|
|
290
|
+
return P(w ? H - Te : H + (6 - Te), n);
|
|
291
291
|
case E:
|
|
292
292
|
case u:
|
|
293
|
-
return X(
|
|
294
|
-
case
|
|
295
|
-
return X(
|
|
296
|
-
case F:
|
|
297
|
-
return X(W + "Seconds", 2);
|
|
293
|
+
return X(ae + "Hours", 0);
|
|
294
|
+
case q:
|
|
295
|
+
return X(ae + "Minutes", 1);
|
|
298
296
|
case T:
|
|
299
|
-
return X(
|
|
297
|
+
return X(ae + "Seconds", 2);
|
|
298
|
+
case F:
|
|
299
|
+
return X(ae + "Milliseconds", 3);
|
|
300
300
|
default:
|
|
301
301
|
return this.clone();
|
|
302
302
|
}
|
|
303
303
|
}, $.endOf = function(b) {
|
|
304
304
|
return this.startOf(b, !1);
|
|
305
305
|
}, $.$set = function(b, c) {
|
|
306
|
-
var i, w = O.p(b),
|
|
307
|
-
if (w ===
|
|
306
|
+
var i, w = O.p(b), M = "set" + (this.$u ? "UTC" : ""), P = (i = {}, i[E] = M + "Date", i[u] = M + "Date", i[z] = M + "Month", i[V] = M + "FullYear", i[q] = M + "Hours", i[T] = M + "Minutes", i[F] = M + "Seconds", i[v] = M + "Milliseconds", i)[w], X = w === E ? this.$D + (c - this.$W) : c;
|
|
307
|
+
if (w === z || w === V) {
|
|
308
308
|
var oe = this.clone().set(u, 1);
|
|
309
|
-
oe.$d[
|
|
310
|
-
} else
|
|
309
|
+
oe.$d[P](X), oe.init(), this.$d = oe.set(u, Math.min(this.$D, oe.daysInMonth())).$d;
|
|
310
|
+
} else P && this.$d[P](X);
|
|
311
311
|
return this.init(), this;
|
|
312
312
|
}, $.set = function(b, c) {
|
|
313
313
|
return this.clone().$set(b, c);
|
|
@@ -316,32 +316,32 @@ var ht = { exports: {} };
|
|
|
316
316
|
}, $.add = function(b, c) {
|
|
317
317
|
var i, w = this;
|
|
318
318
|
b = Number(b);
|
|
319
|
-
var
|
|
320
|
-
var
|
|
321
|
-
return O.w(
|
|
319
|
+
var M = O.p(c), P = function(n) {
|
|
320
|
+
var H = L(w);
|
|
321
|
+
return O.w(H.date(H.date() + Math.round(n * b)), w);
|
|
322
322
|
};
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
327
|
-
var X = (i = {}, i[
|
|
323
|
+
if (M === z) return this.set(z, this.$M + b);
|
|
324
|
+
if (M === V) return this.set(V, this.$y + b);
|
|
325
|
+
if (M === E) return P(1);
|
|
326
|
+
if (M === _) return P(7);
|
|
327
|
+
var X = (i = {}, i[T] = e, i[q] = a, i[F] = t, i)[M] || 1, oe = this.$d.getTime() + b * X;
|
|
328
328
|
return O.w(oe, this);
|
|
329
329
|
}, $.subtract = function(b, c) {
|
|
330
330
|
return this.add(-1 * b, c);
|
|
331
331
|
}, $.format = function(b) {
|
|
332
332
|
var c = this, i = this.$locale();
|
|
333
333
|
if (!this.isValid()) return i.invalidDate || A;
|
|
334
|
-
var w = b || "YYYY-MM-DDTHH:mm:ssZ",
|
|
335
|
-
return l && (l[r] || l(c, w)) ||
|
|
336
|
-
},
|
|
337
|
-
return O.s(
|
|
338
|
-
},
|
|
334
|
+
var w = b || "YYYY-MM-DDTHH:mm:ssZ", M = O.z(this), P = this.$H, X = this.$m, oe = this.$M, n = i.weekdays, H = i.months, ae = i.meridiem, ke = function(l, r, h, j) {
|
|
335
|
+
return l && (l[r] || l(c, w)) || h[r].slice(0, j);
|
|
336
|
+
}, Te = function(l) {
|
|
337
|
+
return O.s(P % 12 || 12, l, "0");
|
|
338
|
+
}, Ce = ae || function(l, r, h) {
|
|
339
339
|
var j = l < 12 ? "AM" : "PM";
|
|
340
|
-
return
|
|
340
|
+
return h ? j.toLowerCase() : j;
|
|
341
341
|
};
|
|
342
|
-
return w.replace(
|
|
343
|
-
return r || function(
|
|
344
|
-
switch (
|
|
342
|
+
return w.replace(ee, function(l, r) {
|
|
343
|
+
return r || function(h) {
|
|
344
|
+
switch (h) {
|
|
345
345
|
case "YY":
|
|
346
346
|
return String(c.$y).slice(-2);
|
|
347
347
|
case "YYYY":
|
|
@@ -351,9 +351,9 @@ var ht = { exports: {} };
|
|
|
351
351
|
case "MM":
|
|
352
352
|
return O.s(oe + 1, 2, "0");
|
|
353
353
|
case "MMM":
|
|
354
|
-
return
|
|
354
|
+
return ke(i.monthsShort, oe, H, 3);
|
|
355
355
|
case "MMMM":
|
|
356
|
-
return
|
|
356
|
+
return ke(H, oe);
|
|
357
357
|
case "D":
|
|
358
358
|
return c.$D;
|
|
359
359
|
case "DD":
|
|
@@ -361,23 +361,23 @@ var ht = { exports: {} };
|
|
|
361
361
|
case "d":
|
|
362
362
|
return String(c.$W);
|
|
363
363
|
case "dd":
|
|
364
|
-
return
|
|
364
|
+
return ke(i.weekdaysMin, c.$W, n, 2);
|
|
365
365
|
case "ddd":
|
|
366
|
-
return
|
|
366
|
+
return ke(i.weekdaysShort, c.$W, n, 3);
|
|
367
367
|
case "dddd":
|
|
368
|
-
return
|
|
368
|
+
return n[c.$W];
|
|
369
369
|
case "H":
|
|
370
|
-
return String(
|
|
370
|
+
return String(P);
|
|
371
371
|
case "HH":
|
|
372
|
-
return O.s(
|
|
372
|
+
return O.s(P, 2, "0");
|
|
373
373
|
case "h":
|
|
374
|
-
return
|
|
374
|
+
return Te(1);
|
|
375
375
|
case "hh":
|
|
376
|
-
return
|
|
376
|
+
return Te(2);
|
|
377
377
|
case "a":
|
|
378
|
-
return
|
|
378
|
+
return Ce(P, X, !0);
|
|
379
379
|
case "A":
|
|
380
|
-
return
|
|
380
|
+
return Ce(P, X, !1);
|
|
381
381
|
case "m":
|
|
382
382
|
return String(X);
|
|
383
383
|
case "mm":
|
|
@@ -389,48 +389,48 @@ var ht = { exports: {} };
|
|
|
389
389
|
case "SSS":
|
|
390
390
|
return O.s(c.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
|
-
return
|
|
392
|
+
return M;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}(l) ||
|
|
395
|
+
}(l) || M.replace(":", "");
|
|
396
396
|
});
|
|
397
397
|
}, $.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
399
|
}, $.diff = function(b, c, i) {
|
|
400
|
-
var w,
|
|
401
|
-
return O.m(
|
|
400
|
+
var w, M = this, P = O.p(c), X = L(b), oe = (X.utcOffset() - this.utcOffset()) * e, n = this - X, H = function() {
|
|
401
|
+
return O.m(M, X);
|
|
402
402
|
};
|
|
403
|
-
switch (
|
|
403
|
+
switch (P) {
|
|
404
404
|
case V:
|
|
405
|
-
w =
|
|
405
|
+
w = H() / 12;
|
|
406
406
|
break;
|
|
407
|
-
case
|
|
408
|
-
w =
|
|
407
|
+
case z:
|
|
408
|
+
w = H();
|
|
409
409
|
break;
|
|
410
|
-
case
|
|
411
|
-
w =
|
|
410
|
+
case ne:
|
|
411
|
+
w = H() / 3;
|
|
412
412
|
break;
|
|
413
413
|
case _:
|
|
414
|
-
w = (
|
|
414
|
+
w = (n - oe) / 6048e5;
|
|
415
415
|
break;
|
|
416
416
|
case E:
|
|
417
|
-
w = (
|
|
417
|
+
w = (n - oe) / 864e5;
|
|
418
418
|
break;
|
|
419
|
-
case
|
|
420
|
-
w =
|
|
421
|
-
break;
|
|
422
|
-
case F:
|
|
423
|
-
w = ne / e;
|
|
419
|
+
case q:
|
|
420
|
+
w = n / a;
|
|
424
421
|
break;
|
|
425
422
|
case T:
|
|
426
|
-
w =
|
|
423
|
+
w = n / e;
|
|
424
|
+
break;
|
|
425
|
+
case F:
|
|
426
|
+
w = n / t;
|
|
427
427
|
break;
|
|
428
428
|
default:
|
|
429
|
-
w =
|
|
429
|
+
w = n;
|
|
430
430
|
}
|
|
431
431
|
return i ? w : O.a(w);
|
|
432
432
|
}, $.daysInMonth = function() {
|
|
433
|
-
return this.endOf(
|
|
433
|
+
return this.endOf(z).$D;
|
|
434
434
|
}, $.$locale = function() {
|
|
435
435
|
return d[this.$L];
|
|
436
436
|
}, $.locale = function(b, c) {
|
|
@@ -448,19 +448,19 @@ var ht = { exports: {} };
|
|
|
448
448
|
}, $.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, k;
|
|
451
|
-
}(),
|
|
452
|
-
return L.prototype =
|
|
453
|
-
|
|
451
|
+
}(), be = te.prototype;
|
|
452
|
+
return L.prototype = be, [["$ms", v], ["$s", F], ["$m", T], ["$H", q], ["$W", E], ["$M", z], ["$y", V], ["$D", u]].forEach(function(k) {
|
|
453
|
+
be[k[1]] = function($) {
|
|
454
454
|
return this.$g($, k[0], k[1]);
|
|
455
455
|
};
|
|
456
456
|
}), L.extend = function(k, $) {
|
|
457
|
-
return k.$i || (k($,
|
|
457
|
+
return k.$i || (k($, te, L), k.$i = !0), L;
|
|
458
458
|
}, L.locale = y, L.isDayjs = I, L.unix = function(k) {
|
|
459
459
|
return L(1e3 * k);
|
|
460
|
-
}, L.en = d[
|
|
460
|
+
}, L.en = d[re], L.Ls = d, L.p = {}, L;
|
|
461
461
|
});
|
|
462
|
-
})(
|
|
463
|
-
var At =
|
|
462
|
+
})(gt);
|
|
463
|
+
var At = gt.exports;
|
|
464
464
|
const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
465
465
|
style: { display: "flex", width: "100%" },
|
|
466
466
|
class: "g-ctrl-container"
|
|
@@ -475,103 +475,106 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(m) {
|
|
478
|
-
const f = Oe(m, "modelValue"), t = m, e = t.item || {}, a = t.ctrlKey, v = t.ctrlType,
|
|
478
|
+
const f = Oe(m, "modelValue"), t = m, e = t.item || {}, a = t.ctrlKey, v = t.ctrlType, F = t.model, T = ye([]), q = ye([]), E = () => Object.keys(mt()).filter((V) => V.startsWith(`${t.t}-${a}-`)).map((V) => V.replace(`${t.t}-${a}-`, "")), _ = {
|
|
479
479
|
filterable: !0,
|
|
480
480
|
remote: !!(e && e["remote-method"]),
|
|
481
481
|
...e
|
|
482
|
-
},
|
|
482
|
+
}, z = (V) => {
|
|
483
483
|
e["remote-method"](V, (u) => {
|
|
484
|
-
|
|
484
|
+
q.value = u;
|
|
485
485
|
});
|
|
486
|
-
},
|
|
486
|
+
}, ne = async (V = "options") => {
|
|
487
487
|
try {
|
|
488
488
|
const u = await (e == null ? void 0 : e.getDicts(t.formInfo));
|
|
489
489
|
if (typeof u == "string")
|
|
490
|
-
|
|
490
|
+
q.value = [{ label: u, value: f.value }];
|
|
491
491
|
else {
|
|
492
|
-
const A = u == null ? void 0 : u.map((
|
|
493
|
-
...
|
|
494
|
-
value:
|
|
495
|
-
label:
|
|
492
|
+
const A = u == null ? void 0 : u.map((K, ee) => ({
|
|
493
|
+
...K,
|
|
494
|
+
value: K.value ?? K.label ?? ee,
|
|
495
|
+
label: K.label || "未知选项"
|
|
496
496
|
}));
|
|
497
|
-
|
|
497
|
+
q.value = A || [];
|
|
498
498
|
}
|
|
499
499
|
} catch (u) {
|
|
500
500
|
throw console.error("获取选项失败:", u), u;
|
|
501
501
|
}
|
|
502
502
|
};
|
|
503
503
|
return Ne(async () => {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
504
|
+
var A, K;
|
|
505
|
+
e && e["remote-method"] && (_["remote-method"] = z), (K = (A = F[a]) == null ? void 0 : A.options) != null && K.length && (q.value = F[a].options);
|
|
506
|
+
const V = (ee, se = "options", ce = F[a]) => {
|
|
507
|
+
typeof e.getDicts == "function" && ne(se).catch((ie) => {
|
|
508
|
+
console.error(`Failed to load ${se} for ${ee}:`, ie);
|
|
508
509
|
});
|
|
509
510
|
};
|
|
510
511
|
["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(v) && V(v), v === "tree-select" && await (async () => {
|
|
511
512
|
try {
|
|
512
|
-
typeof e.getDicts == "function" ?
|
|
513
|
-
} catch (
|
|
514
|
-
console.error("Failed to load data for tree-select:",
|
|
513
|
+
typeof e.getDicts == "function" ? T.value = await e.getDicts(t.formInfo) : T.value = q.value;
|
|
514
|
+
} catch (se) {
|
|
515
|
+
console.error("Failed to load data for tree-select:", se);
|
|
515
516
|
}
|
|
516
517
|
})();
|
|
517
|
-
}), (
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
518
|
+
}), ct(() => t.formInfo, () => {
|
|
519
|
+
typeof e.getDicts == "function" && ne();
|
|
520
|
+
}, { deep: !0 }), (V, u) => {
|
|
521
|
+
var X, oe;
|
|
522
|
+
const A = R("el-radio"), K = R("el-radio-group"), ee = R("el-radio-button"), se = R("el-checkbox"), ce = R("el-checkbox-group"), ie = R("el-checkbox-button"), re = R("el-option"), d = R("el-select"), D = R("el-tree-select"), I = R("el-time-picker"), y = R("el-time-select"), L = R("el-date-picker"), O = R("el-color-picker"), te = R("el-rate"), be = R("el-slider"), k = R("el-switch"), $ = R("el-transfer"), b = R("el-cascader"), c = R("el-button"), i = R("el-upload"), w = R("el-autocomplete"), M = R("el-input-number"), P = R("el-input");
|
|
523
|
+
return s(), B("div", Bt, [
|
|
524
|
+
o(v) == o(fe).RADIO ? (s(), S(K, x({
|
|
522
525
|
key: 0,
|
|
523
526
|
modelValue: f.value,
|
|
524
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
527
|
+
"onUpdate:modelValue": u[0] || (u[0] = (n) => f.value = n)
|
|
525
528
|
}, o(e)), {
|
|
526
|
-
default:
|
|
529
|
+
default: g(() => [
|
|
527
530
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
528
|
-
(
|
|
529
|
-
default:
|
|
530
|
-
p(V.$slots, `${t.t}-${o(a)}-options`, { option:
|
|
531
|
+
(s(!0), B(W, null, U(q.value, (n) => (s(), S(A, x({ ref_for: !0 }, n), {
|
|
532
|
+
default: g(() => [
|
|
533
|
+
p(V.$slots, `${t.t}-${o(a)}-options`, { option: n })
|
|
531
534
|
]),
|
|
532
535
|
_: 2
|
|
533
536
|
}, 1040))), 256))
|
|
534
537
|
])
|
|
535
538
|
]),
|
|
536
539
|
_: 3
|
|
537
|
-
}, 16, ["modelValue"])) : o(v) == o(fe).RADIOBUTTON ? (
|
|
540
|
+
}, 16, ["modelValue"])) : o(v) == o(fe).RADIOBUTTON ? (s(), S(K, x({
|
|
538
541
|
key: 1,
|
|
539
542
|
modelValue: f.value,
|
|
540
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
543
|
+
"onUpdate:modelValue": u[1] || (u[1] = (n) => f.value = n)
|
|
541
544
|
}, o(e)), {
|
|
542
|
-
default:
|
|
545
|
+
default: g(() => [
|
|
543
546
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
544
|
-
(
|
|
545
|
-
default:
|
|
546
|
-
p(V.$slots, `${t.t}-${o(a)}-options`, { option:
|
|
547
|
+
(s(!0), B(W, null, U(q.value, (n) => (s(), S(ee, x({ ref_for: !0 }, n), {
|
|
548
|
+
default: g(() => [
|
|
549
|
+
p(V.$slots, `${t.t}-${o(a)}-options`, { option: n })
|
|
547
550
|
]),
|
|
548
551
|
_: 2
|
|
549
552
|
}, 1040))), 256))
|
|
550
553
|
])
|
|
551
554
|
]),
|
|
552
555
|
_: 3
|
|
553
|
-
}, 16, ["modelValue"])) : o(v) == o(fe).CHECKBOX ? (
|
|
556
|
+
}, 16, ["modelValue"])) : o(v) == o(fe).CHECKBOX ? (s(), S(se, x({
|
|
554
557
|
key: 2,
|
|
555
558
|
modelValue: f.value,
|
|
556
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
559
|
+
"onUpdate:modelValue": u[2] || (u[2] = (n) => f.value = n)
|
|
557
560
|
}, o(e)), {
|
|
558
|
-
default:
|
|
561
|
+
default: g(() => [
|
|
559
562
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
560
|
-
u[21] || (u[21] =
|
|
563
|
+
u[21] || (u[21] = ge(pe(" ")))
|
|
561
564
|
])
|
|
562
565
|
]),
|
|
563
566
|
_: 3
|
|
564
|
-
}, 16, ["modelValue"])) : o(v) == o(fe).CHECKBOXGROUP ? (
|
|
567
|
+
}, 16, ["modelValue"])) : o(v) == o(fe).CHECKBOXGROUP ? (s(), S(ce, x({
|
|
565
568
|
key: 3,
|
|
566
569
|
modelValue: f.value,
|
|
567
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
570
|
+
"onUpdate:modelValue": u[3] || (u[3] = (n) => f.value = n)
|
|
568
571
|
}, o(e)), {
|
|
569
|
-
default:
|
|
572
|
+
default: g(() => [
|
|
570
573
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
571
|
-
(
|
|
572
|
-
default:
|
|
573
|
-
p(V.$slots, `${t.t}-${o(a)}-options`, { option:
|
|
574
|
-
|
|
574
|
+
(s(!0), B(W, null, U(q.value, (n) => (s(), S(se, x({ ref_for: !0 }, n), {
|
|
575
|
+
default: g(() => [
|
|
576
|
+
p(V.$slots, `${t.t}-${o(a)}-options`, { option: n }, () => [
|
|
577
|
+
ge(pe(n.label), 1)
|
|
575
578
|
])
|
|
576
579
|
]),
|
|
577
580
|
_: 2
|
|
@@ -579,223 +582,218 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
579
582
|
])
|
|
580
583
|
]),
|
|
581
584
|
_: 3
|
|
582
|
-
}, 16, ["modelValue"])) : o(v) == o(fe).CHECKBOXGROUPBUTTON ? (
|
|
585
|
+
}, 16, ["modelValue"])) : o(v) == o(fe).CHECKBOXGROUPBUTTON ? (s(), S(ce, x({
|
|
583
586
|
key: 4,
|
|
584
587
|
modelValue: f.value,
|
|
585
|
-
"onUpdate:modelValue": u[4] || (u[4] = (
|
|
588
|
+
"onUpdate:modelValue": u[4] || (u[4] = (n) => f.value = n)
|
|
586
589
|
}, o(e)), {
|
|
587
|
-
default:
|
|
590
|
+
default: g(() => [
|
|
588
591
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
589
|
-
(
|
|
590
|
-
default:
|
|
591
|
-
p(V.$slots, `${t.t}-${o(a)}-options`, { option:
|
|
592
|
+
(s(!0), B(W, null, U(q.value, (n) => (s(), S(ie, x({ ref_for: !0 }, n), {
|
|
593
|
+
default: g(() => [
|
|
594
|
+
p(V.$slots, `${t.t}-${o(a)}-options`, { option: n })
|
|
592
595
|
]),
|
|
593
596
|
_: 2
|
|
594
597
|
}, 1040))), 256))
|
|
595
598
|
])
|
|
596
599
|
]),
|
|
597
600
|
_: 3
|
|
598
|
-
}, 16, ["modelValue"])) : o(v) === o(fe).SELECT ? (
|
|
601
|
+
}, 16, ["modelValue"])) : o(v) === o(fe).SELECT ? (s(), S(d, x({
|
|
599
602
|
key: 5,
|
|
600
603
|
modelValue: f.value,
|
|
601
|
-
"onUpdate:modelValue": u[5] || (u[5] = (
|
|
602
|
-
placeholder: o(
|
|
603
|
-
}, _),
|
|
604
|
-
default:
|
|
605
|
-
p(V.$slots, `${t.t}-${o(a)}`, { options:
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
}, {
|
|
612
|
-
default:
|
|
613
|
-
(
|
|
614
|
-
key: Ee.value,
|
|
615
|
-
onClick: (De) => _.change && _.change(Ee)
|
|
616
|
-
}), {
|
|
617
|
-
default: h(() => [
|
|
618
|
-
p(V.$slots, `${t.t}-${o(a)}-options`, { option: Ee })
|
|
619
|
-
]),
|
|
620
|
-
_: 2
|
|
621
|
-
}, 1040, ["onClick"]))), 128))
|
|
604
|
+
"onUpdate:modelValue": u[5] || (u[5] = (n) => f.value = n),
|
|
605
|
+
placeholder: o(F)[o(a)].label
|
|
606
|
+
}, _), de({
|
|
607
|
+
default: g(() => [
|
|
608
|
+
p(V.$slots, `${t.t}-${o(a)}`, { options: q.value }, () => [
|
|
609
|
+
(s(!0), B(W, null, U(q.value, (n) => (s(), B(W, {
|
|
610
|
+
key: n.value
|
|
611
|
+
}, [
|
|
612
|
+
G(re, x({ ref_for: !0 }, n, {
|
|
613
|
+
onClick: (H) => _.change && _.change(n)
|
|
614
|
+
}), {
|
|
615
|
+
default: g(() => [
|
|
616
|
+
p(V.$slots, `${t.t}-${o(a)}-options`, { option: n })
|
|
622
617
|
]),
|
|
623
618
|
_: 2
|
|
624
|
-
},
|
|
625
|
-
|
|
626
|
-
|
|
619
|
+
}, 1040, ["onClick"]),
|
|
620
|
+
n.children && n.children.length ? (s(!0), B(W, { key: 0 }, U(n.children, (H) => (s(), S(re, x({
|
|
621
|
+
key: H.value,
|
|
622
|
+
ref_for: !0
|
|
623
|
+
}, H, {
|
|
624
|
+
onClick: (ae) => _.change && _.change(H)
|
|
627
625
|
}), {
|
|
628
|
-
default:
|
|
629
|
-
p(V.$slots, `${t.t}-${o(a)}-options`, { option:
|
|
626
|
+
default: g(() => [
|
|
627
|
+
p(V.$slots, `${t.t}-${o(a)}-options`, { option: H })
|
|
630
628
|
]),
|
|
631
629
|
_: 2
|
|
632
|
-
}, 1040, ["onClick"]))), 128))
|
|
633
|
-
]
|
|
634
|
-
|
|
630
|
+
}, 1040, ["onClick"]))), 128)) : ve("", !0)
|
|
631
|
+
], 64))), 128))
|
|
632
|
+
])
|
|
635
633
|
]),
|
|
636
634
|
_: 2
|
|
637
635
|
}, [
|
|
638
|
-
U(E(), (
|
|
639
|
-
name:
|
|
640
|
-
fn:
|
|
641
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
636
|
+
U(E(), (n) => ({
|
|
637
|
+
name: n,
|
|
638
|
+
fn: g((H) => [
|
|
639
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
642
640
|
])
|
|
643
641
|
}))
|
|
644
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).TREESELECT ? (
|
|
642
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).TREESELECT ? (s(), S(D, x({
|
|
645
643
|
key: 6,
|
|
646
644
|
modelValue: f.value,
|
|
647
|
-
"onUpdate:modelValue": u[6] || (u[6] = (
|
|
648
|
-
placeholder: o(
|
|
649
|
-
}, o(e), { data:
|
|
650
|
-
U(E(), (
|
|
651
|
-
name:
|
|
652
|
-
fn:
|
|
653
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
645
|
+
"onUpdate:modelValue": u[6] || (u[6] = (n) => f.value = n),
|
|
646
|
+
placeholder: o(F)[o(a)].label
|
|
647
|
+
}, o(e), { data: T.value }), de({ _: 2 }, [
|
|
648
|
+
U(E(), (n) => ({
|
|
649
|
+
name: n,
|
|
650
|
+
fn: g((H) => [
|
|
651
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
654
652
|
])
|
|
655
653
|
}))
|
|
656
|
-
]), 1040, ["modelValue", "placeholder", "data"])) : o(v) == o(fe).TIME ? (
|
|
654
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : o(v) == o(fe).TIME ? (s(), S(I, x({
|
|
657
655
|
key: 7,
|
|
658
656
|
modelValue: f.value,
|
|
659
|
-
"onUpdate:modelValue": u[7] || (u[7] = (
|
|
657
|
+
"onUpdate:modelValue": u[7] || (u[7] = (n) => f.value = n),
|
|
660
658
|
"arrow-control": ""
|
|
661
659
|
}, o(e), {
|
|
662
|
-
placeholder: o(
|
|
663
|
-
}), null, 16, ["modelValue", "placeholder"])) : o(v) == o(fe).TIMESELECT ? (
|
|
660
|
+
placeholder: o(F)[o(a)].label
|
|
661
|
+
}), null, 16, ["modelValue", "placeholder"])) : o(v) == o(fe).TIMESELECT ? (s(), S(y, x({
|
|
664
662
|
key: 8,
|
|
665
663
|
modelValue: f.value,
|
|
666
|
-
"onUpdate:modelValue": u[8] || (u[8] = (
|
|
664
|
+
"onUpdate:modelValue": u[8] || (u[8] = (n) => f.value = n),
|
|
667
665
|
start: "06:30",
|
|
668
666
|
step: "00:15",
|
|
669
667
|
end: "23:30",
|
|
670
|
-
placeholder: o(
|
|
671
|
-
}, o(e)), null, 16, ["modelValue", "placeholder"])) : o(v) == o(fe).DATE ? (
|
|
668
|
+
placeholder: o(F)[o(a)].label
|
|
669
|
+
}, o(e)), null, 16, ["modelValue", "placeholder"])) : o(v) == o(fe).DATE ? (s(), S(L, x({
|
|
672
670
|
key: 9,
|
|
673
671
|
modelValue: f.value,
|
|
674
|
-
"onUpdate:modelValue": u[9] || (u[9] = (
|
|
672
|
+
"onUpdate:modelValue": u[9] || (u[9] = (n) => f.value = n),
|
|
675
673
|
type: "date",
|
|
676
|
-
placeholder: o(
|
|
674
|
+
placeholder: o(F)[o(a)].label,
|
|
677
675
|
"value-format": "YYYY-MM-DD"
|
|
678
|
-
}, o(e)),
|
|
679
|
-
U(E(), (
|
|
680
|
-
name:
|
|
681
|
-
fn:
|
|
682
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
676
|
+
}, o(e)), de({ _: 2 }, [
|
|
677
|
+
U(E(), (n) => ({
|
|
678
|
+
name: n,
|
|
679
|
+
fn: g((H) => [
|
|
680
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
683
681
|
])
|
|
684
682
|
}))
|
|
685
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).DATETIME ? (
|
|
683
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).DATETIME ? (s(), S(L, x({
|
|
686
684
|
key: 10,
|
|
687
685
|
modelValue: f.value,
|
|
688
|
-
"onUpdate:modelValue": u[10] || (u[10] = (
|
|
686
|
+
"onUpdate:modelValue": u[10] || (u[10] = (n) => f.value = n),
|
|
689
687
|
type: o(fe).DATETIME,
|
|
690
|
-
placeholder: o(
|
|
688
|
+
placeholder: o(F)[o(a)].label,
|
|
691
689
|
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
692
|
-
}, o(e)),
|
|
693
|
-
U(E(), (
|
|
694
|
-
name:
|
|
695
|
-
fn:
|
|
696
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
690
|
+
}, o(e)), de({ _: 2 }, [
|
|
691
|
+
U(E(), (n) => ({
|
|
692
|
+
name: n,
|
|
693
|
+
fn: g((H) => [
|
|
694
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
697
695
|
])
|
|
698
696
|
}))
|
|
699
|
-
]), 1040, ["modelValue", "type", "placeholder"])) : o(v) == o(fe).COLOR ? (
|
|
697
|
+
]), 1040, ["modelValue", "type", "placeholder"])) : o(v) == o(fe).COLOR ? (s(), S(O, x({
|
|
700
698
|
key: 11,
|
|
701
699
|
modelValue: f.value,
|
|
702
|
-
"onUpdate:modelValue": u[11] || (u[11] = (
|
|
703
|
-
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(fe).RATE ? (
|
|
700
|
+
"onUpdate:modelValue": u[11] || (u[11] = (n) => f.value = n)
|
|
701
|
+
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(fe).RATE ? (s(), S(te, x({
|
|
704
702
|
key: 12,
|
|
705
703
|
modelValue: f.value,
|
|
706
|
-
"onUpdate:modelValue": u[12] || (u[12] = (
|
|
707
|
-
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(fe).SLIDER ? (
|
|
704
|
+
"onUpdate:modelValue": u[12] || (u[12] = (n) => f.value = n)
|
|
705
|
+
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(fe).SLIDER ? (s(), S(be, x({
|
|
708
706
|
key: 13,
|
|
709
707
|
modelValue: f.value,
|
|
710
|
-
"onUpdate:modelValue": u[13] || (u[13] = (
|
|
711
|
-
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(fe).SWITCH ? (
|
|
708
|
+
"onUpdate:modelValue": u[13] || (u[13] = (n) => f.value = n)
|
|
709
|
+
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(fe).SWITCH ? (s(), S(k, x({
|
|
712
710
|
key: 14,
|
|
713
711
|
modelValue: f.value,
|
|
714
|
-
"onUpdate:modelValue": u[14] || (u[14] = (
|
|
715
|
-
}, o(e)),
|
|
716
|
-
U(E(), (
|
|
717
|
-
name:
|
|
718
|
-
fn:
|
|
719
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
712
|
+
"onUpdate:modelValue": u[14] || (u[14] = (n) => f.value = n)
|
|
713
|
+
}, o(e)), de({ _: 2 }, [
|
|
714
|
+
U(E(), (n) => ({
|
|
715
|
+
name: n,
|
|
716
|
+
fn: g((H) => [
|
|
717
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
720
718
|
])
|
|
721
719
|
}))
|
|
722
|
-
]), 1040, ["modelValue"])) : o(v) == o(fe).TRANSFER ? (
|
|
720
|
+
]), 1040, ["modelValue"])) : o(v) == o(fe).TRANSFER ? (s(), S($, x({
|
|
723
721
|
key: 15,
|
|
724
722
|
modelValue: f.value,
|
|
725
|
-
"onUpdate:modelValue": u[15] || (u[15] = (
|
|
726
|
-
}, o(e)),
|
|
727
|
-
U(E(), (
|
|
728
|
-
name:
|
|
729
|
-
fn:
|
|
730
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
723
|
+
"onUpdate:modelValue": u[15] || (u[15] = (n) => f.value = n)
|
|
724
|
+
}, o(e)), de({ _: 2 }, [
|
|
725
|
+
U(E(), (n) => ({
|
|
726
|
+
name: n,
|
|
727
|
+
fn: g((H) => [
|
|
728
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
731
729
|
])
|
|
732
730
|
}))
|
|
733
|
-
]), 1040, ["modelValue"])) : o(v) == o(fe).CASCADER ? (
|
|
731
|
+
]), 1040, ["modelValue"])) : o(v) == o(fe).CASCADER ? (s(), S(b, x({
|
|
734
732
|
key: 16,
|
|
735
733
|
modelValue: f.value,
|
|
736
|
-
"onUpdate:modelValue": u[16] || (u[16] = (
|
|
737
|
-
}, o(e), { options:
|
|
738
|
-
U(E(), (
|
|
739
|
-
name:
|
|
740
|
-
fn:
|
|
741
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
734
|
+
"onUpdate:modelValue": u[16] || (u[16] = (n) => f.value = n)
|
|
735
|
+
}, o(e), { options: q.value }), de({ _: 2 }, [
|
|
736
|
+
U(E(), (n) => ({
|
|
737
|
+
name: n,
|
|
738
|
+
fn: g((H) => [
|
|
739
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
742
740
|
])
|
|
743
741
|
}))
|
|
744
|
-
]), 1040, ["modelValue", "options"])) : o(v) == o(fe).IMAGE ? (
|
|
745
|
-
default:
|
|
746
|
-
G(
|
|
747
|
-
default:
|
|
748
|
-
|
|
742
|
+
]), 1040, ["modelValue", "options"])) : o(v) == o(fe).IMAGE ? (s(), S(i, je(x({ key: 17 }, o(e))), de({
|
|
743
|
+
default: g(() => [
|
|
744
|
+
G(c, { type: "primary" }, {
|
|
745
|
+
default: g(() => u[22] || (u[22] = [
|
|
746
|
+
ge("点击上传")
|
|
749
747
|
])),
|
|
750
748
|
_: 1
|
|
751
749
|
})
|
|
752
750
|
]),
|
|
753
751
|
_: 2
|
|
754
752
|
}, [
|
|
755
|
-
U(E(), (
|
|
756
|
-
name:
|
|
757
|
-
fn:
|
|
758
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
753
|
+
U(E(), (n, H) => ({
|
|
754
|
+
name: n,
|
|
755
|
+
fn: g((ae) => [
|
|
756
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
|
|
759
757
|
])
|
|
760
758
|
}))
|
|
761
|
-
]), 1040)) : o(v) == o(fe).AUTOCOMPLETE ? (
|
|
759
|
+
]), 1040)) : o(v) == o(fe).AUTOCOMPLETE ? (s(), S(w, x({
|
|
762
760
|
key: 18,
|
|
763
761
|
modelValue: f.value,
|
|
764
|
-
"onUpdate:modelValue": u[17] || (u[17] = (
|
|
762
|
+
"onUpdate:modelValue": u[17] || (u[17] = (n) => f.value = n)
|
|
765
763
|
}, o(e), {
|
|
766
|
-
placeholder: o(
|
|
767
|
-
}),
|
|
768
|
-
U(E(), (
|
|
769
|
-
name:
|
|
770
|
-
fn:
|
|
771
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
764
|
+
placeholder: o(F)[o(a)].label
|
|
765
|
+
}), de({ _: 2 }, [
|
|
766
|
+
U(E(), (n, H) => ({
|
|
767
|
+
name: n,
|
|
768
|
+
fn: g((ae) => [
|
|
769
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
|
|
772
770
|
])
|
|
773
771
|
}))
|
|
774
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).INPUTNUMBER ? (
|
|
772
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).INPUTNUMBER ? (s(), S(M, x({
|
|
775
773
|
key: 19,
|
|
776
774
|
modelValue: f.value,
|
|
777
|
-
"onUpdate:modelValue": u[18] || (u[18] = (
|
|
775
|
+
"onUpdate:modelValue": u[18] || (u[18] = (n) => f.value = n),
|
|
778
776
|
min: 0,
|
|
779
777
|
max: 1e8,
|
|
780
|
-
placeholder: o(
|
|
781
|
-
}, o(e)),
|
|
782
|
-
U(E(), (
|
|
783
|
-
name:
|
|
784
|
-
fn:
|
|
785
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
778
|
+
placeholder: o(F)[o(a)].label
|
|
779
|
+
}, o(e)), de({ _: 2 }, [
|
|
780
|
+
U(E(), (n, H) => ({
|
|
781
|
+
name: n,
|
|
782
|
+
fn: g((ae) => [
|
|
783
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
|
|
786
784
|
])
|
|
787
785
|
}))
|
|
788
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).MONEY ? (
|
|
789
|
-
G(
|
|
786
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).MONEY ? (s(), B("div", It, [
|
|
787
|
+
G(P, x({
|
|
790
788
|
modelValue: f.value,
|
|
791
|
-
"onUpdate:modelValue": u[19] || (u[19] = (
|
|
792
|
-
placeholder: o(
|
|
789
|
+
"onUpdate:modelValue": u[19] || (u[19] = (n) => f.value = n),
|
|
790
|
+
placeholder: o(F)[o(a)].label,
|
|
793
791
|
type: o(fe).NUMBER,
|
|
794
|
-
maxlength: ((
|
|
795
|
-
}, { ...o(e), type: o(v) }),
|
|
792
|
+
maxlength: ((X = o(e)) == null ? void 0 : X.max) || 25
|
|
793
|
+
}, { ...o(e), type: o(v) }), de({ _: 2 }, [
|
|
796
794
|
f.value ? {
|
|
797
795
|
name: "suffix",
|
|
798
|
-
fn:
|
|
796
|
+
fn: g(() => [
|
|
799
797
|
Q("div", {
|
|
800
798
|
title: o(tt)(f.value),
|
|
801
799
|
style: { "font-size": "10px", display: "block", width: "120px", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
@@ -803,25 +801,25 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
803
801
|
]),
|
|
804
802
|
key: "0"
|
|
805
803
|
} : void 0,
|
|
806
|
-
U(E(), (
|
|
807
|
-
name:
|
|
808
|
-
fn:
|
|
809
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
804
|
+
U(E(), (n, H) => ({
|
|
805
|
+
name: n,
|
|
806
|
+
fn: g((ae) => [
|
|
807
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
|
|
810
808
|
])
|
|
811
809
|
}))
|
|
812
810
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
813
|
-
])) : (
|
|
811
|
+
])) : (s(), S(P, x({
|
|
814
812
|
key: 21,
|
|
815
813
|
modelValue: f.value,
|
|
816
|
-
"onUpdate:modelValue": u[20] || (u[20] = (
|
|
817
|
-
placeholder: o(
|
|
818
|
-
maxlength: ((
|
|
814
|
+
"onUpdate:modelValue": u[20] || (u[20] = (n) => f.value = n),
|
|
815
|
+
placeholder: o(F)[o(a)].label,
|
|
816
|
+
maxlength: ((oe = o(e)) == null ? void 0 : oe.max) || 25,
|
|
819
817
|
clearable: !0
|
|
820
|
-
}, { ...o(e), type: o(v) }),
|
|
821
|
-
U(E(), (
|
|
822
|
-
name:
|
|
823
|
-
fn:
|
|
824
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
818
|
+
}, { ...o(e), type: o(v) }), de({ _: 2 }, [
|
|
819
|
+
U(E(), (n, H) => ({
|
|
820
|
+
name: n,
|
|
821
|
+
fn: g((ae) => [
|
|
822
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
|
|
825
823
|
])
|
|
826
824
|
}))
|
|
827
825
|
]), 1040, ["modelValue", "placeholder", "maxlength"]))
|
|
@@ -839,8 +837,8 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
839
837
|
},
|
|
840
838
|
emits: /* @__PURE__ */ Se(["submit", "reset"], ["update:modelValue"]),
|
|
841
839
|
setup(m, { emit: f }) {
|
|
842
|
-
var
|
|
843
|
-
const t = Oe(m, "modelValue"), e = f, a =
|
|
840
|
+
var se, ce, ie, re;
|
|
841
|
+
const t = Oe(m, "modelValue"), e = f, a = ye(null), v = lt("options"), F = {
|
|
844
842
|
inline: !0,
|
|
845
843
|
type: "hidden",
|
|
846
844
|
"scroll-to-error": !0,
|
|
@@ -850,7 +848,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
850
848
|
style: {
|
|
851
849
|
display: "flex",
|
|
852
850
|
flexWrap: "wrap",
|
|
853
|
-
...(
|
|
851
|
+
...(se = He()) == null ? void 0 : se.style
|
|
854
852
|
},
|
|
855
853
|
// 表单底部属性
|
|
856
854
|
footer: {
|
|
@@ -896,30 +894,30 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
896
894
|
editable: !1
|
|
897
895
|
}
|
|
898
896
|
};
|
|
899
|
-
t.value.form =
|
|
900
|
-
|
|
897
|
+
t.value.form = $e(
|
|
898
|
+
F,
|
|
901
899
|
v == null ? void 0 : v.form,
|
|
902
|
-
(
|
|
900
|
+
(ce = t.value) == null ? void 0 : ce.form
|
|
903
901
|
);
|
|
904
|
-
const
|
|
902
|
+
const T = {
|
|
905
903
|
type: "hidden",
|
|
906
904
|
labelPosition: "right",
|
|
907
905
|
style: {
|
|
908
906
|
width: "100%"
|
|
909
907
|
}
|
|
910
908
|
};
|
|
911
|
-
t.value.formItems =
|
|
912
|
-
|
|
909
|
+
t.value.formItems = $e(
|
|
910
|
+
T,
|
|
913
911
|
v == null ? void 0 : v.formItems,
|
|
914
|
-
(
|
|
912
|
+
(ie = t == null ? void 0 : t.value) == null ? void 0 : ie.formItems
|
|
915
913
|
);
|
|
916
|
-
const
|
|
914
|
+
const q = {
|
|
917
915
|
span: 12,
|
|
918
916
|
offset: 0
|
|
919
917
|
};
|
|
920
|
-
t.value.form.cols =
|
|
921
|
-
|
|
922
|
-
(
|
|
918
|
+
t.value.form.cols = $e(
|
|
919
|
+
q,
|
|
920
|
+
(re = v == null ? void 0 : v.form) == null ? void 0 : re.cols,
|
|
923
921
|
t.value.form.cols
|
|
924
922
|
);
|
|
925
923
|
const E = (d) => {
|
|
@@ -937,45 +935,45 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
937
935
|
validate: void 0
|
|
938
936
|
}, ...d };
|
|
939
937
|
y.required && D.push({ required: !0, message: `${y.label}不能为空!`, trigger: "blur" }), y.max && y.min && D.push({
|
|
940
|
-
validator: (L, O,
|
|
941
|
-
O && d.type == "number" && (O < y.min || O > y.max) ?
|
|
938
|
+
validator: (L, O, te) => {
|
|
939
|
+
O && d.type == "number" && (O < y.min || O > y.max) ? te(new Error(`${y.label} 必须在 ${y.min} 和 ${y.max} 之间!`)) : O && d.type !== "number" && (O.toString().length < y.min || O.toString().length > y.max) ? te(new Error(`字符长度必须在 ${y.min} 和 ${y.max} 之间!`)) : te();
|
|
942
940
|
}
|
|
943
941
|
}), y.max && !y.min && d.type == "number" && D.push({
|
|
944
|
-
validator: (L, O,
|
|
945
|
-
O && O > y.max ?
|
|
942
|
+
validator: (L, O, te) => {
|
|
943
|
+
O && O > y.max ? te(new Error(`${y.label}不能大于${y.max}!`)) : te();
|
|
946
944
|
}
|
|
947
945
|
}), y.min && !y.max && d.type == "number" && D.push({
|
|
948
|
-
validator: (L, O,
|
|
949
|
-
O && O < y.min ?
|
|
946
|
+
validator: (L, O, te) => {
|
|
947
|
+
O && O < y.min ? te(new Error(`${y.label}不能小于${y.min}!`)) : te();
|
|
950
948
|
}
|
|
951
949
|
}), y.type == "email" && D.push({ type: "email", message: "不是一个正确的邮箱地址!" }), y.type == "url" && D.push({ type: "url", message: "不是一个合正确的URL!" }), y.pattern && D.push({ pattern: y == null ? void 0 : y.pattern, message: (y == null ? void 0 : y.message) || "格式不正确!" }), y.validate && D.push({
|
|
952
|
-
validator: (L, O,
|
|
950
|
+
validator: (L, O, te) => y.validate(L, O, te)
|
|
953
951
|
});
|
|
954
952
|
}
|
|
955
953
|
return D;
|
|
956
954
|
}, _ = (d, D = !1) => {
|
|
957
|
-
var L, O,
|
|
955
|
+
var L, O, te, be, k;
|
|
958
956
|
const I = D ? d : d == null ? void 0 : d.item, y = typeof (I == null ? void 0 : I.editor) == "function" ? I.editor(u.value, (L = t.value.form) == null ? void 0 : L.modalState) : (I == null ? void 0 : I.editor) || {};
|
|
959
957
|
if (((O = t.value.form) == null ? void 0 : O.modalState) === "edit") {
|
|
960
|
-
const $ = typeof (I == null ? void 0 : I.editor) == "object" ? (
|
|
958
|
+
const $ = typeof (I == null ? void 0 : I.editor) == "object" ? (te = I.editor) == null ? void 0 : te.ep : typeof (I == null ? void 0 : I.editor) == "function" ? y == null ? void 0 : y.ep : {};
|
|
961
959
|
return { ...y, ...$ };
|
|
962
960
|
}
|
|
963
|
-
if (((
|
|
961
|
+
if (((be = t.value.form) == null ? void 0 : be.modalState) === "add") {
|
|
964
962
|
const $ = typeof (I == null ? void 0 : I.editor) == "object" ? (k = I.editor) == null ? void 0 : k.ap : typeof (I == null ? void 0 : I.editor) == "function" ? y == null ? void 0 : y.ap : {};
|
|
965
963
|
return { ...y, ...$ };
|
|
966
964
|
}
|
|
967
965
|
return y;
|
|
968
|
-
},
|
|
969
|
-
var I, y, L, O,
|
|
966
|
+
}, z = (d) => {
|
|
967
|
+
var I, y, L, O, te;
|
|
970
968
|
const D = typeof d.editor == "function" ? d.editor(u.value, (I = t.value.form) == null ? void 0 : I.modalState) : d.editor;
|
|
971
|
-
return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((L = D == null ? void 0 : D.ep) == null ? void 0 : L.type) ?? (D == null ? void 0 : D.type) ?? d.type : ((O = t.value.form) == null ? void 0 : O.modalState) === "add" ? ((
|
|
969
|
+
return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((L = D == null ? void 0 : D.ep) == null ? void 0 : L.type) ?? (D == null ? void 0 : D.type) ?? d.type : ((O = t.value.form) == null ? void 0 : O.modalState) === "add" ? ((te = D == null ? void 0 : D.ap) == null ? void 0 : te.type) ?? (D == null ? void 0 : D.type) ?? d.type : (D == null ? void 0 : D.type) ?? d.type;
|
|
972
970
|
};
|
|
973
971
|
Ne(() => {
|
|
974
|
-
|
|
975
|
-
}),
|
|
972
|
+
ne();
|
|
973
|
+
}), kt(() => {
|
|
976
974
|
a.value = null;
|
|
977
975
|
});
|
|
978
|
-
const
|
|
976
|
+
const ne = () => {
|
|
979
977
|
for (const [d, D] of Object.entries(V.value))
|
|
980
978
|
t.value[d].formItem = { ...t.value[d].formItem, ...D.formItem }, t.value[d].formItem.style = { ...t.value[d].formItem.style, ...D.formItem.style };
|
|
981
979
|
}, V = xe(() => Object.fromEntries(Object.entries(t.value).filter((d) => d[1].type != "hidden").filter((d) => !["table", "tableColumns", "query", "queryItems"].includes(d[0])).filter((d) => d[1].editor !== !1).filter((d) => d[1].type !== "control").filter((d) => {
|
|
@@ -993,15 +991,15 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
993
991
|
}), d.get(y).items.push({ key: D, item: I });
|
|
994
992
|
}
|
|
995
993
|
}), d.forEach((D) => {
|
|
996
|
-
D.tabPane =
|
|
994
|
+
D.tabPane = $e(...D.items.map(({ item: I }) => I.tabPane || {}));
|
|
997
995
|
}), Array.from(d.values());
|
|
998
|
-
}),
|
|
996
|
+
}), K = [
|
|
999
997
|
{
|
|
1000
998
|
name: "f-submit",
|
|
1001
999
|
label: t.value.form.submit.label,
|
|
1002
1000
|
click: t.value.form.submit.click,
|
|
1003
1001
|
hidden: t.value.form.submit.hidden,
|
|
1004
|
-
info:
|
|
1002
|
+
info: _e(t.value.form.submit, (d) => !["click"].includes(d)),
|
|
1005
1003
|
sort: t.value.form.submit.sort ?? 1,
|
|
1006
1004
|
// 使用空值合并运算符
|
|
1007
1005
|
originalOrder: 0
|
|
@@ -1011,23 +1009,23 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1011
1009
|
name: "f-reset",
|
|
1012
1010
|
label: t.value.form.reset.label,
|
|
1013
1011
|
click: t.value.form.reset.click,
|
|
1014
|
-
info:
|
|
1012
|
+
info: _e(t.value.form.reset, (d) => !["click"].includes(d)),
|
|
1015
1013
|
hidden: t.value.form.reset.hidden,
|
|
1016
1014
|
sort: t.value.form.reset.sort ?? 2,
|
|
1017
1015
|
// 使用空值合并运算符
|
|
1018
1016
|
originalOrder: 1
|
|
1019
1017
|
// 添加原始顺序标识
|
|
1020
1018
|
}
|
|
1021
|
-
],
|
|
1019
|
+
], ee = xe(() => K.filter((d) => !d.hidden).sort((d, D) => d.sort - D.sort || d.originalOrder - D.originalOrder));
|
|
1022
1020
|
return (d, D) => {
|
|
1023
|
-
const I = R("el-form-item"), y = R("el-col"), L = R("el-tab-pane"), O = R("el-tabs"),
|
|
1024
|
-
return
|
|
1021
|
+
const I = R("el-form-item"), y = R("el-col"), L = R("el-tab-pane"), O = R("el-tabs"), te = R("el-button"), be = R("el-form");
|
|
1022
|
+
return s(), S(be, x({
|
|
1025
1023
|
ref_key: "gform",
|
|
1026
1024
|
ref: a,
|
|
1027
1025
|
model: t.value,
|
|
1028
1026
|
style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
|
|
1029
|
-
}, o(
|
|
1030
|
-
default:
|
|
1027
|
+
}, o(_e)(t.value.form, (k) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(k)), { class: "g-form-container" }), {
|
|
1028
|
+
default: g(() => [
|
|
1031
1029
|
A.value.length > 0 ? p(d.$slots, "default", { key: 0 }, () => {
|
|
1032
1030
|
var k, $, b;
|
|
1033
1031
|
return [
|
|
@@ -1037,29 +1035,29 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1037
1035
|
"onUpdate:modelValue": D[0] || (D[0] = (c) => A.value[0].groupName = c),
|
|
1038
1036
|
style: { width: "100%" }
|
|
1039
1037
|
}, t.value.form.tabs), {
|
|
1040
|
-
default:
|
|
1041
|
-
(
|
|
1038
|
+
default: g(() => [
|
|
1039
|
+
(s(!0), B(W, null, U(A.value, (c) => (s(), S(L, x({
|
|
1042
1040
|
key: c.groupName,
|
|
1043
1041
|
label: c.groupName,
|
|
1044
1042
|
name: c.groupName,
|
|
1045
1043
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" },
|
|
1046
1044
|
ref_for: !0
|
|
1047
1045
|
}, c.tabPane), {
|
|
1048
|
-
default:
|
|
1049
|
-
(
|
|
1046
|
+
default: g(() => [
|
|
1047
|
+
(s(!0), B(W, null, U(c.items, (i, w) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...i == null ? void 0 : i.item.col }, {
|
|
1050
1048
|
key: i.key,
|
|
1051
1049
|
style: { width: "100%" }
|
|
1052
1050
|
}), {
|
|
1053
|
-
default:
|
|
1054
|
-
var
|
|
1051
|
+
default: g(() => {
|
|
1052
|
+
var M, P;
|
|
1055
1053
|
return [
|
|
1056
1054
|
G(I, x({
|
|
1057
1055
|
label: i == null ? void 0 : i.item.label,
|
|
1058
1056
|
prop: `${i.key}.value`,
|
|
1059
1057
|
rules: E(i == null ? void 0 : i.item),
|
|
1060
1058
|
ref_for: !0
|
|
1061
|
-
}, { ...(
|
|
1062
|
-
default:
|
|
1059
|
+
}, { ...(M = t.value) == null ? void 0 : M.formItems, ...(P = i == null ? void 0 : i.item) == null ? void 0 : P.formItem }, { style: { width: "100%" } }), {
|
|
1060
|
+
default: g(() => [
|
|
1063
1061
|
p(d.$slots, "f-" + i.key, {
|
|
1064
1062
|
item: i == null ? void 0 : i.item,
|
|
1065
1063
|
model: t.value
|
|
@@ -1069,17 +1067,17 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1069
1067
|
"onUpdate:modelValue": (X) => t.value[i.key].value = X,
|
|
1070
1068
|
item: _(i),
|
|
1071
1069
|
ctrlKey: i.key,
|
|
1072
|
-
ctrlType:
|
|
1070
|
+
ctrlType: z(i == null ? void 0 : i.item),
|
|
1073
1071
|
model: t.value,
|
|
1074
1072
|
class: "g-ctrl-container",
|
|
1075
1073
|
t: "f",
|
|
1076
1074
|
formInfo: u.value
|
|
1077
|
-
},
|
|
1075
|
+
}, de({ _: 2 }, [
|
|
1078
1076
|
U(d.$slots, (X, oe) => ({
|
|
1079
1077
|
name: oe,
|
|
1080
|
-
fn:
|
|
1078
|
+
fn: g((n) => [
|
|
1081
1079
|
p(d.$slots, oe, {
|
|
1082
|
-
data:
|
|
1080
|
+
data: n,
|
|
1083
1081
|
item: i.item,
|
|
1084
1082
|
model: t.value
|
|
1085
1083
|
})
|
|
@@ -1100,19 +1098,19 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1100
1098
|
]),
|
|
1101
1099
|
_: 3
|
|
1102
1100
|
}, 16, ["modelValue"]),
|
|
1103
|
-
(b = ($ = (k = t.value) == null ? void 0 : k.form) == null ? void 0 : $.footer) != null && b.hidden ?
|
|
1101
|
+
(b = ($ = (k = t.value) == null ? void 0 : k.form) == null ? void 0 : $.footer) != null && b.hidden ? ve("", !0) : p(d.$slots, "f-footer", { key: 0 }, () => [
|
|
1104
1102
|
Q("div", {
|
|
1105
|
-
style:
|
|
1103
|
+
style: Fe(t.value.form.footer.style)
|
|
1106
1104
|
}, [
|
|
1107
1105
|
p(d.$slots, "f-footer-left"),
|
|
1108
|
-
(
|
|
1106
|
+
(s(!0), B(W, null, U(ee.value, (c) => (s(), B(W, null, [
|
|
1109
1107
|
p(d.$slots, c.name + "-left"),
|
|
1110
1108
|
p(d.$slots, c.name, {}, () => [
|
|
1111
|
-
G(
|
|
1109
|
+
G(te, x({ ref_for: !0 }, c.info, {
|
|
1112
1110
|
onClick: st((i) => c.click(u.value, t.value), ["stop"])
|
|
1113
1111
|
}), {
|
|
1114
|
-
default:
|
|
1115
|
-
|
|
1112
|
+
default: g(() => [
|
|
1113
|
+
ge(pe(c == null ? void 0 : c.label), 1)
|
|
1116
1114
|
]),
|
|
1117
1115
|
_: 2
|
|
1118
1116
|
}, 1040, ["onClick"])
|
|
@@ -1126,11 +1124,11 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1126
1124
|
}) : p(d.$slots, "default", { key: 1 }, () => {
|
|
1127
1125
|
var k, $, b;
|
|
1128
1126
|
return [
|
|
1129
|
-
(
|
|
1127
|
+
(s(!0), B(W, null, U(V.value, (c, i) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...c.col }, {
|
|
1130
1128
|
key: i,
|
|
1131
1129
|
style: { width: "100%" }
|
|
1132
1130
|
}), {
|
|
1133
|
-
default:
|
|
1131
|
+
default: g(() => {
|
|
1134
1132
|
var w;
|
|
1135
1133
|
return [
|
|
1136
1134
|
G(I, x({
|
|
@@ -1139,35 +1137,35 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1139
1137
|
rules: E(c),
|
|
1140
1138
|
ref_for: !0
|
|
1141
1139
|
}, { ...(w = t.value) == null ? void 0 : w.formItems, ...c == null ? void 0 : c.formItem }, { style: { width: "100%" } }), {
|
|
1142
|
-
label:
|
|
1140
|
+
label: g((M) => [
|
|
1143
1141
|
p(d.$slots, `f-${i}-label`, {
|
|
1144
|
-
data:
|
|
1142
|
+
data: M,
|
|
1145
1143
|
item: c,
|
|
1146
1144
|
model: t.value
|
|
1147
1145
|
}, () => [
|
|
1148
|
-
|
|
1146
|
+
ge(pe(c.label), 1)
|
|
1149
1147
|
])
|
|
1150
1148
|
]),
|
|
1151
|
-
default:
|
|
1149
|
+
default: g(() => [
|
|
1152
1150
|
p(d.$slots, "f-" + i, {
|
|
1153
1151
|
item: c,
|
|
1154
1152
|
model: t.value
|
|
1155
1153
|
}, () => [
|
|
1156
1154
|
G(We, {
|
|
1157
1155
|
modelValue: t.value[i].value,
|
|
1158
|
-
"onUpdate:modelValue": (
|
|
1156
|
+
"onUpdate:modelValue": (M) => t.value[i].value = M,
|
|
1159
1157
|
item: _(c, !0),
|
|
1160
1158
|
ctrlKey: i,
|
|
1161
|
-
ctrlType:
|
|
1159
|
+
ctrlType: z(c),
|
|
1162
1160
|
model: t.value,
|
|
1163
1161
|
class: "g-ctrl-container",
|
|
1164
1162
|
t: "f",
|
|
1165
1163
|
formInfo: u.value
|
|
1166
|
-
},
|
|
1167
|
-
U(d.$slots, (
|
|
1168
|
-
name:
|
|
1169
|
-
fn:
|
|
1170
|
-
p(d.$slots,
|
|
1164
|
+
}, de({ _: 2 }, [
|
|
1165
|
+
U(d.$slots, (M, P) => ({
|
|
1166
|
+
name: P,
|
|
1167
|
+
fn: g((X) => [
|
|
1168
|
+
p(d.$slots, P, {
|
|
1171
1169
|
data: X,
|
|
1172
1170
|
item: c,
|
|
1173
1171
|
model: t.value
|
|
@@ -1183,19 +1181,19 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1183
1181
|
}),
|
|
1184
1182
|
_: 2
|
|
1185
1183
|
}, 1040))), 128)),
|
|
1186
|
-
(b = ($ = (k = t.value) == null ? void 0 : k.form) == null ? void 0 : $.footer) != null && b.hidden ?
|
|
1184
|
+
(b = ($ = (k = t.value) == null ? void 0 : k.form) == null ? void 0 : $.footer) != null && b.hidden ? ve("", !0) : p(d.$slots, "f-footer", { key: 0 }, () => [
|
|
1187
1185
|
Q("div", {
|
|
1188
|
-
style:
|
|
1186
|
+
style: Fe(t.value.form.footer.style)
|
|
1189
1187
|
}, [
|
|
1190
1188
|
p(d.$slots, "f-footer-left"),
|
|
1191
|
-
(
|
|
1189
|
+
(s(!0), B(W, null, U(ee.value, (c) => (s(), B(W, null, [
|
|
1192
1190
|
p(d.$slots, c.name + "-left"),
|
|
1193
1191
|
p(d.$slots, c.name, {}, () => [
|
|
1194
|
-
G(
|
|
1192
|
+
G(te, x({ ref_for: !0 }, c.info, {
|
|
1195
1193
|
onClick: st((i) => c.click(u.value, t.value), ["stop"])
|
|
1196
1194
|
}), {
|
|
1197
|
-
default:
|
|
1198
|
-
|
|
1195
|
+
default: g(() => [
|
|
1196
|
+
ge(pe(c == null ? void 0 : c.label), 1)
|
|
1199
1197
|
]),
|
|
1200
1198
|
_: 2
|
|
1201
1199
|
}, 1040, ["onClick"])
|
|
@@ -1222,14 +1220,14 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1222
1220
|
}),
|
|
1223
1221
|
emits: ["update:modelValue", "update:info"],
|
|
1224
1222
|
setup(m) {
|
|
1225
|
-
const f = Oe(m, "modelValue"), t = m, e = Oe(m, "info"), a = (
|
|
1226
|
-
const
|
|
1227
|
-
return (
|
|
1223
|
+
const f = Oe(m, "modelValue"), t = m, e = Oe(m, "info"), a = (T) => xe(() => Object.fromEntries(Object.entries(f.value).filter((q) => q[1].search && q[1].search.more === T).map((q) => [q[0], q[1]]))).value, v = (T) => typeof T.search == "function" ? T.search(e.value) : T.search || {}, F = (T) => {
|
|
1224
|
+
const q = v(T);
|
|
1225
|
+
return (q == null ? void 0 : q.type) || T.type;
|
|
1228
1226
|
};
|
|
1229
|
-
return (
|
|
1227
|
+
return (T, q) => {
|
|
1230
1228
|
const E = R("el-form-item");
|
|
1231
|
-
return
|
|
1232
|
-
key:
|
|
1229
|
+
return s(!0), B(W, null, U(a(t.more), (_, z) => p(T.$slots, `q-${z}`, {
|
|
1230
|
+
key: z,
|
|
1233
1231
|
item: _,
|
|
1234
1232
|
model: f.value
|
|
1235
1233
|
}, () => [
|
|
@@ -1237,27 +1235,27 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1237
1235
|
label: _.label,
|
|
1238
1236
|
ref_for: !0
|
|
1239
1237
|
}, { ...f.value.queryItems, ...v(_) }), {
|
|
1240
|
-
label:
|
|
1241
|
-
p(
|
|
1238
|
+
label: g(() => [
|
|
1239
|
+
p(T.$slots, `q-${z}-label`, {
|
|
1242
1240
|
item: _,
|
|
1243
1241
|
model: f.value
|
|
1244
1242
|
})
|
|
1245
1243
|
]),
|
|
1246
|
-
default:
|
|
1244
|
+
default: g(() => [
|
|
1247
1245
|
G(We, {
|
|
1248
|
-
modelValue: e.value[
|
|
1249
|
-
"onUpdate:modelValue": (
|
|
1246
|
+
modelValue: e.value[z],
|
|
1247
|
+
"onUpdate:modelValue": (ne) => e.value[z] = ne,
|
|
1250
1248
|
item: { ..._ == null ? void 0 : _.editor, ...v(_) },
|
|
1251
|
-
ctrlKey:
|
|
1252
|
-
ctrlType:
|
|
1249
|
+
ctrlKey: z,
|
|
1250
|
+
ctrlType: F(_),
|
|
1253
1251
|
model: f.value,
|
|
1254
1252
|
t: "q",
|
|
1255
1253
|
formInfo: e.value
|
|
1256
|
-
},
|
|
1257
|
-
U(Object.keys(
|
|
1258
|
-
name:
|
|
1259
|
-
fn:
|
|
1260
|
-
p(
|
|
1254
|
+
}, de({ _: 2 }, [
|
|
1255
|
+
U(Object.keys(T.$slots), (ne) => ({
|
|
1256
|
+
name: ne,
|
|
1257
|
+
fn: g((V) => [
|
|
1258
|
+
p(T.$slots, ne, {
|
|
1261
1259
|
data: V,
|
|
1262
1260
|
item: _,
|
|
1263
1261
|
model: f.value
|
|
@@ -1287,9 +1285,9 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1287
1285
|
},
|
|
1288
1286
|
emits: /* @__PURE__ */ Se(["query", "reset"], ["update:modelValue"]),
|
|
1289
1287
|
setup(m, { emit: f }) {
|
|
1290
|
-
const t = Oe(m, "modelValue"), e = f, a = lt("options"), v =
|
|
1291
|
-
let
|
|
1292
|
-
const
|
|
1288
|
+
const t = Oe(m, "modelValue"), e = f, a = lt("options"), v = ye(!1);
|
|
1289
|
+
let F = Object.fromEntries(Object.entries(t.value).filter((u) => u[1].search).map(([u, A]) => [u, A.value]));
|
|
1290
|
+
const T = ye(F), q = {
|
|
1293
1291
|
hidden: !1,
|
|
1294
1292
|
type: "hidden",
|
|
1295
1293
|
labelWidth: 100,
|
|
@@ -1315,7 +1313,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1315
1313
|
hidden: !1,
|
|
1316
1314
|
plain: !1,
|
|
1317
1315
|
click: () => {
|
|
1318
|
-
|
|
1316
|
+
T.value = ye(F), e("reset", T.value);
|
|
1319
1317
|
}
|
|
1320
1318
|
},
|
|
1321
1319
|
query: {
|
|
@@ -1323,7 +1321,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1323
1321
|
type: "primary",
|
|
1324
1322
|
label: "查询",
|
|
1325
1323
|
click: () => {
|
|
1326
|
-
e("query",
|
|
1324
|
+
e("query", T.value), v.value = !1;
|
|
1327
1325
|
}
|
|
1328
1326
|
},
|
|
1329
1327
|
btns: {
|
|
@@ -1335,7 +1333,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1335
1333
|
}
|
|
1336
1334
|
}
|
|
1337
1335
|
};
|
|
1338
|
-
t.value.query =
|
|
1336
|
+
t.value.query = $e(q, a == null ? void 0 : a.query, t.value.query);
|
|
1339
1337
|
const E = {
|
|
1340
1338
|
2: {
|
|
1341
1339
|
title: "更多查询",
|
|
@@ -1353,7 +1351,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1353
1351
|
trigger: "click"
|
|
1354
1352
|
}
|
|
1355
1353
|
};
|
|
1356
|
-
t.value.query.more.dialog =
|
|
1354
|
+
t.value.query.more.dialog = $e(
|
|
1357
1355
|
E[t.value.query.more.mode] || {},
|
|
1358
1356
|
t.value.query.more.dialog
|
|
1359
1357
|
);
|
|
@@ -1364,26 +1362,26 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1364
1362
|
width: "280px"
|
|
1365
1363
|
}
|
|
1366
1364
|
};
|
|
1367
|
-
t.value.queryItems =
|
|
1368
|
-
const
|
|
1369
|
-
const
|
|
1365
|
+
t.value.queryItems = $e(_, a == null ? void 0 : a.queryItems, t.value.queryItems);
|
|
1366
|
+
const z = (u, A) => {
|
|
1367
|
+
const K = Object.keys(u.slots).filter((ee) => ee !== "default").reduce((ee, se) => (ee[se] = (ce) => u.slots[se]({
|
|
1370
1368
|
model: t.value
|
|
1371
1369
|
// 传递当前模型数据
|
|
1372
|
-
}),
|
|
1373
|
-
return
|
|
1370
|
+
}), ee), {});
|
|
1371
|
+
return De(it, {
|
|
1374
1372
|
modelValue: t.value,
|
|
1375
|
-
"onUpdate:modelValue": (
|
|
1376
|
-
info:
|
|
1377
|
-
"onUpdate:info": (
|
|
1373
|
+
"onUpdate:modelValue": (ee) => t.value = ee,
|
|
1374
|
+
info: T.value,
|
|
1375
|
+
"onUpdate:info": (ee) => T.value = ee,
|
|
1378
1376
|
more: A
|
|
1379
|
-
},
|
|
1380
|
-
},
|
|
1381
|
-
var
|
|
1377
|
+
}, K);
|
|
1378
|
+
}, ne = mt(), V = () => {
|
|
1379
|
+
var K, ee, se, ce, ie, re, d, D, I;
|
|
1382
1380
|
const u = [
|
|
1383
1381
|
{
|
|
1384
1382
|
key: "query",
|
|
1385
|
-
hidden: (
|
|
1386
|
-
component:
|
|
1383
|
+
hidden: (se = (ee = (K = t.value) == null ? void 0 : K.query) == null ? void 0 : ee.query) == null ? void 0 : se.hidden,
|
|
1384
|
+
component: he,
|
|
1387
1385
|
props: {
|
|
1388
1386
|
...t.value.query.query,
|
|
1389
1387
|
onClick: t.value.query.query.click
|
|
@@ -1393,8 +1391,8 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1393
1391
|
},
|
|
1394
1392
|
{
|
|
1395
1393
|
key: "reset",
|
|
1396
|
-
hidden: (
|
|
1397
|
-
component:
|
|
1394
|
+
hidden: (re = (ie = (ce = t.value) == null ? void 0 : ce.query) == null ? void 0 : ie.reset) == null ? void 0 : re.hidden,
|
|
1395
|
+
component: he,
|
|
1398
1396
|
props: {
|
|
1399
1397
|
...t.value.query.reset,
|
|
1400
1398
|
onClick: t.value.query.reset.click
|
|
@@ -1405,61 +1403,61 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1405
1403
|
{
|
|
1406
1404
|
key: "more",
|
|
1407
1405
|
hidden: (I = (D = (d = t.value) == null ? void 0 : d.query) == null ? void 0 : D.more) == null ? void 0 : I.hidden,
|
|
1408
|
-
component: t.value.query.more.mode === 3 ? Xe :
|
|
1406
|
+
component: t.value.query.more.mode === 3 ? Xe : he,
|
|
1409
1407
|
props: t.value.query.more.mode === 3 ? { ...t.value.query.more.dialog } : {
|
|
1410
1408
|
...t.value.query.more,
|
|
1411
1409
|
onClick: t.value.query.more.click
|
|
1412
1410
|
},
|
|
1413
1411
|
label: t.value.query.more.label,
|
|
1414
1412
|
sort: t.value.query.more.sort || 0,
|
|
1415
|
-
content: t.value.query.more.mode === 3 ? () =>
|
|
1413
|
+
content: t.value.query.more.mode === 3 ? () => De(Pe, {
|
|
1416
1414
|
class: "query-form",
|
|
1417
|
-
...
|
|
1418
|
-
}, () =>
|
|
1415
|
+
..._e(t.value.query, (y) => !["query", "more", "reset"].includes(y))
|
|
1416
|
+
}, () => z({ slots: ne }, !0)) : null
|
|
1419
1417
|
}
|
|
1420
1418
|
];
|
|
1421
|
-
return u.sort((y, L) => y.sort - L.sort), u.filter((y) => !y.hidden).map((y) => y.key === "more" && y.component === Xe ?
|
|
1422
|
-
reference: () =>
|
|
1419
|
+
return u.sort((y, L) => y.sort - L.sort), u.filter((y) => !y.hidden).map((y) => y.key === "more" && y.component === Xe ? De(Xe, y.props, {
|
|
1420
|
+
reference: () => De(he, t.value.query.more, () => y.label),
|
|
1423
1421
|
default: y.content
|
|
1424
|
-
}) : (y.props.slot = "query-" + y.key, y.label ?
|
|
1422
|
+
}) : (y.props.slot = "query-" + y.key, y.label ? De(y.component, y.props, () => y.label) : De(y.component, y.props)));
|
|
1425
1423
|
};
|
|
1426
1424
|
return (u, A) => {
|
|
1427
|
-
var
|
|
1428
|
-
const
|
|
1429
|
-
return
|
|
1425
|
+
var se, ce, ie, re, d, D, I, y, L, O, te, be, k, $, b, c, i;
|
|
1426
|
+
const K = R("el-form-item"), ee = R("el-drawer");
|
|
1427
|
+
return s(), B("div", {
|
|
1430
1428
|
class: "g-query-container",
|
|
1431
|
-
style:
|
|
1429
|
+
style: Fe((ce = (se = t.value.query) == null ? void 0 : se.container) == null ? void 0 : ce.style)
|
|
1432
1430
|
}, [
|
|
1433
|
-
G(o(Pe), je(Ze(o(
|
|
1434
|
-
default:
|
|
1435
|
-
var w,
|
|
1431
|
+
G(o(Pe), je(Ze(o(_e)(t.value.query, (w) => !["query", "more", "reset", "btns"].includes(w)))), {
|
|
1432
|
+
default: g(() => {
|
|
1433
|
+
var w, M;
|
|
1436
1434
|
return [
|
|
1437
|
-
(
|
|
1438
|
-
((
|
|
1439
|
-
default:
|
|
1440
|
-
var
|
|
1435
|
+
(s(), S(qe(z({ slots: u.$slots }, void 0)))),
|
|
1436
|
+
((M = (w = t.value.query) == null ? void 0 : w.container) == null ? void 0 : M.inline) === !0 ? (s(), S(K, { key: 0 }, {
|
|
1437
|
+
default: g(() => {
|
|
1438
|
+
var P, X, oe, n, H;
|
|
1441
1439
|
return [
|
|
1442
1440
|
Q("div", {
|
|
1443
|
-
style:
|
|
1441
|
+
style: Fe((X = (P = t.value.query) == null ? void 0 : P.btns) == null ? void 0 : X.style)
|
|
1444
1442
|
}, [
|
|
1445
|
-
t.value.query.group ? (
|
|
1446
|
-
default:
|
|
1447
|
-
(
|
|
1448
|
-
(
|
|
1443
|
+
t.value.query.group ? (s(), S(o(ze), { key: 0 }, {
|
|
1444
|
+
default: g(() => [
|
|
1445
|
+
(s(!0), B(W, null, U(V(), (ae) => p(u.$slots, ae.props.slot, {}, () => [
|
|
1446
|
+
(s(), S(qe(ae)))
|
|
1449
1447
|
], !0)), 256)),
|
|
1450
1448
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1451
1449
|
]),
|
|
1452
1450
|
_: 3
|
|
1453
|
-
})) : (
|
|
1454
|
-
(
|
|
1455
|
-
default:
|
|
1456
|
-
(
|
|
1457
|
-
(
|
|
1451
|
+
})) : (s(), B(W, { key: 1 }, [
|
|
1452
|
+
(H = (n = (oe = t.value) == null ? void 0 : oe.query) == null ? void 0 : n.btns) != null && H.group ? (s(), S(o(ze), { key: 0 }, {
|
|
1453
|
+
default: g(() => [
|
|
1454
|
+
(s(!0), B(W, null, U(V(), (ae) => p(u.$slots, ae.props.slot, {}, () => [
|
|
1455
|
+
(s(), S(qe(ae)))
|
|
1458
1456
|
], !0)), 256))
|
|
1459
1457
|
]),
|
|
1460
1458
|
_: 3
|
|
1461
|
-
})) : (
|
|
1462
|
-
(
|
|
1459
|
+
})) : (s(!0), B(W, { key: 1 }, U(V(), (ae) => p(u.$slots, ae.props.slot, {}, () => [
|
|
1460
|
+
(s(), S(qe(ae)))
|
|
1463
1461
|
], !0)), 256)),
|
|
1464
1462
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1465
1463
|
], 64))
|
|
@@ -1467,81 +1465,81 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1467
1465
|
];
|
|
1468
1466
|
}),
|
|
1469
1467
|
_: 3
|
|
1470
|
-
})) :
|
|
1468
|
+
})) : ve("", !0)
|
|
1471
1469
|
];
|
|
1472
1470
|
}),
|
|
1473
1471
|
_: 3
|
|
1474
1472
|
}, 16),
|
|
1475
|
-
((d = (
|
|
1473
|
+
((d = (re = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : re.container) == null ? void 0 : d.inline) === !1 ? (s(), B("div", {
|
|
1476
1474
|
key: 0,
|
|
1477
|
-
style:
|
|
1475
|
+
style: Fe((I = (D = t.value.query) == null ? void 0 : D.btns) == null ? void 0 : I.style)
|
|
1478
1476
|
}, [
|
|
1479
|
-
t.value.query.group ? (
|
|
1480
|
-
default:
|
|
1481
|
-
(
|
|
1482
|
-
(
|
|
1477
|
+
t.value.query.group ? (s(), S(o(ze), { key: 0 }, {
|
|
1478
|
+
default: g(() => [
|
|
1479
|
+
(s(!0), B(W, null, U(V(), (w) => p(u.$slots, w.props.slot, {}, () => [
|
|
1480
|
+
(s(), S(qe(w)))
|
|
1483
1481
|
], !0)), 256)),
|
|
1484
1482
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1485
1483
|
]),
|
|
1486
1484
|
_: 3
|
|
1487
|
-
})) : (
|
|
1488
|
-
(L = (y = t.value.query) == null ? void 0 : y.btns) != null && L.group ? (
|
|
1489
|
-
default:
|
|
1490
|
-
(
|
|
1491
|
-
(
|
|
1485
|
+
})) : (s(), B(W, { key: 1 }, [
|
|
1486
|
+
(L = (y = t.value.query) == null ? void 0 : y.btns) != null && L.group ? (s(), S(o(ze), { key: 0 }, {
|
|
1487
|
+
default: g(() => [
|
|
1488
|
+
(s(!0), B(W, null, U(V(), (w) => p(u.$slots, w.props.slot, {}, () => [
|
|
1489
|
+
(s(), S(qe(w)))
|
|
1492
1490
|
], !0)), 256))
|
|
1493
1491
|
]),
|
|
1494
1492
|
_: 3
|
|
1495
|
-
})) : (
|
|
1496
|
-
(
|
|
1493
|
+
})) : (s(!0), B(W, { key: 1 }, U(V(), (w) => p(u.$slots, w.props.slot, {}, () => [
|
|
1494
|
+
(s(), S(qe(w)))
|
|
1497
1495
|
], !0)), 256)),
|
|
1498
1496
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1499
1497
|
], 64))
|
|
1500
|
-
], 4)) :
|
|
1501
|
-
G(
|
|
1498
|
+
], 4)) : ve("", !0),
|
|
1499
|
+
G(Ct, {
|
|
1502
1500
|
duration: 300,
|
|
1503
1501
|
name: "nested"
|
|
1504
1502
|
}, {
|
|
1505
|
-
default:
|
|
1506
|
-
var w,
|
|
1503
|
+
default: g(() => {
|
|
1504
|
+
var w, M, P;
|
|
1507
1505
|
return [
|
|
1508
|
-
v.value && !((
|
|
1506
|
+
v.value && !((P = (M = (w = t.value) == null ? void 0 : w.query) == null ? void 0 : M.more) != null && P.hidden) && t.value.query.more.mode == 1 ? (s(), B("div", Rt, [
|
|
1509
1507
|
Q("div", jt, [
|
|
1510
|
-
t.value.query.more.mode == 1 ?
|
|
1511
|
-
default:
|
|
1512
|
-
(
|
|
1508
|
+
t.value.query.more.mode == 1 ? pt((s(), S(o(Pe), je(x({ key: 0 }, o(_e)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
|
|
1509
|
+
default: g(() => [
|
|
1510
|
+
(s(), S(qe(z({ slots: u.$slots }, !0))))
|
|
1513
1511
|
]),
|
|
1514
1512
|
_: 1
|
|
1515
1513
|
}, 16)), [
|
|
1516
|
-
[
|
|
1517
|
-
]) :
|
|
1514
|
+
[vt, v.value]
|
|
1515
|
+
]) : ve("", !0)
|
|
1518
1516
|
])
|
|
1519
|
-
])) :
|
|
1517
|
+
])) : ve("", !0)
|
|
1520
1518
|
];
|
|
1521
1519
|
}),
|
|
1522
1520
|
_: 1
|
|
1523
1521
|
}),
|
|
1524
|
-
v.value && !((
|
|
1522
|
+
v.value && !((be = (te = (O = t.value) == null ? void 0 : O.query) == null ? void 0 : te.more) != null && be.hidden) && t.value.query.more.mode == 2 ? (s(), S(ee, x({
|
|
1525
1523
|
key: 1,
|
|
1526
1524
|
modelValue: v.value,
|
|
1527
1525
|
"onUpdate:modelValue": A[4] || (A[4] = (w) => v.value = w),
|
|
1528
1526
|
title: "更多查询",
|
|
1529
1527
|
"show-close": !1
|
|
1530
|
-
}, t.value.query.more.dialog),
|
|
1531
|
-
default:
|
|
1532
|
-
G(o(Pe), x(o(
|
|
1533
|
-
default:
|
|
1528
|
+
}, t.value.query.more.dialog), de({
|
|
1529
|
+
default: g(() => [
|
|
1530
|
+
G(o(Pe), x(o(_e)(t.value.query, (w) => !["query", "more", "reset"].includes(w)), { style: { width: "98%" } }), {
|
|
1531
|
+
default: g(() => [
|
|
1534
1532
|
G(it, {
|
|
1535
1533
|
modelValue: t.value,
|
|
1536
1534
|
"onUpdate:modelValue": A[0] || (A[0] = (w) => t.value = w),
|
|
1537
|
-
info:
|
|
1538
|
-
"onUpdate:info": A[1] || (A[1] = (w) =>
|
|
1535
|
+
info: T.value,
|
|
1536
|
+
"onUpdate:info": A[1] || (A[1] = (w) => T.value = w),
|
|
1539
1537
|
more: !0
|
|
1540
|
-
},
|
|
1541
|
-
U(u.$slots, (w,
|
|
1542
|
-
name:
|
|
1543
|
-
fn:
|
|
1544
|
-
p(u.$slots,
|
|
1538
|
+
}, de({ _: 2 }, [
|
|
1539
|
+
U(u.$slots, (w, M, P) => ({
|
|
1540
|
+
name: M,
|
|
1541
|
+
fn: g((X) => [
|
|
1542
|
+
p(u.$slots, M, { model: t.value }, void 0, !0)
|
|
1545
1543
|
])
|
|
1546
1544
|
}))
|
|
1547
1545
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1553,21 +1551,21 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1553
1551
|
}, [
|
|
1554
1552
|
(i = (c = (b = ($ = (k = t.value) == null ? void 0 : k.query) == null ? void 0 : $.more) == null ? void 0 : b.dialog) == null ? void 0 : c.footer) != null && i.hidden ? void 0 : {
|
|
1555
1553
|
name: "footer",
|
|
1556
|
-
fn:
|
|
1554
|
+
fn: g(() => [
|
|
1557
1555
|
Q("div", je(Ze(t.value.query.more.dialog.footer)), [
|
|
1558
|
-
G(o(
|
|
1556
|
+
G(o(he), x(t.value.query.query, {
|
|
1559
1557
|
onClick: A[2] || (A[2] = (w) => t.value.query.query.click())
|
|
1560
1558
|
}), {
|
|
1561
|
-
default:
|
|
1562
|
-
|
|
1559
|
+
default: g(() => [
|
|
1560
|
+
ge(pe(t.value.query.query.label), 1)
|
|
1563
1561
|
]),
|
|
1564
1562
|
_: 1
|
|
1565
1563
|
}, 16),
|
|
1566
|
-
G(o(
|
|
1564
|
+
G(o(he), x(t.value.query.reset, {
|
|
1567
1565
|
onClick: A[3] || (A[3] = (w) => t.value.query.reset.click())
|
|
1568
1566
|
}), {
|
|
1569
|
-
default:
|
|
1570
|
-
|
|
1567
|
+
default: g(() => [
|
|
1568
|
+
ge(pe(t.value.query.reset.label), 1)
|
|
1571
1569
|
]),
|
|
1572
1570
|
_: 1
|
|
1573
1571
|
}, 16)
|
|
@@ -1575,7 +1573,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1575
1573
|
]),
|
|
1576
1574
|
key: "0"
|
|
1577
1575
|
}
|
|
1578
|
-
]), 1040, ["modelValue"])) :
|
|
1576
|
+
]), 1040, ["modelValue"])) : ve("", !0)
|
|
1579
1577
|
], 4);
|
|
1580
1578
|
};
|
|
1581
1579
|
}
|
|
@@ -1590,42 +1588,42 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1590
1588
|
},
|
|
1591
1589
|
emits: ["excel"],
|
|
1592
1590
|
setup(m, { emit: f }) {
|
|
1593
|
-
const t = m, e = f, a =
|
|
1594
|
-
a.value.forEach((
|
|
1595
|
-
|
|
1596
|
-
});
|
|
1597
|
-
}, T = () => {
|
|
1598
|
-
a.value.forEach((S) => {
|
|
1599
|
-
S.value = !1;
|
|
1591
|
+
const t = m, e = f, a = ye(t.items), v = () => {
|
|
1592
|
+
a.value.forEach((q) => {
|
|
1593
|
+
q.value = !0;
|
|
1600
1594
|
});
|
|
1601
1595
|
}, F = () => {
|
|
1602
|
-
|
|
1603
|
-
|
|
1596
|
+
a.value.forEach((q) => {
|
|
1597
|
+
q.value = !1;
|
|
1598
|
+
});
|
|
1599
|
+
}, T = () => {
|
|
1600
|
+
e("excel", a.value, (q, E = "excel.xls") => {
|
|
1601
|
+
if (!q) {
|
|
1604
1602
|
console.error("下载链接无效");
|
|
1605
1603
|
return;
|
|
1606
1604
|
}
|
|
1607
1605
|
try {
|
|
1608
1606
|
const _ = document.createElement("a");
|
|
1609
|
-
_.href =
|
|
1607
|
+
_.href = q, _.download = E, _.style.display = "none", document.body.appendChild(_), _.click(), document.body.removeChild(_);
|
|
1610
1608
|
} catch (_) {
|
|
1611
1609
|
console.error("下载文件时出现错误:", _);
|
|
1612
1610
|
}
|
|
1613
1611
|
});
|
|
1614
1612
|
};
|
|
1615
1613
|
return Ne(() => {
|
|
1616
|
-
const
|
|
1614
|
+
const q = new ht(document.getElementById("excelSortEl"), {
|
|
1617
1615
|
animation: 150,
|
|
1618
1616
|
onEnd: () => {
|
|
1619
|
-
let _ =
|
|
1617
|
+
let _ = q.toArray();
|
|
1620
1618
|
console.log(_);
|
|
1621
1619
|
}
|
|
1622
|
-
}), E =
|
|
1623
|
-
|
|
1620
|
+
}), E = q;
|
|
1621
|
+
Dt(() => {
|
|
1624
1622
|
E && E.destroy();
|
|
1625
1623
|
});
|
|
1626
|
-
}), (
|
|
1627
|
-
const _ = R("el-divider"),
|
|
1628
|
-
return
|
|
1624
|
+
}), (q, E) => {
|
|
1625
|
+
const _ = R("el-divider"), z = R("el-alert"), ne = R("el-checkbox"), V = R("el-button");
|
|
1626
|
+
return s(), B("div", Pt, [
|
|
1629
1627
|
Q("div", zt, [
|
|
1630
1628
|
Q("div", Ht, [
|
|
1631
1629
|
Q("a", {
|
|
@@ -1634,11 +1632,11 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1634
1632
|
}, "全选"),
|
|
1635
1633
|
G(_, { direction: "vertical" }),
|
|
1636
1634
|
Q("a", {
|
|
1637
|
-
onClick:
|
|
1635
|
+
onClick: F,
|
|
1638
1636
|
style: { cursor: "pointer" }
|
|
1639
1637
|
}, "全不选")
|
|
1640
1638
|
]),
|
|
1641
|
-
G(
|
|
1639
|
+
G(z, {
|
|
1642
1640
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
1643
1641
|
type: "warning",
|
|
1644
1642
|
"show-icon": "",
|
|
@@ -1647,7 +1645,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1647
1645
|
}),
|
|
1648
1646
|
E[0] || (E[0] = Q("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
1649
1647
|
Q("div", Yt, [
|
|
1650
|
-
(
|
|
1648
|
+
(s(!0), B(W, null, U(a.value, (u) => (s(), S(ne, {
|
|
1651
1649
|
class: "check-box-hover",
|
|
1652
1650
|
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" },
|
|
1653
1651
|
"data-id": u.key,
|
|
@@ -1656,7 +1654,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1656
1654
|
key: u.key,
|
|
1657
1655
|
title: u.label
|
|
1658
1656
|
}, {
|
|
1659
|
-
default:
|
|
1657
|
+
default: g(() => [
|
|
1660
1658
|
Q("span", {
|
|
1661
1659
|
textContent: pe(u.label),
|
|
1662
1660
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
@@ -1669,11 +1667,11 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1669
1667
|
Q("div", Gt, [
|
|
1670
1668
|
G(V, {
|
|
1671
1669
|
type: "primary",
|
|
1672
|
-
onClick:
|
|
1670
|
+
onClick: T,
|
|
1673
1671
|
disabled: a.value.filter((u) => u.value).length < 1
|
|
1674
1672
|
}, {
|
|
1675
|
-
default:
|
|
1676
|
-
|
|
1673
|
+
default: g(() => [
|
|
1674
|
+
ge(pe(t.commitText), 1)
|
|
1677
1675
|
]),
|
|
1678
1676
|
_: 1
|
|
1679
1677
|
}, 8, ["disabled"])
|
|
@@ -1681,36 +1679,36 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1681
1679
|
]);
|
|
1682
1680
|
};
|
|
1683
1681
|
}
|
|
1684
|
-
}, Xt = /* @__PURE__ */ Ae(Qt, [["__scopeId", "data-v-51dfb7ef"]]),
|
|
1685
|
-
|
|
1682
|
+
}, Xt = /* @__PURE__ */ Ae(Qt, [["__scopeId", "data-v-51dfb7ef"]]), Ve = new qt("gyc");
|
|
1683
|
+
Ve.version(1).stores({
|
|
1686
1684
|
tableInfo: "++id,[user+page+key],user,page,key,showCol,width,sort",
|
|
1687
1685
|
tableList: "++id,name"
|
|
1688
1686
|
});
|
|
1689
1687
|
async function Re(m, f, t, e = {}) {
|
|
1690
|
-
if (await
|
|
1691
|
-
let v = await
|
|
1692
|
-
return await
|
|
1688
|
+
if (await Ve.tableInfo.where({ user: m, page: f, key: t }).count() > 0) {
|
|
1689
|
+
let v = await Ve.tableInfo.where({ user: m, page: f, key: t }).first();
|
|
1690
|
+
return await Ve.tableInfo.put({ ...v, ...e }), "update success";
|
|
1693
1691
|
} else {
|
|
1694
1692
|
let v = { showCol: !0, width: "auto", sort: 0, ...e };
|
|
1695
|
-
return await
|
|
1693
|
+
return await Ve.tableInfo.add({ user: m, page: f, key: t, ...v }), "add success";
|
|
1696
1694
|
}
|
|
1697
1695
|
}
|
|
1698
1696
|
async function Jt(m, f) {
|
|
1699
|
-
return await
|
|
1697
|
+
return await Ve.tableInfo.where({ user: m, page: f }).toArray();
|
|
1700
1698
|
}
|
|
1701
1699
|
async function Zt(m, f) {
|
|
1702
1700
|
try {
|
|
1703
|
-
const t = await
|
|
1701
|
+
const t = await Ve.tableInfo.where({ user: m, page: f }).delete();
|
|
1704
1702
|
return console.log("删除了" + t + "条数据"), t;
|
|
1705
1703
|
} catch (t) {
|
|
1706
1704
|
throw console.error("删除表格项设置信息时出错:", t), t;
|
|
1707
1705
|
}
|
|
1708
1706
|
}
|
|
1709
1707
|
async function Kt(m) {
|
|
1710
|
-
return await
|
|
1708
|
+
return await Ve.tableList.where({ name: m }).first();
|
|
1711
1709
|
}
|
|
1712
1710
|
async function el(m) {
|
|
1713
|
-
return typeof m == "string" && (m = { name: m }), await
|
|
1711
|
+
return typeof m == "string" && (m = { name: m }), await Ve.tableList.add(m), "add success";
|
|
1714
1712
|
}
|
|
1715
1713
|
const tl = {
|
|
1716
1714
|
style: { margin: "10px" },
|
|
@@ -1731,13 +1729,13 @@ const tl = {
|
|
|
1731
1729
|
}),
|
|
1732
1730
|
emits: ["update:modelValue"],
|
|
1733
1731
|
setup(m) {
|
|
1734
|
-
const f = m, t =
|
|
1732
|
+
const f = m, t = ye([]), e = Oe(m, "modelValue"), a = async (E, _) => {
|
|
1735
1733
|
E ? e.value[_].showCol = !0 : e.value[_].showCol = !1;
|
|
1736
1734
|
try {
|
|
1737
|
-
const
|
|
1738
|
-
console.log(
|
|
1739
|
-
} catch (
|
|
1740
|
-
console.error("列显示状态保存信息时出错:",
|
|
1735
|
+
const z = await Re(e.value.table.user, f.name, _, { showCol: E });
|
|
1736
|
+
console.log(z);
|
|
1737
|
+
} catch (z) {
|
|
1738
|
+
console.error("列显示状态保存信息时出错:", z), we({
|
|
1741
1739
|
type: "error",
|
|
1742
1740
|
message: "列显示状态保存信息失败!"
|
|
1743
1741
|
});
|
|
@@ -1745,20 +1743,20 @@ const tl = {
|
|
|
1745
1743
|
}, v = () => {
|
|
1746
1744
|
const E = document.getElementById("cols");
|
|
1747
1745
|
if (E) {
|
|
1748
|
-
let _ =
|
|
1746
|
+
let _ = ht.create(E, {
|
|
1749
1747
|
animation: 150,
|
|
1750
1748
|
filter: ".filtered",
|
|
1751
1749
|
//
|
|
1752
1750
|
sort: !0,
|
|
1753
1751
|
onEnd: () => {
|
|
1754
|
-
_.toArray().forEach(async (
|
|
1755
|
-
e.value[
|
|
1756
|
-
let u = e.value[
|
|
1752
|
+
_.toArray().forEach(async (ne, V) => {
|
|
1753
|
+
e.value[ne].sort = V;
|
|
1754
|
+
let u = e.value[ne].width || "auto";
|
|
1757
1755
|
try {
|
|
1758
|
-
const A = await Re(e.value.table.user, f.name,
|
|
1756
|
+
const A = await Re(e.value.table.user, f.name, ne, { sort: V, width: u });
|
|
1759
1757
|
console.log(A);
|
|
1760
1758
|
} catch (A) {
|
|
1761
|
-
console.error("列排序和宽度保存信息时出错:", A),
|
|
1759
|
+
console.error("列排序和宽度保存信息时出错:", A), we({
|
|
1762
1760
|
type: "error",
|
|
1763
1761
|
message: "列排序和宽度保存信息失败!"
|
|
1764
1762
|
});
|
|
@@ -1767,7 +1765,7 @@ const tl = {
|
|
|
1767
1765
|
}
|
|
1768
1766
|
});
|
|
1769
1767
|
}
|
|
1770
|
-
},
|
|
1768
|
+
}, F = async () => {
|
|
1771
1769
|
try {
|
|
1772
1770
|
for (const E of t.value) {
|
|
1773
1771
|
E.showCol = !0, e.value[E.value].showCol = !0;
|
|
@@ -1779,30 +1777,30 @@ const tl = {
|
|
|
1779
1777
|
console.log(_);
|
|
1780
1778
|
}
|
|
1781
1779
|
} catch (E) {
|
|
1782
|
-
console.error("全选列保存信息时出错:", E),
|
|
1780
|
+
console.error("全选列保存信息时出错:", E), we({
|
|
1783
1781
|
type: "error",
|
|
1784
1782
|
message: "全选列保存信息失败!"
|
|
1785
1783
|
});
|
|
1786
1784
|
}
|
|
1787
|
-
},
|
|
1785
|
+
}, T = async () => {
|
|
1788
1786
|
try {
|
|
1789
1787
|
const E = t.value.filter((_) => !_.alwaysShow);
|
|
1790
1788
|
for (const _ of E) {
|
|
1791
1789
|
_.showCol = !1, e.value[_.value].showCol = !1;
|
|
1792
|
-
const
|
|
1790
|
+
const z = await Re(e.value.table.user, f.name, _.value, {
|
|
1793
1791
|
showCol: !1,
|
|
1794
1792
|
width: _.width,
|
|
1795
1793
|
sort: _.sort
|
|
1796
1794
|
});
|
|
1797
|
-
console.log(
|
|
1795
|
+
console.log(z);
|
|
1798
1796
|
}
|
|
1799
1797
|
} catch (E) {
|
|
1800
|
-
console.error("清除列保存信息时出错:", E),
|
|
1798
|
+
console.error("清除列保存信息时出错:", E), we({
|
|
1801
1799
|
type: "error",
|
|
1802
1800
|
message: "清除列保存信息失败!"
|
|
1803
1801
|
});
|
|
1804
1802
|
}
|
|
1805
|
-
},
|
|
1803
|
+
}, q = () => {
|
|
1806
1804
|
ft.confirm("确定要复位吗?", "提示", {
|
|
1807
1805
|
confirmButtonText: "确定",
|
|
1808
1806
|
cancelButtonText: "取消",
|
|
@@ -1811,7 +1809,7 @@ const tl = {
|
|
|
1811
1809
|
Zt(e.value.table.user, f.name).then((E) => {
|
|
1812
1810
|
console.log(E), window.location.reload();
|
|
1813
1811
|
}).catch((E) => {
|
|
1814
|
-
console.error("复位操作出错:", E),
|
|
1812
|
+
console.error("复位操作出错:", E), we({
|
|
1815
1813
|
type: "info",
|
|
1816
1814
|
message: "复位失败!"
|
|
1817
1815
|
});
|
|
@@ -1828,16 +1826,16 @@ const tl = {
|
|
|
1828
1826
|
width: _.width || "auto"
|
|
1829
1827
|
})).sort((E, _) => E.sort - _.sort), v();
|
|
1830
1828
|
}), (E, _) => {
|
|
1831
|
-
const
|
|
1832
|
-
return
|
|
1829
|
+
const z = R("el-divider"), ne = R("el-alert"), V = R("el-checkbox");
|
|
1830
|
+
return s(), B("div", null, [
|
|
1833
1831
|
Q("div", tl, [
|
|
1834
|
-
Q("a", { onClick:
|
|
1835
|
-
G(
|
|
1836
|
-
Q("a", { onClick:
|
|
1837
|
-
G(
|
|
1838
|
-
Q("a", { onClick:
|
|
1832
|
+
Q("a", { onClick: F }, "全选"),
|
|
1833
|
+
G(z, { direction: "vertical" }),
|
|
1834
|
+
Q("a", { onClick: T }, "全不选"),
|
|
1835
|
+
G(z, { direction: "vertical" }),
|
|
1836
|
+
Q("a", { onClick: q }, "复位")
|
|
1839
1837
|
]),
|
|
1840
|
-
G(
|
|
1838
|
+
G(ne, {
|
|
1841
1839
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
1842
1840
|
type: "warning",
|
|
1843
1841
|
"show-icon": "",
|
|
@@ -1846,11 +1844,11 @@ const tl = {
|
|
|
1846
1844
|
}),
|
|
1847
1845
|
Q("div", null, [
|
|
1848
1846
|
Q("div", ll, [
|
|
1849
|
-
(
|
|
1847
|
+
(s(!0), B(W, null, U(t.value, (u) => (s(), S(V, {
|
|
1850
1848
|
modelValue: u.showCol,
|
|
1851
1849
|
"onUpdate:modelValue": (A) => u.showCol = A,
|
|
1852
1850
|
"data-id": u.value,
|
|
1853
|
-
class:
|
|
1851
|
+
class: yt(["check-box-hover", u.value == "control" ? "filtered" : ""]),
|
|
1854
1852
|
onChange: (A) => a(A, u.value),
|
|
1855
1853
|
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" },
|
|
1856
1854
|
value: u.value,
|
|
@@ -1858,7 +1856,7 @@ const tl = {
|
|
|
1858
1856
|
disabled: u.alwaysShow,
|
|
1859
1857
|
key: u.value
|
|
1860
1858
|
}, {
|
|
1861
|
-
default:
|
|
1859
|
+
default: g(() => [
|
|
1862
1860
|
Q("span", {
|
|
1863
1861
|
textContent: pe(u.label),
|
|
1864
1862
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
@@ -1891,8 +1889,8 @@ const tl = {
|
|
|
1891
1889
|
}),
|
|
1892
1890
|
emits: /* @__PURE__ */ Se(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
|
|
1893
1891
|
setup(m, { emit: f }) {
|
|
1894
|
-
var oe,
|
|
1895
|
-
const t = f, e = Oe(m, "modelValue"), a = lt("options"), v =
|
|
1892
|
+
var oe, n, H, ae, ke, Te, Ce;
|
|
1893
|
+
const t = f, e = Oe(m, "modelValue"), a = lt("options"), v = ye({}), F = ye(!1), T = ye(!1), q = ["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"], E = ye([]), _ = m, z = {
|
|
1896
1894
|
data: [],
|
|
1897
1895
|
border: !0,
|
|
1898
1896
|
stripe: !0,
|
|
@@ -1902,27 +1900,27 @@ const tl = {
|
|
|
1902
1900
|
load: () => {
|
|
1903
1901
|
let { currentPage: l, pageSize: r } = e.value.table.page;
|
|
1904
1902
|
try {
|
|
1905
|
-
t("load", { currentPage: l, pageSize: r, ...v.value }, (
|
|
1906
|
-
if (!Array.isArray(
|
|
1907
|
-
console.error("从 load 事件回调中接收到的数据不是数组格式。"),
|
|
1903
|
+
t("load", { currentPage: l, pageSize: r, ...v.value }, (h, j) => {
|
|
1904
|
+
if (!Array.isArray(h)) {
|
|
1905
|
+
console.error("从 load 事件回调中接收到的数据不是数组格式。"), we.error("数据加载失败,请检查数据格式。");
|
|
1908
1906
|
return;
|
|
1909
1907
|
}
|
|
1910
1908
|
if (typeof j != "number") {
|
|
1911
|
-
console.error("从 load 事件回调中接收到的 total 不是数字格式。"),
|
|
1909
|
+
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), we.error("数据加载失败,请检查数据格式。");
|
|
1912
1910
|
return;
|
|
1913
1911
|
}
|
|
1914
|
-
e.value.table.data =
|
|
1912
|
+
e.value.table.data = h, e.value.table.page.total = j, P();
|
|
1915
1913
|
});
|
|
1916
|
-
} catch (
|
|
1917
|
-
console.error("触发 load 事件时出现错误:",
|
|
1914
|
+
} catch (h) {
|
|
1915
|
+
console.error("触发 load 事件时出现错误:", h), we.error("数据加载时出现错误,请稍后重试。");
|
|
1918
1916
|
}
|
|
1919
1917
|
},
|
|
1920
|
-
onHeaderDragend: (l, r,
|
|
1918
|
+
onHeaderDragend: (l, r, h) => {
|
|
1921
1919
|
var j;
|
|
1922
|
-
Re((j = e.value.table) == null ? void 0 : j.user, _.name,
|
|
1920
|
+
Re((j = e.value.table) == null ? void 0 : j.user, _.name, h.property, { width: l });
|
|
1923
1921
|
},
|
|
1924
|
-
onRowDblclick: (l, r,
|
|
1925
|
-
e.value.table.dblclickType == "edit" ? d(l, r,
|
|
1922
|
+
onRowDblclick: (l, r, h) => {
|
|
1923
|
+
e.value.table.dblclickType == "edit" ? d(l, r, h, e) : e.value.table.dblclickType == "view" && I(l, r, h, e);
|
|
1926
1924
|
},
|
|
1927
1925
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
1928
1926
|
page: {
|
|
@@ -1941,17 +1939,17 @@ const tl = {
|
|
|
1941
1939
|
},
|
|
1942
1940
|
dblclickType: "edit"
|
|
1943
1941
|
};
|
|
1944
|
-
e.value.table =
|
|
1945
|
-
|
|
1942
|
+
e.value.table = $e(
|
|
1943
|
+
z,
|
|
1946
1944
|
a == null ? void 0 : a.table,
|
|
1947
1945
|
e.value.table
|
|
1948
1946
|
);
|
|
1949
|
-
const
|
|
1947
|
+
const ne = {
|
|
1950
1948
|
type: "control",
|
|
1951
1949
|
label: "操作",
|
|
1952
1950
|
width: 250,
|
|
1953
1951
|
fixed: "right",
|
|
1954
|
-
style: { ...(
|
|
1952
|
+
style: { ...(n = (oe = e.value) == null ? void 0 : oe.control) == null ? void 0 : n.style },
|
|
1955
1953
|
add: {
|
|
1956
1954
|
label: "新增",
|
|
1957
1955
|
text: !1,
|
|
@@ -1965,20 +1963,20 @@ const tl = {
|
|
|
1965
1963
|
text: !0,
|
|
1966
1964
|
type: "success",
|
|
1967
1965
|
mode: "dialog",
|
|
1968
|
-
auth: (l, r,
|
|
1966
|
+
auth: (l, r, h) => !1
|
|
1969
1967
|
},
|
|
1970
1968
|
edit: {
|
|
1971
1969
|
label: "编辑",
|
|
1972
1970
|
text: !0,
|
|
1973
1971
|
type: "primary",
|
|
1974
1972
|
mode: "dialog",
|
|
1975
|
-
auth: (l, r,
|
|
1973
|
+
auth: (l, r, h) => !0
|
|
1976
1974
|
},
|
|
1977
1975
|
delete: {
|
|
1978
1976
|
text: !0,
|
|
1979
1977
|
label: "删除",
|
|
1980
1978
|
type: "danger",
|
|
1981
|
-
auth: (l, r,
|
|
1979
|
+
auth: (l, r, h) => !0,
|
|
1982
1980
|
dialog: {
|
|
1983
1981
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
1984
1982
|
title: "提示",
|
|
@@ -2008,21 +2006,21 @@ const tl = {
|
|
|
2008
2006
|
auth: () => !1
|
|
2009
2007
|
}
|
|
2010
2008
|
};
|
|
2011
|
-
e.value.control =
|
|
2012
|
-
|
|
2009
|
+
e.value.control = $e(
|
|
2010
|
+
ne,
|
|
2013
2011
|
a == null ? void 0 : a.control,
|
|
2014
|
-
(
|
|
2012
|
+
(H = e.value) == null ? void 0 : H.control
|
|
2015
2013
|
);
|
|
2016
2014
|
const V = {
|
|
2017
2015
|
type: "hidden",
|
|
2018
2016
|
minWidth: 120,
|
|
2019
2017
|
align: "center",
|
|
2020
|
-
formatter: (l, r,
|
|
2018
|
+
formatter: (l, r, h, j) => h
|
|
2021
2019
|
};
|
|
2022
|
-
e.value.tableColumns =
|
|
2020
|
+
e.value.tableColumns = $e(
|
|
2023
2021
|
V,
|
|
2024
2022
|
a == null ? void 0 : a.tableColumns,
|
|
2025
|
-
(
|
|
2023
|
+
(ae = e.value) == null ? void 0 : ae.tableColumns
|
|
2026
2024
|
);
|
|
2027
2025
|
const u = {
|
|
2028
2026
|
type: "hidden",
|
|
@@ -2030,10 +2028,10 @@ const tl = {
|
|
|
2030
2028
|
footer: { hidden: !1 },
|
|
2031
2029
|
modalState: void 0
|
|
2032
2030
|
};
|
|
2033
|
-
e.value.form =
|
|
2031
|
+
e.value.form = $e(
|
|
2034
2032
|
u,
|
|
2035
2033
|
a == null ? void 0 : a.form,
|
|
2036
|
-
(
|
|
2034
|
+
(ke = e.value) == null ? void 0 : ke.form
|
|
2037
2035
|
);
|
|
2038
2036
|
const A = {
|
|
2039
2037
|
type: "hidden",
|
|
@@ -2042,12 +2040,12 @@ const tl = {
|
|
|
2042
2040
|
width: "100%"
|
|
2043
2041
|
}
|
|
2044
2042
|
};
|
|
2045
|
-
e.value.formItems =
|
|
2043
|
+
e.value.formItems = $e(
|
|
2046
2044
|
A,
|
|
2047
2045
|
a == null ? void 0 : a.formItems,
|
|
2048
|
-
(
|
|
2046
|
+
(Te = e == null ? void 0 : e.value) == null ? void 0 : Te.formItems
|
|
2049
2047
|
);
|
|
2050
|
-
const
|
|
2048
|
+
const K = {
|
|
2051
2049
|
title: "编辑",
|
|
2052
2050
|
mode: "drawer",
|
|
2053
2051
|
type: "hidden",
|
|
@@ -2055,68 +2053,68 @@ const tl = {
|
|
|
2055
2053
|
size: 700,
|
|
2056
2054
|
fullScreen: !1
|
|
2057
2055
|
};
|
|
2058
|
-
e.value.dialog =
|
|
2059
|
-
|
|
2056
|
+
e.value.dialog = $e(
|
|
2057
|
+
K,
|
|
2060
2058
|
a == null ? void 0 : a.dialog,
|
|
2061
|
-
(
|
|
2059
|
+
(Ce = e.value) == null ? void 0 : Ce.dialog
|
|
2062
2060
|
);
|
|
2063
|
-
const
|
|
2064
|
-
let
|
|
2065
|
-
if (l.decimals && !isNaN(r) && (typeof l.decimals == "number" ?
|
|
2066
|
-
const
|
|
2061
|
+
const ee = Object.fromEntries(Object.entries(_e(e.value, (l, r) => r.type != "control" && r.editor !== !1 && r.type != "hidden")).map(([l, r]) => [l, r.value])), se = (l, r) => {
|
|
2062
|
+
let h = r;
|
|
2063
|
+
if (l.decimals && !isNaN(r) && (typeof l.decimals == "number" ? h = parseFloat(h).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? h = parseFloat(h).toFixed(l.decimals.num) : h = parseFloat(parseFloat(h).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Je(r).isValid()) {
|
|
2064
|
+
const J = {
|
|
2067
2065
|
date: "YYYY-MM-DD",
|
|
2068
2066
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2069
2067
|
time: "HH:mm:ss"
|
|
2070
2068
|
};
|
|
2071
|
-
|
|
2069
|
+
h = l.format ? Je(h).format(l.format) : Je(h).format(J[l.type]);
|
|
2072
2070
|
}
|
|
2073
|
-
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130,
|
|
2074
|
-
},
|
|
2071
|
+
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, h = `<span title="${tt(parseFloat(h))}">${Sl(parseFloat(h))}</span>`), l.prefix && h && (h = `<span>${l.prefix}${h}</span>`), l.suffix && h && (h = `${h}<span>${l.suffix}</span>`), h;
|
|
2072
|
+
}, ce = (l) => {
|
|
2075
2073
|
v.value = l.value;
|
|
2076
|
-
},
|
|
2074
|
+
}, ie = (l) => {
|
|
2077
2075
|
console.log(l), v.value = l, e.value.table.load();
|
|
2078
|
-
},
|
|
2076
|
+
}, re = (l) => {
|
|
2079
2077
|
var r;
|
|
2080
|
-
e.value.form.modalState = "add", (r = e.value.control.add) != null && r.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(
|
|
2081
|
-
e.value[
|
|
2082
|
-
}),
|
|
2083
|
-
}, d = (l, r,
|
|
2084
|
-
var
|
|
2085
|
-
e.value.form.modalState = "edit", (
|
|
2086
|
-
e.value[
|
|
2087
|
-
}),
|
|
2088
|
-
}, D = (l, r,
|
|
2089
|
-
var
|
|
2090
|
-
if ((
|
|
2091
|
-
e.value.control.delete.click(l, r,
|
|
2078
|
+
e.value.form.modalState = "add", (r = e.value.control.add) != null && r.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(ee), T.value = !0, t("open", ee, T.value, "row-add")) : (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(ee).forEach((h) => {
|
|
2079
|
+
e.value[h] && (e.value[h].value = ee[h]);
|
|
2080
|
+
}), F.value = !0, t("open", l, "add"));
|
|
2081
|
+
}, d = (l, r, h, j) => {
|
|
2082
|
+
var J;
|
|
2083
|
+
e.value.form.modalState = "edit", (J = e.value.control.edit) != null && J.click ? e.value.control.edit.click(l, r, h, j) : (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((Z) => {
|
|
2084
|
+
e.value[Z] && (e.value[Z].value = l[Z]);
|
|
2085
|
+
}), F.value = !0, t("open", j, "edit", l, r, h));
|
|
2086
|
+
}, D = (l, r, h, j) => {
|
|
2087
|
+
var J;
|
|
2088
|
+
if ((J = e.value.control.delete) != null && J.click)
|
|
2089
|
+
e.value.control.delete.click(l, r, h, j);
|
|
2092
2090
|
else {
|
|
2093
|
-
let { message:
|
|
2094
|
-
ft.confirm(
|
|
2095
|
-
t("delete", { row: l, column: r, $index:
|
|
2096
|
-
Le && (e.value.table.data.splice(
|
|
2091
|
+
let { message: Z, title: Ee, options: Me } = e.value.control.delete.dialog;
|
|
2092
|
+
ft.confirm(Z, Ee, Me).then(() => {
|
|
2093
|
+
t("delete", { row: l, column: r, $index: h }, (Le) => {
|
|
2094
|
+
Le && (e.value.table.data.splice(h, 1), e.value.table.page.total--);
|
|
2097
2095
|
});
|
|
2098
2096
|
}).catch(() => {
|
|
2099
2097
|
});
|
|
2100
2098
|
}
|
|
2101
|
-
}, I = (l, r,
|
|
2102
|
-
var
|
|
2103
|
-
e.value.form.modalState = void 0, (
|
|
2104
|
-
e.value[
|
|
2105
|
-
}),
|
|
2106
|
-
}, y = (l, r,
|
|
2107
|
-
var
|
|
2108
|
-
(
|
|
2109
|
-
|
|
2099
|
+
}, I = (l, r, h, j) => {
|
|
2100
|
+
var J;
|
|
2101
|
+
e.value.form.modalState = void 0, (J = e.value.control.view) != null && J.click ? e.value.control.view.click(l, r, h, j) : (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((Z) => {
|
|
2102
|
+
e.value[Z] && (e.value[Z].value = l[Z]);
|
|
2103
|
+
}), F.value = !0, t("open", j, "view", l, r, h));
|
|
2104
|
+
}, y = (l, r, h, j) => {
|
|
2105
|
+
var J;
|
|
2106
|
+
(J = e.value.control.save) != null && J.click ? e.value.control.save.click(l, r, h, j) : t("row-save", { row: l, column: r, $index: h, data: e.value.table.data }, (Z) => {
|
|
2107
|
+
Z && (e.value.table.load(), T.value = !1);
|
|
2110
2108
|
});
|
|
2111
2109
|
}, L = (l, r) => {
|
|
2112
|
-
t("submit", e.value.form.modalState, l, r, (
|
|
2113
|
-
|
|
2110
|
+
t("submit", e.value.form.modalState, l, r, (h) => {
|
|
2111
|
+
h && (F.value = !1, r.table.load());
|
|
2114
2112
|
});
|
|
2115
2113
|
}, O = (l) => {
|
|
2116
2114
|
t("reset", l);
|
|
2117
|
-
},
|
|
2118
|
-
var
|
|
2119
|
-
if ((
|
|
2115
|
+
}, te = (l, r) => {
|
|
2116
|
+
var h;
|
|
2117
|
+
if ((h = l.control.download) != null && h.click)
|
|
2120
2118
|
l.control.download.click(l, r);
|
|
2121
2119
|
else {
|
|
2122
2120
|
let j = et({
|
|
@@ -2124,185 +2122,185 @@ const tl = {
|
|
|
2124
2122
|
size: 480,
|
|
2125
2123
|
width: 600,
|
|
2126
2124
|
slots: {
|
|
2127
|
-
default: () =>
|
|
2125
|
+
default: () => De(Xt, {
|
|
2128
2126
|
items: r,
|
|
2129
2127
|
commitText: l.control.download.excelLabel,
|
|
2130
|
-
onExcel: (
|
|
2131
|
-
t("download",
|
|
2128
|
+
onExcel: (J, Z) => {
|
|
2129
|
+
t("download", J, Z), j();
|
|
2132
2130
|
}
|
|
2133
2131
|
})
|
|
2134
2132
|
}
|
|
2135
2133
|
}, l.control.download.mode);
|
|
2136
2134
|
}
|
|
2137
|
-
},
|
|
2135
|
+
}, be = (l) => {
|
|
2138
2136
|
var r;
|
|
2139
2137
|
(r = l.control.setting) != null && r.click ? l.control.setting.click(l) : et({
|
|
2140
2138
|
title: l.control.setting.label,
|
|
2141
2139
|
size: 470,
|
|
2142
2140
|
width: 600,
|
|
2143
2141
|
slots: {
|
|
2144
|
-
default: () =>
|
|
2142
|
+
default: () => De(al, {
|
|
2145
2143
|
modelValue: l,
|
|
2146
2144
|
name: _.name
|
|
2147
2145
|
})
|
|
2148
2146
|
}
|
|
2149
2147
|
}, l.control.setting.mode);
|
|
2150
2148
|
}, k = e.value.control, $ = [
|
|
2151
|
-
{ type: "add", func:
|
|
2152
|
-
{ type: "download", func:
|
|
2153
|
-
{ type: "setting", func:
|
|
2149
|
+
{ type: "add", func: re },
|
|
2150
|
+
{ type: "download", func: te },
|
|
2151
|
+
{ type: "setting", func: be },
|
|
2154
2152
|
{ type: "view", func: I },
|
|
2155
2153
|
{ type: "edit", func: d },
|
|
2156
2154
|
{ type: "delete", func: D },
|
|
2157
2155
|
{ type: "save", func: y }
|
|
2158
|
-
], b = (l) => $.filter((r) => l.includes(r.type)).map(({ type: r, func:
|
|
2159
|
-
var j,
|
|
2156
|
+
], b = (l) => $.filter((r) => l.includes(r.type)).map(({ type: r, func: h }) => {
|
|
2157
|
+
var j, J, Z;
|
|
2160
2158
|
return {
|
|
2161
2159
|
name: `control-${r}`,
|
|
2162
2160
|
attr: k == null ? void 0 : k[r],
|
|
2163
|
-
func:
|
|
2161
|
+
func: h,
|
|
2164
2162
|
label: (j = k == null ? void 0 : k[r]) == null ? void 0 : j.label,
|
|
2165
|
-
sort: ((
|
|
2166
|
-
groupName: ((
|
|
2163
|
+
sort: ((J = k == null ? void 0 : k[r]) == null ? void 0 : J.sort) || 0,
|
|
2164
|
+
groupName: ((Z = k == null ? void 0 : k[r]) == null ? void 0 : Z.groupName) || "default"
|
|
2167
2165
|
};
|
|
2168
|
-
}).sort((r,
|
|
2169
|
-
const j =
|
|
2170
|
-
return r[j] || (r[j] = []), r[j].push(
|
|
2166
|
+
}).sort((r, h) => r.sort - h.sort), c = (l) => b(l).reduce((r, h) => {
|
|
2167
|
+
const j = h.groupName || "default";
|
|
2168
|
+
return r[j] || (r[j] = []), r[j].push(h), r;
|
|
2171
2169
|
}, {}), i = xe(() => Object.fromEntries(
|
|
2172
2170
|
Object.entries(e.value).filter(([l, r]) => r.type !== "hidden").filter(([l, r]) => r.visible !== !1).filter(([l, r]) => r.showCol !== !1).map(([l, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [l, r])).sort((l, r) => l[1].sort - r[1].sort)
|
|
2173
|
-
)), w =
|
|
2174
|
-
const
|
|
2175
|
-
for (const
|
|
2176
|
-
if (
|
|
2177
|
-
if (
|
|
2178
|
-
const
|
|
2179
|
-
if (
|
|
2171
|
+
)), w = ye({}), M = (l, r) => {
|
|
2172
|
+
const h = (j, J) => {
|
|
2173
|
+
for (const Z of j) {
|
|
2174
|
+
if (Z.value == J) return Z.label;
|
|
2175
|
+
if (Z.children) {
|
|
2176
|
+
const Ee = h(Z.children, J);
|
|
2177
|
+
if (Ee) return Ee;
|
|
2180
2178
|
}
|
|
2181
2179
|
}
|
|
2182
2180
|
return null;
|
|
2183
2181
|
};
|
|
2184
2182
|
if (l.getDicts) {
|
|
2185
2183
|
const j = r.toString();
|
|
2186
|
-
return w.value[j] ? (l.options = w.value[j], l.formatter || (l.formatter = (
|
|
2187
|
-
w.value[j] =
|
|
2184
|
+
return w.value[j] ? (l.options = w.value[j], l.formatter || (l.formatter = (J, Z, Ee, Me) => l.options && h(l.options, Ee) || Ee), Promise.resolve()) : l.getDicts(e.value.table.data).then((J) => {
|
|
2185
|
+
w.value[j] = J, l.options = J, l.formatter || (l.formatter = (Z, Ee, Me, Le) => l.options && h(l.options, Me) || Me);
|
|
2188
2186
|
});
|
|
2189
2187
|
}
|
|
2190
2188
|
return Promise.resolve();
|
|
2191
|
-
},
|
|
2189
|
+
}, P = () => {
|
|
2192
2190
|
const l = [];
|
|
2193
2191
|
Object.keys(e.value).forEach((r) => {
|
|
2194
2192
|
if (e.value[r].getDicts) {
|
|
2195
|
-
const
|
|
2193
|
+
const h = M(e.value[r], r).then(() => {
|
|
2196
2194
|
e.value.table.data.forEach((j) => {
|
|
2197
|
-
var
|
|
2198
|
-
if (e.value[r].getDicts && ((
|
|
2199
|
-
const
|
|
2200
|
-
j[r] =
|
|
2195
|
+
var J;
|
|
2196
|
+
if (e.value[r].getDicts && ((J = e.value[r]) == null ? void 0 : J.forceString) !== !1) {
|
|
2197
|
+
const Z = j[r];
|
|
2198
|
+
j[r] = Z != null ? Z.toString() : Z;
|
|
2201
2199
|
}
|
|
2202
2200
|
});
|
|
2203
2201
|
}).catch((j) => {
|
|
2204
2202
|
console.error(`加载字典${r}出错:`, j);
|
|
2205
2203
|
});
|
|
2206
|
-
l.push(
|
|
2204
|
+
l.push(h);
|
|
2207
2205
|
}
|
|
2208
2206
|
}), Promise.all(l).catch((r) => {
|
|
2209
2207
|
console.error("字典加载过程中发生错误:", r);
|
|
2210
2208
|
});
|
|
2211
|
-
}, X = (l, r,
|
|
2212
|
-
var
|
|
2213
|
-
return l.table ? (
|
|
2209
|
+
}, X = (l, r, h, j) => {
|
|
2210
|
+
var J, Z;
|
|
2211
|
+
return l.table ? (J = l.table(r, h, j)) != null && J.auth ? (Z = l.table(r, h, j)) == null ? void 0 : Z.auth(r, h, j) : !0 : !1;
|
|
2214
2212
|
};
|
|
2215
|
-
return
|
|
2213
|
+
return Vt(() => {
|
|
2216
2214
|
e.value.table.load();
|
|
2217
2215
|
}), Ne(async () => {
|
|
2218
2216
|
var l;
|
|
2219
2217
|
if (E.value = Object.values(e.value).filter((r) => r.type !== "hidden").filter((r) => r.type !== "control").filter((r) => r.visible !== !1).map((r) => ({ key: r.key || "", label: r.label, value: !0 })), !((l = e.value.table) != null && l.user)) {
|
|
2220
|
-
|
|
2218
|
+
we.error("必须给使用此表格的用户一个名字!");
|
|
2221
2219
|
return;
|
|
2222
2220
|
}
|
|
2223
2221
|
if (!_.name) {
|
|
2224
|
-
|
|
2222
|
+
we.error("必须给表格一个唯一的name属性");
|
|
2225
2223
|
return;
|
|
2226
2224
|
}
|
|
2227
2225
|
try {
|
|
2228
2226
|
let r = await Kt(_.name);
|
|
2229
2227
|
if (r) {
|
|
2230
2228
|
if (_.name !== r.name) {
|
|
2231
|
-
|
|
2229
|
+
we.error("此表格已经存在,请换一个名字!");
|
|
2232
2230
|
return;
|
|
2233
2231
|
}
|
|
2234
2232
|
} else
|
|
2235
2233
|
await el({ name: _.name });
|
|
2236
2234
|
} catch (r) {
|
|
2237
|
-
console.error("检查表格名称时出现错误:", r),
|
|
2235
|
+
console.error("检查表格名称时出现错误:", r), we.error("检查表格名称时出现错误,请稍后重试。");
|
|
2238
2236
|
}
|
|
2239
2237
|
try {
|
|
2240
2238
|
const r = await Jt(e.value.table.user, _.name);
|
|
2241
|
-
r && r.forEach((
|
|
2242
|
-
e.value[
|
|
2239
|
+
r && r.forEach((h) => {
|
|
2240
|
+
e.value[h.key] && (e.value[h.key].width = h.width, e.value[h.key].showCol = h.showCol, e.value[h.key].sort = h.sort);
|
|
2243
2241
|
});
|
|
2244
2242
|
} catch (r) {
|
|
2245
2243
|
console.error("Error fetching table column settings:", r);
|
|
2246
2244
|
}
|
|
2247
2245
|
}), (l, r) => {
|
|
2248
2246
|
var ot, rt, at, ut, nt;
|
|
2249
|
-
const
|
|
2250
|
-
return
|
|
2247
|
+
const h = R("el-button-group"), j = R("el-table-column"), J = R("el-table"), Z = R("el-pagination"), Ee = R("el-icon"), Me = R("el-dialog"), Le = R("el-drawer");
|
|
2248
|
+
return s(), B(W, null, [
|
|
2251
2249
|
Q("div", ul, [
|
|
2252
|
-
((rt = (ot = e.value) == null ? void 0 : ot.query) == null ? void 0 : rt.hidden) != !0 ? (
|
|
2250
|
+
((rt = (ot = e.value) == null ? void 0 : ot.query) == null ? void 0 : rt.hidden) != !0 ? (s(), B("div", nl, [
|
|
2253
2251
|
p(l.$slots, "query", {}, () => [
|
|
2254
2252
|
G(Lt, {
|
|
2255
2253
|
modelValue: e.value,
|
|
2256
2254
|
"onUpdate:modelValue": r[0] || (r[0] = (N) => e.value = N),
|
|
2257
|
-
onQuery:
|
|
2258
|
-
onReset:
|
|
2259
|
-
},
|
|
2260
|
-
"q-btns":
|
|
2255
|
+
onQuery: ie,
|
|
2256
|
+
onReset: ce
|
|
2257
|
+
}, de({
|
|
2258
|
+
"q-btns": g(() => [
|
|
2261
2259
|
p(l.$slots, "q-btns", {}, () => [
|
|
2262
|
-
(
|
|
2263
|
-
ue == "default" ? (
|
|
2260
|
+
(s(!0), B(W, null, U(c(["add", "download", "setting"]), (N, ue) => (s(), B(W, null, [
|
|
2261
|
+
ue == "default" ? (s(!0), B(W, { key: 0 }, U(N, (C) => (s(), B(W, null, [
|
|
2264
2262
|
p(l.$slots, C.name + "-left", {}, void 0, !0),
|
|
2265
2263
|
(C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
|
|
2266
|
-
C.label ? (
|
|
2264
|
+
C.label ? (s(), S(o(he), x({
|
|
2267
2265
|
key: 0,
|
|
2268
2266
|
ref_for: !0
|
|
2269
2267
|
}, C.attr, {
|
|
2270
|
-
onClick: (
|
|
2268
|
+
onClick: (Y) => C.func(e.value, E.value)
|
|
2271
2269
|
}), {
|
|
2272
|
-
default:
|
|
2273
|
-
|
|
2270
|
+
default: g(() => [
|
|
2271
|
+
ge(pe(C.label), 1)
|
|
2274
2272
|
]),
|
|
2275
2273
|
_: 2
|
|
2276
|
-
}, 1040, ["onClick"])) : (
|
|
2274
|
+
}, 1040, ["onClick"])) : (s(), S(o(he), x({
|
|
2277
2275
|
key: 1,
|
|
2278
2276
|
ref_for: !0
|
|
2279
2277
|
}, C.attr, {
|
|
2280
|
-
onClick: (
|
|
2278
|
+
onClick: (Y) => C.func(e.value, E.value)
|
|
2281
2279
|
}), null, 16, ["onClick"]))
|
|
2282
|
-
], !0) :
|
|
2280
|
+
], !0) : ve("", !0),
|
|
2283
2281
|
p(l.$slots, C.name + "-right", {}, void 0, !0)
|
|
2284
|
-
], 64))), 256)) : (
|
|
2285
|
-
default:
|
|
2286
|
-
(
|
|
2282
|
+
], 64))), 256)) : (s(), S(h, { key: 1 }, {
|
|
2283
|
+
default: g(() => [
|
|
2284
|
+
(s(!0), B(W, null, U(N, (C) => (s(), B(W, null, [
|
|
2287
2285
|
p(l.$slots, C.name + "-left", {}, void 0, !0),
|
|
2288
2286
|
(C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
|
|
2289
|
-
C.label ? (
|
|
2287
|
+
C.label ? (s(), S(o(he), x({
|
|
2290
2288
|
key: 0,
|
|
2291
2289
|
ref_for: !0
|
|
2292
2290
|
}, C.attr, {
|
|
2293
|
-
onClick: (
|
|
2291
|
+
onClick: (Y) => C.func(e.value, E.value)
|
|
2294
2292
|
}), {
|
|
2295
|
-
default:
|
|
2296
|
-
|
|
2293
|
+
default: g(() => [
|
|
2294
|
+
ge(pe(C.label), 1)
|
|
2297
2295
|
]),
|
|
2298
2296
|
_: 2
|
|
2299
|
-
}, 1040, ["onClick"])) : (
|
|
2297
|
+
}, 1040, ["onClick"])) : (s(), S(o(he), x({
|
|
2300
2298
|
key: 1,
|
|
2301
2299
|
ref_for: !0
|
|
2302
2300
|
}, C.attr, {
|
|
2303
|
-
onClick: (
|
|
2301
|
+
onClick: (Y) => C.func(e.value, E.value)
|
|
2304
2302
|
}), null, 16, ["onClick"]))
|
|
2305
|
-
], !0) :
|
|
2303
|
+
], !0) : ve("", !0),
|
|
2306
2304
|
p(l.$slots, C.name + "-right", {}, void 0, !0)
|
|
2307
2305
|
], 64))), 256))
|
|
2308
2306
|
]),
|
|
@@ -2315,75 +2313,75 @@ const tl = {
|
|
|
2315
2313
|
}, [
|
|
2316
2314
|
U(l.$slots, (N, ue, C) => ({
|
|
2317
2315
|
name: ue,
|
|
2318
|
-
fn:
|
|
2316
|
+
fn: g((Y) => [
|
|
2319
2317
|
p(l.$slots, ue, { model: e.value }, void 0, !0)
|
|
2320
2318
|
])
|
|
2321
2319
|
}))
|
|
2322
2320
|
]), 1032, ["modelValue"])
|
|
2323
2321
|
], !0)
|
|
2324
|
-
])) :
|
|
2322
|
+
])) : ve("", !0),
|
|
2325
2323
|
Q("div", sl, [
|
|
2326
|
-
G(
|
|
2327
|
-
append:
|
|
2324
|
+
G(J, je(Ze({ ...l.$attrs, ...o(_e)(e.value.table, (N) => !["dblclickType", "page"].includes(N)) })), {
|
|
2325
|
+
append: g(() => [
|
|
2328
2326
|
p(l.$slots, "append", {}, void 0, !0)
|
|
2329
2327
|
]),
|
|
2330
|
-
empty:
|
|
2328
|
+
empty: g(() => [
|
|
2331
2329
|
p(l.$slots, "empty", {}, void 0, !0)
|
|
2332
2330
|
]),
|
|
2333
|
-
default:
|
|
2331
|
+
default: g(() => [
|
|
2334
2332
|
p(l.$slots, "default", {}, () => [
|
|
2335
|
-
(
|
|
2333
|
+
(s(!0), B(W, null, U(i.value, (N, ue) => (s(), S(j, x({
|
|
2336
2334
|
prop: ue,
|
|
2337
2335
|
key: ue,
|
|
2338
2336
|
ref_for: !0
|
|
2339
|
-
}, { ...e.value.tableColumns, ...o(
|
|
2340
|
-
header:
|
|
2337
|
+
}, { ...e.value.tableColumns, ...o(_e)(N, (C) => q.includes(C)) }, { "header-align": "center" }), de({
|
|
2338
|
+
header: g(({ column: C, $index: Y }) => [
|
|
2341
2339
|
ue == "control" ? p(l.$slots, `${ue}-header`, {
|
|
2342
2340
|
key: 0,
|
|
2343
2341
|
column: C,
|
|
2344
|
-
$index:
|
|
2342
|
+
$index: Y
|
|
2345
2343
|
}, () => [
|
|
2346
2344
|
r[12] || (r[12] = Q("span", null, "操作", -1)),
|
|
2347
|
-
e.value.control.add.inline === !0 && !
|
|
2348
|
-
e.value.control.add.label ? (
|
|
2345
|
+
e.value.control.add.inline === !0 && !T.value ? (s(), B(W, { key: 0 }, [
|
|
2346
|
+
e.value.control.add.label ? (s(), S(o(he), x({
|
|
2349
2347
|
key: 0,
|
|
2350
2348
|
title: "新增",
|
|
2351
2349
|
size: "small",
|
|
2352
2350
|
ref_for: !0
|
|
2353
2351
|
}, e.value.control.add, {
|
|
2354
|
-
onClick: r[1] || (r[1] = (
|
|
2352
|
+
onClick: r[1] || (r[1] = (le) => re(e.value))
|
|
2355
2353
|
}), {
|
|
2356
|
-
default:
|
|
2357
|
-
|
|
2354
|
+
default: g(() => [
|
|
2355
|
+
ge(pe(e.value.control.add.label), 1)
|
|
2358
2356
|
]),
|
|
2359
2357
|
_: 1
|
|
2360
|
-
}, 16)) : (
|
|
2358
|
+
}, 16)) : (s(), S(o(he), x({
|
|
2361
2359
|
key: 1,
|
|
2362
2360
|
title: "新增",
|
|
2363
2361
|
size: "small",
|
|
2364
2362
|
ref_for: !0
|
|
2365
2363
|
}, e.value.control.add, {
|
|
2366
|
-
onClick: r[2] || (r[2] = (
|
|
2364
|
+
onClick: r[2] || (r[2] = (le) => re(e.value))
|
|
2367
2365
|
}), null, 16))
|
|
2368
|
-
], 64)) :
|
|
2366
|
+
], 64)) : ve("", !0)
|
|
2369
2367
|
], !0) : p(l.$slots, `${ue}-header`, {
|
|
2370
2368
|
key: 1,
|
|
2371
2369
|
column: C,
|
|
2372
|
-
$index:
|
|
2370
|
+
$index: Y
|
|
2373
2371
|
}, void 0, !0)
|
|
2374
2372
|
]),
|
|
2375
|
-
"filter-icon":
|
|
2373
|
+
"filter-icon": g((C) => [
|
|
2376
2374
|
p(l.$slots, `${ue}-filter-icon`, { data: C }, void 0, !0)
|
|
2377
2375
|
]),
|
|
2378
2376
|
_: 2
|
|
2379
2377
|
}, [
|
|
2380
2378
|
N.type === "image" ? {
|
|
2381
2379
|
name: "default",
|
|
2382
|
-
fn:
|
|
2380
|
+
fn: g(({ row: C, column: Y, $index: le }) => [
|
|
2383
2381
|
p(l.$slots, `${ue}`, {
|
|
2384
2382
|
row: C,
|
|
2385
|
-
column:
|
|
2386
|
-
$index:
|
|
2383
|
+
column: Y,
|
|
2384
|
+
$index: le
|
|
2387
2385
|
}, () => [
|
|
2388
2386
|
Q("img", x({
|
|
2389
2387
|
style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
|
|
@@ -2395,99 +2393,99 @@ const tl = {
|
|
|
2395
2393
|
key: "0"
|
|
2396
2394
|
} : N.type === "expand" ? {
|
|
2397
2395
|
name: "default",
|
|
2398
|
-
fn:
|
|
2396
|
+
fn: g(({ row: C, column: Y, $index: le }) => [
|
|
2399
2397
|
p(l.$slots, `${ue}`, {
|
|
2400
2398
|
row: C,
|
|
2401
|
-
column:
|
|
2402
|
-
$index:
|
|
2399
|
+
column: Y,
|
|
2400
|
+
$index: le
|
|
2403
2401
|
}, void 0, !0)
|
|
2404
2402
|
]),
|
|
2405
2403
|
key: "1"
|
|
2406
2404
|
} : N.type == "control" ? {
|
|
2407
2405
|
name: "default",
|
|
2408
|
-
fn:
|
|
2406
|
+
fn: g(({ row: C, column: Y, $index: le }) => {
|
|
2409
2407
|
var Be, Ie;
|
|
2410
2408
|
return [
|
|
2411
2409
|
Q("div", {
|
|
2412
|
-
class:
|
|
2413
|
-
style:
|
|
2410
|
+
class: yt(["control", (Be = e.value.control) == null ? void 0 : Be.class]),
|
|
2411
|
+
style: Fe((Ie = e.value.control) == null ? void 0 : Ie.style)
|
|
2414
2412
|
}, [
|
|
2415
2413
|
p(l.$slots, "control", {}, () => [
|
|
2416
2414
|
p(l.$slots, "control-left", {
|
|
2417
2415
|
row: C,
|
|
2418
|
-
column:
|
|
2419
|
-
$index:
|
|
2416
|
+
column: Y,
|
|
2417
|
+
$index: le
|
|
2420
2418
|
}, void 0, !0),
|
|
2421
|
-
(
|
|
2422
|
-
Ge == "default" ? (
|
|
2419
|
+
(s(!0), B(W, null, U(c(["view", "edit", "delete", "save"]), (Ue, Ge) => (s(), B(W, null, [
|
|
2420
|
+
Ge == "default" ? (s(!0), B(W, { key: 0 }, U(Ue, (me) => (s(), B(W, null, [
|
|
2423
2421
|
p(l.$slots, me.name + "-left", {
|
|
2424
2422
|
row: C,
|
|
2425
|
-
column:
|
|
2426
|
-
$index:
|
|
2423
|
+
column: Y,
|
|
2424
|
+
$index: le
|
|
2427
2425
|
}, void 0, !0),
|
|
2428
|
-
me.attr.auth(C,
|
|
2426
|
+
me.attr.auth(C, Y, le) ? p(l.$slots, me.name, {
|
|
2429
2427
|
key: 0,
|
|
2430
2428
|
row: C,
|
|
2431
|
-
column:
|
|
2432
|
-
$index:
|
|
2429
|
+
column: Y,
|
|
2430
|
+
$index: le
|
|
2433
2431
|
}, () => [
|
|
2434
|
-
me.label ? (
|
|
2432
|
+
me.label ? (s(), S(o(he), x({
|
|
2435
2433
|
key: 0,
|
|
2436
2434
|
ref_for: !0
|
|
2437
2435
|
}, me.attr, {
|
|
2438
|
-
onClick: (Qe) => me.func(C,
|
|
2436
|
+
onClick: (Qe) => me.func(C, Y, le, e.value)
|
|
2439
2437
|
}), {
|
|
2440
|
-
default:
|
|
2441
|
-
|
|
2438
|
+
default: g(() => [
|
|
2439
|
+
ge(pe(me.label), 1)
|
|
2442
2440
|
]),
|
|
2443
2441
|
_: 2
|
|
2444
|
-
}, 1040, ["onClick"])) : (
|
|
2442
|
+
}, 1040, ["onClick"])) : (s(), S(o(he), x({
|
|
2445
2443
|
key: 1,
|
|
2446
2444
|
ref_for: !0
|
|
2447
2445
|
}, me.attr, {
|
|
2448
|
-
onClick: (Qe) => me.func(C,
|
|
2446
|
+
onClick: (Qe) => me.func(C, Y, le, e.value)
|
|
2449
2447
|
}), null, 16, ["onClick"]))
|
|
2450
|
-
], !0) :
|
|
2448
|
+
], !0) : ve("", !0),
|
|
2451
2449
|
p(l.$slots, me.name + "-right", {
|
|
2452
2450
|
row: C,
|
|
2453
|
-
column:
|
|
2454
|
-
$index:
|
|
2451
|
+
column: Y,
|
|
2452
|
+
$index: le
|
|
2455
2453
|
}, void 0, !0)
|
|
2456
|
-
], 64))), 256)) : (
|
|
2457
|
-
default:
|
|
2458
|
-
(
|
|
2454
|
+
], 64))), 256)) : (s(), S(h, { key: 1 }, {
|
|
2455
|
+
default: g(() => [
|
|
2456
|
+
(s(!0), B(W, null, U(Ue, (me) => (s(), B(W, null, [
|
|
2459
2457
|
p(l.$slots, me.name + "-left", {
|
|
2460
2458
|
row: C,
|
|
2461
|
-
column:
|
|
2462
|
-
$index:
|
|
2459
|
+
column: Y,
|
|
2460
|
+
$index: le
|
|
2463
2461
|
}, void 0, !0),
|
|
2464
|
-
me.attr.auth(C,
|
|
2462
|
+
me.attr.auth(C, Y, le) ? p(l.$slots, me.name, {
|
|
2465
2463
|
key: 0,
|
|
2466
2464
|
row: C,
|
|
2467
|
-
column:
|
|
2468
|
-
$index:
|
|
2465
|
+
column: Y,
|
|
2466
|
+
$index: le
|
|
2469
2467
|
}, () => [
|
|
2470
|
-
me.label ? (
|
|
2468
|
+
me.label ? (s(), S(o(he), x({
|
|
2471
2469
|
key: 0,
|
|
2472
2470
|
ref_for: !0
|
|
2473
2471
|
}, me.attr, {
|
|
2474
|
-
onClick: (Qe) => me.func(C,
|
|
2472
|
+
onClick: (Qe) => me.func(C, Y, le, e.value)
|
|
2475
2473
|
}), {
|
|
2476
|
-
default:
|
|
2477
|
-
|
|
2474
|
+
default: g(() => [
|
|
2475
|
+
ge(pe(me.label), 1)
|
|
2478
2476
|
]),
|
|
2479
2477
|
_: 2
|
|
2480
|
-
}, 1040, ["onClick"])) : (
|
|
2478
|
+
}, 1040, ["onClick"])) : (s(), S(o(he), x({
|
|
2481
2479
|
key: 1,
|
|
2482
2480
|
ref_for: !0
|
|
2483
2481
|
}, me.attr, {
|
|
2484
|
-
onClick: (Qe) => me.func(C,
|
|
2482
|
+
onClick: (Qe) => me.func(C, Y, le, e.value)
|
|
2485
2483
|
}), null, 16, ["onClick"]))
|
|
2486
|
-
], !0) :
|
|
2484
|
+
], !0) : ve("", !0),
|
|
2487
2485
|
p(l.$slots, me.name + "-right", {
|
|
2488
2486
|
row: C,
|
|
2489
|
-
column:
|
|
2490
|
-
$index:
|
|
2487
|
+
column: Y,
|
|
2488
|
+
$index: le
|
|
2491
2489
|
}, void 0, !0)
|
|
2492
2490
|
], 64))), 256))
|
|
2493
2491
|
]),
|
|
@@ -2496,8 +2494,8 @@ const tl = {
|
|
|
2496
2494
|
], 64))), 256)),
|
|
2497
2495
|
p(l.$slots, "control-right", {
|
|
2498
2496
|
row: C,
|
|
2499
|
-
column:
|
|
2500
|
-
$index:
|
|
2497
|
+
column: Y,
|
|
2498
|
+
$index: le
|
|
2501
2499
|
}, void 0, !0)
|
|
2502
2500
|
], !0)
|
|
2503
2501
|
], 6)
|
|
@@ -2506,29 +2504,29 @@ const tl = {
|
|
|
2506
2504
|
key: "2"
|
|
2507
2505
|
} : N.type != "selection" && N.type != "index" ? {
|
|
2508
2506
|
name: "default",
|
|
2509
|
-
fn:
|
|
2510
|
-
X(N, C,
|
|
2507
|
+
fn: g(({ row: C, column: Y, $index: le }) => [
|
|
2508
|
+
X(N, C, Y, le) && le != -1 ? p(l.$slots, `${ue}`, {
|
|
2511
2509
|
key: 0,
|
|
2512
2510
|
row: C,
|
|
2513
|
-
column:
|
|
2514
|
-
$index:
|
|
2511
|
+
column: Y,
|
|
2512
|
+
$index: le
|
|
2515
2513
|
}, () => {
|
|
2516
2514
|
var Be;
|
|
2517
2515
|
return [
|
|
2518
2516
|
G(We, {
|
|
2519
2517
|
modelValue: C[ue],
|
|
2520
2518
|
"onUpdate:modelValue": (Ie) => C[ue] = Ie,
|
|
2521
|
-
item: N == null ? void 0 : N.table(C,
|
|
2519
|
+
item: N == null ? void 0 : N.table(C, Y, le, T.value),
|
|
2522
2520
|
ctrlKey: ue,
|
|
2523
|
-
ctrlType: (Be = N.table(C,
|
|
2521
|
+
ctrlType: (Be = N.table(C, Y, le, T.value)) != null && Be.type ? N.table(C, Y, le, T.value).type : N.type,
|
|
2524
2522
|
model: e.value,
|
|
2525
2523
|
class: "g-ctrl-container",
|
|
2526
2524
|
t: "t",
|
|
2527
2525
|
formInfo: C
|
|
2528
|
-
},
|
|
2526
|
+
}, de({ _: 2 }, [
|
|
2529
2527
|
U(l.$slots, (Ie, Ue) => ({
|
|
2530
2528
|
name: Ue,
|
|
2531
|
-
fn:
|
|
2529
|
+
fn: g((Ge) => [
|
|
2532
2530
|
p(l.$slots, Ue, {
|
|
2533
2531
|
data: Ge,
|
|
2534
2532
|
item: N,
|
|
@@ -2541,11 +2539,11 @@ const tl = {
|
|
|
2541
2539
|
}, !0) : p(l.$slots, `${ue}`, {
|
|
2542
2540
|
key: 1,
|
|
2543
2541
|
row: C,
|
|
2544
|
-
column:
|
|
2545
|
-
$index:
|
|
2542
|
+
column: Y,
|
|
2543
|
+
$index: le
|
|
2546
2544
|
}, () => [
|
|
2547
2545
|
Q("div", {
|
|
2548
|
-
innerHTML:
|
|
2546
|
+
innerHTML: se(N, Y.formatter(C, Y, C[ue], le))
|
|
2549
2547
|
}, null, 8, dl)
|
|
2550
2548
|
], !0)
|
|
2551
2549
|
]),
|
|
@@ -2556,14 +2554,14 @@ const tl = {
|
|
|
2556
2554
|
]),
|
|
2557
2555
|
_: 3
|
|
2558
2556
|
}, 16),
|
|
2559
|
-
(nt = (ut = (at = e.value) == null ? void 0 : at.table) == null ? void 0 : ut.page) != null && nt.hidden ?
|
|
2560
|
-
G(
|
|
2557
|
+
(nt = (ut = (at = e.value) == null ? void 0 : at.table) == null ? void 0 : ut.page) != null && nt.hidden ? ve("", !0) : p(l.$slots, "page", { key: 0 }, () => [
|
|
2558
|
+
G(Z, x({
|
|
2561
2559
|
"page-size": e.value.table.page.pageSize,
|
|
2562
2560
|
"onUpdate:pageSize": r[3] || (r[3] = (N) => e.value.table.page.pageSize = N),
|
|
2563
2561
|
"current-page": e.value.table.page.currentPage,
|
|
2564
2562
|
"onUpdate:currentPage": r[4] || (r[4] = (N) => e.value.table.page.currentPage = N)
|
|
2565
2563
|
}, e.value.table.page), {
|
|
2566
|
-
default:
|
|
2564
|
+
default: g(() => [
|
|
2567
2565
|
p(l.$slots, "table-page", {}, void 0, !0)
|
|
2568
2566
|
]),
|
|
2569
2567
|
_: 3
|
|
@@ -2571,16 +2569,16 @@ const tl = {
|
|
|
2571
2569
|
], !0)
|
|
2572
2570
|
])
|
|
2573
2571
|
]),
|
|
2574
|
-
e.value.dialog.mode == "dialog" &&
|
|
2572
|
+
e.value.dialog.mode == "dialog" && F.value ? (s(), B("div", fl, [
|
|
2575
2573
|
G(Me, x({
|
|
2576
|
-
modelValue:
|
|
2577
|
-
"onUpdate:modelValue": r[8] || (r[8] = (N) =>
|
|
2574
|
+
modelValue: F.value,
|
|
2575
|
+
"onUpdate:modelValue": r[8] || (r[8] = (N) => F.value = N),
|
|
2578
2576
|
fullscreen: e.value.dialog.fullScreen
|
|
2579
|
-
}, o(
|
|
2580
|
-
width: o(
|
|
2577
|
+
}, o(_e)(e.value.dialog, (N) => !["size"].includes(N)), {
|
|
2578
|
+
width: o($t)(e.value.dialog.width) + 35
|
|
2581
2579
|
}), {
|
|
2582
|
-
header:
|
|
2583
|
-
var N, ue, C,
|
|
2580
|
+
header: g(() => {
|
|
2581
|
+
var N, ue, C, Y;
|
|
2584
2582
|
return [
|
|
2585
2583
|
Q("div", cl, [
|
|
2586
2584
|
Q("div", ml, [
|
|
@@ -2588,38 +2586,38 @@ const tl = {
|
|
|
2588
2586
|
Q("div", null, pe(e.value.dialog.title), 1)
|
|
2589
2587
|
], !0)
|
|
2590
2588
|
]),
|
|
2591
|
-
((ue = (N = e.value) == null ? void 0 : N.dialog) == null ? void 0 : ue.fullScreen) === !1 ? (
|
|
2589
|
+
((ue = (N = e.value) == null ? void 0 : N.dialog) == null ? void 0 : ue.fullScreen) === !1 ? (s(), B("div", {
|
|
2592
2590
|
key: 0,
|
|
2593
|
-
onClick: r[5] || (r[5] = (
|
|
2591
|
+
onClick: r[5] || (r[5] = (le) => {
|
|
2594
2592
|
e.value.dialog.fullScreen = !0;
|
|
2595
2593
|
}),
|
|
2596
2594
|
class: "max"
|
|
2597
2595
|
}, [
|
|
2598
|
-
G(
|
|
2599
|
-
default:
|
|
2596
|
+
G(Ee, null, {
|
|
2597
|
+
default: g(() => [
|
|
2600
2598
|
G(o(Tt))
|
|
2601
2599
|
]),
|
|
2602
2600
|
_: 1
|
|
2603
2601
|
})
|
|
2604
|
-
])) :
|
|
2605
|
-
((
|
|
2602
|
+
])) : ve("", !0),
|
|
2603
|
+
((Y = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : Y.fullScreen) === !0 ? (s(), B("div", {
|
|
2606
2604
|
key: 1,
|
|
2607
|
-
onClick: r[6] || (r[6] = (
|
|
2605
|
+
onClick: r[6] || (r[6] = (le) => {
|
|
2608
2606
|
e.value.dialog.fullScreen = !1;
|
|
2609
2607
|
}),
|
|
2610
2608
|
class: "max"
|
|
2611
2609
|
}, [
|
|
2612
|
-
G(
|
|
2613
|
-
default:
|
|
2610
|
+
G(Ee, null, {
|
|
2611
|
+
default: g(() => [
|
|
2614
2612
|
G(o(Mt))
|
|
2615
2613
|
]),
|
|
2616
2614
|
_: 1
|
|
2617
2615
|
})
|
|
2618
|
-
])) :
|
|
2616
|
+
])) : ve("", !0)
|
|
2619
2617
|
])
|
|
2620
2618
|
];
|
|
2621
2619
|
}),
|
|
2622
|
-
default:
|
|
2620
|
+
default: g(() => [
|
|
2623
2621
|
Q("div", pl, [
|
|
2624
2622
|
p(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
2625
2623
|
G(Ye, {
|
|
@@ -2627,11 +2625,11 @@ const tl = {
|
|
|
2627
2625
|
"onUpdate:modelValue": r[7] || (r[7] = (N) => e.value = N),
|
|
2628
2626
|
onSubmit: L,
|
|
2629
2627
|
onReset: O
|
|
2630
|
-
},
|
|
2628
|
+
}, de({ _: 2 }, [
|
|
2631
2629
|
U(l.$slots, (N, ue, C) => ({
|
|
2632
2630
|
name: ue,
|
|
2633
|
-
fn:
|
|
2634
|
-
p(l.$slots, ue, { model:
|
|
2631
|
+
fn: g((Y) => [
|
|
2632
|
+
p(l.$slots, ue, { model: Y }, void 0, !0)
|
|
2635
2633
|
])
|
|
2636
2634
|
}))
|
|
2637
2635
|
]), 1032, ["modelValue"])
|
|
@@ -2640,13 +2638,13 @@ const tl = {
|
|
|
2640
2638
|
]),
|
|
2641
2639
|
_: 3
|
|
2642
2640
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2643
|
-
])) :
|
|
2644
|
-
e.value.dialog.mode == "drawer" &&
|
|
2641
|
+
])) : ve("", !0),
|
|
2642
|
+
e.value.dialog.mode == "drawer" && F.value ? (s(), B("div", vl, [
|
|
2645
2643
|
G(Le, x({
|
|
2646
|
-
modelValue:
|
|
2647
|
-
"onUpdate:modelValue": r[10] || (r[10] = (N) =>
|
|
2648
|
-
}, o(
|
|
2649
|
-
header:
|
|
2644
|
+
modelValue: F.value,
|
|
2645
|
+
"onUpdate:modelValue": r[10] || (r[10] = (N) => F.value = N)
|
|
2646
|
+
}, o(_e)(e.value.dialog, (N) => !["width"].includes(N))), {
|
|
2647
|
+
header: g(() => [
|
|
2650
2648
|
Q("div", yl, [
|
|
2651
2649
|
Q("div", hl, [
|
|
2652
2650
|
p(l.$slots, "f-header", {}, () => [
|
|
@@ -2655,18 +2653,18 @@ const tl = {
|
|
|
2655
2653
|
])
|
|
2656
2654
|
])
|
|
2657
2655
|
]),
|
|
2658
|
-
default:
|
|
2656
|
+
default: g(() => [
|
|
2659
2657
|
p(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
2660
2658
|
G(Ye, {
|
|
2661
2659
|
modelValue: e.value,
|
|
2662
2660
|
"onUpdate:modelValue": r[9] || (r[9] = (N) => e.value = N),
|
|
2663
2661
|
onSubmit: L,
|
|
2664
2662
|
onReset: O
|
|
2665
|
-
},
|
|
2663
|
+
}, de({ _: 2 }, [
|
|
2666
2664
|
U(l.$slots, (N, ue, C) => ({
|
|
2667
2665
|
name: ue,
|
|
2668
|
-
fn:
|
|
2669
|
-
p(l.$slots, ue, { model:
|
|
2666
|
+
fn: g((Y) => [
|
|
2667
|
+
p(l.$slots, ue, { model: Y }, void 0, !0)
|
|
2670
2668
|
])
|
|
2671
2669
|
}))
|
|
2672
2670
|
]), 1032, ["modelValue"])
|
|
@@ -2674,19 +2672,19 @@ const tl = {
|
|
|
2674
2672
|
]),
|
|
2675
2673
|
_: 3
|
|
2676
2674
|
}, 16, ["modelValue"])
|
|
2677
|
-
])) :
|
|
2678
|
-
|
|
2675
|
+
])) : ve("", !0),
|
|
2676
|
+
pt(G(Ye, {
|
|
2679
2677
|
modelValue: e.value,
|
|
2680
2678
|
"onUpdate:modelValue": r[11] || (r[11] = (N) => e.value = N),
|
|
2681
2679
|
onSubmit: L,
|
|
2682
2680
|
onReset: O
|
|
2683
2681
|
}, null, 8, ["modelValue"]), [
|
|
2684
|
-
[
|
|
2682
|
+
[vt, !1]
|
|
2685
2683
|
])
|
|
2686
2684
|
], 64);
|
|
2687
2685
|
};
|
|
2688
2686
|
}
|
|
2689
|
-
}), bl = /* @__PURE__ */ Ae(gl, [["__scopeId", "data-v-
|
|
2687
|
+
}), bl = /* @__PURE__ */ Ae(gl, [["__scopeId", "data-v-23ac23e4"]]), $l = { class: "g-tree-table" }, El = { class: "g-tree-container" }, wl = { class: "g-tree-table-container" }, _l = /* @__PURE__ */ Object.assign({
|
|
2690
2688
|
name: "g-tree-table",
|
|
2691
2689
|
inheritAttrs: !1
|
|
2692
2690
|
}, {
|
|
@@ -2697,66 +2695,66 @@ const tl = {
|
|
|
2697
2695
|
},
|
|
2698
2696
|
emits: /* @__PURE__ */ Se(["load"], ["update:modelValue"]),
|
|
2699
2697
|
setup(m, { emit: f }) {
|
|
2700
|
-
var
|
|
2701
|
-
const t = f, e = Oe(m, "modelValue"), a =
|
|
2702
|
-
t("load",
|
|
2703
|
-
},
|
|
2704
|
-
|
|
2698
|
+
var ne, V, u;
|
|
2699
|
+
const t = f, e = Oe(m, "modelValue"), a = ye(((ne = He()) == null ? void 0 : ne.width) || "180px"), v = ye(((V = He()) == null ? void 0 : V.search) === void 0 ? !0 : (u = He()) == null ? void 0 : u.search), F = ye({}), T = ye(""), q = ye(null), E = (A, K) => A ? K.label.includes(A) : !0, _ = (A, K) => {
|
|
2700
|
+
t("load", F.value, A, K);
|
|
2701
|
+
}, z = (A) => {
|
|
2702
|
+
F.value = A, e.value.table.load();
|
|
2705
2703
|
};
|
|
2706
|
-
return
|
|
2707
|
-
|
|
2708
|
-
}), (A,
|
|
2709
|
-
const
|
|
2710
|
-
return
|
|
2704
|
+
return ct(T, (A) => {
|
|
2705
|
+
q.value.filter(A);
|
|
2706
|
+
}), (A, K) => {
|
|
2707
|
+
const ee = R("el-input"), se = R("el-tree"), ce = R("g-table");
|
|
2708
|
+
return s(), B("div", $l, [
|
|
2711
2709
|
Q("div", {
|
|
2712
2710
|
class: "g-tree-left",
|
|
2713
|
-
style:
|
|
2711
|
+
style: Fe({ width: a.value })
|
|
2714
2712
|
}, [
|
|
2715
|
-
v.value ? (
|
|
2713
|
+
v.value ? (s(), S(ee, {
|
|
2716
2714
|
key: 0,
|
|
2717
|
-
modelValue:
|
|
2718
|
-
"onUpdate:modelValue":
|
|
2715
|
+
modelValue: T.value,
|
|
2716
|
+
"onUpdate:modelValue": K[0] || (K[0] = (ie) => T.value = ie),
|
|
2719
2717
|
style: { width: "100%" },
|
|
2720
2718
|
placeholder: "输入节点查询",
|
|
2721
2719
|
clearable: ""
|
|
2722
|
-
}, null, 8, ["modelValue"])) :
|
|
2720
|
+
}, null, 8, ["modelValue"])) : ve("", !0),
|
|
2723
2721
|
Q("div", El, [
|
|
2724
|
-
G(
|
|
2722
|
+
G(se, x({
|
|
2725
2723
|
style: { width: a.value },
|
|
2726
2724
|
"filter-node-method": E,
|
|
2727
2725
|
"expand-on-click-node": !1,
|
|
2728
2726
|
ref_key: "treeRef",
|
|
2729
|
-
ref:
|
|
2730
|
-
onNodeClick:
|
|
2731
|
-
}, A.$attrs),
|
|
2732
|
-
default:
|
|
2727
|
+
ref: q,
|
|
2728
|
+
onNodeClick: z
|
|
2729
|
+
}, A.$attrs), de({
|
|
2730
|
+
default: g(({ node: ie, data: re }) => [
|
|
2733
2731
|
p(A.$slots, "tree", {
|
|
2734
|
-
node:
|
|
2735
|
-
data:
|
|
2732
|
+
node: ie,
|
|
2733
|
+
data: re
|
|
2736
2734
|
}, () => [
|
|
2737
|
-
Q("span", null, pe(
|
|
2735
|
+
Q("span", null, pe(ie.label), 1)
|
|
2738
2736
|
], !0)
|
|
2739
2737
|
]),
|
|
2740
2738
|
_: 2
|
|
2741
2739
|
}, [
|
|
2742
|
-
U(A.$slots, (
|
|
2743
|
-
name:
|
|
2744
|
-
fn:
|
|
2745
|
-
p(A.$slots,
|
|
2740
|
+
U(A.$slots, (ie, re, d) => ({
|
|
2741
|
+
name: re,
|
|
2742
|
+
fn: g((D) => [
|
|
2743
|
+
p(A.$slots, re, { data: D }, void 0, !0)
|
|
2746
2744
|
])
|
|
2747
2745
|
}))
|
|
2748
2746
|
]), 1040, ["style"])
|
|
2749
2747
|
])
|
|
2750
2748
|
], 4),
|
|
2751
2749
|
Q("div", wl, [
|
|
2752
|
-
G(
|
|
2750
|
+
G(ce, x({
|
|
2753
2751
|
modelValue: e.value,
|
|
2754
|
-
"onUpdate:modelValue":
|
|
2755
|
-
}, A.$attrs, { onLoad: _ }),
|
|
2756
|
-
U(A.$slots, (
|
|
2757
|
-
name:
|
|
2758
|
-
fn:
|
|
2759
|
-
p(A.$slots,
|
|
2752
|
+
"onUpdate:modelValue": K[1] || (K[1] = (ie) => e.value = ie)
|
|
2753
|
+
}, A.$attrs, { onLoad: _ }), de({ _: 2 }, [
|
|
2754
|
+
U(A.$slots, (ie, re, d) => ({
|
|
2755
|
+
name: re,
|
|
2756
|
+
fn: g((D) => [
|
|
2757
|
+
p(A.$slots, re, { data: D }, void 0, !0)
|
|
2760
2758
|
])
|
|
2761
2759
|
}))
|
|
2762
2760
|
]), 1040, ["modelValue"])
|
|
@@ -2788,35 +2786,35 @@ const tl = {
|
|
|
2788
2786
|
},
|
|
2789
2787
|
setup(m) {
|
|
2790
2788
|
const f = m;
|
|
2791
|
-
return (t, e) => f.title ? (
|
|
2792
|
-
(
|
|
2793
|
-
style:
|
|
2789
|
+
return (t, e) => f.title ? (s(), B("div", Cl, [
|
|
2790
|
+
(s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
|
|
2791
|
+
style: Fe({ width: (a == null ? void 0 : a.width) || dt, ...a == null ? void 0 : a.titleStyle }),
|
|
2794
2792
|
key: a.key
|
|
2795
2793
|
}, [
|
|
2796
2794
|
p(t.$slots, a.key + "-title", { col: a }, () => [
|
|
2797
|
-
|
|
2795
|
+
ge(pe(a.label), 1)
|
|
2798
2796
|
], !0)
|
|
2799
2797
|
], 4))), 128))
|
|
2800
|
-
])) : (
|
|
2801
|
-
(
|
|
2802
|
-
style:
|
|
2798
|
+
])) : (s(), B("div", Dl, [
|
|
2799
|
+
(s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
|
|
2800
|
+
style: Fe({ width: (a == null ? void 0 : a.width) || dt, textAlign: (a == null ? void 0 : a.align) || "center", ...a == null ? void 0 : a.style }),
|
|
2803
2801
|
key: a.key
|
|
2804
2802
|
}, [
|
|
2805
2803
|
p(t.$slots, a.key, { col: a }, () => [
|
|
2806
|
-
|
|
2804
|
+
ge(pe(m.data.option[a.key]), 1)
|
|
2807
2805
|
], !0)
|
|
2808
2806
|
], 4))), 128))
|
|
2809
2807
|
]));
|
|
2810
2808
|
}
|
|
2811
|
-
}), Fl = /* @__PURE__ */ Ae(Vl, [["__scopeId", "data-v-422d5210"]]), Tl = Object.freeze({}),
|
|
2809
|
+
}), Fl = /* @__PURE__ */ Ae(Vl, [["__scopeId", "data-v-422d5210"]]), Tl = Object.freeze({}), bt = [bl, Ye, kl, Fl];
|
|
2812
2810
|
let Ke = {};
|
|
2813
2811
|
const Ul = {
|
|
2814
2812
|
install: (m, f = {}) => {
|
|
2815
|
-
Ke = Object.freeze({ ...Tl, ...f }),
|
|
2813
|
+
Ke = Object.freeze({ ...Tl, ...f }), bt.forEach((t) => {
|
|
2816
2814
|
m.component(t.name, t);
|
|
2817
2815
|
}), m.provide("options", Ke), m.config.globalProperties.$openModal = et;
|
|
2818
2816
|
}
|
|
2819
|
-
}, Ml = (m) => ({ dialog:
|
|
2817
|
+
}, Ml = (m) => ({ dialog: wt, drawer: _t })[m] || null, et = (m = {}, f = "dialog") => {
|
|
2820
2818
|
if (typeof document > "u") return () => {
|
|
2821
2819
|
};
|
|
2822
2820
|
const t = document.createElement("div");
|
|
@@ -2825,33 +2823,33 @@ const Ul = {
|
|
|
2825
2823
|
const a = Ml(f);
|
|
2826
2824
|
if (!a) return () => {
|
|
2827
2825
|
};
|
|
2828
|
-
const v =
|
|
2826
|
+
const v = ye(!0), F = Ft({
|
|
2829
2827
|
setup() {
|
|
2830
2828
|
return e = () => {
|
|
2831
2829
|
v.value = !1, setTimeout(() => {
|
|
2832
|
-
|
|
2830
|
+
F.unmount(), t.remove();
|
|
2833
2831
|
}, 300);
|
|
2834
2832
|
}, () => {
|
|
2835
|
-
var
|
|
2836
|
-
return
|
|
2833
|
+
var T, q, E;
|
|
2834
|
+
return De(a, {
|
|
2837
2835
|
modelValue: v.value,
|
|
2838
2836
|
"onUpdate:modelValue": (_) => v.value = _,
|
|
2839
2837
|
...m,
|
|
2840
2838
|
appendToBody: !0,
|
|
2841
2839
|
destroyOnClose: !0
|
|
2842
2840
|
}, {
|
|
2843
|
-
default: (
|
|
2844
|
-
header: (
|
|
2841
|
+
default: (T = m.slots) == null ? void 0 : T.default,
|
|
2842
|
+
header: (q = m.slots) == null ? void 0 : q.header,
|
|
2845
2843
|
footer: (E = m.slots) == null ? void 0 : E.footer
|
|
2846
2844
|
});
|
|
2847
2845
|
};
|
|
2848
2846
|
}
|
|
2849
2847
|
});
|
|
2850
|
-
return
|
|
2851
|
-
|
|
2852
|
-
}),
|
|
2848
|
+
return bt.forEach((T) => {
|
|
2849
|
+
F.component(T.name, T);
|
|
2850
|
+
}), F.provide("options", Ke), F.use(Et, { locale: St }), document.body.appendChild(t), F.mount(t), e;
|
|
2853
2851
|
};
|
|
2854
|
-
function
|
|
2852
|
+
function $t(m, f = window.innerWidth) {
|
|
2855
2853
|
if (typeof m == "number")
|
|
2856
2854
|
return m;
|
|
2857
2855
|
if (m.endsWith("px"))
|
|
@@ -2867,23 +2865,23 @@ function bt(m, f = window.innerWidth) {
|
|
|
2867
2865
|
return f * parseFloat(m) / 100;
|
|
2868
2866
|
}
|
|
2869
2867
|
if (m.startsWith("calc(") && m.endsWith(")")) {
|
|
2870
|
-
let v = function(
|
|
2871
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
2872
|
-
return new Function("return " +
|
|
2868
|
+
let v = function(T) {
|
|
2869
|
+
if (/[0-9+\-*/().\s]+$/.test(T))
|
|
2870
|
+
return new Function("return " + T)();
|
|
2873
2871
|
throw new Error("Invalid calc expression");
|
|
2874
2872
|
};
|
|
2875
2873
|
const a = m.slice(5, -1).trim();
|
|
2876
|
-
return v(a.replace(/([0-9.]+)([a-z%]+)/g, (
|
|
2874
|
+
return v(a.replace(/([0-9.]+)([a-z%]+)/g, (T, q, E) => $t(q + E, f)));
|
|
2877
2875
|
}
|
|
2878
2876
|
throw new Error("Unsupported unit in value: " + m);
|
|
2879
2877
|
}
|
|
2880
|
-
const
|
|
2878
|
+
const $e = (...m) => {
|
|
2881
2879
|
const f = {}, t = (e, a) => (Object.keys(a).forEach((v) => {
|
|
2882
2880
|
e[v] = typeof a[v] == "object" && !Array.isArray(a[v]) ? t(e[v] || {}, a[v]) : a[v];
|
|
2883
2881
|
}), e);
|
|
2884
2882
|
return m.forEach((e = {}) => t(f, e)), f;
|
|
2885
2883
|
};
|
|
2886
|
-
function
|
|
2884
|
+
function _e(m, f = (t, e) => f(t, e)) {
|
|
2887
2885
|
const t = {};
|
|
2888
2886
|
for (const e in m)
|
|
2889
2887
|
m.hasOwnProperty(e) && f(e, m[e]) && (t[e] = m[e]);
|
|
@@ -2894,9 +2892,9 @@ function ql(m, f, t = "value", e = "label", a = "children") {
|
|
|
2894
2892
|
if (v[t] === f)
|
|
2895
2893
|
return v[e];
|
|
2896
2894
|
if (v[a] && v[a].length > 0) {
|
|
2897
|
-
const
|
|
2898
|
-
if (
|
|
2899
|
-
return
|
|
2895
|
+
const F = ql(v[a], f, t, e, a);
|
|
2896
|
+
if (F)
|
|
2897
|
+
return F;
|
|
2900
2898
|
}
|
|
2901
2899
|
}
|
|
2902
2900
|
return null;
|
|
@@ -2908,14 +2906,14 @@ function tt(m) {
|
|
|
2908
2906
|
], a = m < 0 ? "欠" : "";
|
|
2909
2907
|
m = Math.abs(m);
|
|
2910
2908
|
let v = "";
|
|
2911
|
-
for (let
|
|
2912
|
-
v += (t[Math.floor(m * 10 * Math.pow(10,
|
|
2909
|
+
for (let F = 0; F < f.length; F++)
|
|
2910
|
+
v += (t[Math.floor(m * 10 * Math.pow(10, F)) % 10] + f[F]).replace(/零./, "");
|
|
2913
2911
|
v = v || "整", m = Math.floor(m);
|
|
2914
|
-
for (let
|
|
2915
|
-
let
|
|
2916
|
-
for (let
|
|
2917
|
-
|
|
2918
|
-
v =
|
|
2912
|
+
for (let F = 0; F < e[0].length && m > 0; F++) {
|
|
2913
|
+
let T = "";
|
|
2914
|
+
for (let q = 0; q < e[1].length && m > 0; q++)
|
|
2915
|
+
T = t[m % 10] + e[1][q] + T, m = Math.floor(m / 10);
|
|
2916
|
+
v = T.replace(/(零.)*零$/, "").replace(/^$/, "零") + e[0][F] + v;
|
|
2919
2917
|
}
|
|
2920
2918
|
return a + v.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
2921
2919
|
}
|
|
@@ -2956,12 +2954,12 @@ const fe = {
|
|
|
2956
2954
|
};
|
|
2957
2955
|
export {
|
|
2958
2956
|
fe as CT,
|
|
2959
|
-
|
|
2957
|
+
$t as convertToPx,
|
|
2960
2958
|
Ul as default,
|
|
2961
|
-
|
|
2959
|
+
_e as filterObject,
|
|
2962
2960
|
ql as findTreeLabelByValue,
|
|
2963
2961
|
Sl as formatAmount,
|
|
2964
|
-
|
|
2962
|
+
$e as mergeObjects,
|
|
2965
2963
|
tt as moneyToChinese,
|
|
2966
2964
|
et as openModal
|
|
2967
2965
|
};
|