vue-2024-ui 0.2.90 → 0.2.92
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 +403 -400
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Xt, { dayjs as
|
|
2
|
-
import { ref as re, useModel as ot, nextTick as rt, onMounted as _t, computed as Pe, resolveComponent as H, openBlock as p, createElementBlock as U, Fragment as ne, createElementVNode as J, createBlock as V, createCommentVNode as $e, normalizeStyle as
|
|
3
|
-
import { Plus as
|
|
1
|
+
import Xt, { dayjs as bl, ElForm as Vt, ElButtonGroup as Et, ElButton as Re, ElPopover as Lt, ElIcon as jt, ElMessage as ft, ElMessageBox as Qt, ElDrawer as $l, ElDialog as wl } from "element-plus";
|
|
2
|
+
import { ref as re, useModel as ot, nextTick as rt, onMounted as _t, computed as Pe, resolveComponent as H, openBlock as p, createElementBlock as U, Fragment as ne, createElementVNode as J, createBlock as V, createCommentVNode as $e, normalizeStyle as Ye, unref as L, mergeProps as q, withCtx as _, renderSlot as x, renderList as P, createTextVNode as Le, toDisplayString as Se, createSlots as be, createVNode as se, normalizeProps as Ot, resolveDynamicComponent as Ge, guardReactiveProps as Zt, mergeModels as ut, useSlots as Jt, inject as Yt, withModifiers as yt, Transition as kl, withDirectives as _l, vShow as Cl, h as Ce, useAttrs as zt, onUnmounted as xl, onBeforeUnmount as Ml, normalizeClass as Kt, watchEffect as Sl, onBeforeMount as Tl, watch as el, createApp as tl } from "vue";
|
|
3
|
+
import { Plus as Vl, ZoomIn as El, Delete as ll, Search as Dl, Refresh as al, More as Ol, CircleClose as Il, CircleCheckFilled as ql, CircleCheck as Ht, Minus as Al, Close as Yl, Switch as rl, FullScreen as zl, InfoFilled as nl, Download as ol, DocumentCopy as Ul, Setting as Ll, CirclePlus as jl, Edit as Hl, View as Fl } from "@element-plus/icons-vue";
|
|
4
4
|
import ul from "sortablejs";
|
|
5
|
-
import { Dexie as
|
|
5
|
+
import { Dexie as Rl } from "dexie";
|
|
6
6
|
var sl = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
@@ -178,7 +178,7 @@ var sl = {
|
|
|
178
178
|
indicator: "幻灯片切换至索引 {index}"
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
},
|
|
181
|
+
}, Bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
182
182
|
function il(r) {
|
|
183
183
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
184
184
|
}
|
|
@@ -186,31 +186,31 @@ var dl = { exports: {} };
|
|
|
186
186
|
(function(r, u) {
|
|
187
187
|
(function(e, l) {
|
|
188
188
|
r.exports = l();
|
|
189
|
-
})(
|
|
190
|
-
var e = 1e3, l = 6e4, n = 36e5, i = "millisecond", t = "second", d = "minute", S = "hour", f = "day", v = "week", c = "month", o = "quarter",
|
|
189
|
+
})(Bl, function() {
|
|
190
|
+
var e = 1e3, l = 6e4, n = 36e5, i = "millisecond", t = "second", d = "minute", S = "hour", f = "day", v = "week", c = "month", o = "quarter", m = "year", A = "date", j = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Q = { 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(w) {
|
|
191
191
|
var $ = ["th", "st", "nd", "rd"], g = w % 100;
|
|
192
192
|
return "[" + w + ($[(g - 20) % 10] || $[g] || $[0]) + "]";
|
|
193
193
|
} }, K = function(w, $, g) {
|
|
194
|
-
var
|
|
195
|
-
return !
|
|
194
|
+
var h = String(w);
|
|
195
|
+
return !h || h.length >= $ ? w : "" + Array($ + 1 - h.length).join(g) + w;
|
|
196
196
|
}, te = { s: K, z: function(w) {
|
|
197
|
-
var $ = -w.utcOffset(), g = Math.abs($),
|
|
198
|
-
return ($ <= 0 ? "+" : "-") + K(
|
|
197
|
+
var $ = -w.utcOffset(), g = Math.abs($), h = Math.floor(g / 60), M = g % 60;
|
|
198
|
+
return ($ <= 0 ? "+" : "-") + K(h, 2, "0") + ":" + K(M, 2, "0");
|
|
199
199
|
}, m: function w($, g) {
|
|
200
200
|
if ($.date() < g.date()) return -w(g, $);
|
|
201
|
-
var
|
|
202
|
-
return +(-(
|
|
201
|
+
var h = 12 * (g.year() - $.year()) + (g.month() - $.month()), M = $.clone().add(h, c), D = g - M < 0, O = $.clone().add(h + (D ? -1 : 1), c);
|
|
202
|
+
return +(-(h + (g - M) / (D ? M - O : O - M)) || 0);
|
|
203
203
|
}, a: function(w) {
|
|
204
204
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
205
205
|
}, p: function(w) {
|
|
206
|
-
return { M: c, y:
|
|
206
|
+
return { M: c, y: m, w: v, d: f, D: A, h: S, m: d, s: t, ms: i, Q: o }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
207
207
|
}, u: function(w) {
|
|
208
208
|
return w === void 0;
|
|
209
209
|
} }, oe = "en", ue = {};
|
|
210
210
|
ue[oe] = Q;
|
|
211
211
|
var me = "$isDayjsObject", Te = function(w) {
|
|
212
212
|
return w instanceof Ve || !(!w || !w[me]);
|
|
213
|
-
}, Oe = function w($, g,
|
|
213
|
+
}, Oe = function w($, g, h) {
|
|
214
214
|
var M;
|
|
215
215
|
if (!$) return oe;
|
|
216
216
|
if (typeof $ == "string") {
|
|
@@ -222,7 +222,7 @@ var dl = { exports: {} };
|
|
|
222
222
|
var Y = $.name;
|
|
223
223
|
ue[Y] = $, M = Y;
|
|
224
224
|
}
|
|
225
|
-
return !
|
|
225
|
+
return !h && M && (oe = M), M || !h && oe;
|
|
226
226
|
}, he = function(w, $) {
|
|
227
227
|
if (Te(w)) return w.clone();
|
|
228
228
|
var g = typeof $ == "object" ? $ : {};
|
|
@@ -237,8 +237,8 @@ var dl = { exports: {} };
|
|
|
237
237
|
}
|
|
238
238
|
var $ = w.prototype;
|
|
239
239
|
return $.parse = function(g) {
|
|
240
|
-
this.$d = function(
|
|
241
|
-
var M =
|
|
240
|
+
this.$d = function(h) {
|
|
241
|
+
var M = h.date, D = h.utc;
|
|
242
242
|
if (M === null) return /* @__PURE__ */ new Date(NaN);
|
|
243
243
|
if (B.u(M)) return /* @__PURE__ */ new Date();
|
|
244
244
|
if (M instanceof Date) return new Date(M);
|
|
@@ -258,28 +258,28 @@ var dl = { exports: {} };
|
|
|
258
258
|
return B;
|
|
259
259
|
}, $.isValid = function() {
|
|
260
260
|
return this.$d.toString() !== j;
|
|
261
|
-
}, $.isSame = function(g,
|
|
261
|
+
}, $.isSame = function(g, h) {
|
|
262
262
|
var M = he(g);
|
|
263
|
-
return this.startOf(
|
|
264
|
-
}, $.isAfter = function(g,
|
|
265
|
-
return he(g) < this.startOf(
|
|
266
|
-
}, $.isBefore = function(g,
|
|
267
|
-
return this.endOf(
|
|
268
|
-
}, $.$g = function(g,
|
|
269
|
-
return B.u(g) ? this[
|
|
263
|
+
return this.startOf(h) <= M && M <= this.endOf(h);
|
|
264
|
+
}, $.isAfter = function(g, h) {
|
|
265
|
+
return he(g) < this.startOf(h);
|
|
266
|
+
}, $.isBefore = function(g, h) {
|
|
267
|
+
return this.endOf(h) < he(g);
|
|
268
|
+
}, $.$g = function(g, h, M) {
|
|
269
|
+
return B.u(g) ? this[h] : this.set(M, g);
|
|
270
270
|
}, $.unix = function() {
|
|
271
271
|
return Math.floor(this.valueOf() / 1e3);
|
|
272
272
|
}, $.valueOf = function() {
|
|
273
273
|
return this.$d.getTime();
|
|
274
|
-
}, $.startOf = function(g,
|
|
275
|
-
var M = this, D = !!B.u(
|
|
276
|
-
var He = B.w(M.$u ? Date.UTC(M.$y, xe,
|
|
274
|
+
}, $.startOf = function(g, h) {
|
|
275
|
+
var M = this, D = !!B.u(h) || h, O = B.p(g), Y = function(ze, xe) {
|
|
276
|
+
var He = B.w(M.$u ? Date.UTC(M.$y, xe, ze) : new Date(M.$y, xe, ze), M);
|
|
277
277
|
return D ? He : He.endOf(f);
|
|
278
|
-
}, le = function(
|
|
279
|
-
return B.w(M.toDate()[
|
|
278
|
+
}, le = function(ze, xe) {
|
|
279
|
+
return B.w(M.toDate()[ze].apply(M.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(xe)), M);
|
|
280
280
|
}, de = this.$W, ge = this.$M, N = this.$D, G = "set" + (this.$u ? "UTC" : "");
|
|
281
281
|
switch (O) {
|
|
282
|
-
case
|
|
282
|
+
case m:
|
|
283
283
|
return D ? Y(1, 0) : Y(31, 11);
|
|
284
284
|
case c:
|
|
285
285
|
return D ? Y(1, ge) : Y(0, ge + 1);
|
|
@@ -300,40 +300,40 @@ var dl = { exports: {} };
|
|
|
300
300
|
}
|
|
301
301
|
}, $.endOf = function(g) {
|
|
302
302
|
return this.startOf(g, !1);
|
|
303
|
-
}, $.$set = function(g,
|
|
304
|
-
var M, D = B.p(g), O = "set" + (this.$u ? "UTC" : ""), Y = (M = {}, M[f] = O + "Date", M[A] = O + "Date", M[c] = O + "Month", M[
|
|
305
|
-
if (D === c || D ===
|
|
303
|
+
}, $.$set = function(g, h) {
|
|
304
|
+
var M, D = B.p(g), O = "set" + (this.$u ? "UTC" : ""), Y = (M = {}, M[f] = O + "Date", M[A] = O + "Date", M[c] = O + "Month", M[m] = O + "FullYear", M[S] = O + "Hours", M[d] = O + "Minutes", M[t] = O + "Seconds", M[i] = O + "Milliseconds", M)[D], le = D === f ? this.$D + (h - this.$W) : h;
|
|
305
|
+
if (D === c || D === m) {
|
|
306
306
|
var de = this.clone().set(A, 1);
|
|
307
307
|
de.$d[Y](le), de.init(), this.$d = de.set(A, Math.min(this.$D, de.daysInMonth())).$d;
|
|
308
308
|
} else Y && this.$d[Y](le);
|
|
309
309
|
return this.init(), this;
|
|
310
|
-
}, $.set = function(g,
|
|
311
|
-
return this.clone().$set(g,
|
|
310
|
+
}, $.set = function(g, h) {
|
|
311
|
+
return this.clone().$set(g, h);
|
|
312
312
|
}, $.get = function(g) {
|
|
313
313
|
return this[B.p(g)]();
|
|
314
|
-
}, $.add = function(g,
|
|
314
|
+
}, $.add = function(g, h) {
|
|
315
315
|
var M, D = this;
|
|
316
316
|
g = Number(g);
|
|
317
|
-
var O = B.p(
|
|
317
|
+
var O = B.p(h), Y = function(ge) {
|
|
318
318
|
var N = he(D);
|
|
319
319
|
return B.w(N.date(N.date() + Math.round(ge * g)), D);
|
|
320
320
|
};
|
|
321
321
|
if (O === c) return this.set(c, this.$M + g);
|
|
322
|
-
if (O ===
|
|
322
|
+
if (O === m) return this.set(m, this.$y + g);
|
|
323
323
|
if (O === f) return Y(1);
|
|
324
324
|
if (O === v) return Y(7);
|
|
325
325
|
var le = (M = {}, M[d] = l, M[S] = n, M[t] = e, M)[O] || 1, de = this.$d.getTime() + g * le;
|
|
326
326
|
return B.w(de, this);
|
|
327
|
-
}, $.subtract = function(g,
|
|
328
|
-
return this.add(-1 * g,
|
|
327
|
+
}, $.subtract = function(g, h) {
|
|
328
|
+
return this.add(-1 * g, h);
|
|
329
329
|
}, $.format = function(g) {
|
|
330
|
-
var
|
|
330
|
+
var h = this, M = this.$locale();
|
|
331
331
|
if (!this.isValid()) return M.invalidDate || j;
|
|
332
332
|
var D = g || "YYYY-MM-DDTHH:mm:ssZ", O = B.z(this), Y = this.$H, le = this.$m, de = this.$M, ge = M.weekdays, N = M.months, G = M.meridiem, Ee = function(xe, He, Ne, z) {
|
|
333
|
-
return xe && (xe[He] || xe(
|
|
333
|
+
return xe && (xe[He] || xe(h, D)) || Ne[He].slice(0, z);
|
|
334
334
|
}, ke = function(xe) {
|
|
335
335
|
return B.s(Y % 12 || 12, xe, "0");
|
|
336
|
-
},
|
|
336
|
+
}, ze = G || function(xe, He, Ne) {
|
|
337
337
|
var z = xe < 12 ? "AM" : "PM";
|
|
338
338
|
return Ne ? z.toLowerCase() : z;
|
|
339
339
|
};
|
|
@@ -341,9 +341,9 @@ var dl = { exports: {} };
|
|
|
341
341
|
return He || function(Ne) {
|
|
342
342
|
switch (Ne) {
|
|
343
343
|
case "YY":
|
|
344
|
-
return String(
|
|
344
|
+
return String(h.$y).slice(-2);
|
|
345
345
|
case "YYYY":
|
|
346
|
-
return B.s(
|
|
346
|
+
return B.s(h.$y, 4, "0");
|
|
347
347
|
case "M":
|
|
348
348
|
return de + 1;
|
|
349
349
|
case "MM":
|
|
@@ -353,17 +353,17 @@ var dl = { exports: {} };
|
|
|
353
353
|
case "MMMM":
|
|
354
354
|
return Ee(N, de);
|
|
355
355
|
case "D":
|
|
356
|
-
return
|
|
356
|
+
return h.$D;
|
|
357
357
|
case "DD":
|
|
358
|
-
return B.s(
|
|
358
|
+
return B.s(h.$D, 2, "0");
|
|
359
359
|
case "d":
|
|
360
|
-
return String(
|
|
360
|
+
return String(h.$W);
|
|
361
361
|
case "dd":
|
|
362
|
-
return Ee(M.weekdaysMin,
|
|
362
|
+
return Ee(M.weekdaysMin, h.$W, ge, 2);
|
|
363
363
|
case "ddd":
|
|
364
|
-
return Ee(M.weekdaysShort,
|
|
364
|
+
return Ee(M.weekdaysShort, h.$W, ge, 3);
|
|
365
365
|
case "dddd":
|
|
366
|
-
return ge[
|
|
366
|
+
return ge[h.$W];
|
|
367
367
|
case "H":
|
|
368
368
|
return String(Y);
|
|
369
369
|
case "HH":
|
|
@@ -373,19 +373,19 @@ var dl = { exports: {} };
|
|
|
373
373
|
case "hh":
|
|
374
374
|
return ke(2);
|
|
375
375
|
case "a":
|
|
376
|
-
return
|
|
376
|
+
return ze(Y, le, !0);
|
|
377
377
|
case "A":
|
|
378
|
-
return
|
|
378
|
+
return ze(Y, le, !1);
|
|
379
379
|
case "m":
|
|
380
380
|
return String(le);
|
|
381
381
|
case "mm":
|
|
382
382
|
return B.s(le, 2, "0");
|
|
383
383
|
case "s":
|
|
384
|
-
return String(
|
|
384
|
+
return String(h.$s);
|
|
385
385
|
case "ss":
|
|
386
|
-
return B.s(
|
|
386
|
+
return B.s(h.$s, 2, "0");
|
|
387
387
|
case "SSS":
|
|
388
|
-
return B.s(
|
|
388
|
+
return B.s(h.$ms, 3, "0");
|
|
389
389
|
case "Z":
|
|
390
390
|
return O;
|
|
391
391
|
}
|
|
@@ -394,12 +394,12 @@ var dl = { exports: {} };
|
|
|
394
394
|
});
|
|
395
395
|
}, $.utcOffset = function() {
|
|
396
396
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
397
|
-
}, $.diff = function(g,
|
|
398
|
-
var D, O = this, Y = B.p(
|
|
397
|
+
}, $.diff = function(g, h, M) {
|
|
398
|
+
var D, O = this, Y = B.p(h), le = he(g), de = (le.utcOffset() - this.utcOffset()) * l, ge = this - le, N = function() {
|
|
399
399
|
return B.m(O, le);
|
|
400
400
|
};
|
|
401
401
|
switch (Y) {
|
|
402
|
-
case
|
|
402
|
+
case m:
|
|
403
403
|
D = N() / 12;
|
|
404
404
|
break;
|
|
405
405
|
case c:
|
|
@@ -431,9 +431,9 @@ var dl = { exports: {} };
|
|
|
431
431
|
return this.endOf(c).$D;
|
|
432
432
|
}, $.$locale = function() {
|
|
433
433
|
return ue[this.$L];
|
|
434
|
-
}, $.locale = function(g,
|
|
434
|
+
}, $.locale = function(g, h) {
|
|
435
435
|
if (!g) return this.$L;
|
|
436
|
-
var M = this.clone(), D = Oe(g,
|
|
436
|
+
var M = this.clone(), D = Oe(g, h, !0);
|
|
437
437
|
return D && (M.$L = D), M;
|
|
438
438
|
}, $.clone = function() {
|
|
439
439
|
return B.w(this.$d, this);
|
|
@@ -447,7 +447,7 @@ var dl = { exports: {} };
|
|
|
447
447
|
return this.$d.toUTCString();
|
|
448
448
|
}, w;
|
|
449
449
|
}(), Qe = Ve.prototype;
|
|
450
|
-
return he.prototype = Qe, [["$ms", i], ["$s", t], ["$m", d], ["$H", S], ["$W", f], ["$M", c], ["$y",
|
|
450
|
+
return he.prototype = Qe, [["$ms", i], ["$s", t], ["$m", d], ["$H", S], ["$W", f], ["$M", c], ["$y", m], ["$D", A]].forEach(function(w) {
|
|
451
451
|
Qe[w[1]] = function($) {
|
|
452
452
|
return this.$g($, w[0], w[1]);
|
|
453
453
|
};
|
|
@@ -458,13 +458,13 @@ var dl = { exports: {} };
|
|
|
458
458
|
}, he.en = ue[oe], he.Ls = ue, he.p = {}, he;
|
|
459
459
|
});
|
|
460
460
|
})(dl);
|
|
461
|
-
var
|
|
462
|
-
const It = /* @__PURE__ */ il(
|
|
461
|
+
var Pl = dl.exports;
|
|
462
|
+
const It = /* @__PURE__ */ il(Pl), nt = (r, u) => {
|
|
463
463
|
const e = r.__vccOpts || r;
|
|
464
464
|
for (const [l, n] of u)
|
|
465
465
|
e[l] = n;
|
|
466
466
|
return e;
|
|
467
|
-
},
|
|
467
|
+
}, Nl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Wl = ["innerHTML"], Gl = ["innerHTML"], Xl = ["title"], Ql = ["innerHTML"], Zl = ["innerHTML"], Jl = ["innerHTML"], Kl = ["innerHTML"], ea = ["innerHTML"], ta = ["innerHTML"], la = ["innerHTML"], aa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
468
468
|
__name: "g-ctrl",
|
|
469
469
|
props: /* @__PURE__ */ ut(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
470
470
|
modelValue: { required: !0 },
|
|
@@ -472,14 +472,14 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
472
472
|
}),
|
|
473
473
|
emits: ["update:modelValue"],
|
|
474
474
|
setup(r) {
|
|
475
|
-
var $, g,
|
|
476
|
-
const u = r, e = re(u.item || {}), l = ot(r, "modelValue"), n = re(u.ctrlKey), i = re(u.ctrlType), t = re(u.model), d = re([]), S = re([]), f = re(!1), v = re(!1), c = re(0), o = re((g = ($ = t == null ? void 0 : t.value) == null ? void 0 : $.form) != null && g["default-placeholder"] ? (M = (
|
|
475
|
+
var $, g, h, M, D, O, Y, le, de, ge, N, G, Ee, ke, ze, xe, He, Ne;
|
|
476
|
+
const u = r, e = re(u.item || {}), l = ot(r, "modelValue"), n = re(u.ctrlKey), i = re(u.ctrlType), t = re(u.model), d = re([]), S = re([]), f = re(!1), v = re(!1), c = re(0), o = re((g = ($ = t == null ? void 0 : t.value) == null ? void 0 : $.form) != null && g["default-placeholder"] ? (M = (h = t == null ? void 0 : t.value) == null ? void 0 : h[n == null ? void 0 : n.value]) == null ? void 0 : M.label : "");
|
|
477
477
|
!((D = i.value) != null && D.startsWith("text")) && !((O = i.value) != null && O.startsWith("link")) && !((Y = i.value) != null && Y.startsWith("tag")) && !((le = i.value) != null && le.startsWith("div")) && !((de = i.value) != null && de.startsWith("span")) && !((ge = i.value) != null && ge.startsWith("avatar")) && ((N = e.value) != null && N.style || (e.value.style = { width: ((Ee = (G = e.value) == null ? void 0 : G.style) == null ? void 0 : Ee.width) || "100%" }));
|
|
478
|
-
const
|
|
478
|
+
const m = re({ display: "flex", flex: 1 });
|
|
479
479
|
let A = u.t === "t" ? "center" : "flex-start";
|
|
480
|
-
((ke = e.value) == null ? void 0 : ke.align) == "right" ? A = "flex-end" : ((
|
|
480
|
+
((ke = e.value) == null ? void 0 : ke.align) == "right" ? A = "flex-end" : ((ze = e.value) == null ? void 0 : ze.align) == "left" ? A = "flex-start" : ((xe = e.value) == null ? void 0 : xe.align) == "center" && (A = "center");
|
|
481
481
|
const j = ((He = e.value) == null ? void 0 : He.style) || {};
|
|
482
|
-
|
|
482
|
+
m.value = { ...m.value, justifyContent: A, ...j };
|
|
483
483
|
const E = () => {
|
|
484
484
|
const z = Jt(), T = Object.keys(z), X = `${u.t}-${n.value}-`;
|
|
485
485
|
return T.filter((je) => je.startsWith(X)).map((je) => je.replace(X, ""));
|
|
@@ -491,7 +491,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
491
491
|
});
|
|
492
492
|
Object.hasOwn(e.value, "showDel") && (k.value.showDel = e.value.showDel);
|
|
493
493
|
const Q = re(e.value.value);
|
|
494
|
-
(Ne = e == null ? void 0 : e.value) != null && Ne.format && (Q.value =
|
|
494
|
+
(Ne = e == null ? void 0 : e.value) != null && Ne.format && (Q.value = bl(l.value).format(e.value.format || "YYYY-MM-DD"));
|
|
495
495
|
const K = (z) => [
|
|
496
496
|
"year",
|
|
497
497
|
"years",
|
|
@@ -651,7 +651,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
651
651
|
}, null, 8, ["initial-index", "url-list"])) : $e("", !0)
|
|
652
652
|
]),
|
|
653
653
|
J("div", {
|
|
654
|
-
style:
|
|
654
|
+
style: Ye([{ display: "flex", width: "100%" }, m.value]),
|
|
655
655
|
class: "g-ctrl-container"
|
|
656
656
|
}, [
|
|
657
657
|
i.value == L(Me).RADIO ? (p(), V(qe, q({
|
|
@@ -741,7 +741,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
741
741
|
modelValue: l.value,
|
|
742
742
|
"onUpdate:modelValue": T[6] || (T[6] = (b) => l.value = b),
|
|
743
743
|
placeholder: o.value,
|
|
744
|
-
clearable:
|
|
744
|
+
clearable: u.t == "q",
|
|
745
745
|
onClear: T[7] || (T[7] = () => {
|
|
746
746
|
u.t == "q" && t.value.table.load();
|
|
747
747
|
}),
|
|
@@ -776,10 +776,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
776
776
|
data: ce,
|
|
777
777
|
t: u.t
|
|
778
778
|
}, be({ _: 2 }, [
|
|
779
|
-
P(z.$slots, ($t,
|
|
780
|
-
name:
|
|
779
|
+
P(z.$slots, ($t, Ut) => ({
|
|
780
|
+
name: Ut,
|
|
781
781
|
fn: _((Tt) => [
|
|
782
|
-
x(z.$slots,
|
|
782
|
+
x(z.$slots, Ut, {
|
|
783
783
|
option: ce,
|
|
784
784
|
data: Tt,
|
|
785
785
|
form: r.formInfo
|
|
@@ -815,12 +815,12 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
815
815
|
data: pe,
|
|
816
816
|
t: u.t
|
|
817
817
|
}, be({ _: 2 }, [
|
|
818
|
-
P(z.$slots, (
|
|
818
|
+
P(z.$slots, (Ut, Tt) => ({
|
|
819
819
|
name: Tt,
|
|
820
|
-
fn: _((
|
|
820
|
+
fn: _((gl) => [
|
|
821
821
|
x(z.$slots, Tt, {
|
|
822
822
|
option: pe,
|
|
823
|
-
data:
|
|
823
|
+
data: gl,
|
|
824
824
|
form: r.formInfo
|
|
825
825
|
}, void 0, !0)
|
|
826
826
|
])
|
|
@@ -865,7 +865,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
865
865
|
x(z.$slots, `${u.t}-${n.value}-${b}`, { form: r.formInfo }, void 0, !0)
|
|
866
866
|
])
|
|
867
867
|
}))
|
|
868
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : i.value == L(Me).TREESELECT ? (p(), V(xt, q({
|
|
868
|
+
]), 1040, ["modelValue", "placeholder", "clearable", "disabled"])) : i.value == L(Me).TREESELECT ? (p(), V(xt, q({
|
|
869
869
|
key: 6,
|
|
870
870
|
modelValue: l.value,
|
|
871
871
|
"onUpdate:modelValue": T[8] || (T[8] = (b) => l.value = b),
|
|
@@ -976,7 +976,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
976
976
|
return [
|
|
977
977
|
!l.value || ((b = e.value) == null ? void 0 : b.multiple) === !0 ? (p(), V(De, { key: 0 }, {
|
|
978
978
|
default: _(() => [
|
|
979
|
-
se(L(
|
|
979
|
+
se(L(Vl))
|
|
980
980
|
]),
|
|
981
981
|
_: 1
|
|
982
982
|
})) : (p(), U("div", {
|
|
@@ -984,7 +984,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
984
984
|
onClick: T[20] || (T[20] = (pe) => pe.stopPropagation()),
|
|
985
985
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
986
986
|
}, [
|
|
987
|
-
J("div",
|
|
987
|
+
J("div", Nl, [
|
|
988
988
|
se(Ae, q({
|
|
989
989
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
990
990
|
src: l.value
|
|
@@ -1009,7 +1009,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1009
1009
|
placement: "top"
|
|
1010
1010
|
}, {
|
|
1011
1011
|
default: _(() => [
|
|
1012
|
-
se(L(
|
|
1012
|
+
se(L(El), {
|
|
1013
1013
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1014
1014
|
color: "white",
|
|
1015
1015
|
onClick: B
|
|
@@ -1085,7 +1085,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1085
1085
|
return [
|
|
1086
1086
|
J("div", {
|
|
1087
1087
|
innerHTML: ((b = e.value) == null ? void 0 : b.suffix) || ""
|
|
1088
|
-
}, null, 8,
|
|
1088
|
+
}, null, 8, Wl)
|
|
1089
1089
|
];
|
|
1090
1090
|
}),
|
|
1091
1091
|
key: "0"
|
|
@@ -1097,7 +1097,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1097
1097
|
return [
|
|
1098
1098
|
J("div", {
|
|
1099
1099
|
innerHTML: ((b = e.value) == null ? void 0 : b.prefix) || ""
|
|
1100
|
-
}, null, 8,
|
|
1100
|
+
}, null, 8, Gl)
|
|
1101
1101
|
];
|
|
1102
1102
|
}),
|
|
1103
1103
|
key: "1"
|
|
@@ -1113,7 +1113,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1113
1113
|
}))
|
|
1114
1114
|
]), 1040, ["modelValue", "placeholder", "disabled"])) : i.value == L(Me).MONEY ? (p(), U("div", {
|
|
1115
1115
|
key: 20,
|
|
1116
|
-
style:
|
|
1116
|
+
style: Ye([{ position: "relative" }, m.value])
|
|
1117
1117
|
}, [
|
|
1118
1118
|
se(Z, q({
|
|
1119
1119
|
modelValue: l.value,
|
|
@@ -1127,7 +1127,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1127
1127
|
J("div", {
|
|
1128
1128
|
title: L(Rt)(l.value),
|
|
1129
1129
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1130
|
-
}, Se(L(Rt)(l.value)), 9,
|
|
1130
|
+
}, Se(L(Rt)(l.value)), 9, Xl)
|
|
1131
1131
|
]),
|
|
1132
1132
|
_: 2
|
|
1133
1133
|
}, [
|
|
@@ -1140,7 +1140,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1140
1140
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1141
1141
|
], 4)) : (vt = i.value) != null && vt.startsWith("link") ? (p(), U("div", {
|
|
1142
1142
|
key: 21,
|
|
1143
|
-
style:
|
|
1143
|
+
style: Ye(m.value)
|
|
1144
1144
|
}, [
|
|
1145
1145
|
se(ve, q(e.value, {
|
|
1146
1146
|
type: i.value.replace("link-", ""),
|
|
@@ -1148,7 +1148,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1148
1148
|
}), null, 16, ["type", "innerHTML"])
|
|
1149
1149
|
], 4)) : i.value != "textarea" && ((pt = i.value) != null && pt.startsWith("text")) ? (p(), U("div", {
|
|
1150
1150
|
key: 22,
|
|
1151
|
-
style:
|
|
1151
|
+
style: Ye(m.value)
|
|
1152
1152
|
}, [
|
|
1153
1153
|
se(ae, q(e.value, {
|
|
1154
1154
|
type: i.value.replace("text-", ""),
|
|
@@ -1156,17 +1156,17 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1156
1156
|
}), null, 16, ["type", "innerHTML"])
|
|
1157
1157
|
], 4)) : i.value == "avatar" ? (p(), U("div", {
|
|
1158
1158
|
key: 23,
|
|
1159
|
-
style:
|
|
1159
|
+
style: Ye(m.value)
|
|
1160
1160
|
}, [
|
|
1161
1161
|
Q.value ? (p(), V(We, Ot(q({ key: 0 }, e.value)), {
|
|
1162
1162
|
default: _(() => [
|
|
1163
|
-
J("div", { innerHTML: Q.value }, null, 8,
|
|
1163
|
+
J("div", { innerHTML: Q.value }, null, 8, Ql)
|
|
1164
1164
|
]),
|
|
1165
1165
|
_: 1
|
|
1166
1166
|
}, 16)) : (p(), V(We, Ot(q({ key: 1 }, e.value)), null, 16))
|
|
1167
1167
|
], 4)) : (it = i.value) != null && it.startsWith("tag") ? (p(), U("div", {
|
|
1168
1168
|
key: 24,
|
|
1169
|
-
style:
|
|
1169
|
+
style: Ye(m.value)
|
|
1170
1170
|
}, [
|
|
1171
1171
|
Array.isArray(Q.value) && Q.value.length > 0 ? (p(!0), U(ne, { key: 0 }, P(Q.value, (b, ce) => (p(), U(ne, { key: ce }, [
|
|
1172
1172
|
typeof b == "object" ? (p(), V(tt, q({
|
|
@@ -1192,13 +1192,16 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1192
1192
|
}), null, 16, ["type", "innerHTML"]))
|
|
1193
1193
|
], 4)) : i.value == "div" ? (p(), U("div", q({ key: 25 }, e.value, {
|
|
1194
1194
|
innerHTML: Q.value || l.value,
|
|
1195
|
-
style:
|
|
1196
|
-
}), null, 16,
|
|
1195
|
+
style: m.value
|
|
1196
|
+
}), null, 16, Zl)) : i.value == "span" ? (p(), U("span", q({ key: 26 }, e.value, {
|
|
1197
1197
|
innerHTML: Q.value || l.value,
|
|
1198
|
-
style:
|
|
1199
|
-
}), null, 16,
|
|
1198
|
+
style: m.value
|
|
1199
|
+
}), null, 16, Jl)) : i.value == "custom" ? (p(), U("div", {
|
|
1200
|
+
key: 27,
|
|
1201
|
+
style: Ye(m.value)
|
|
1202
|
+
}, [
|
|
1200
1203
|
(p(), V(Ge(e.value.component), Ot(Zt(L(Xe)(e.value, (b) => b != "component"))), null, 16))
|
|
1201
|
-
])) : (p(), V(Z, q({
|
|
1204
|
+
], 4)) : (p(), V(Z, q({
|
|
1202
1205
|
key: 28,
|
|
1203
1206
|
modelValue: l.value,
|
|
1204
1207
|
"onUpdate:modelValue": T[27] || (T[27] = (b) => l.value = b),
|
|
@@ -1221,7 +1224,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1221
1224
|
return [
|
|
1222
1225
|
J("div", {
|
|
1223
1226
|
innerHTML: ((b = e.value) == null ? void 0 : b.suffix) || ""
|
|
1224
|
-
}, null, 8,
|
|
1227
|
+
}, null, 8, Kl)
|
|
1225
1228
|
];
|
|
1226
1229
|
}),
|
|
1227
1230
|
key: "0"
|
|
@@ -1233,7 +1236,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1233
1236
|
return [
|
|
1234
1237
|
J("div", {
|
|
1235
1238
|
innerHTML: ((b = e.value) == null ? void 0 : b.prefix) || ""
|
|
1236
|
-
}, null, 8,
|
|
1239
|
+
}, null, 8, ea)
|
|
1237
1240
|
];
|
|
1238
1241
|
}),
|
|
1239
1242
|
key: "1"
|
|
@@ -1245,7 +1248,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1245
1248
|
return [
|
|
1246
1249
|
J("div", {
|
|
1247
1250
|
innerHTML: ((b = e.value) == null ? void 0 : b.append) || ""
|
|
1248
|
-
}, null, 8,
|
|
1251
|
+
}, null, 8, ta)
|
|
1249
1252
|
];
|
|
1250
1253
|
}),
|
|
1251
1254
|
key: "2"
|
|
@@ -1257,7 +1260,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1257
1260
|
return [
|
|
1258
1261
|
J("div", {
|
|
1259
1262
|
innerHTML: ((b = e.value) == null ? void 0 : b.prepend) || ""
|
|
1260
|
-
}, null, 8,
|
|
1263
|
+
}, null, 8, la)
|
|
1261
1264
|
];
|
|
1262
1265
|
}),
|
|
1263
1266
|
key: "3"
|
|
@@ -1276,7 +1279,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1276
1279
|
], 64);
|
|
1277
1280
|
};
|
|
1278
1281
|
}
|
|
1279
|
-
}), kt = /* @__PURE__ */ nt(
|
|
1282
|
+
}), kt = /* @__PURE__ */ nt(aa, [["__scopeId", "data-v-fc3fe0eb"]]), Nt = {
|
|
1280
1283
|
__name: "g-query-item",
|
|
1281
1284
|
props: /* @__PURE__ */ ut(["more"], {
|
|
1282
1285
|
modelValue: { required: !0 },
|
|
@@ -1297,7 +1300,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1297
1300
|
const v = Object.entries(u.value).filter(([, c]) => {
|
|
1298
1301
|
const o = n(c);
|
|
1299
1302
|
return c.search && (o == null ? void 0 : o.more) === f && (o == null ? void 0 : o.hidden) !== !0 && (o == null ? void 0 : o.visible) !== !1;
|
|
1300
|
-
}).sort(([c, o], [
|
|
1303
|
+
}).sort(([c, o], [m, A]) => {
|
|
1301
1304
|
var k, Q;
|
|
1302
1305
|
const j = Number((k = n(o)) == null ? void 0 : k.sort) || 0, E = Number((Q = n(A)) == null ? void 0 : Q.sort) || 0;
|
|
1303
1306
|
return j - E;
|
|
@@ -1314,8 +1317,8 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1314
1317
|
};
|
|
1315
1318
|
return (f, v) => {
|
|
1316
1319
|
const c = H("el-form-item");
|
|
1317
|
-
return p(!0), U(ne, null, P(i(e.more), (o,
|
|
1318
|
-
key:
|
|
1320
|
+
return p(!0), U(ne, null, P(i(e.more), (o, m) => x(f.$slots, `q-${m}`, {
|
|
1321
|
+
key: m,
|
|
1319
1322
|
item: o,
|
|
1320
1323
|
queryModel: l.value,
|
|
1321
1324
|
model: u.value
|
|
@@ -1325,17 +1328,17 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1325
1328
|
style: { width: S(o) }
|
|
1326
1329
|
}, { ref_for: !0 }, { ...u.value.queryItems, ...t(o) }), {
|
|
1327
1330
|
label: _(() => [
|
|
1328
|
-
x(f.$slots, `q-${
|
|
1331
|
+
x(f.$slots, `q-${m}-label`, {
|
|
1329
1332
|
item: o,
|
|
1330
1333
|
model: u.value
|
|
1331
1334
|
})
|
|
1332
1335
|
]),
|
|
1333
1336
|
default: _(() => [
|
|
1334
1337
|
se(kt, {
|
|
1335
|
-
modelValue: l.value[
|
|
1336
|
-
"onUpdate:modelValue": (A) => l.value[
|
|
1338
|
+
modelValue: l.value[m],
|
|
1339
|
+
"onUpdate:modelValue": (A) => l.value[m] = A,
|
|
1337
1340
|
item: { getDicts: o == null ? void 0 : o.getDicts, ...o == null ? void 0 : o.editor, ...t(o) },
|
|
1338
|
-
ctrlKey:
|
|
1341
|
+
ctrlKey: m,
|
|
1339
1342
|
ctrlType: d(o),
|
|
1340
1343
|
model: u.value,
|
|
1341
1344
|
t: "q",
|
|
@@ -1358,10 +1361,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1358
1361
|
])), 128);
|
|
1359
1362
|
};
|
|
1360
1363
|
}
|
|
1361
|
-
},
|
|
1364
|
+
}, ra = {
|
|
1362
1365
|
key: 0,
|
|
1363
1366
|
class: "outer"
|
|
1364
|
-
},
|
|
1367
|
+
}, na = { class: "inner" }, oa = {
|
|
1365
1368
|
__name: "g-query",
|
|
1366
1369
|
props: {
|
|
1367
1370
|
modelValue: { required: !0 },
|
|
@@ -1371,9 +1374,9 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1371
1374
|
},
|
|
1372
1375
|
emits: /* @__PURE__ */ ut(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1373
1376
|
setup(r, { emit: u }) {
|
|
1374
|
-
const e = ot(r, "modelValue"), l = u, n =
|
|
1377
|
+
const e = ot(r, "modelValue"), l = u, n = Yt("options"), i = re(!1), t = ot(r, "info"), d = Pe(() => {
|
|
1375
1378
|
var Q, K, te;
|
|
1376
|
-
const E =
|
|
1379
|
+
const E = Ue((Q = n == null ? void 0 : n.query) == null ? void 0 : Q.btns, (te = (K = e.value) == null ? void 0 : K.query) == null ? void 0 : te.btns) || { align: "left" };
|
|
1377
1380
|
return {
|
|
1378
1381
|
justifyContent: { left: "flex-start", right: "flex-end", center: "center" }[E.align] || "flex-start"
|
|
1379
1382
|
};
|
|
@@ -1394,7 +1397,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1394
1397
|
hidden: !0,
|
|
1395
1398
|
type: "primary",
|
|
1396
1399
|
label: "更多",
|
|
1397
|
-
icon: () => Ce(
|
|
1400
|
+
icon: () => Ce(Ol),
|
|
1398
1401
|
click: () => {
|
|
1399
1402
|
i.value = !i.value;
|
|
1400
1403
|
}
|
|
@@ -1413,7 +1416,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1413
1416
|
hidden: !1,
|
|
1414
1417
|
type: "primary",
|
|
1415
1418
|
label: "查询",
|
|
1416
|
-
icon: () => Ce(
|
|
1419
|
+
icon: () => Ce(Dl),
|
|
1417
1420
|
click: () => {
|
|
1418
1421
|
l("query", t.value), i.value = !1;
|
|
1419
1422
|
}
|
|
@@ -1429,7 +1432,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1429
1432
|
}
|
|
1430
1433
|
}
|
|
1431
1434
|
};
|
|
1432
|
-
e.value.query =
|
|
1435
|
+
e.value.query = Ue(S, n == null ? void 0 : n.query, e.value.query);
|
|
1433
1436
|
const f = {
|
|
1434
1437
|
2: {
|
|
1435
1438
|
title: "更多查询",
|
|
@@ -1447,7 +1450,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1447
1450
|
trigger: "click"
|
|
1448
1451
|
}
|
|
1449
1452
|
};
|
|
1450
|
-
e.value.query.more.dialog =
|
|
1453
|
+
e.value.query.more.dialog = Ue(
|
|
1451
1454
|
f[e.value.query.more.mode] || {},
|
|
1452
1455
|
e.value.query.more.dialog
|
|
1453
1456
|
);
|
|
@@ -1462,7 +1465,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1462
1465
|
alignItems: "flex-start"
|
|
1463
1466
|
}
|
|
1464
1467
|
};
|
|
1465
|
-
e.value.queryItems =
|
|
1468
|
+
e.value.queryItems = Ue(v, n == null ? void 0 : n.queryItems, e.value.queryItems);
|
|
1466
1469
|
const c = (E, k) => {
|
|
1467
1470
|
const Q = Object.keys(E.slots).filter((K) => K !== "default").reduce((K, te) => (K[te] = (oe) => E.slots[te]({
|
|
1468
1471
|
model: e.value
|
|
@@ -1475,7 +1478,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1475
1478
|
"onUpdate:info": (K) => t.value = K,
|
|
1476
1479
|
more: k
|
|
1477
1480
|
}, Q);
|
|
1478
|
-
}, o = Jt(),
|
|
1481
|
+
}, o = Jt(), m = () => {
|
|
1479
1482
|
var Q, K, te, oe, ue, me, Te, Oe, he;
|
|
1480
1483
|
const E = [
|
|
1481
1484
|
{
|
|
@@ -1503,7 +1506,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1503
1506
|
{
|
|
1504
1507
|
key: "more",
|
|
1505
1508
|
hidden: (he = (Oe = (Te = e.value) == null ? void 0 : Te.query) == null ? void 0 : Oe.more) == null ? void 0 : he.hidden,
|
|
1506
|
-
component: e.value.query.more.mode === 3 ?
|
|
1509
|
+
component: e.value.query.more.mode === 3 ? Lt : Re,
|
|
1507
1510
|
props: e.value.query.more.mode === 3 ? { ...e.value.query.more.dialog } : {
|
|
1508
1511
|
...e.value.query.more,
|
|
1509
1512
|
onClick: e.value.query.more.click
|
|
@@ -1516,7 +1519,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1516
1519
|
}, () => c({ slots: o }, !0)) : null
|
|
1517
1520
|
}
|
|
1518
1521
|
];
|
|
1519
|
-
return E.sort((B, Ve) => B.sort - Ve.sort), E.filter((B) => !B.hidden).map((B) => B.key === "more" && B.component ===
|
|
1522
|
+
return E.sort((B, Ve) => B.sort - Ve.sort), E.filter((B) => !B.hidden).map((B) => B.key === "more" && B.component === Lt ? Ce(Lt, B.props, {
|
|
1520
1523
|
reference: () => Ce(Re, e.value.query.more, () => B.label),
|
|
1521
1524
|
default: B.content
|
|
1522
1525
|
}) : (B.props.slot = "query-" + B.key, B.label ? Ce(B.component, B.props, () => B.label) : Ce(B.component, B.props)));
|
|
@@ -1526,12 +1529,12 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1526
1529
|
})), j = () => {
|
|
1527
1530
|
};
|
|
1528
1531
|
return (E, k) => {
|
|
1529
|
-
var te, oe, ue, me, Te, Oe, he, B, Ve, Qe, w, $, g,
|
|
1532
|
+
var te, oe, ue, me, Te, Oe, he, B, Ve, Qe, w, $, g, h, M, D, O;
|
|
1530
1533
|
const Q = H("el-form-item"), K = H("el-drawer");
|
|
1531
1534
|
return p(), U(ne, null, [
|
|
1532
1535
|
J("div", {
|
|
1533
1536
|
class: "g-query-container",
|
|
1534
|
-
style:
|
|
1537
|
+
style: Ye({ ...A.value, ...((oe = (te = e.value.query) == null ? void 0 : te.container) == null ? void 0 : oe.style) || {} }),
|
|
1535
1538
|
onDblclick: j
|
|
1536
1539
|
}, [
|
|
1537
1540
|
se(L(Vt), q({
|
|
@@ -1547,11 +1550,11 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1547
1550
|
var de, ge, N, G, Ee;
|
|
1548
1551
|
return [
|
|
1549
1552
|
J("div", {
|
|
1550
|
-
style:
|
|
1553
|
+
style: Ye((ge = (de = e.value.query) == null ? void 0 : de.btns) == null ? void 0 : ge.style)
|
|
1551
1554
|
}, [
|
|
1552
1555
|
e.value.query.group ? (p(), V(L(Et), { key: 0 }, {
|
|
1553
1556
|
default: _(() => [
|
|
1554
|
-
(p(!0), U(ne, null, P(
|
|
1557
|
+
(p(!0), U(ne, null, P(m(), (ke) => x(E.$slots, ke.props.slot, {}, () => [
|
|
1555
1558
|
(p(), V(Ge(ke)))
|
|
1556
1559
|
], !0)), 256)),
|
|
1557
1560
|
x(E.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1560,12 +1563,12 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1560
1563
|
})) : (p(), U(ne, { key: 1 }, [
|
|
1561
1564
|
(Ee = (G = (N = e.value) == null ? void 0 : N.query) == null ? void 0 : G.btns) != null && Ee.group ? (p(), V(L(Et), { key: 0 }, {
|
|
1562
1565
|
default: _(() => [
|
|
1563
|
-
(p(!0), U(ne, null, P(
|
|
1566
|
+
(p(!0), U(ne, null, P(m(), (ke) => x(E.$slots, ke.props.slot, {}, () => [
|
|
1564
1567
|
(p(), V(Ge(ke)))
|
|
1565
1568
|
], !0)), 256))
|
|
1566
1569
|
]),
|
|
1567
1570
|
_: 3
|
|
1568
|
-
})) : (p(!0), U(ne, { key: 1 }, P(
|
|
1571
|
+
})) : (p(!0), U(ne, { key: 1 }, P(m(), (ke) => x(E.$slots, ke.props.slot, {}, () => [
|
|
1569
1572
|
(p(), V(Ge(ke)))
|
|
1570
1573
|
], !0)), 256)),
|
|
1571
1574
|
x(E.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1581,11 +1584,11 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1581
1584
|
}, 16),
|
|
1582
1585
|
((Te = (me = (ue = e.value) == null ? void 0 : ue.query) == null ? void 0 : me.container) == null ? void 0 : Te.inline) === !1 ? (p(), U("div", {
|
|
1583
1586
|
key: 0,
|
|
1584
|
-
style:
|
|
1587
|
+
style: Ye([{ "margin-bottom": "18px" }, (he = (Oe = e.value.query) == null ? void 0 : Oe.btns) == null ? void 0 : he.style])
|
|
1585
1588
|
}, [
|
|
1586
1589
|
e.value.query.group ? (p(), V(L(Et), { key: 0 }, {
|
|
1587
1590
|
default: _(() => [
|
|
1588
|
-
(p(!0), U(ne, null, P(
|
|
1591
|
+
(p(!0), U(ne, null, P(m(), (Y) => x(E.$slots, Y.props.slot, {}, () => [
|
|
1589
1592
|
(p(), V(Ge(Y)))
|
|
1590
1593
|
], !0)), 256)),
|
|
1591
1594
|
x(E.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1594,12 +1597,12 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1594
1597
|
})) : (p(), U(ne, { key: 1 }, [
|
|
1595
1598
|
(Ve = (B = e.value.query) == null ? void 0 : B.btns) != null && Ve.group ? (p(), V(L(Et), { key: 0 }, {
|
|
1596
1599
|
default: _(() => [
|
|
1597
|
-
(p(!0), U(ne, null, P(
|
|
1600
|
+
(p(!0), U(ne, null, P(m(), (Y) => x(E.$slots, Y.props.slot, {}, () => [
|
|
1598
1601
|
(p(), V(Ge(Y)))
|
|
1599
1602
|
], !0)), 256))
|
|
1600
1603
|
]),
|
|
1601
1604
|
_: 3
|
|
1602
|
-
})) : (p(!0), U(ne, { key: 1 }, P(
|
|
1605
|
+
})) : (p(!0), U(ne, { key: 1 }, P(m(), (Y) => x(E.$slots, Y.props.slot, {}, () => [
|
|
1603
1606
|
(p(), V(Ge(Y)))
|
|
1604
1607
|
], !0)), 256)),
|
|
1605
1608
|
x(E.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1639,7 +1642,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1639
1642
|
]),
|
|
1640
1643
|
_: 2
|
|
1641
1644
|
}, [
|
|
1642
|
-
(O = (D = (M = (
|
|
1645
|
+
(O = (D = (M = (h = (g = e.value) == null ? void 0 : g.query) == null ? void 0 : h.more) == null ? void 0 : M.dialog) == null ? void 0 : D.footer) != null && O.hidden ? void 0 : {
|
|
1643
1646
|
name: "footer",
|
|
1644
1647
|
fn: _(() => [
|
|
1645
1648
|
J("div", Ot(Zt(e.value.query.more.dialog.footer)), [
|
|
@@ -1664,7 +1667,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1664
1667
|
key: "0"
|
|
1665
1668
|
}
|
|
1666
1669
|
]), 1040, ["modelValue"])) : $e("", !0),
|
|
1667
|
-
se(
|
|
1670
|
+
se(kl, {
|
|
1668
1671
|
duration: 300,
|
|
1669
1672
|
name: "nested",
|
|
1670
1673
|
style: { padding: "10px" }
|
|
@@ -1672,9 +1675,9 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1672
1675
|
default: _(() => {
|
|
1673
1676
|
var Y, le, de;
|
|
1674
1677
|
return [
|
|
1675
|
-
i.value && !((de = (le = (Y = e.value) == null ? void 0 : Y.query) == null ? void 0 : le.more) != null && de.hidden) && e.value.query.more.mode == 1 ? (p(), U("div",
|
|
1676
|
-
J("div",
|
|
1677
|
-
e.value.query.more.mode == 1 ?
|
|
1678
|
+
i.value && !((de = (le = (Y = e.value) == null ? void 0 : Y.query) == null ? void 0 : le.more) != null && de.hidden) && e.value.query.more.mode == 1 ? (p(), U("div", ra, [
|
|
1679
|
+
J("div", na, [
|
|
1680
|
+
e.value.query.more.mode == 1 ? _l((p(), V(L(Vt), q({
|
|
1678
1681
|
key: 0,
|
|
1679
1682
|
onSubmit: k[7] || (k[7] = yt(() => {
|
|
1680
1683
|
}, ["prevent"]))
|
|
@@ -1684,7 +1687,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1684
1687
|
]),
|
|
1685
1688
|
_: 1
|
|
1686
1689
|
}, 16)), [
|
|
1687
|
-
[
|
|
1690
|
+
[Cl, i.value]
|
|
1688
1691
|
]) : $e("", !0)
|
|
1689
1692
|
])
|
|
1690
1693
|
])) : $e("", !0)
|
|
@@ -1695,7 +1698,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1695
1698
|
], 64);
|
|
1696
1699
|
};
|
|
1697
1700
|
}
|
|
1698
|
-
},
|
|
1701
|
+
}, ua = /* @__PURE__ */ nt(oa, [["__scopeId", "data-v-eaca2240"]]), cl = {
|
|
1699
1702
|
inline: !0,
|
|
1700
1703
|
type: "hidden",
|
|
1701
1704
|
"scroll-to-error": !0,
|
|
@@ -1726,7 +1729,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1726
1729
|
label: "提交",
|
|
1727
1730
|
plain: !0,
|
|
1728
1731
|
hidden: !1,
|
|
1729
|
-
icon: () => Ce(
|
|
1732
|
+
icon: () => Ce(Ht)
|
|
1730
1733
|
},
|
|
1731
1734
|
//保存并提交按钮属性
|
|
1732
1735
|
saveSubmit: {
|
|
@@ -1735,7 +1738,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1735
1738
|
label: "保存提交",
|
|
1736
1739
|
plain: !0,
|
|
1737
1740
|
hidden: !0,
|
|
1738
|
-
icon: () => Ce(
|
|
1741
|
+
icon: () => Ce(ql)
|
|
1739
1742
|
},
|
|
1740
1743
|
//表单重置按钮属性
|
|
1741
1744
|
reset: {
|
|
@@ -1750,14 +1753,14 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1750
1753
|
label: "取消",
|
|
1751
1754
|
hidden: !0,
|
|
1752
1755
|
plain: !0,
|
|
1753
|
-
icon: () => Ce(
|
|
1756
|
+
icon: () => Ce(Il)
|
|
1754
1757
|
},
|
|
1755
1758
|
slots: {},
|
|
1756
1759
|
tabs: {
|
|
1757
1760
|
type: "card",
|
|
1758
1761
|
editable: !1
|
|
1759
1762
|
}
|
|
1760
|
-
}, fl = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"],
|
|
1763
|
+
}, fl = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"], sa = { class: "g-form-container" }, ia = /* @__PURE__ */ Object.assign({
|
|
1761
1764
|
name: "g-form",
|
|
1762
1765
|
inheritAttrs: !1
|
|
1763
1766
|
}, {
|
|
@@ -1769,25 +1772,25 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1769
1772
|
emits: /* @__PURE__ */ ut(["submit", "reset"], ["update:modelValue"]),
|
|
1770
1773
|
setup(r, { expose: u, emit: e }) {
|
|
1771
1774
|
var Te, Oe, he, B, Ve, Qe;
|
|
1772
|
-
const l = ot(r, "modelValue"), n = e, i = re(null), t =
|
|
1773
|
-
l.value.form =
|
|
1775
|
+
const l = ot(r, "modelValue"), n = e, i = re(null), t = Yt("options"), d = re({}), S = re(""), f = r;
|
|
1776
|
+
l.value.form = Ue(
|
|
1774
1777
|
cl,
|
|
1775
1778
|
t == null ? void 0 : t.form,
|
|
1776
1779
|
(Te = l.value) == null ? void 0 : Te.form
|
|
1777
|
-
), l.value.form.style =
|
|
1780
|
+
), l.value.form.style = Ue(
|
|
1778
1781
|
(he = (Oe = l.value) == null ? void 0 : Oe.form) == null ? void 0 : he.style,
|
|
1779
|
-
{ ...(B =
|
|
1782
|
+
{ ...(B = zt()) == null ? void 0 : B.style }
|
|
1780
1783
|
);
|
|
1781
1784
|
const v = async (w, $, g) => {
|
|
1782
|
-
let
|
|
1783
|
-
for (;
|
|
1785
|
+
let h = 5;
|
|
1786
|
+
for (; h > 0; ) {
|
|
1784
1787
|
if (await rt(), i.value) {
|
|
1785
1788
|
i.value.validate((M, D) => {
|
|
1786
1789
|
M ? n("submit", w, $, g) : console.error("表单验证不通过!", D);
|
|
1787
1790
|
});
|
|
1788
1791
|
return;
|
|
1789
1792
|
}
|
|
1790
|
-
|
|
1793
|
+
h--, await new Promise((M) => setTimeout(M, 50));
|
|
1791
1794
|
}
|
|
1792
1795
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1793
1796
|
}, c = async (w, $) => {
|
|
@@ -1797,11 +1800,11 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1797
1800
|
try {
|
|
1798
1801
|
i.value.resetFields(), n("reset", w, $);
|
|
1799
1802
|
return;
|
|
1800
|
-
} catch (
|
|
1801
|
-
console.error("表单重置失败:",
|
|
1803
|
+
} catch (h) {
|
|
1804
|
+
console.error("表单重置失败:", h);
|
|
1802
1805
|
return;
|
|
1803
1806
|
}
|
|
1804
|
-
g--, g > 0 && await new Promise((
|
|
1807
|
+
g--, g > 0 && await new Promise((h) => setTimeout(h, 50));
|
|
1805
1808
|
}
|
|
1806
1809
|
console.error("表单实例获取失败,无法重置表单");
|
|
1807
1810
|
};
|
|
@@ -1813,17 +1816,17 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1813
1816
|
width: "100%"
|
|
1814
1817
|
}
|
|
1815
1818
|
};
|
|
1816
|
-
l.value.formItems =
|
|
1819
|
+
l.value.formItems = Ue(
|
|
1817
1820
|
o,
|
|
1818
1821
|
t == null ? void 0 : t.formItems,
|
|
1819
1822
|
(Ve = l == null ? void 0 : l.value) == null ? void 0 : Ve.formItems
|
|
1820
1823
|
);
|
|
1821
|
-
const
|
|
1824
|
+
const m = {
|
|
1822
1825
|
span: 12,
|
|
1823
1826
|
offset: 0
|
|
1824
1827
|
};
|
|
1825
|
-
l.value.form.cols =
|
|
1826
|
-
|
|
1828
|
+
l.value.form.cols = Ue(
|
|
1829
|
+
m,
|
|
1827
1830
|
(Qe = t == null ? void 0 : t.form) == null ? void 0 : Qe.cols,
|
|
1828
1831
|
l.value.form.cols
|
|
1829
1832
|
);
|
|
@@ -1832,7 +1835,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1832
1835
|
if (w.rules)
|
|
1833
1836
|
$ = w.rules;
|
|
1834
1837
|
else {
|
|
1835
|
-
const
|
|
1838
|
+
const h = { ...{
|
|
1836
1839
|
required: void 0,
|
|
1837
1840
|
max: void 0,
|
|
1838
1841
|
min: void 0,
|
|
@@ -1841,72 +1844,72 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1841
1844
|
pattern: void 0,
|
|
1842
1845
|
validate: void 0
|
|
1843
1846
|
}, ...w };
|
|
1844
|
-
|
|
1847
|
+
h.required && $.push({
|
|
1845
1848
|
required: !0,
|
|
1846
|
-
message: `${
|
|
1849
|
+
message: `${h.label}不能为空!`,
|
|
1847
1850
|
trigger: "blur"
|
|
1848
|
-
}),
|
|
1851
|
+
}), h.max !== void 0 && h.max !== null && h.max !== "" && (h.min === void 0 || h.min === null || h.min === "") && $.push({
|
|
1849
1852
|
validator: (M, D, O) => {
|
|
1850
1853
|
if (D == null || D === "") return O();
|
|
1851
|
-
|
|
1852
|
-
new Error(`${
|
|
1853
|
-
) : O() : Number(D) > Number(
|
|
1854
|
+
h.type !== "number" && h.type !== "input-number" ? ((D == null ? void 0 : D.toString()) || "").length > Number(h.max) ? O(
|
|
1855
|
+
new Error(`${h.label}长度不能超过${h.max}个字符!`)
|
|
1856
|
+
) : O() : Number(D) > Number(h.max) ? O(new Error(`${h.label}不能大于${h.max}!`)) : O();
|
|
1854
1857
|
}
|
|
1855
|
-
}),
|
|
1858
|
+
}), h.min !== void 0 && h.min !== null && h.min !== "" && (h.max === void 0 || h.max === null || h.max === "") && $.push({
|
|
1856
1859
|
validator: (M, D, O) => {
|
|
1857
1860
|
if (D == null || D === "") return O();
|
|
1858
|
-
|
|
1861
|
+
h.type !== "number" && h.type !== "input-number" ? Number(h.min) < 1 ? O(
|
|
1859
1862
|
new Error(
|
|
1860
|
-
`${
|
|
1863
|
+
`${h.label}长度最小值${h.min}设置错误!`
|
|
1861
1864
|
)
|
|
1862
|
-
) : D.toString().length < Number(
|
|
1865
|
+
) : D.toString().length < Number(h.min) ? O(
|
|
1863
1866
|
new Error(
|
|
1864
|
-
`${
|
|
1867
|
+
`${h.label}长度不能少于${h.min}个字符!`
|
|
1865
1868
|
)
|
|
1866
|
-
) : O() : Number(D) < Number(
|
|
1869
|
+
) : O() : Number(D) < Number(h.min) ? O(new Error(`${h.label}不能小于${h.min}!`)) : O();
|
|
1867
1870
|
}
|
|
1868
|
-
}),
|
|
1871
|
+
}), h.min !== void 0 && h.min !== null && h.min !== "" && h.max !== void 0 && h.max !== null && h.max !== "" && $.push({
|
|
1869
1872
|
validator: (M, D, O) => {
|
|
1870
1873
|
if (D == null || D === "") return O();
|
|
1871
|
-
const Y = Number(
|
|
1872
|
-
|
|
1874
|
+
const Y = Number(h.min), le = Number(h.max);
|
|
1875
|
+
h.type !== "number" && h.type !== "input-number" ? Number(h.min) < 1 ? O(
|
|
1873
1876
|
new Error(
|
|
1874
|
-
`${
|
|
1877
|
+
`${h.label}长度最小值${h.min}设置错误!`
|
|
1875
1878
|
)
|
|
1876
1879
|
) : D.toString().length < Y || D.toString().length > le ? O(
|
|
1877
1880
|
new Error(
|
|
1878
|
-
`${
|
|
1881
|
+
`${h.label}长度必须在${Y}-${le}个字符之间!`
|
|
1879
1882
|
)
|
|
1880
|
-
) : O() : Number(D) < Y || D > le ? O(new Error(`${
|
|
1883
|
+
) : O() : Number(D) < Y || D > le ? O(new Error(`${h.label}必须在${Y}-${le}之间!`)) : O();
|
|
1881
1884
|
}
|
|
1882
|
-
}),
|
|
1883
|
-
pattern:
|
|
1884
|
-
message: (
|
|
1885
|
-
}),
|
|
1886
|
-
validator: (M, D, O) =>
|
|
1885
|
+
}), h.type == "email" && $.push({ type: "email", message: "不是一个正确的邮箱地址!" }), h.type == "url" && $.push({ type: "url", message: "不是一个合正确的URL!" }), h.pattern && $.push({
|
|
1886
|
+
pattern: h == null ? void 0 : h.pattern,
|
|
1887
|
+
message: (h == null ? void 0 : h.message) || "格式不正确!"
|
|
1888
|
+
}), h.validate && $.push({
|
|
1889
|
+
validator: (M, D, O) => h.validate(M, D, O)
|
|
1887
1890
|
});
|
|
1888
1891
|
}
|
|
1889
1892
|
return $;
|
|
1890
1893
|
}, j = (w, $ = !1) => {
|
|
1891
1894
|
var M, D, O, Y, le;
|
|
1892
|
-
const g = $ ? w : w == null ? void 0 : w.item,
|
|
1895
|
+
const g = $ ? w : w == null ? void 0 : w.item, h = typeof (g == null ? void 0 : g.editor) == "function" ? g.editor(d.value, (M = l.value.form) == null ? void 0 : M.modalState) : (g == null ? void 0 : g.editor) || {};
|
|
1893
1896
|
if (((D = l.value.form) == null ? void 0 : D.modalState) === "edit") {
|
|
1894
|
-
const de = typeof (g == null ? void 0 : g.editor) == "object" ? (O = g.editor) == null ? void 0 : O.ep : typeof (g == null ? void 0 : g.editor) == "function" ?
|
|
1895
|
-
return { ...
|
|
1897
|
+
const de = typeof (g == null ? void 0 : g.editor) == "object" ? (O = g.editor) == null ? void 0 : O.ep : typeof (g == null ? void 0 : g.editor) == "function" ? h == null ? void 0 : h.ep : {};
|
|
1898
|
+
return { ...h, ...de };
|
|
1896
1899
|
}
|
|
1897
1900
|
if (((Y = l.value.form) == null ? void 0 : Y.modalState) === "add") {
|
|
1898
|
-
const de = typeof (g == null ? void 0 : g.editor) == "object" ? (le = g.editor) == null ? void 0 : le.ap : typeof (g == null ? void 0 : g.editor) == "function" ?
|
|
1899
|
-
return { ...
|
|
1901
|
+
const de = typeof (g == null ? void 0 : g.editor) == "object" ? (le = g.editor) == null ? void 0 : le.ap : typeof (g == null ? void 0 : g.editor) == "function" ? h == null ? void 0 : h.ap : {};
|
|
1902
|
+
return { ...h, ...de };
|
|
1900
1903
|
}
|
|
1901
|
-
return
|
|
1904
|
+
return h;
|
|
1902
1905
|
}, E = (w) => {
|
|
1903
|
-
var g,
|
|
1906
|
+
var g, h, M, D, O;
|
|
1904
1907
|
const $ = typeof w.editor == "function" ? w.editor(d.value, (g = l.value.form) == null ? void 0 : g.modalState) : w.editor;
|
|
1905
|
-
return ((
|
|
1908
|
+
return ((h = l.value.form) == null ? void 0 : h.modalState) === "edit" ? ((M = $ == null ? void 0 : $.ep) == null ? void 0 : M.type) ?? ($ == null ? void 0 : $.type) ?? w.type : ((D = l.value.form) == null ? void 0 : D.modalState) === "add" ? ((O = $ == null ? void 0 : $.ap) == null ? void 0 : O.type) ?? ($ == null ? void 0 : $.type) ?? w.type : ($ == null ? void 0 : $.type) ?? w.type;
|
|
1906
1909
|
}, k = (w) => w === "left" ? "flex-start" : w === "right" ? "flex-end" : w === "center" ? "center" : "flex-end";
|
|
1907
1910
|
_t(() => {
|
|
1908
1911
|
Q(), f != null && f.editForm ? d.value = f.editForm : d.value = te.value;
|
|
1909
|
-
}),
|
|
1912
|
+
}), xl(() => {
|
|
1910
1913
|
i.value = null;
|
|
1911
1914
|
});
|
|
1912
1915
|
const Q = () => {
|
|
@@ -1922,9 +1925,9 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1922
1925
|
}, K = Pe(
|
|
1923
1926
|
() => Object.fromEntries(
|
|
1924
1927
|
Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].hidden !== !0).filter((w) => w[1].edit !== !1).filter((w) => w[1].editor !== !1).filter((w) => w[1].type !== "control").filter((w) => !fl.includes(w[0])).filter((w) => {
|
|
1925
|
-
var g,
|
|
1928
|
+
var g, h, M;
|
|
1926
1929
|
const $ = typeof w[1].editor == "function" ? w[1].editor(d.value, (g = l.value.form) == null ? void 0 : g.modalState) : w[1].editor;
|
|
1927
|
-
return l.value.form.modalState === "edit" ? ((
|
|
1930
|
+
return l.value.form.modalState === "edit" ? ((h = $ == null ? void 0 : $.ep) == null ? void 0 : h.editor) !== !1 : l.value.form.modalState === "add" ? ((M = $ == null ? void 0 : $.ap) == null ? void 0 : M.editor) !== !1 : !0;
|
|
1928
1931
|
}).map((w) => [w[0], w[1]])
|
|
1929
1932
|
)
|
|
1930
1933
|
), te = Pe(
|
|
@@ -1932,22 +1935,22 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1932
1935
|
Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].type != "control").map(([w, $]) => {
|
|
1933
1936
|
var M, D, O;
|
|
1934
1937
|
const g = typeof $.editor == "function" ? $.editor(d.value, (M = l.value.form) == null ? void 0 : M.modalState) : $.editor;
|
|
1935
|
-
let
|
|
1936
|
-
return l.value.form.modalState === "add" ?
|
|
1938
|
+
let h;
|
|
1939
|
+
return l.value.form.modalState === "add" ? h = ((D = g == null ? void 0 : g.ap) == null ? void 0 : D.value) !== void 0 ? g.ap.value : (g == null ? void 0 : g.value) !== void 0 ? g.value : $.value : l.value.form.modalState === "edit" ? h = ((O = g == null ? void 0 : g.ep) == null ? void 0 : O.value) !== void 0 ? g.ep.value : (g == null ? void 0 : g.value) !== void 0 ? g.value : $.value : h = (g == null ? void 0 : g.value) !== void 0 ? g.value : $.value, [w, h];
|
|
1937
1940
|
})
|
|
1938
1941
|
)
|
|
1939
1942
|
), oe = Pe(() => {
|
|
1940
1943
|
const w = /* @__PURE__ */ new Map();
|
|
1941
1944
|
return Object.entries(K.value).forEach(([$, g]) => {
|
|
1942
1945
|
if (g.groupName) {
|
|
1943
|
-
const
|
|
1944
|
-
w.has(
|
|
1945
|
-
groupName:
|
|
1946
|
+
const h = g.groupName;
|
|
1947
|
+
w.has(h) || w.set(h, {
|
|
1948
|
+
groupName: h,
|
|
1946
1949
|
items: []
|
|
1947
|
-
}), w.get(
|
|
1950
|
+
}), w.get(h).items.push({ key: $, item: g });
|
|
1948
1951
|
}
|
|
1949
1952
|
}), w.forEach(($) => {
|
|
1950
|
-
$.tabPane =
|
|
1953
|
+
$.tabPane = Ue(
|
|
1951
1954
|
...$.items.map(({ item: g }) => g.tabPane || {})
|
|
1952
1955
|
);
|
|
1953
1956
|
}), Array.from(w.values());
|
|
@@ -2001,8 +2004,8 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2001
2004
|
formData: d
|
|
2002
2005
|
}), (w, $) => {
|
|
2003
2006
|
var le, de, ge;
|
|
2004
|
-
const g = H("el-form-item"),
|
|
2005
|
-
return p(), U("div",
|
|
2007
|
+
const g = H("el-form-item"), h = H("el-col"), M = H("el-tab-pane"), D = H("el-tabs"), O = H("el-form"), Y = H("el-button");
|
|
2008
|
+
return p(), U("div", sa, [
|
|
2006
2009
|
se(O, q(
|
|
2007
2010
|
{
|
|
2008
2011
|
ref_key: "gform",
|
|
@@ -2036,18 +2039,18 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2036
2039
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" }
|
|
2037
2040
|
}, { ref_for: !0 }, N.tabPane), {
|
|
2038
2041
|
default: _(() => [
|
|
2039
|
-
(p(!0), U(ne, null, P(N.items, (G, Ee) => (p(), V(
|
|
2042
|
+
(p(!0), U(ne, null, P(N.items, (G, Ee) => (p(), V(h, q({ ref_for: !0 }, { ...l.value.form.cols, ...G == null ? void 0 : G.item.col }, {
|
|
2040
2043
|
key: G.key,
|
|
2041
2044
|
style: { width: "100%" }
|
|
2042
2045
|
}), {
|
|
2043
2046
|
default: _(() => {
|
|
2044
|
-
var ke,
|
|
2047
|
+
var ke, ze;
|
|
2045
2048
|
return [
|
|
2046
2049
|
se(g, q({
|
|
2047
2050
|
label: G == null ? void 0 : G.item.label,
|
|
2048
2051
|
prop: G.key,
|
|
2049
2052
|
rules: A(G == null ? void 0 : G.item)
|
|
2050
|
-
}, { ref_for: !0 }, { ...(ke = l.value) == null ? void 0 : ke.formItems, ...(
|
|
2053
|
+
}, { ref_for: !0 }, { ...(ke = l.value) == null ? void 0 : ke.formItems, ...(ze = G == null ? void 0 : G.item) == null ? void 0 : ze.formItem }, { style: { width: "100%" } }), {
|
|
2051
2054
|
default: _(() => [
|
|
2052
2055
|
x(w.$slots, "f-" + G.key, {
|
|
2053
2056
|
item: G == null ? void 0 : G.item,
|
|
@@ -2093,7 +2096,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2093
2096
|
_: 3
|
|
2094
2097
|
}, 16, ["modelValue"])
|
|
2095
2098
|
], !0) : x(w.$slots, "default", { key: 1 }, () => [
|
|
2096
|
-
(p(!0), U(ne, null, P(K.value, (N, G) => (p(), V(
|
|
2099
|
+
(p(!0), U(ne, null, P(K.value, (N, G) => (p(), V(h, q({ ref_for: !0 }, { ...l.value.form.cols, ...N.col }, {
|
|
2097
2100
|
key: G,
|
|
2098
2101
|
style: { width: "100%" }
|
|
2099
2102
|
}), {
|
|
@@ -2133,10 +2136,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2133
2136
|
t: "f",
|
|
2134
2137
|
formInfo: d.value
|
|
2135
2138
|
}, be({ _: 2 }, [
|
|
2136
|
-
P(w.$slots, (ke,
|
|
2137
|
-
name:
|
|
2139
|
+
P(w.$slots, (ke, ze) => ({
|
|
2140
|
+
name: ze,
|
|
2138
2141
|
fn: _((xe) => [
|
|
2139
|
-
x(w.$slots,
|
|
2142
|
+
x(w.$slots, ze, {
|
|
2140
2143
|
data: xe,
|
|
2141
2144
|
item: N,
|
|
2142
2145
|
model: l.value
|
|
@@ -2158,7 +2161,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2158
2161
|
}, 16, ["model"]),
|
|
2159
2162
|
(ge = (de = (le = l.value) == null ? void 0 : le.form) == null ? void 0 : de.footer) != null && ge.hidden ? $e("", !0) : x(w.$slots, "f-footer", { key: 0 }, () => [
|
|
2160
2163
|
J("div", {
|
|
2161
|
-
style:
|
|
2164
|
+
style: Ye({ justifyContent: k(l.value.form.footer.align), ...l.value.form.footer.style })
|
|
2162
2165
|
}, [
|
|
2163
2166
|
x(w.$slots, "f-footer-left", {}, void 0, !0),
|
|
2164
2167
|
(p(!0), U(ne, null, P(me.value, (N) => (p(), U(ne, null, [
|
|
@@ -2187,10 +2190,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2187
2190
|
]);
|
|
2188
2191
|
};
|
|
2189
2192
|
}
|
|
2190
|
-
}), vl = /* @__PURE__ */ nt(
|
|
2193
|
+
}), vl = /* @__PURE__ */ nt(ia, [["__scopeId", "data-v-6a8d36f6"]]), da = { class: "dialog-container" }, ca = {
|
|
2191
2194
|
key: 1,
|
|
2192
2195
|
style: { overflow: "hidden" }
|
|
2193
|
-
},
|
|
2196
|
+
}, fa = { style: { display: "flex", flex: "1", "margin-left": "10px" } }, va = /* @__PURE__ */ Object.assign({
|
|
2194
2197
|
name: "g-model",
|
|
2195
2198
|
inheritAttrs: !1
|
|
2196
2199
|
}, {
|
|
@@ -2214,10 +2217,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2214
2217
|
maximize: { type: Boolean, default: !1 },
|
|
2215
2218
|
minimize: { type: Boolean, default: !1 },
|
|
2216
2219
|
// 图标配置
|
|
2217
|
-
maxIcon: { type: Object, default: () =>
|
|
2220
|
+
maxIcon: { type: Object, default: () => zl },
|
|
2218
2221
|
resizeIcon: { type: Object, default: () => rl },
|
|
2219
|
-
closeIcon: { type: Object, default: () =>
|
|
2220
|
-
minIcon: { type: Object, default: () =>
|
|
2222
|
+
closeIcon: { type: Object, default: () => Yl },
|
|
2223
|
+
minIcon: { type: Object, default: () => Al },
|
|
2221
2224
|
draggable: { type: Boolean, default: !0 },
|
|
2222
2225
|
showClose: { type: Boolean, default: !0 },
|
|
2223
2226
|
fullscreen: { type: Boolean, default: !1 },
|
|
@@ -2235,7 +2238,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2235
2238
|
"restore"
|
|
2236
2239
|
],
|
|
2237
2240
|
setup(r, { expose: u, emit: e }) {
|
|
2238
|
-
const l = r, n =
|
|
2241
|
+
const l = r, n = zt(), i = e, t = re(l.fullscreen), d = Pe(() => l.type === "drawer" ? "el-drawer" : "el-dialog"), S = Pe(() => {
|
|
2239
2242
|
const te = {
|
|
2240
2243
|
modal: l.modal,
|
|
2241
2244
|
closeOnClickModal: l.type !== "dialog",
|
|
@@ -2259,7 +2262,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2259
2262
|
i("update:modelValue", te);
|
|
2260
2263
|
}
|
|
2261
2264
|
}), v = re(null), c = re(t.value), o = re(!1);
|
|
2262
|
-
function
|
|
2265
|
+
function m() {
|
|
2263
2266
|
c.value = !1, o.value = !1, i("open");
|
|
2264
2267
|
}
|
|
2265
2268
|
function A() {
|
|
@@ -2282,18 +2285,18 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2282
2285
|
}
|
|
2283
2286
|
return u({
|
|
2284
2287
|
handleClose: () => v.value.handleClose()
|
|
2285
|
-
}), (te, oe) => (p(), U("div",
|
|
2288
|
+
}), (te, oe) => (p(), U("div", da, [
|
|
2286
2289
|
o.value ? (p(), U("div", {
|
|
2287
2290
|
key: 0,
|
|
2288
2291
|
class: "minimize-ball",
|
|
2289
2292
|
onClick: K
|
|
2290
|
-
}, Se(r.title), 1)) : (p(), U("div",
|
|
2293
|
+
}, Se(r.title), 1)) : (p(), U("div", ca, [
|
|
2291
2294
|
(p(), V(Ge(d.value), q({
|
|
2292
2295
|
ref_key: "dialogExtend",
|
|
2293
2296
|
ref: v,
|
|
2294
2297
|
modelValue: f.value,
|
|
2295
2298
|
"onUpdate:modelValue": oe[1] || (oe[1] = (ue) => f.value = ue),
|
|
2296
|
-
onOpen:
|
|
2299
|
+
onOpen: m,
|
|
2297
2300
|
onOpened: A,
|
|
2298
2301
|
"lock-scroll": !0,
|
|
2299
2302
|
onClose: j,
|
|
@@ -2310,13 +2313,13 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2310
2313
|
}, () => [
|
|
2311
2314
|
J("div", {
|
|
2312
2315
|
class: "custom-header",
|
|
2313
|
-
style:
|
|
2316
|
+
style: Ye(l.headerStyle)
|
|
2314
2317
|
}, [
|
|
2315
2318
|
x(te.$slots, "title", {}, () => [
|
|
2316
|
-
J("span",
|
|
2319
|
+
J("span", fa, Se(r.title), 1)
|
|
2317
2320
|
], !0),
|
|
2318
2321
|
J("div", null, [
|
|
2319
|
-
r.minimize ? (p(), V(L(
|
|
2322
|
+
r.minimize ? (p(), V(L(jt), {
|
|
2320
2323
|
key: 0,
|
|
2321
2324
|
class: "btn-icon",
|
|
2322
2325
|
onClick: yt(Q, ["stop"])
|
|
@@ -2326,7 +2329,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2326
2329
|
]),
|
|
2327
2330
|
_: 1
|
|
2328
2331
|
})) : $e("", !0),
|
|
2329
|
-
r.maximize ? (p(), V(L(
|
|
2332
|
+
r.maximize ? (p(), V(L(jt), {
|
|
2330
2333
|
key: 1,
|
|
2331
2334
|
class: "btn-icon",
|
|
2332
2335
|
onClick: yt(k, ["stop"])
|
|
@@ -2336,7 +2339,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2336
2339
|
]),
|
|
2337
2340
|
_: 1
|
|
2338
2341
|
})) : $e("", !0),
|
|
2339
|
-
l.showClose ? (p(), V(L(
|
|
2342
|
+
l.showClose ? (p(), V(L(jt), {
|
|
2340
2343
|
key: 2,
|
|
2341
2344
|
class: "btn-icon",
|
|
2342
2345
|
onClick: oe[0] || (oe[0] = yt((Te) => v.value.handleClose(), ["stop"]))
|
|
@@ -2373,10 +2376,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2373
2376
|
]))
|
|
2374
2377
|
]));
|
|
2375
2378
|
}
|
|
2376
|
-
}), Bt = /* @__PURE__ */ nt(
|
|
2379
|
+
}), Bt = /* @__PURE__ */ nt(va, [["__scopeId", "data-v-99d6bb1e"]]), pa = { style: { padding: "15px", "box-sizing": "border-box" } }, ma = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, ha = { style: { display: "flex", flex: "1", "align-items": "center" } }, ya = {
|
|
2377
2380
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2378
2381
|
id: "excelSortEl"
|
|
2379
|
-
},
|
|
2382
|
+
}, ga = ["textContent"], ba = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, $a = {
|
|
2380
2383
|
__name: "check-excel-item",
|
|
2381
2384
|
props: {
|
|
2382
2385
|
items: Array,
|
|
@@ -2413,15 +2416,15 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2413
2416
|
S.toArray();
|
|
2414
2417
|
}
|
|
2415
2418
|
}), f = S;
|
|
2416
|
-
|
|
2419
|
+
Ml(() => {
|
|
2417
2420
|
f && f.destroy();
|
|
2418
2421
|
});
|
|
2419
2422
|
}), (S, f) => {
|
|
2420
|
-
const v = H("el-divider"), c = H("el-icon"), o = H("el-text"),
|
|
2421
|
-
return p(), U("div",
|
|
2423
|
+
const v = H("el-divider"), c = H("el-icon"), o = H("el-text"), m = H("el-checkbox"), A = H("el-button");
|
|
2424
|
+
return p(), U("div", pa, [
|
|
2422
2425
|
J("div", null, [
|
|
2423
|
-
J("div",
|
|
2424
|
-
J("div",
|
|
2426
|
+
J("div", ma, [
|
|
2427
|
+
J("div", ha, [
|
|
2425
2428
|
J("a", {
|
|
2426
2429
|
onClick: i,
|
|
2427
2430
|
style: { cursor: "pointer" }
|
|
@@ -2451,8 +2454,8 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2451
2454
|
])
|
|
2452
2455
|
]),
|
|
2453
2456
|
f[1] || (f[1] = J("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2454
|
-
J("div",
|
|
2455
|
-
(p(!0), U(ne, null, P(n.value, (j) => (p(), V(
|
|
2457
|
+
J("div", ya, [
|
|
2458
|
+
(p(!0), U(ne, null, P(n.value, (j) => (p(), V(m, {
|
|
2456
2459
|
class: "check-box-hover",
|
|
2457
2460
|
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" },
|
|
2458
2461
|
"data-id": j.key,
|
|
@@ -2465,13 +2468,13 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2465
2468
|
J("span", {
|
|
2466
2469
|
textContent: Se(j.label),
|
|
2467
2470
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2468
|
-
}, null, 8,
|
|
2471
|
+
}, null, 8, ga)
|
|
2469
2472
|
]),
|
|
2470
2473
|
_: 2
|
|
2471
2474
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2472
2475
|
])
|
|
2473
2476
|
]),
|
|
2474
|
-
J("div",
|
|
2477
|
+
J("div", ba, [
|
|
2475
2478
|
se(A, {
|
|
2476
2479
|
type: "primary",
|
|
2477
2480
|
onClick: d,
|
|
@@ -2487,8 +2490,8 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2487
2490
|
]);
|
|
2488
2491
|
};
|
|
2489
2492
|
}
|
|
2490
|
-
},
|
|
2491
|
-
we.version(
|
|
2493
|
+
}, wa = /* @__PURE__ */ nt($a, [["__scopeId", "data-v-13575747"]]), ka = "vue-gyc-ui", _a = 1, we = new Rl(ka);
|
|
2494
|
+
we.version(_a).stores({
|
|
2492
2495
|
// 记录表格项设置信息
|
|
2493
2496
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2494
2497
|
// 记录表格分页条数
|
|
@@ -2510,7 +2513,7 @@ async function Dt(r, u, e) {
|
|
|
2510
2513
|
throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${u}, state: ${e}):`, l), l;
|
|
2511
2514
|
}
|
|
2512
2515
|
}
|
|
2513
|
-
async function
|
|
2516
|
+
async function Ca(r, u, e) {
|
|
2514
2517
|
mt(r);
|
|
2515
2518
|
try {
|
|
2516
2519
|
const l = await we.tableWidths.where({ page: r, key: u }).first();
|
|
@@ -2519,7 +2522,7 @@ async function Ma(r, u, e) {
|
|
|
2519
2522
|
throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${u}):`, l), l;
|
|
2520
2523
|
}
|
|
2521
2524
|
}
|
|
2522
|
-
async function
|
|
2525
|
+
async function xa(r) {
|
|
2523
2526
|
mt(r);
|
|
2524
2527
|
try {
|
|
2525
2528
|
return await we.tableWidths.where({ page: r }).toArray();
|
|
@@ -2527,7 +2530,7 @@ async function Sa(r) {
|
|
|
2527
2530
|
throw console.error(`获取表格项设置信息时出错 (page: ${r}):`, u), u;
|
|
2528
2531
|
}
|
|
2529
2532
|
}
|
|
2530
|
-
async function
|
|
2533
|
+
async function Ma(r) {
|
|
2531
2534
|
mt(r);
|
|
2532
2535
|
try {
|
|
2533
2536
|
const u = await we.tableColsState.where({ page: r }).toArray();
|
|
@@ -2536,7 +2539,7 @@ async function Ta(r) {
|
|
|
2536
2539
|
throw console.error(`获取表格列状态时出错 (page: ${r}):`, u), u;
|
|
2537
2540
|
}
|
|
2538
2541
|
}
|
|
2539
|
-
async function
|
|
2542
|
+
async function Sa(r) {
|
|
2540
2543
|
mt(r);
|
|
2541
2544
|
try {
|
|
2542
2545
|
return await we.transaction("rw", we.tableWidths, we.pageInfo, we.sorts, we.tableColsState, async () => {
|
|
@@ -2551,7 +2554,7 @@ async function Va(r) {
|
|
|
2551
2554
|
throw console.error(`删除页面"${r}"的表格设置信息时出错:`, u), u;
|
|
2552
2555
|
}
|
|
2553
2556
|
}
|
|
2554
|
-
async function
|
|
2557
|
+
async function Ta({ page: r, size: u }) {
|
|
2555
2558
|
mt(r);
|
|
2556
2559
|
try {
|
|
2557
2560
|
const e = await we.pageInfo.where({ page: r }).first();
|
|
@@ -2560,7 +2563,7 @@ async function Ea({ page: r, size: u }) {
|
|
|
2560
2563
|
throw console.error(`保存分页条数时出错 (page: ${r}):`, e), e;
|
|
2561
2564
|
}
|
|
2562
2565
|
}
|
|
2563
|
-
async function
|
|
2566
|
+
async function Va(r) {
|
|
2564
2567
|
mt(r);
|
|
2565
2568
|
try {
|
|
2566
2569
|
const u = await we.pageInfo.where({ page: r }).first();
|
|
@@ -2569,7 +2572,7 @@ async function Da(r) {
|
|
|
2569
2572
|
throw console.error(`获取分页条数时出错 (page: ${r}):`, u), u;
|
|
2570
2573
|
}
|
|
2571
2574
|
}
|
|
2572
|
-
async function
|
|
2575
|
+
async function Ea(r, u) {
|
|
2573
2576
|
mt(r);
|
|
2574
2577
|
try {
|
|
2575
2578
|
const e = await we.sorts.where({ page: r }).first();
|
|
@@ -2578,7 +2581,7 @@ async function Oa(r, u) {
|
|
|
2578
2581
|
throw console.error(`保存表格字段顺序时出错 (page: ${r}):`, e), e;
|
|
2579
2582
|
}
|
|
2580
2583
|
}
|
|
2581
|
-
async function
|
|
2584
|
+
async function Da(r) {
|
|
2582
2585
|
mt(r);
|
|
2583
2586
|
try {
|
|
2584
2587
|
const u = await we.sorts.where({ page: r }).first();
|
|
@@ -2587,13 +2590,13 @@ async function Ia(r) {
|
|
|
2587
2590
|
throw console.error(`获取表格字段顺序时出错 (page: ${r}):`, u), u;
|
|
2588
2591
|
}
|
|
2589
2592
|
}
|
|
2590
|
-
const
|
|
2593
|
+
const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { style: { display: "flex", "align-items": "center", height: "30px" } }, qa = {
|
|
2591
2594
|
style: { display: "flex", flex: "1", "align-items": "center" },
|
|
2592
2595
|
class: "allcheck"
|
|
2593
|
-
},
|
|
2596
|
+
}, Aa = {
|
|
2594
2597
|
id: "cols",
|
|
2595
2598
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2596
|
-
},
|
|
2599
|
+
}, Ya = ["textContent"], za = {
|
|
2597
2600
|
__name: "columns-setting",
|
|
2598
2601
|
props: /* @__PURE__ */ ut({
|
|
2599
2602
|
tuid: {
|
|
@@ -2618,9 +2621,9 @@ const qa = { style: { padding: "15px", "box-sizing": "border-box" } }, Aa = { st
|
|
|
2618
2621
|
filter: ".filtered",
|
|
2619
2622
|
sort: !0,
|
|
2620
2623
|
onEnd: async () => {
|
|
2621
|
-
let
|
|
2624
|
+
let m = o.toArray();
|
|
2622
2625
|
try {
|
|
2623
|
-
|
|
2626
|
+
Ea(e.tuid, m).then((A) => {
|
|
2624
2627
|
l("setting-drag-end");
|
|
2625
2628
|
});
|
|
2626
2629
|
} catch (A) {
|
|
@@ -2665,7 +2668,7 @@ const qa = { style: { padding: "15px", "box-sizing": "border-box" } }, Aa = { st
|
|
|
2665
2668
|
cancelButtonText: "取消",
|
|
2666
2669
|
type: "warning"
|
|
2667
2670
|
}).then(() => {
|
|
2668
|
-
|
|
2671
|
+
Sa(e.tuid).then((c) => {
|
|
2669
2672
|
window.location.reload();
|
|
2670
2673
|
}).catch((c) => {
|
|
2671
2674
|
console.error("复位操作出错:", c), ft({
|
|
@@ -2685,14 +2688,14 @@ const qa = { style: { padding: "15px", "box-sizing": "border-box" } }, Aa = { st
|
|
|
2685
2688
|
width: o == null ? void 0 : o.width
|
|
2686
2689
|
})).sort((c, o) => c.sort - o.sort), d();
|
|
2687
2690
|
}), (c, o) => {
|
|
2688
|
-
const
|
|
2689
|
-
return p(), U("div",
|
|
2690
|
-
J("div",
|
|
2691
|
-
J("div",
|
|
2691
|
+
const m = H("el-divider"), A = H("el-icon"), j = H("el-text"), E = H("el-checkbox");
|
|
2692
|
+
return p(), U("div", Oa, [
|
|
2693
|
+
J("div", Ia, [
|
|
2694
|
+
J("div", qa, [
|
|
2692
2695
|
J("a", { onClick: S }, "全选"),
|
|
2693
|
-
se(
|
|
2696
|
+
se(m, { direction: "vertical" }),
|
|
2694
2697
|
J("a", { onClick: f }, "全不选"),
|
|
2695
|
-
se(
|
|
2698
|
+
se(m, { direction: "vertical" }),
|
|
2696
2699
|
J("a", { onClick: v }, "复位")
|
|
2697
2700
|
]),
|
|
2698
2701
|
se(j, { type: "warning" }, {
|
|
@@ -2709,7 +2712,7 @@ const qa = { style: { padding: "15px", "box-sizing": "border-box" } }, Aa = { st
|
|
|
2709
2712
|
})
|
|
2710
2713
|
]),
|
|
2711
2714
|
J("div", null, [
|
|
2712
|
-
J("div",
|
|
2715
|
+
J("div", Aa, [
|
|
2713
2716
|
(p(!0), U(ne, null, P(L(n), (k) => (p(), V(E, {
|
|
2714
2717
|
modelValue: k.showCol,
|
|
2715
2718
|
"onUpdate:modelValue": (Q) => k.showCol = Q,
|
|
@@ -2726,7 +2729,7 @@ const qa = { style: { padding: "15px", "box-sizing": "border-box" } }, Aa = { st
|
|
|
2726
2729
|
J("span", {
|
|
2727
2730
|
textContent: Se(k.label),
|
|
2728
2731
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2729
|
-
}, null, 8,
|
|
2732
|
+
}, null, 8, Ya)
|
|
2730
2733
|
]),
|
|
2731
2734
|
_: 2
|
|
2732
2735
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2735,7 +2738,7 @@ const qa = { style: { padding: "15px", "box-sizing": "border-box" } }, Aa = { st
|
|
|
2735
2738
|
]);
|
|
2736
2739
|
};
|
|
2737
2740
|
}
|
|
2738
|
-
},
|
|
2741
|
+
}, Ua = /* @__PURE__ */ nt(za, [["__scopeId", "data-v-750b37bc"]]), La = { class: "title" }, ja = { class: "content" }, Ha = {
|
|
2739
2742
|
__name: "g-cell-toopTip",
|
|
2740
2743
|
props: {
|
|
2741
2744
|
content: {
|
|
@@ -2753,22 +2756,22 @@ const qa = { style: { padding: "15px", "box-sizing": "border-box" } }, Aa = { st
|
|
|
2753
2756
|
};
|
|
2754
2757
|
return (l, n) => (p(), U("div", {
|
|
2755
2758
|
class: "g-cell-toopTip",
|
|
2756
|
-
style:
|
|
2759
|
+
style: Ye({ width: u.column.width + "px" })
|
|
2757
2760
|
}, [
|
|
2758
|
-
J("div",
|
|
2761
|
+
J("div", La, [
|
|
2759
2762
|
n[0] || (n[0] = J("span", { class: "title-text" }, "内容", -1)),
|
|
2760
2763
|
J("span", {
|
|
2761
2764
|
class: "copy-btn",
|
|
2762
2765
|
onClick: e,
|
|
2763
2766
|
title: "复制内容"
|
|
2764
2767
|
}, [
|
|
2765
|
-
se(L(
|
|
2768
|
+
se(L(Ul))
|
|
2766
2769
|
])
|
|
2767
2770
|
]),
|
|
2768
|
-
J("div",
|
|
2771
|
+
J("div", ja, Se(u.content), 1)
|
|
2769
2772
|
], 4));
|
|
2770
2773
|
}
|
|
2771
|
-
},
|
|
2774
|
+
}, Fa = /* @__PURE__ */ nt(Ha, [["__scopeId", "data-v-f28912da"]]), Ra = /* @__PURE__ */ Object.assign({
|
|
2772
2775
|
name: "g-detail",
|
|
2773
2776
|
inheritAttrs: !1
|
|
2774
2777
|
}, {
|
|
@@ -2789,15 +2792,15 @@ const qa = { style: { padding: "15px", "box-sizing": "border-box" } }, Aa = { st
|
|
|
2789
2792
|
}
|
|
2790
2793
|
},
|
|
2791
2794
|
setup(r) {
|
|
2792
|
-
const u = r, e =
|
|
2795
|
+
const u = r, e = Yt("options"), l = {
|
|
2793
2796
|
border: !0,
|
|
2794
2797
|
labelWidth: "100px",
|
|
2795
2798
|
column: 2
|
|
2796
2799
|
}, n = Pe(() => {
|
|
2797
|
-
var o,
|
|
2800
|
+
var o, m;
|
|
2798
2801
|
return {
|
|
2799
2802
|
...l,
|
|
2800
|
-
...((
|
|
2803
|
+
...((m = (o = e == null ? void 0 : e.control) == null ? void 0 : o.view(u.row)) == null ? void 0 : m.container) || {},
|
|
2801
2804
|
...u == null ? void 0 : u.container
|
|
2802
2805
|
};
|
|
2803
2806
|
}), i = {
|
|
@@ -2810,36 +2813,36 @@ const qa = { style: { padding: "15px", "box-sizing": "border-box" } }, Aa = { st
|
|
|
2810
2813
|
...((o = u == null ? void 0 : u.container) == null ? void 0 : o.items) || {}
|
|
2811
2814
|
};
|
|
2812
2815
|
}), d = (o) => {
|
|
2813
|
-
const
|
|
2816
|
+
const m = u.m[o], A = m == null ? void 0 : m.view, j = typeof A == "function" ? A(u.row, null, 0, u.m) : A || {}, E = m == null ? void 0 : m.table;
|
|
2814
2817
|
return { ...typeof E == "function" ? E(u.row) || {} : {}, ...j };
|
|
2815
2818
|
}, S = (o) => {
|
|
2816
|
-
const
|
|
2817
|
-
return (
|
|
2818
|
-
}, f = Pe(() => Object.entries(u.m).filter(([o,
|
|
2819
|
-
if (fl.includes(o) || (
|
|
2820
|
-
let A = (
|
|
2819
|
+
const m = d(o);
|
|
2820
|
+
return (m == null ? void 0 : m.type) || "text-info";
|
|
2821
|
+
}, f = Pe(() => Object.entries(u.m).filter(([o, m]) => {
|
|
2822
|
+
if (fl.includes(o) || (m == null ? void 0 : m.type) === "hidden") return !1;
|
|
2823
|
+
let A = (m == null ? void 0 : m.visible) !== !1;
|
|
2821
2824
|
const j = d(o);
|
|
2822
2825
|
return Object.hasOwn(j, "visible") ? A = j.visible : Object.hasOwn(j, "hidden") && (A = !j.hidden), A;
|
|
2823
|
-
}).sort(([o], [
|
|
2826
|
+
}).sort(([o], [m]) => {
|
|
2824
2827
|
var E, k;
|
|
2825
|
-
const A = ((E = d(o)) == null ? void 0 : E.sort) ?? 0, j = ((k = d(
|
|
2828
|
+
const A = ((E = d(o)) == null ? void 0 : E.sort) ?? 0, j = ((k = d(m)) == null ? void 0 : k.sort) ?? 0;
|
|
2826
2829
|
return A - j;
|
|
2827
2830
|
})), v = {
|
|
2828
2831
|
date: "YYYY-MM-DD",
|
|
2829
2832
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2830
2833
|
time: "HH:mm:ss"
|
|
2831
|
-
}, c = Pe(() => ({ ...Object.fromEntries(f.value.map(([
|
|
2832
|
-
const j = d(
|
|
2834
|
+
}, c = Pe(() => ({ ...Object.fromEntries(f.value.map(([m, A]) => {
|
|
2835
|
+
const j = d(m);
|
|
2833
2836
|
let E = Object.hasOwn(j, "value") ? j.value : A == null ? void 0 : A.value;
|
|
2834
2837
|
const k = j.format || v[A == null ? void 0 : A.type];
|
|
2835
|
-
return k && E && (E = It(E).format(k)), [
|
|
2838
|
+
return k && E && (E = It(E).format(k)), [m, E];
|
|
2836
2839
|
})), ...u.row }));
|
|
2837
|
-
return (o,
|
|
2840
|
+
return (o, m) => {
|
|
2838
2841
|
var E;
|
|
2839
2842
|
const A = H("el-descriptions-item"), j = H("el-descriptions");
|
|
2840
2843
|
return p(), U("div", {
|
|
2841
2844
|
class: "g-detail-container",
|
|
2842
|
-
style:
|
|
2845
|
+
style: Ye(((E = n.value) == null ? void 0 : E.style) || {})
|
|
2843
2846
|
}, [
|
|
2844
2847
|
se(j, q({ border: "" }, L(Xe)(n.value, (k) => !["container"].includes(k))), be({
|
|
2845
2848
|
default: _(() => [
|
|
@@ -2890,7 +2893,7 @@ const qa = { style: { padding: "15px", "box-sizing": "border-box" } }, Aa = { st
|
|
|
2890
2893
|
], 4);
|
|
2891
2894
|
};
|
|
2892
2895
|
}
|
|
2893
|
-
}), pl = /* @__PURE__ */ nt(
|
|
2896
|
+
}), pl = /* @__PURE__ */ nt(Ra, [["__scopeId", "data-v-4902ce5a"]]);
|
|
2894
2897
|
var ml = { exports: {} }, hl = { exports: {} };
|
|
2895
2898
|
(function() {
|
|
2896
2899
|
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = {
|
|
@@ -2957,16 +2960,16 @@ var ml = { exports: {} }, hl = { exports: {} };
|
|
|
2957
2960
|
};
|
|
2958
2961
|
hl.exports = u;
|
|
2959
2962
|
})();
|
|
2960
|
-
var
|
|
2963
|
+
var Ba = hl.exports, Ft = {
|
|
2961
2964
|
// UTF-8 encoding
|
|
2962
2965
|
utf8: {
|
|
2963
2966
|
// Convert a string to a byte array
|
|
2964
2967
|
stringToBytes: function(r) {
|
|
2965
|
-
return
|
|
2968
|
+
return Ft.bin.stringToBytes(unescape(encodeURIComponent(r)));
|
|
2966
2969
|
},
|
|
2967
2970
|
// Convert a byte array to a string
|
|
2968
2971
|
bytesToString: function(r) {
|
|
2969
|
-
return decodeURIComponent(escape(
|
|
2972
|
+
return decodeURIComponent(escape(Ft.bin.bytesToString(r)));
|
|
2970
2973
|
}
|
|
2971
2974
|
},
|
|
2972
2975
|
// Binary encoding
|
|
@@ -2984,31 +2987,31 @@ var Na = hl.exports, Ht = {
|
|
|
2984
2987
|
return u.join("");
|
|
2985
2988
|
}
|
|
2986
2989
|
}
|
|
2987
|
-
}, Wt =
|
|
2990
|
+
}, Wt = Ft;
|
|
2988
2991
|
/*!
|
|
2989
2992
|
* Determine if an object is a Buffer
|
|
2990
2993
|
*
|
|
2991
2994
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
2992
2995
|
* @license MIT
|
|
2993
2996
|
*/
|
|
2994
|
-
var
|
|
2995
|
-
return r != null && (yl(r) ||
|
|
2997
|
+
var Pa = function(r) {
|
|
2998
|
+
return r != null && (yl(r) || Na(r) || !!r._isBuffer);
|
|
2996
2999
|
};
|
|
2997
3000
|
function yl(r) {
|
|
2998
3001
|
return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
2999
3002
|
}
|
|
3000
|
-
function
|
|
3003
|
+
function Na(r) {
|
|
3001
3004
|
return typeof r.readFloatLE == "function" && typeof r.slice == "function" && yl(r.slice(0, 0));
|
|
3002
3005
|
}
|
|
3003
3006
|
(function() {
|
|
3004
|
-
var r =
|
|
3007
|
+
var r = Ba, u = Wt.utf8, e = Pa, l = Wt.bin, n = function(i, t) {
|
|
3005
3008
|
i.constructor == String ? t && t.encoding === "binary" ? i = l.stringToBytes(i) : i = u.stringToBytes(i) : e(i) ? i = Array.prototype.slice.call(i, 0) : !Array.isArray(i) && i.constructor !== Uint8Array && (i = i.toString());
|
|
3006
|
-
for (var d = r.bytesToWords(i), S = i.length * 8, f = 1732584193, v = -271733879, c = -1732584194, o = 271733878,
|
|
3007
|
-
d[
|
|
3009
|
+
for (var d = r.bytesToWords(i), S = i.length * 8, f = 1732584193, v = -271733879, c = -1732584194, o = 271733878, m = 0; m < d.length; m++)
|
|
3010
|
+
d[m] = (d[m] << 8 | d[m] >>> 24) & 16711935 | (d[m] << 24 | d[m] >>> 8) & 4278255360;
|
|
3008
3011
|
d[S >>> 5] |= 128 << S % 32, d[(S + 64 >>> 9 << 4) + 14] = S;
|
|
3009
|
-
for (var A = n._ff, j = n._gg, E = n._hh, k = n._ii,
|
|
3012
|
+
for (var A = n._ff, j = n._gg, E = n._hh, k = n._ii, m = 0; m < d.length; m += 16) {
|
|
3010
3013
|
var Q = f, K = v, te = c, oe = o;
|
|
3011
|
-
f = A(f, v, c, o, d[
|
|
3014
|
+
f = A(f, v, c, o, d[m + 0], 7, -680876936), o = A(o, f, v, c, d[m + 1], 12, -389564586), c = A(c, o, f, v, d[m + 2], 17, 606105819), v = A(v, c, o, f, d[m + 3], 22, -1044525330), f = A(f, v, c, o, d[m + 4], 7, -176418897), o = A(o, f, v, c, d[m + 5], 12, 1200080426), c = A(c, o, f, v, d[m + 6], 17, -1473231341), v = A(v, c, o, f, d[m + 7], 22, -45705983), f = A(f, v, c, o, d[m + 8], 7, 1770035416), o = A(o, f, v, c, d[m + 9], 12, -1958414417), c = A(c, o, f, v, d[m + 10], 17, -42063), v = A(v, c, o, f, d[m + 11], 22, -1990404162), f = A(f, v, c, o, d[m + 12], 7, 1804603682), o = A(o, f, v, c, d[m + 13], 12, -40341101), c = A(c, o, f, v, d[m + 14], 17, -1502002290), v = A(v, c, o, f, d[m + 15], 22, 1236535329), f = j(f, v, c, o, d[m + 1], 5, -165796510), o = j(o, f, v, c, d[m + 6], 9, -1069501632), c = j(c, o, f, v, d[m + 11], 14, 643717713), v = j(v, c, o, f, d[m + 0], 20, -373897302), f = j(f, v, c, o, d[m + 5], 5, -701558691), o = j(o, f, v, c, d[m + 10], 9, 38016083), c = j(c, o, f, v, d[m + 15], 14, -660478335), v = j(v, c, o, f, d[m + 4], 20, -405537848), f = j(f, v, c, o, d[m + 9], 5, 568446438), o = j(o, f, v, c, d[m + 14], 9, -1019803690), c = j(c, o, f, v, d[m + 3], 14, -187363961), v = j(v, c, o, f, d[m + 8], 20, 1163531501), f = j(f, v, c, o, d[m + 13], 5, -1444681467), o = j(o, f, v, c, d[m + 2], 9, -51403784), c = j(c, o, f, v, d[m + 7], 14, 1735328473), v = j(v, c, o, f, d[m + 12], 20, -1926607734), f = E(f, v, c, o, d[m + 5], 4, -378558), o = E(o, f, v, c, d[m + 8], 11, -2022574463), c = E(c, o, f, v, d[m + 11], 16, 1839030562), v = E(v, c, o, f, d[m + 14], 23, -35309556), f = E(f, v, c, o, d[m + 1], 4, -1530992060), o = E(o, f, v, c, d[m + 4], 11, 1272893353), c = E(c, o, f, v, d[m + 7], 16, -155497632), v = E(v, c, o, f, d[m + 10], 23, -1094730640), f = E(f, v, c, o, d[m + 13], 4, 681279174), o = E(o, f, v, c, d[m + 0], 11, -358537222), c = E(c, o, f, v, d[m + 3], 16, -722521979), v = E(v, c, o, f, d[m + 6], 23, 76029189), f = E(f, v, c, o, d[m + 9], 4, -640364487), o = E(o, f, v, c, d[m + 12], 11, -421815835), c = E(c, o, f, v, d[m + 15], 16, 530742520), v = E(v, c, o, f, d[m + 2], 23, -995338651), f = k(f, v, c, o, d[m + 0], 6, -198630844), o = k(o, f, v, c, d[m + 7], 10, 1126891415), c = k(c, o, f, v, d[m + 14], 15, -1416354905), v = k(v, c, o, f, d[m + 5], 21, -57434055), f = k(f, v, c, o, d[m + 12], 6, 1700485571), o = k(o, f, v, c, d[m + 3], 10, -1894986606), c = k(c, o, f, v, d[m + 10], 15, -1051523), v = k(v, c, o, f, d[m + 1], 21, -2054922799), f = k(f, v, c, o, d[m + 8], 6, 1873313359), o = k(o, f, v, c, d[m + 15], 10, -30611744), c = k(c, o, f, v, d[m + 6], 15, -1560198380), v = k(v, c, o, f, d[m + 13], 21, 1309151649), f = k(f, v, c, o, d[m + 4], 6, -145523070), o = k(o, f, v, c, d[m + 11], 10, -1120210379), c = k(c, o, f, v, d[m + 2], 15, 718787259), v = k(v, c, o, f, d[m + 9], 21, -343485551), f = f + Q >>> 0, v = v + K >>> 0, c = c + te >>> 0, o = o + oe >>> 0;
|
|
3012
3015
|
}
|
|
3013
3016
|
return r.endian([f, v, c, o]);
|
|
3014
3017
|
};
|
|
@@ -3031,11 +3034,11 @@ function Ga(r) {
|
|
|
3031
3034
|
return t && t.asBytes ? d : t && t.asString ? l.bytesToString(d) : r.bytesToHex(d);
|
|
3032
3035
|
};
|
|
3033
3036
|
})();
|
|
3034
|
-
var
|
|
3035
|
-
const
|
|
3037
|
+
var Wa = ml.exports;
|
|
3038
|
+
const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
3036
3039
|
key: 0,
|
|
3037
3040
|
class: "table-query-container"
|
|
3038
|
-
},
|
|
3041
|
+
}, Za = { class: "table-container" }, Ja = ["innerHTML"], Ka = /* @__PURE__ */ Object.assign({
|
|
3039
3042
|
name: "g-table",
|
|
3040
3043
|
inheritAttrs: !1
|
|
3041
3044
|
}, {
|
|
@@ -3065,7 +3068,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3065
3068
|
], ["update:modelValue", "update:selectedRows"]),
|
|
3066
3069
|
setup(r, { expose: u, emit: e }) {
|
|
3067
3070
|
var lt, Be, Ze, Je, Ke, Ct, xt;
|
|
3068
|
-
const l = re(""), n = r, i = e, t = ot(r, "modelValue"), d =
|
|
3071
|
+
const l = re(""), n = r, i = e, t = ot(r, "modelValue"), d = Yt("options"), S = re({}), f = re(!0), v = Object.entries(t.value).filter(([a, s]) => (s == null ? void 0 : s.search) !== void 0).map(([a, s]) => {
|
|
3069
3072
|
var C;
|
|
3070
3073
|
let y;
|
|
3071
3074
|
if (typeof s.search == "function") {
|
|
@@ -3105,7 +3108,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3105
3108
|
"filter-multiple",
|
|
3106
3109
|
"filter-method",
|
|
3107
3110
|
"filtered-value"
|
|
3108
|
-
],
|
|
3111
|
+
], m = re([]), A = zt(), j = re({}), E = re([]), k = re(null), Q = re(""), K = re("/"), te = ot(r, "selectedRows"), oe = re({
|
|
3109
3112
|
autoWatch: !1,
|
|
3110
3113
|
data: [],
|
|
3111
3114
|
border: !0,
|
|
@@ -3115,7 +3118,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3115
3118
|
stripe: !0,
|
|
3116
3119
|
type: "hidden",
|
|
3117
3120
|
load: async () => {
|
|
3118
|
-
const a = Number(await
|
|
3121
|
+
const a = Number(await Va(K.value));
|
|
3119
3122
|
a && a > 0 && (t.value.table.page.pageSize = a);
|
|
3120
3123
|
let { currentPage: s, pageSize: y } = t.value.table.page;
|
|
3121
3124
|
try {
|
|
@@ -3141,7 +3144,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3141
3144
|
}
|
|
3142
3145
|
},
|
|
3143
3146
|
onHeaderDragend: (a, s, y) => {
|
|
3144
|
-
|
|
3147
|
+
Ca(K.value, y.property, a);
|
|
3145
3148
|
},
|
|
3146
3149
|
onRowDblclick: (a, s, y) => {
|
|
3147
3150
|
t.value.table.dblclickType == "edit" ? M(a, s, y, t) : t.value.table.dblclickType == "view" ? O(a, s, y, t) : t.value.table.dblclickType == "delete" ? D(a, s, y, t) : t.value.table.dblclickType(a, s, y, t);
|
|
@@ -3164,7 +3167,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3164
3167
|
t.value.table.page.currentPage = a, t.value.table.load();
|
|
3165
3168
|
},
|
|
3166
3169
|
onSizeChange: (a) => {
|
|
3167
|
-
|
|
3170
|
+
Ta({ page: K.value, size: a }).then(() => {
|
|
3168
3171
|
t.value.table.page.pageSize = a, t.value.table.load();
|
|
3169
3172
|
});
|
|
3170
3173
|
}
|
|
@@ -3177,7 +3180,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3177
3180
|
te.value = a;
|
|
3178
3181
|
}
|
|
3179
3182
|
});
|
|
3180
|
-
t.value.table =
|
|
3183
|
+
t.value.table = Ue(
|
|
3181
3184
|
oe.value,
|
|
3182
3185
|
d == null ? void 0 : d.table,
|
|
3183
3186
|
t.value.table,
|
|
@@ -3201,7 +3204,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3201
3204
|
mode: "dialog",
|
|
3202
3205
|
"view-mode": "description",
|
|
3203
3206
|
// description || readonly
|
|
3204
|
-
icon: () => Ce(
|
|
3207
|
+
icon: () => Ce(Fl),
|
|
3205
3208
|
auth: () => {
|
|
3206
3209
|
var I;
|
|
3207
3210
|
return !(((I = C == null ? void 0 : C.control) == null ? void 0 : I.add(a, C).inline) === !0 && y === 0);
|
|
@@ -3212,7 +3215,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3212
3215
|
text: !0,
|
|
3213
3216
|
type: "primary",
|
|
3214
3217
|
mode: "dialog",
|
|
3215
|
-
icon: () => Ce(
|
|
3218
|
+
icon: () => Ce(Hl),
|
|
3216
3219
|
auth: () => {
|
|
3217
3220
|
var I;
|
|
3218
3221
|
return ((I = C == null ? void 0 : C.control) == null ? void 0 : I.add(a, C).inline) !== !0;
|
|
@@ -3242,7 +3245,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3242
3245
|
return {
|
|
3243
3246
|
label: ((I = C.control) == null ? void 0 : I.add(a, C).inline) !== !0 ? "保存" : y === 0 ? "新增" : "保存",
|
|
3244
3247
|
text: !0,
|
|
3245
|
-
icon: () => Ce(
|
|
3248
|
+
icon: () => Ce(Ht),
|
|
3246
3249
|
type: ((F = C.control) == null ? void 0 : F.add(a, C).inline) !== !0 || y === 0 ? "primary" : "success",
|
|
3247
3250
|
sort: -1,
|
|
3248
3251
|
auth: () => {
|
|
@@ -3257,7 +3260,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3257
3260
|
type: "primary",
|
|
3258
3261
|
mode: "dialog",
|
|
3259
3262
|
inline: !1,
|
|
3260
|
-
icon: () => Ce(
|
|
3263
|
+
icon: () => Ce(jl),
|
|
3261
3264
|
auth: () => !0
|
|
3262
3265
|
}),
|
|
3263
3266
|
toggleExpand: (a, s) => ({
|
|
@@ -3273,7 +3276,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3273
3276
|
text: !1,
|
|
3274
3277
|
type: "primary",
|
|
3275
3278
|
mode: "dialog",
|
|
3276
|
-
icon: () => Ce(
|
|
3279
|
+
icon: () => Ce(Ht),
|
|
3277
3280
|
auth: () => !1
|
|
3278
3281
|
}),
|
|
3279
3282
|
download: (a, s) => ({
|
|
@@ -3290,7 +3293,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3290
3293
|
text: !1,
|
|
3291
3294
|
type: "primary",
|
|
3292
3295
|
mode: "dialog",
|
|
3293
|
-
icon: () => Ce(
|
|
3296
|
+
icon: () => Ce(Ll),
|
|
3294
3297
|
auth: () => !0
|
|
3295
3298
|
}),
|
|
3296
3299
|
dropdown: (a, s, y, C) => ({
|
|
@@ -3307,7 +3310,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3307
3310
|
"button-props": { round: !0, plain: !0 }
|
|
3308
3311
|
})
|
|
3309
3312
|
};
|
|
3310
|
-
t.value.control =
|
|
3313
|
+
t.value.control = Ue(
|
|
3311
3314
|
ue,
|
|
3312
3315
|
d == null ? void 0 : d.control,
|
|
3313
3316
|
(Ze = t.value) == null ? void 0 : Ze.control
|
|
@@ -3318,11 +3321,11 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3318
3321
|
if (!I || !F || R == null)
|
|
3319
3322
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
3320
3323
|
const _e = ((Fe = ue[a]) == null ? void 0 : Fe.call(ue, I, F, R, ye)) || {}, De = ((ht = (et = d == null ? void 0 : d.control) == null ? void 0 : et[a]) == null ? void 0 : ht.call(et, I, F, R, ye)) || {}, Ae = (y == null ? void 0 : y(I, F, R, ye)) || {};
|
|
3321
|
-
return
|
|
3324
|
+
return Ue(_e, De, Ae) || {};
|
|
3322
3325
|
} : (I, F) => {
|
|
3323
3326
|
var De, Ae, Fe;
|
|
3324
3327
|
const R = ((De = ue[a]) == null ? void 0 : De.call(ue, I, F)) || {}, ye = ((Fe = (Ae = d == null ? void 0 : d.control) == null ? void 0 : Ae[a]) == null ? void 0 : Fe.call(Ae, I, F)) || {}, _e = (y == null ? void 0 : y(I, F)) || {};
|
|
3325
|
-
return
|
|
3328
|
+
return Ue(R, ye, _e) || {};
|
|
3326
3329
|
};
|
|
3327
3330
|
t.value.control[a] = C;
|
|
3328
3331
|
};
|
|
@@ -3332,19 +3335,19 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3332
3335
|
if (!a || !s || y == null)
|
|
3333
3336
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
3334
3337
|
const I = ((ye = ue.dropdown) == null ? void 0 : ye.call(ue, a, s, y, C)) || {}, F = ((De = (_e = d == null ? void 0 : d.control) == null ? void 0 : _e.dropdown) == null ? void 0 : De.call(_e, a, s, y, C)) || {}, R = ((et = (Fe = (Ae = t.value) == null ? void 0 : Ae.control) == null ? void 0 : Fe.dropdown) == null ? void 0 : et.call(Fe, a, s, y, C)) || {};
|
|
3335
|
-
return
|
|
3338
|
+
return Ue(I, F, R) || {};
|
|
3336
3339
|
}, Oe = {
|
|
3337
3340
|
type: "hidden",
|
|
3338
3341
|
"min-width": 100,
|
|
3339
3342
|
align: "center",
|
|
3340
3343
|
formatter: (a, s, y, C) => y,
|
|
3341
|
-
"tooltip-formatter": ({ row: a, column: s, cellValue: y }) => Ce(
|
|
3344
|
+
"tooltip-formatter": ({ row: a, column: s, cellValue: y }) => Ce(Fa, { content: y, column: s })
|
|
3342
3345
|
};
|
|
3343
|
-
t.value.tableColumns =
|
|
3346
|
+
t.value.tableColumns = Ue(
|
|
3344
3347
|
Oe,
|
|
3345
3348
|
d == null ? void 0 : d.tableColumns,
|
|
3346
3349
|
(Je = t.value) == null ? void 0 : Je.tableColumns
|
|
3347
|
-
), t.value.form =
|
|
3350
|
+
), t.value.form = Ue(
|
|
3348
3351
|
cl,
|
|
3349
3352
|
{
|
|
3350
3353
|
cancel: {
|
|
@@ -3362,7 +3365,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3362
3365
|
width: "100%"
|
|
3363
3366
|
}
|
|
3364
3367
|
};
|
|
3365
|
-
t.value.formItems =
|
|
3368
|
+
t.value.formItems = Ue(
|
|
3366
3369
|
he,
|
|
3367
3370
|
d == null ? void 0 : d.formItems,
|
|
3368
3371
|
(Ct = t == null ? void 0 : t.value) == null ? void 0 : Ct.formItems
|
|
@@ -3379,7 +3382,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3379
3382
|
draggable: !0,
|
|
3380
3383
|
overflow: !0
|
|
3381
3384
|
};
|
|
3382
|
-
t.value.dialog =
|
|
3385
|
+
t.value.dialog = Ue(
|
|
3383
3386
|
B,
|
|
3384
3387
|
d == null ? void 0 : d.dialog,
|
|
3385
3388
|
(xt = t.value) == null ? void 0 : xt.dialog
|
|
@@ -3398,7 +3401,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3398
3401
|
}
|
|
3399
3402
|
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, y = `<span title="${Rt(
|
|
3400
3403
|
parseFloat(y)
|
|
3401
|
-
)}">${
|
|
3404
|
+
)}">${hr(parseFloat(y), (a == null ? void 0 : a.precision) || 2, (a == null ? void 0 : a.removeZero) || !1)}</span>`), a.prefix && y && (y = `<span>${a.prefix}${y}</span>`), a.suffix && y && (y = `${y}<span>${a.suffix}</span>`), y;
|
|
3402
3405
|
}, Qe = (a) => {
|
|
3403
3406
|
S.value = Object.fromEntries(v), t.value.table.load();
|
|
3404
3407
|
}, w = (a) => {
|
|
@@ -3417,7 +3420,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3417
3420
|
}), c.value = !0, await rt(), i("open", "add", { row: k.value, node: n.node, m: s }), wt()), await rt(), i("node-init", { row: k.value, node: n.node, m: s }));
|
|
3418
3421
|
}, g = () => {
|
|
3419
3422
|
i("batch", te.value);
|
|
3420
|
-
},
|
|
3423
|
+
}, h = (a, s) => {
|
|
3421
3424
|
i("toggleExpand", a), console.log(t.value.table["default-expand-all"]), f.value = !1, t.value.table["default-expand-all"] = !t.value.table["default-expand-all"], rt(() => {
|
|
3422
3425
|
f.value = !0;
|
|
3423
3426
|
});
|
|
@@ -3467,7 +3470,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3467
3470
|
}
|
|
3468
3471
|
(F = t.value.control.view(a, s, y, C)) != null && F.click ? t.value.control.view(a, s, y, C).click(a, s, y, C) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, s, y, C).mode, t.value.dialog.title = t.value.control.view(a, s, y, C).title || t.value.control.view(a, s, y, C).label || "详情", Object.keys(a).forEach((_e) => {
|
|
3469
3472
|
t.value[_e] && (t.value[_e].value = a[_e]);
|
|
3470
|
-
}), ((R = t.value.control.view(a, s, y, C)) == null ? void 0 : R["view-mode"]) === "description" ?
|
|
3473
|
+
}), ((R = t.value.control.view(a, s, y, C)) == null ? void 0 : R["view-mode"]) === "description" ? qt({
|
|
3471
3474
|
...t.value.dialog,
|
|
3472
3475
|
type: t.value.dialog.mode,
|
|
3473
3476
|
slots: {
|
|
@@ -3500,7 +3503,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3500
3503
|
}
|
|
3501
3504
|
}
|
|
3502
3505
|
);
|
|
3503
|
-
}, de =
|
|
3506
|
+
}, de = yr((a, s, y) => {
|
|
3504
3507
|
i("submit", t.value.form.modalState, a, s, (C) => {
|
|
3505
3508
|
C && (y === 1 && (c.value = !1), Y(a), s.table.load());
|
|
3506
3509
|
});
|
|
@@ -3511,13 +3514,14 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3511
3514
|
if ((C = s.control.download(a, s)) != null && C.click)
|
|
3512
3515
|
s.control.download(a, s).click(a, s, y);
|
|
3513
3516
|
else {
|
|
3514
|
-
let I =
|
|
3517
|
+
let I = qt(
|
|
3515
3518
|
{
|
|
3516
3519
|
title: s.control.download(a, s).title || s.control.download(a, s).label || "下载",
|
|
3517
3520
|
size: s.control.download(a, s).size || 480,
|
|
3518
3521
|
width: s.control.download(a, s).width || 600,
|
|
3522
|
+
type: s.control.download(a, s).mode || "dialog",
|
|
3519
3523
|
slots: {
|
|
3520
|
-
default: () => Ce(
|
|
3524
|
+
default: () => Ce(wa, {
|
|
3521
3525
|
items: y,
|
|
3522
3526
|
commitText: s.control.download(a, s).excelLabel,
|
|
3523
3527
|
onExcel: (F, R) => {
|
|
@@ -3525,19 +3529,19 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3525
3529
|
}
|
|
3526
3530
|
})
|
|
3527
3531
|
}
|
|
3528
|
-
}
|
|
3529
|
-
s.control.download(a, s).mode
|
|
3532
|
+
}
|
|
3530
3533
|
);
|
|
3531
3534
|
}
|
|
3532
3535
|
}, G = (a, s) => {
|
|
3533
3536
|
var y;
|
|
3534
|
-
(y = s.control.setting(a, s)) != null && y.click ? s.control.setting(a, s).click(a, s) :
|
|
3537
|
+
(y = s.control.setting(a, s)) != null && y.click ? s.control.setting(a, s).click(a, s) : qt(
|
|
3535
3538
|
{
|
|
3536
3539
|
title: s.control.setting(a, s).title || s.control.setting(a, s).label || "设置",
|
|
3537
3540
|
size: s.control.setting(a, s).size || 470,
|
|
3538
3541
|
width: s.control.setting(a, s).width || 600,
|
|
3542
|
+
type: s.control.setting(a, s).mode || "dialog",
|
|
3539
3543
|
slots: {
|
|
3540
|
-
default: () => Ce(
|
|
3544
|
+
default: () => Ce(Ua, {
|
|
3541
3545
|
modelValue: s,
|
|
3542
3546
|
tuid: K.value,
|
|
3543
3547
|
onSettingDragEnd: async () => {
|
|
@@ -3548,20 +3552,19 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3548
3552
|
}
|
|
3549
3553
|
})
|
|
3550
3554
|
}
|
|
3551
|
-
}
|
|
3552
|
-
s.control.setting(a, s).mode
|
|
3555
|
+
}
|
|
3553
3556
|
);
|
|
3554
3557
|
}, Ee = t.value.control, ke = {
|
|
3555
3558
|
add: $,
|
|
3556
3559
|
batch: g,
|
|
3557
3560
|
download: N,
|
|
3558
|
-
toggleExpand:
|
|
3561
|
+
toggleExpand: h,
|
|
3559
3562
|
setting: G,
|
|
3560
3563
|
view: O,
|
|
3561
3564
|
edit: M,
|
|
3562
3565
|
delete: D,
|
|
3563
3566
|
save: le
|
|
3564
|
-
},
|
|
3567
|
+
}, ze = (a, s, y, C, I) => a.filter((F) => ke[F]).map((F) => {
|
|
3565
3568
|
const R = Ee == null ? void 0 : Ee[F](s, y, C, I);
|
|
3566
3569
|
return {
|
|
3567
3570
|
name: `control-${F}`,
|
|
@@ -3571,7 +3574,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3571
3574
|
sort: (R == null ? void 0 : R.sort) || 0,
|
|
3572
3575
|
groupName: (R == null ? void 0 : R.groupName) || "default"
|
|
3573
3576
|
};
|
|
3574
|
-
}).sort((F, R) => F.sort - R.sort), xe = (a, s, y, C, I) =>
|
|
3577
|
+
}).sort((F, R) => F.sort - R.sort), xe = (a, s, y, C, I) => ze(a, s, y, C, I).reduce((F, R) => {
|
|
3575
3578
|
const ye = R.groupName || "default";
|
|
3576
3579
|
return F[ye] || (F[ye] = []), F[ye].push(R), F;
|
|
3577
3580
|
}, {}), He = Pe(() => Object.fromEntries(
|
|
@@ -3611,15 +3614,15 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3611
3614
|
}, Ie = () => {
|
|
3612
3615
|
c.value = !1;
|
|
3613
3616
|
};
|
|
3614
|
-
|
|
3617
|
+
Sl(() => {
|
|
3615
3618
|
t.value.table.autoWatch && t.value.table.load();
|
|
3616
3619
|
});
|
|
3617
3620
|
const qe = async () => {
|
|
3618
3621
|
try {
|
|
3619
3622
|
const [a, s, y] = await Promise.all([
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
+
xa(K.value),
|
|
3624
|
+
Da(K.value),
|
|
3625
|
+
Ma(K.value)
|
|
3623
3626
|
]);
|
|
3624
3627
|
a && Array.isArray(a) && a.forEach((C) => {
|
|
3625
3628
|
const I = t.value[C.key];
|
|
@@ -3638,12 +3641,12 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3638
3641
|
t.value[s].showCol === void 0 && (t.value[s].showCol = !0);
|
|
3639
3642
|
});
|
|
3640
3643
|
}
|
|
3641
|
-
}, je = () =>
|
|
3642
|
-
return
|
|
3644
|
+
}, je = () => Ga(Object.keys(t.value).toString()).toUpperCase().substring(8, 24);
|
|
3645
|
+
return Tl(() => {
|
|
3643
3646
|
K.value = je();
|
|
3644
3647
|
}), _t(async () => {
|
|
3645
3648
|
try {
|
|
3646
|
-
|
|
3649
|
+
m.value = Object.entries(t.value).filter(
|
|
3647
3650
|
([s, y]) => y.type !== "hidden" && y.type !== "control" && y.visible !== !1
|
|
3648
3651
|
).map(([s, y]) => ({
|
|
3649
3652
|
key: s || "",
|
|
@@ -3721,10 +3724,10 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3721
3724
|
key: "3"
|
|
3722
3725
|
} : void 0
|
|
3723
3726
|
]), 1040, ["modelValue", "type"])) : $e("", !0),
|
|
3724
|
-
J("div",
|
|
3725
|
-
((et = (Fe = t.value) == null ? void 0 : Fe.query) == null ? void 0 : et.hidden) != !0 ? (p(), U("div",
|
|
3727
|
+
J("div", Xa, [
|
|
3728
|
+
((et = (Fe = t.value) == null ? void 0 : Fe.query) == null ? void 0 : et.hidden) != !0 ? (p(), U("div", Qa, [
|
|
3726
3729
|
x(a.$slots, "query", {}, () => [
|
|
3727
|
-
se(
|
|
3730
|
+
se(ua, {
|
|
3728
3731
|
modelValue: t.value,
|
|
3729
3732
|
"onUpdate:modelValue": s[3] || (s[3] = (Z) => t.value = Z),
|
|
3730
3733
|
info: S.value,
|
|
@@ -3745,7 +3748,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3745
3748
|
title: ae.label,
|
|
3746
3749
|
disabled: ae.name === "control-batch" && ((We = te.value) == null ? void 0 : We.length) === 0
|
|
3747
3750
|
}, { ref_for: !0 }, ae.attr, {
|
|
3748
|
-
onClick: (st) => ae.func(k.value, t.value,
|
|
3751
|
+
onClick: (st) => ae.func(k.value, t.value, m.value)
|
|
3749
3752
|
}), {
|
|
3750
3753
|
default: _(() => [
|
|
3751
3754
|
Le(Se(ae.label), 1)
|
|
@@ -3756,7 +3759,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3756
3759
|
title: ae.label,
|
|
3757
3760
|
disabled: ae.name === "control-batch" && ((tt = te.value) == null ? void 0 : tt.length) === 0
|
|
3758
3761
|
}, { ref_for: !0 }, ae.attr, {
|
|
3759
|
-
onClick: (st) => ae.func(k.value, t.value,
|
|
3762
|
+
onClick: (st) => ae.func(k.value, t.value, m.value)
|
|
3760
3763
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3761
3764
|
];
|
|
3762
3765
|
}, !0) : $e("", !0),
|
|
@@ -3774,7 +3777,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3774
3777
|
disabled: ae.name === "control-batch" && ((We = te.value) == null ? void 0 : We.length) === 0,
|
|
3775
3778
|
v: ""
|
|
3776
3779
|
}, { ref_for: !0 }, ae.attr, {
|
|
3777
|
-
onClick: (st) => ae.func(k.value, t.value,
|
|
3780
|
+
onClick: (st) => ae.func(k.value, t.value, m.value)
|
|
3778
3781
|
}), {
|
|
3779
3782
|
default: _(() => [
|
|
3780
3783
|
Le(Se(ae.label), 1)
|
|
@@ -3785,7 +3788,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3785
3788
|
title: ae.label,
|
|
3786
3789
|
disabled: ae.name === "control-batch" && ((tt = te.value) == null ? void 0 : tt.length) === 0
|
|
3787
3790
|
}, { ref_for: !0 }, ae.attr, {
|
|
3788
|
-
onClick: (st) => ae.func(k.value, t.value,
|
|
3791
|
+
onClick: (st) => ae.func(k.value, t.value, m.value)
|
|
3789
3792
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3790
3793
|
];
|
|
3791
3794
|
}, !0) : $e("", !0),
|
|
@@ -3812,7 +3815,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3812
3815
|
model: t.value,
|
|
3813
3816
|
queryInfo: S.value
|
|
3814
3817
|
}, void 0, !0),
|
|
3815
|
-
J("div",
|
|
3818
|
+
J("div", Za, [
|
|
3816
3819
|
f.value ? (p(), V(ye, q({ key: 0 }, {
|
|
3817
3820
|
...a.$attrs,
|
|
3818
3821
|
...L(Xe)(
|
|
@@ -3880,7 +3883,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
3880
3883
|
return [
|
|
3881
3884
|
J("div", {
|
|
3882
3885
|
class: Kt(["control", (vt = t.value.control) == null ? void 0 : vt.class]),
|
|
3883
|
-
style:
|
|
3886
|
+
style: Ye((pt = t.value.control) == null ? void 0 : pt.style)
|
|
3884
3887
|
}, [
|
|
3885
3888
|
x(a.$slots, "control", {}, () => [
|
|
3886
3889
|
x(a.$slots, "control-left", {
|
|
@@ -4088,12 +4091,12 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
4088
4091
|
index: fe
|
|
4089
4092
|
}, () => [
|
|
4090
4093
|
J("div", {
|
|
4091
|
-
style:
|
|
4094
|
+
style: Ye([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, Z == null ? void 0 : Z.style]),
|
|
4092
4095
|
innerHTML: Ve(
|
|
4093
4096
|
Z,
|
|
4094
4097
|
typeof ie.formatter == "function" ? ie.formatter(ee, ie, ee[ve], fe) : ee[ve]
|
|
4095
4098
|
)
|
|
4096
|
-
}, null, 12,
|
|
4099
|
+
}, null, 12, Ja)
|
|
4097
4100
|
], !0)
|
|
4098
4101
|
]),
|
|
4099
4102
|
key: "2"
|
|
@@ -4122,7 +4125,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
4122
4125
|
], 64);
|
|
4123
4126
|
};
|
|
4124
4127
|
}
|
|
4125
|
-
}),
|
|
4128
|
+
}), er = /* @__PURE__ */ nt(Ka, [["__scopeId", "data-v-3f37744f"]]), tr = { class: "g-tree-table" }, lr = { class: "g-tree-container" }, ar = { class: "g-tree-table-container" }, rr = /* @__PURE__ */ Object.assign({
|
|
4126
4129
|
name: "g-tree-table",
|
|
4127
4130
|
inheritAttrs: !1
|
|
4128
4131
|
}, {
|
|
@@ -4133,9 +4136,9 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
4133
4136
|
},
|
|
4134
4137
|
emits: /* @__PURE__ */ ut(["load"], ["update:modelValue"]),
|
|
4135
4138
|
setup(r, { emit: u }) {
|
|
4136
|
-
var
|
|
4137
|
-
const e = u, l = ot(r, "modelValue"), n =
|
|
4138
|
-
typeof ((
|
|
4139
|
+
var m, A, j, E;
|
|
4140
|
+
const e = u, l = ot(r, "modelValue"), n = zt(), i = re(
|
|
4141
|
+
typeof ((m = n == null ? void 0 : n.tree) == null ? void 0 : m.width) == "number" ? `${n.tree.width}px` : ((A = n == null ? void 0 : n.tree) == null ? void 0 : A.width) || "180px"
|
|
4139
4142
|
), t = re(((j = n == null ? void 0 : n.tree) == null ? void 0 : j.search) === void 0 ? !0 : (E = n == null ? void 0 : n.tree) == null ? void 0 : E.search), d = re({}), S = re(""), f = re(null), v = (k, Q) => {
|
|
4140
4143
|
var te, oe;
|
|
4141
4144
|
if (!k) return !0;
|
|
@@ -4150,10 +4153,10 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
4150
4153
|
f.value.filter(k);
|
|
4151
4154
|
}), (k, Q) => {
|
|
4152
4155
|
const K = H("el-input"), te = H("el-tree"), oe = H("g-table");
|
|
4153
|
-
return p(), U("div",
|
|
4156
|
+
return p(), U("div", tr, [
|
|
4154
4157
|
J("div", {
|
|
4155
4158
|
class: "g-tree-left",
|
|
4156
|
-
style:
|
|
4159
|
+
style: Ye({ width: i.value })
|
|
4157
4160
|
}, [
|
|
4158
4161
|
t.value ? (p(), V(K, {
|
|
4159
4162
|
key: 0,
|
|
@@ -4163,7 +4166,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
4163
4166
|
placeholder: "输入节点查询",
|
|
4164
4167
|
clearable: ""
|
|
4165
4168
|
}, null, 8, ["modelValue"])) : $e("", !0),
|
|
4166
|
-
J("div",
|
|
4169
|
+
J("div", lr, [
|
|
4167
4170
|
se(te, q({
|
|
4168
4171
|
style: { width: i.value },
|
|
4169
4172
|
"filter-node-method": v,
|
|
@@ -4191,7 +4194,7 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
4191
4194
|
]), 1040, ["style"])
|
|
4192
4195
|
])
|
|
4193
4196
|
], 4),
|
|
4194
|
-
J("div",
|
|
4197
|
+
J("div", ar, [
|
|
4195
4198
|
se(oe, q({
|
|
4196
4199
|
modelValue: l.value,
|
|
4197
4200
|
"onUpdate:modelValue": Q[1] || (Q[1] = (ue) => l.value = ue)
|
|
@@ -4210,14 +4213,14 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
4210
4213
|
]);
|
|
4211
4214
|
};
|
|
4212
4215
|
}
|
|
4213
|
-
}),
|
|
4216
|
+
}), nr = /* @__PURE__ */ nt(rr, [["__scopeId", "data-v-30eb4f60"]]), or = {
|
|
4214
4217
|
key: 0,
|
|
4215
4218
|
class: "op-group"
|
|
4216
|
-
},
|
|
4219
|
+
}, ur = {
|
|
4217
4220
|
key: 1,
|
|
4218
4221
|
class: "op-items",
|
|
4219
4222
|
style: { width: "100%", height: "100%" }
|
|
4220
|
-
},
|
|
4223
|
+
}, sr = ["title"], Gt = "100px", ir = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
4221
4224
|
__name: "g-select-option",
|
|
4222
4225
|
props: {
|
|
4223
4226
|
columns: {
|
|
@@ -4239,42 +4242,42 @@ const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
|
4239
4242
|
},
|
|
4240
4243
|
setup(r) {
|
|
4241
4244
|
const u = r;
|
|
4242
|
-
return (e, l) => u.title ? (p(), U("div",
|
|
4245
|
+
return (e, l) => u.title ? (p(), U("div", or, [
|
|
4243
4246
|
(p(!0), U(ne, null, P(u.columns, (n) => (p(), U("span", {
|
|
4244
|
-
style:
|
|
4247
|
+
style: Ye({ width: (n == null ? void 0 : n.width) || Gt, ...n == null ? void 0 : n.titleStyle, textAlign: (n == null ? void 0 : n.align) || "center" }),
|
|
4245
4248
|
key: n.key
|
|
4246
4249
|
}, [
|
|
4247
4250
|
x(e.$slots, `${r.t}-title-${n.key}`, { col: n }, () => [
|
|
4248
4251
|
Le(Se(n.label), 1)
|
|
4249
4252
|
], !0)
|
|
4250
4253
|
], 4))), 128))
|
|
4251
|
-
])) : (p(), U("div",
|
|
4254
|
+
])) : (p(), U("div", ur, [
|
|
4252
4255
|
(p(!0), U(ne, null, P(u.columns, (n) => (p(), U("span", {
|
|
4253
|
-
style:
|
|
4256
|
+
style: Ye({ width: (n == null ? void 0 : n.width) || Gt, textAlign: (n == null ? void 0 : n.align) || "center", ...n == null ? void 0 : n.style }),
|
|
4254
4257
|
key: n.key,
|
|
4255
4258
|
title: r.data[n.key]
|
|
4256
4259
|
}, [
|
|
4257
4260
|
x(e.$slots, `${r.t}-option-${n.key}`, { col: n }, () => [
|
|
4258
4261
|
Le(Se(r.data[n.key] ?? "-"), 1)
|
|
4259
4262
|
], !0)
|
|
4260
|
-
], 12,
|
|
4263
|
+
], 12, sr))), 128))
|
|
4261
4264
|
]));
|
|
4262
4265
|
}
|
|
4263
|
-
}),
|
|
4264
|
-
let
|
|
4265
|
-
const
|
|
4266
|
+
}), dr = /* @__PURE__ */ nt(ir, [["__scopeId", "data-v-c0ac6b77"]]), cr = Object.freeze({}), Pt = [er, vl, nr, dr, Bt, pl];
|
|
4267
|
+
let At = {};
|
|
4268
|
+
const Mr = {
|
|
4266
4269
|
install: (r, u = {}) => {
|
|
4267
|
-
|
|
4270
|
+
At = Object.freeze({ ...cr, ...u }), Pt.forEach((e) => {
|
|
4268
4271
|
r.component(e.name, e);
|
|
4269
|
-
}), r.provide("options",
|
|
4272
|
+
}), r.provide("options", At), r.config.globalProperties.$openModal = vr, r.config.globalProperties.$open = qt;
|
|
4270
4273
|
}
|
|
4271
|
-
},
|
|
4274
|
+
}, fr = (r) => ({ dialog: wl, drawer: $l })[r] || null, vr = (r = {}, u = "dialog") => {
|
|
4272
4275
|
if (typeof document > "u") return () => {
|
|
4273
4276
|
};
|
|
4274
4277
|
const e = document.createElement("div");
|
|
4275
4278
|
let l = () => {
|
|
4276
4279
|
};
|
|
4277
|
-
const n =
|
|
4280
|
+
const n = fr(u);
|
|
4278
4281
|
if (!n) return () => {
|
|
4279
4282
|
};
|
|
4280
4283
|
const i = re(!0), t = tl({
|
|
@@ -4308,8 +4311,8 @@ const Sr = {
|
|
|
4308
4311
|
});
|
|
4309
4312
|
return Pt.forEach((d) => {
|
|
4310
4313
|
t.component(d.name, d);
|
|
4311
|
-
}), t.provide("options",
|
|
4312
|
-
},
|
|
4314
|
+
}), t.provide("options", At), t.use(Xt, { locale: sl }), document.body.appendChild(e), t.mount(e), l;
|
|
4315
|
+
}, qt = (r = {}) => {
|
|
4313
4316
|
if (typeof document > "u") return () => {
|
|
4314
4317
|
};
|
|
4315
4318
|
const u = document.createElement("div");
|
|
@@ -4340,9 +4343,9 @@ const Sr = {
|
|
|
4340
4343
|
});
|
|
4341
4344
|
return Pt.forEach((i) => {
|
|
4342
4345
|
n.component(i.name, i);
|
|
4343
|
-
}), n.provide("options",
|
|
4346
|
+
}), n.provide("options", At), n.use(Xt, { locale: sl }), document.body.appendChild(u), n.mount(u), e;
|
|
4344
4347
|
};
|
|
4345
|
-
function
|
|
4348
|
+
function pr(r, u = window.innerWidth) {
|
|
4346
4349
|
if (typeof r == "number")
|
|
4347
4350
|
return r;
|
|
4348
4351
|
if (r.endsWith("px"))
|
|
@@ -4364,11 +4367,11 @@ function mr(r, u = window.innerWidth) {
|
|
|
4364
4367
|
throw new Error("Invalid calc expression");
|
|
4365
4368
|
};
|
|
4366
4369
|
const n = r.slice(5, -1).trim();
|
|
4367
|
-
return i(n.replace(/([0-9.]+)([a-z%]+)/g, (d, S, f) =>
|
|
4370
|
+
return i(n.replace(/([0-9.]+)([a-z%]+)/g, (d, S, f) => pr(S + f, u)));
|
|
4368
4371
|
}
|
|
4369
4372
|
throw new Error("Unsupported unit in value: " + r);
|
|
4370
4373
|
}
|
|
4371
|
-
const
|
|
4374
|
+
const Ue = (...r) => {
|
|
4372
4375
|
const u = {}, e = (l, n) => (Object.keys(n).forEach((i) => {
|
|
4373
4376
|
l[i] = typeof n[i] == "object" && !Array.isArray(n[i]) ? e(l[i] || {}, n[i]) : n[i];
|
|
4374
4377
|
}), l);
|
|
@@ -4380,12 +4383,12 @@ function Xe(r, u = (e, l) => l != null) {
|
|
|
4380
4383
|
r.hasOwnProperty(l) && u(l, r[l]) && (e[l] = r[l]);
|
|
4381
4384
|
return e;
|
|
4382
4385
|
}
|
|
4383
|
-
function
|
|
4386
|
+
function mr(r, u, e = "value", l = "label", n = "children") {
|
|
4384
4387
|
for (const i of r) {
|
|
4385
4388
|
if (i[e] === u)
|
|
4386
4389
|
return i[l];
|
|
4387
4390
|
if (i[n] && i[n].length > 0) {
|
|
4388
|
-
const t =
|
|
4391
|
+
const t = mr(i[n], u, e, l, n);
|
|
4389
4392
|
if (t)
|
|
4390
4393
|
return t;
|
|
4391
4394
|
}
|
|
@@ -4411,7 +4414,7 @@ function Rt(r) {
|
|
|
4411
4414
|
}
|
|
4412
4415
|
return n + i.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
4413
4416
|
}
|
|
4414
|
-
function
|
|
4417
|
+
function hr(r, u = 2, e = !1) {
|
|
4415
4418
|
let l = Number(r);
|
|
4416
4419
|
if (isNaN(l) || !isFinite(l))
|
|
4417
4420
|
return "0.00";
|
|
@@ -4422,7 +4425,7 @@ function yr(r, u = 2, e = !1) {
|
|
|
4422
4425
|
const [t, d] = i.split("."), S = t.replace(/\B(?=(\d{3})+(?!\d))/g, ","), f = d ? `${S}.${d}` : S;
|
|
4423
4426
|
return n ? `-${f}` : f;
|
|
4424
4427
|
}
|
|
4425
|
-
function
|
|
4428
|
+
function yr(r, u) {
|
|
4426
4429
|
let e = null;
|
|
4427
4430
|
return function(...l) {
|
|
4428
4431
|
e && clearTimeout(e), e = setTimeout(() => {
|
|
@@ -4430,7 +4433,7 @@ function gr(r, u) {
|
|
|
4430
4433
|
}, u);
|
|
4431
4434
|
};
|
|
4432
4435
|
}
|
|
4433
|
-
function
|
|
4436
|
+
function Sr(r, u) {
|
|
4434
4437
|
let e = null;
|
|
4435
4438
|
return function(...l) {
|
|
4436
4439
|
e || (e = setTimeout(() => {
|
|
@@ -4472,10 +4475,10 @@ const Me = {
|
|
|
4472
4475
|
const r = document.querySelector(".el-dialog");
|
|
4473
4476
|
if (!r || r.querySelector(".dialog-resize-handle"))
|
|
4474
4477
|
return;
|
|
4475
|
-
const u =
|
|
4476
|
-
r.appendChild(u),
|
|
4478
|
+
const u = gr();
|
|
4479
|
+
r.appendChild(u), br(r), $r(r, u);
|
|
4477
4480
|
});
|
|
4478
|
-
},
|
|
4481
|
+
}, gr = () => {
|
|
4479
4482
|
const r = document.createElement("div");
|
|
4480
4483
|
return Object.assign(r.style, {
|
|
4481
4484
|
position: "absolute",
|
|
@@ -4487,7 +4490,7 @@ const Me = {
|
|
|
4487
4490
|
cursor: "nwse-resize",
|
|
4488
4491
|
zIndex: "999999999999"
|
|
4489
4492
|
}), r.className = "dialog-resize-handle", r;
|
|
4490
|
-
},
|
|
4493
|
+
}, br = (r) => {
|
|
4491
4494
|
Object.assign(r.style, {
|
|
4492
4495
|
transition: "none",
|
|
4493
4496
|
minWidth: "300px",
|
|
@@ -4495,7 +4498,7 @@ const Me = {
|
|
|
4495
4498
|
resize: "none"
|
|
4496
4499
|
// 防止与原生resize冲突
|
|
4497
4500
|
});
|
|
4498
|
-
},
|
|
4501
|
+
}, $r = (r, u) => {
|
|
4499
4502
|
let e = !1, l, n, i, t;
|
|
4500
4503
|
const d = (v) => {
|
|
4501
4504
|
v.preventDefault(), e = !0, l = v.clientX, n = v.clientY, i = parseInt(document.defaultView.getComputedStyle(r).width), t = parseInt(document.defaultView.getComputedStyle(r).height), document.addEventListener("mousemove", S), document.addEventListener("mouseup", f);
|
|
@@ -4511,15 +4514,15 @@ const Me = {
|
|
|
4511
4514
|
export {
|
|
4512
4515
|
Me as CT,
|
|
4513
4516
|
wt as bindResize,
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
+
pr as convertToPx,
|
|
4518
|
+
yr as debounce,
|
|
4519
|
+
Mr as default,
|
|
4517
4520
|
Xe as filterObject,
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
+
mr as findTreeLabelByValue,
|
|
4522
|
+
hr as formatAmount,
|
|
4523
|
+
Ue as mergeObjects,
|
|
4521
4524
|
Rt as moneyToChinese,
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
+
qt as open,
|
|
4526
|
+
vr as openModal,
|
|
4527
|
+
Sr as throttle
|
|
4525
4528
|
};
|