vue-2024-ui 0.2.18 → 0.2.19
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 +781 -781
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Qt, { ElForm as mt, ElButtonGroup as pt, ElButton as Oe, ElPopover as wt, ElMessage as Ge, ElMessageBox as At, ElDialog as Zt, ElDrawer as Jt } from "element-plus";
|
|
2
|
-
import { h as _e, mergeModels as Xe, useModel as Qe, ref as re, nextTick as at, onMounted as nt, computed as Ke, resolveComponent as L, openBlock as m, createElementBlock as Y, Fragment as Z, createElementVNode as X, createBlock as O, createCommentVNode as ge, unref as
|
|
3
|
-
import { CircleCheck as It, CircleCheckFilled as il, Refresh as Ut, Plus as dl, ZoomIn as
|
|
2
|
+
import { h as _e, mergeModels as Xe, useModel as Qe, ref as re, nextTick as at, onMounted as nt, computed as Ke, resolveComponent as L, openBlock as m, createElementBlock as Y, Fragment as Z, createElementVNode as X, createBlock as O, createCommentVNode as ge, unref as P, mergeProps as I, withCtx as D, renderSlot as S, renderList as W, createTextVNode as Ye, toDisplayString as De, createSlots as he, createVNode as K, normalizeStyle as qe, normalizeProps as _t, useSlots as Bt, inject as Tt, useAttrs as Ft, onUnmounted as Kt, withModifiers as yt, resolveDynamicComponent as We, guardReactiveProps as el, Transition as tl, withDirectives as ll, vShow as al, onBeforeUnmount as rl, normalizeClass as Ot, watchEffect as ol, onBeforeMount as nl, watch as ul, createApp as sl } from "vue";
|
|
3
|
+
import { CircleCheck as It, CircleCheckFilled as il, Refresh as Ut, Plus as dl, ZoomIn as fl, Delete as Yt, More as cl, Search as vl, Download as Rt, DocumentCopy as ml, View as pl, Edit as hl, CirclePlus as yl, Setting as gl, FullScreen as bl, CopyDocument as $l } from "@element-plus/icons-vue";
|
|
4
4
|
import Lt from "sortablejs";
|
|
5
5
|
import { Dexie as wl } from "dexie";
|
|
6
6
|
var El = {
|
|
@@ -181,100 +181,100 @@ var El = {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
}, _l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
184
|
-
function Ht(
|
|
185
|
-
return
|
|
184
|
+
function Ht(n) {
|
|
185
|
+
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
186
186
|
}
|
|
187
187
|
var zt = { exports: {} };
|
|
188
|
-
(function(
|
|
188
|
+
(function(n, s) {
|
|
189
189
|
(function(a, t) {
|
|
190
|
-
|
|
190
|
+
n.exports = t();
|
|
191
191
|
})(_l, function() {
|
|
192
|
-
var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", p = "second",
|
|
193
|
-
var b = ["th", "st", "nd", "rd"],
|
|
194
|
-
return "[" + _ + (b[(
|
|
195
|
-
} }, ue = function(_, b,
|
|
192
|
+
var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", p = "second", c = "minute", T = "hour", d = "day", v = "week", u = "month", f = "quarter", w = "year", A = "date", N = "Invalid Date", j = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|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, ce = { 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(_) {
|
|
193
|
+
var b = ["th", "st", "nd", "rd"], i = _ % 100;
|
|
194
|
+
return "[" + _ + (b[(i - 20) % 10] || b[i] || b[0]) + "]";
|
|
195
|
+
} }, ue = function(_, b, i) {
|
|
196
196
|
var V = String(_);
|
|
197
|
-
return !V || V.length >= b ? _ : "" + Array(b + 1 - V.length).join(
|
|
197
|
+
return !V || V.length >= b ? _ : "" + Array(b + 1 - V.length).join(i) + _;
|
|
198
198
|
}, Ce = { s: ue, z: function(_) {
|
|
199
|
-
var b = -_.utcOffset(),
|
|
199
|
+
var b = -_.utcOffset(), i = Math.abs(b), V = Math.floor(i / 60), k = i % 60;
|
|
200
200
|
return (b <= 0 ? "+" : "-") + ue(V, 2, "0") + ":" + ue(k, 2, "0");
|
|
201
|
-
}, m: function _(b,
|
|
202
|
-
if (b.date() <
|
|
203
|
-
var V = 12 * (
|
|
204
|
-
return +(-(V + (
|
|
201
|
+
}, m: function _(b, i) {
|
|
202
|
+
if (b.date() < i.date()) return -_(i, b);
|
|
203
|
+
var V = 12 * (i.year() - b.year()) + (i.month() - b.month()), k = b.clone().add(V, u), C = i - k < 0, R = b.clone().add(V + (C ? -1 : 1), u);
|
|
204
|
+
return +(-(V + (i - k) / (C ? k - R : R - k)) || 0);
|
|
205
205
|
}, a: function(_) {
|
|
206
206
|
return _ < 0 ? Math.ceil(_) || 0 : Math.floor(_);
|
|
207
207
|
}, p: function(_) {
|
|
208
|
-
return { M:
|
|
208
|
+
return { M: u, y: w, w: v, d, D: A, h: T, m: c, s: p, ms: e, Q: f }[_] || String(_ || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(_) {
|
|
210
210
|
return _ === void 0;
|
|
211
|
-
} },
|
|
212
|
-
ie[
|
|
211
|
+
} }, fe = "en", ie = {};
|
|
212
|
+
ie[fe] = ce;
|
|
213
213
|
var ye = "$isDayjsObject", Fe = function(_) {
|
|
214
214
|
return _ instanceof Ue || !(!_ || !_[ye]);
|
|
215
|
-
}, oe = function _(b,
|
|
215
|
+
}, oe = function _(b, i, V) {
|
|
216
216
|
var k;
|
|
217
|
-
if (!b) return
|
|
217
|
+
if (!b) return fe;
|
|
218
218
|
if (typeof b == "string") {
|
|
219
219
|
var C = b.toLowerCase();
|
|
220
|
-
ie[C] && (k = C),
|
|
220
|
+
ie[C] && (k = C), i && (ie[C] = i, k = C);
|
|
221
221
|
var R = b.split("-");
|
|
222
222
|
if (!k && R.length > 1) return _(R[0]);
|
|
223
223
|
} else {
|
|
224
224
|
var Q = b.name;
|
|
225
225
|
ie[Q] = b, k = Q;
|
|
226
226
|
}
|
|
227
|
-
return !V && k && (
|
|
227
|
+
return !V && k && (fe = k), k || !V && fe;
|
|
228
228
|
}, se = function(_, b) {
|
|
229
229
|
if (Fe(_)) return _.clone();
|
|
230
|
-
var
|
|
231
|
-
return
|
|
230
|
+
var i = typeof b == "object" ? b : {};
|
|
231
|
+
return i.date = _, i.args = arguments, new Ue(i);
|
|
232
232
|
}, ne = Ce;
|
|
233
233
|
ne.l = oe, ne.i = Fe, ne.w = function(_, b) {
|
|
234
234
|
return se(_, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
|
|
235
235
|
};
|
|
236
236
|
var Ue = function() {
|
|
237
|
-
function _(
|
|
238
|
-
this.$L = oe(
|
|
237
|
+
function _(i) {
|
|
238
|
+
this.$L = oe(i.locale, null, !0), this.parse(i), this.$x = this.$x || i.x || {}, this[ye] = !0;
|
|
239
239
|
}
|
|
240
240
|
var b = _.prototype;
|
|
241
|
-
return b.parse = function(
|
|
241
|
+
return b.parse = function(i) {
|
|
242
242
|
this.$d = function(V) {
|
|
243
243
|
var k = V.date, C = V.utc;
|
|
244
244
|
if (k === null) return /* @__PURE__ */ new Date(NaN);
|
|
245
245
|
if (ne.u(k)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (k instanceof Date) return new Date(k);
|
|
247
247
|
if (typeof k == "string" && !/Z$/i.test(k)) {
|
|
248
|
-
var R = k.match(
|
|
248
|
+
var R = k.match(j);
|
|
249
249
|
if (R) {
|
|
250
250
|
var Q = R[2] - 1 || 0, te = (R[7] || "0").substring(0, 3);
|
|
251
251
|
return C ? new Date(Date.UTC(R[1], Q, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, te)) : new Date(R[1], Q, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, te);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(k);
|
|
255
|
-
}(
|
|
255
|
+
}(i), this.init();
|
|
256
256
|
}, b.init = function() {
|
|
257
|
-
var
|
|
258
|
-
this.$y =
|
|
257
|
+
var i = this.$d;
|
|
258
|
+
this.$y = i.getFullYear(), this.$M = i.getMonth(), this.$D = i.getDate(), this.$W = i.getDay(), this.$H = i.getHours(), this.$m = i.getMinutes(), this.$s = i.getSeconds(), this.$ms = i.getMilliseconds();
|
|
259
259
|
}, b.$utils = function() {
|
|
260
260
|
return ne;
|
|
261
261
|
}, b.isValid = function() {
|
|
262
|
-
return this.$d.toString() !==
|
|
263
|
-
}, b.isSame = function(
|
|
264
|
-
var k = se(
|
|
262
|
+
return this.$d.toString() !== N;
|
|
263
|
+
}, b.isSame = function(i, V) {
|
|
264
|
+
var k = se(i);
|
|
265
265
|
return this.startOf(V) <= k && k <= this.endOf(V);
|
|
266
|
-
}, b.isAfter = function(
|
|
267
|
-
return se(
|
|
268
|
-
}, b.isBefore = function(
|
|
269
|
-
return this.endOf(V) < se(
|
|
270
|
-
}, b.$g = function(
|
|
271
|
-
return ne.u(
|
|
266
|
+
}, b.isAfter = function(i, V) {
|
|
267
|
+
return se(i) < this.startOf(V);
|
|
268
|
+
}, b.isBefore = function(i, V) {
|
|
269
|
+
return this.endOf(V) < se(i);
|
|
270
|
+
}, b.$g = function(i, V, k) {
|
|
271
|
+
return ne.u(i) ? this[V] : this.set(k, i);
|
|
272
272
|
}, b.unix = function() {
|
|
273
273
|
return Math.floor(this.valueOf() / 1e3);
|
|
274
274
|
}, b.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
|
-
}, b.startOf = function(
|
|
277
|
-
var k = this, C = !!ne.u(V) || V, R = ne.p(
|
|
276
|
+
}, b.startOf = function(i, V) {
|
|
277
|
+
var k = this, C = !!ne.u(V) || V, R = ne.p(i), Q = function($e, we) {
|
|
278
278
|
var Ee = ne.w(k.$u ? Date.UTC(k.$y, we, $e) : new Date(k.$y, we, $e), k);
|
|
279
279
|
return C ? Ee : Ee.endOf(d);
|
|
280
280
|
}, te = function($e, we) {
|
|
@@ -283,7 +283,7 @@ var zt = { exports: {} };
|
|
|
283
283
|
switch (R) {
|
|
284
284
|
case w:
|
|
285
285
|
return C ? Q(1, 0) : Q(31, 11);
|
|
286
|
-
case
|
|
286
|
+
case u:
|
|
287
287
|
return C ? Q(1, E) : Q(0, E + 1);
|
|
288
288
|
case v:
|
|
289
289
|
var be = this.$locale().weekStart || 0, pe = (ee < be ? ee + 7 : ee) - be;
|
|
@@ -293,45 +293,45 @@ var zt = { exports: {} };
|
|
|
293
293
|
return te(le + "Hours", 0);
|
|
294
294
|
case T:
|
|
295
295
|
return te(le + "Minutes", 1);
|
|
296
|
-
case
|
|
296
|
+
case c:
|
|
297
297
|
return te(le + "Seconds", 2);
|
|
298
298
|
case p:
|
|
299
299
|
return te(le + "Milliseconds", 3);
|
|
300
300
|
default:
|
|
301
301
|
return this.clone();
|
|
302
302
|
}
|
|
303
|
-
}, b.endOf = function(
|
|
304
|
-
return this.startOf(
|
|
305
|
-
}, b.$set = function(
|
|
306
|
-
var k, C = ne.p(
|
|
307
|
-
if (C ===
|
|
303
|
+
}, b.endOf = function(i) {
|
|
304
|
+
return this.startOf(i, !1);
|
|
305
|
+
}, b.$set = function(i, V) {
|
|
306
|
+
var k, C = ne.p(i), R = "set" + (this.$u ? "UTC" : ""), Q = (k = {}, k[d] = R + "Date", k[A] = R + "Date", k[u] = R + "Month", k[w] = R + "FullYear", k[T] = R + "Hours", k[c] = R + "Minutes", k[p] = R + "Seconds", k[e] = R + "Milliseconds", k)[C], te = C === d ? this.$D + (V - this.$W) : V;
|
|
307
|
+
if (C === u || C === w) {
|
|
308
308
|
var ee = this.clone().set(A, 1);
|
|
309
309
|
ee.$d[Q](te), ee.init(), this.$d = ee.set(A, Math.min(this.$D, ee.daysInMonth())).$d;
|
|
310
310
|
} else Q && this.$d[Q](te);
|
|
311
311
|
return this.init(), this;
|
|
312
|
-
}, b.set = function(
|
|
313
|
-
return this.clone().$set(
|
|
314
|
-
}, b.get = function(
|
|
315
|
-
return this[ne.p(
|
|
316
|
-
}, b.add = function(
|
|
312
|
+
}, b.set = function(i, V) {
|
|
313
|
+
return this.clone().$set(i, V);
|
|
314
|
+
}, b.get = function(i) {
|
|
315
|
+
return this[ne.p(i)]();
|
|
316
|
+
}, b.add = function(i, V) {
|
|
317
317
|
var k, C = this;
|
|
318
|
-
|
|
318
|
+
i = Number(i);
|
|
319
319
|
var R = ne.p(V), Q = function(E) {
|
|
320
320
|
var g = se(C);
|
|
321
|
-
return ne.w(g.date(g.date() + Math.round(E *
|
|
321
|
+
return ne.w(g.date(g.date() + Math.round(E * i)), C);
|
|
322
322
|
};
|
|
323
|
-
if (R ===
|
|
324
|
-
if (R === w) return this.set(w, this.$y +
|
|
323
|
+
if (R === u) return this.set(u, this.$M + i);
|
|
324
|
+
if (R === w) return this.set(w, this.$y + i);
|
|
325
325
|
if (R === d) return Q(1);
|
|
326
326
|
if (R === v) return Q(7);
|
|
327
|
-
var te = (k = {}, k[
|
|
327
|
+
var te = (k = {}, k[c] = t, k[T] = r, k[p] = a, k)[R] || 1, ee = this.$d.getTime() + i * te;
|
|
328
328
|
return ne.w(ee, this);
|
|
329
|
-
}, b.subtract = function(
|
|
330
|
-
return this.add(-1 *
|
|
331
|
-
}, b.format = function(
|
|
329
|
+
}, b.subtract = function(i, V) {
|
|
330
|
+
return this.add(-1 * i, V);
|
|
331
|
+
}, b.format = function(i) {
|
|
332
332
|
var V = this, k = this.$locale();
|
|
333
|
-
if (!this.isValid()) return k.invalidDate ||
|
|
334
|
-
var C =
|
|
333
|
+
if (!this.isValid()) return k.invalidDate || N;
|
|
334
|
+
var C = i || "YYYY-MM-DDTHH:mm:ssZ", R = ne.z(this), Q = this.$H, te = this.$m, ee = this.$M, E = k.weekdays, g = k.months, le = k.meridiem, be = function(we, Ee, xe, Te) {
|
|
335
335
|
return we && (we[Ee] || we(V, C)) || xe[Ee].slice(0, Te);
|
|
336
336
|
}, pe = function(we) {
|
|
337
337
|
return ne.s(Q % 12 || 12, we, "0");
|
|
@@ -396,18 +396,18 @@ var zt = { exports: {} };
|
|
|
396
396
|
});
|
|
397
397
|
}, b.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
|
-
}, b.diff = function(
|
|
400
|
-
var C, R = this, Q = ne.p(V), te = se(
|
|
399
|
+
}, b.diff = function(i, V, k) {
|
|
400
|
+
var C, R = this, Q = ne.p(V), te = se(i), ee = (te.utcOffset() - this.utcOffset()) * t, E = this - te, g = function() {
|
|
401
401
|
return ne.m(R, te);
|
|
402
402
|
};
|
|
403
403
|
switch (Q) {
|
|
404
404
|
case w:
|
|
405
405
|
C = g() / 12;
|
|
406
406
|
break;
|
|
407
|
-
case
|
|
407
|
+
case u:
|
|
408
408
|
C = g();
|
|
409
409
|
break;
|
|
410
|
-
case
|
|
410
|
+
case f:
|
|
411
411
|
C = g() / 3;
|
|
412
412
|
break;
|
|
413
413
|
case v:
|
|
@@ -419,7 +419,7 @@ var zt = { exports: {} };
|
|
|
419
419
|
case T:
|
|
420
420
|
C = E / r;
|
|
421
421
|
break;
|
|
422
|
-
case
|
|
422
|
+
case c:
|
|
423
423
|
C = E / t;
|
|
424
424
|
break;
|
|
425
425
|
case p:
|
|
@@ -430,12 +430,12 @@ var zt = { exports: {} };
|
|
|
430
430
|
}
|
|
431
431
|
return k ? C : ne.a(C);
|
|
432
432
|
}, b.daysInMonth = function() {
|
|
433
|
-
return this.endOf(
|
|
433
|
+
return this.endOf(u).$D;
|
|
434
434
|
}, b.$locale = function() {
|
|
435
435
|
return ie[this.$L];
|
|
436
|
-
}, b.locale = function(
|
|
437
|
-
if (!
|
|
438
|
-
var k = this.clone(), C = oe(
|
|
436
|
+
}, b.locale = function(i, V) {
|
|
437
|
+
if (!i) return this.$L;
|
|
438
|
+
var k = this.clone(), C = oe(i, V, !0);
|
|
439
439
|
return C && (k.$L = C), k;
|
|
440
440
|
}, b.clone = function() {
|
|
441
441
|
return ne.w(this.$d, this);
|
|
@@ -449,7 +449,7 @@ var zt = { exports: {} };
|
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, _;
|
|
451
451
|
}(), M = Ue.prototype;
|
|
452
|
-
return se.prototype = M, [["$ms", e], ["$s", p], ["$m",
|
|
452
|
+
return se.prototype = M, [["$ms", e], ["$s", p], ["$m", c], ["$H", T], ["$W", d], ["$M", u], ["$y", w], ["$D", A]].forEach(function(_) {
|
|
453
453
|
M[_[1]] = function(b) {
|
|
454
454
|
return this.$g(b, _[0], _[1]);
|
|
455
455
|
};
|
|
@@ -457,7 +457,7 @@ var zt = { exports: {} };
|
|
|
457
457
|
return _.$i || (_(b, Ue, se), _.$i = !0), se;
|
|
458
458
|
}, se.locale = oe, se.isDayjs = Fe, se.unix = function(_) {
|
|
459
459
|
return se(1e3 * _);
|
|
460
|
-
}, se.en = ie[
|
|
460
|
+
}, se.en = ie[fe], se.Ls = ie, se.p = {}, se;
|
|
461
461
|
});
|
|
462
462
|
})(zt);
|
|
463
463
|
var kl = zt.exports;
|
|
@@ -514,9 +514,9 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
514
514
|
type: "card",
|
|
515
515
|
editable: !1
|
|
516
516
|
}
|
|
517
|
-
}, Ze = (
|
|
518
|
-
const a =
|
|
519
|
-
for (const [t, r] of
|
|
517
|
+
}, Ze = (n, s) => {
|
|
518
|
+
const a = n.__vccOpts || n;
|
|
519
|
+
for (const [t, r] of s)
|
|
520
520
|
a[t] = r;
|
|
521
521
|
return a;
|
|
522
522
|
}, Cl = {
|
|
@@ -529,21 +529,21 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
529
529
|
modelModifiers: {}
|
|
530
530
|
}),
|
|
531
531
|
emits: ["update:modelValue"],
|
|
532
|
-
setup(
|
|
533
|
-
var Ue, M, _, b,
|
|
534
|
-
const
|
|
535
|
-
!((Ue = e.value) != null && Ue.startsWith("text")) && !((M = e.value) != null && M.startsWith("link")) && !((_ = e.value) != null && _.startsWith("tag")) && !((b = e.value) != null && b.startsWith("div")) && !((
|
|
536
|
-
const
|
|
537
|
-
|
|
532
|
+
setup(n) {
|
|
533
|
+
var Ue, M, _, b, i, V, k, C, R, Q, te, ee;
|
|
534
|
+
const s = Qe(n, "modelValue"), a = n, t = re(a.item || {}), r = re(a.ctrlKey), e = re(a.ctrlType), p = re(a.model), c = re([]), T = re([]), d = re(!1), v = re(!1);
|
|
535
|
+
!((Ue = e.value) != null && Ue.startsWith("text")) && !((M = e.value) != null && M.startsWith("link")) && !((_ = e.value) != null && _.startsWith("tag")) && !((b = e.value) != null && b.startsWith("div")) && !((i = e.value) != null && i.startsWith("span")) && !((V = e.value) != null && V.startsWith("avatar")) && ((k = t.value) != null && k.style || (t.value.style = { width: ((R = (C = t.value) == null ? void 0 : C.style) == null ? void 0 : R.width) || "100%" }));
|
|
536
|
+
const u = re({ display: "flex", flex: 1 }), f = a.t === "t" ? "center" : "flex-start", w = ((Q = t.value) == null ? void 0 : Q.style) || {};
|
|
537
|
+
u.value = { ...u.value, justifyContent: f, ...w };
|
|
538
538
|
const A = () => {
|
|
539
539
|
const E = Bt(), g = Object.keys(E), le = `${a.t}-${r.value}-`;
|
|
540
540
|
return g.filter(($e) => $e.startsWith(le)).map(($e) => $e.replace(le, ""));
|
|
541
|
-
},
|
|
541
|
+
}, N = re({
|
|
542
542
|
multiple: !1,
|
|
543
543
|
"show-file-list": !1,
|
|
544
544
|
"file-list": [],
|
|
545
545
|
showDel: (te = t.value) != null && te.showDel ? (ee = t.value) == null ? void 0 : ee.showDel : a.t !== "t"
|
|
546
|
-
}),
|
|
546
|
+
}), j = re(t.value.innerHtml), B = (E) => [
|
|
547
547
|
"year",
|
|
548
548
|
"years",
|
|
549
549
|
"month",
|
|
@@ -556,7 +556,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
556
556
|
"daterange",
|
|
557
557
|
"monthrange",
|
|
558
558
|
"yearrange"
|
|
559
|
-
].includes(E),
|
|
559
|
+
].includes(E), ce = (E) => ({
|
|
560
560
|
year: "YYYY",
|
|
561
561
|
years: "YYYY",
|
|
562
562
|
month: "YYYY-MM",
|
|
@@ -580,12 +580,12 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
580
580
|
T.value = g;
|
|
581
581
|
});
|
|
582
582
|
});
|
|
583
|
-
}),
|
|
583
|
+
}), fe = async (E = "options") => {
|
|
584
584
|
var g;
|
|
585
585
|
try {
|
|
586
586
|
const le = await ((g = t.value) == null ? void 0 : g.getDicts(a.formInfo));
|
|
587
587
|
if (typeof le == "string")
|
|
588
|
-
T.value = [{ label: le, value:
|
|
588
|
+
T.value = [{ label: le, value: s.value }];
|
|
589
589
|
else {
|
|
590
590
|
const be = le == null ? void 0 : le.map((pe, $e) => ({
|
|
591
591
|
...pe,
|
|
@@ -601,7 +601,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
601
601
|
var E, g;
|
|
602
602
|
t.value.noSearch !== !0 && a.t === "q" && ((g = (E = p.value) == null ? void 0 : E.table) == null || g.load());
|
|
603
603
|
}, ye = (E) => {
|
|
604
|
-
E.preventDefault(), E.stopPropagation(),
|
|
604
|
+
E.preventDefault(), E.stopPropagation(), s.value = "";
|
|
605
605
|
}, Fe = (E) => {
|
|
606
606
|
d.value = !0;
|
|
607
607
|
}, oe = (E) => {
|
|
@@ -611,13 +611,13 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
611
611
|
var le, be, pe, $e, we;
|
|
612
612
|
t.value && t.value["remote-method"] && (ue.value["remote-method"] = Ce), (be = (le = p.value[r.value]) == null ? void 0 : le.options) != null && be.length && (T.value = p.value[r.value].options);
|
|
613
613
|
const E = (Ee, xe = "options", Te = p.value[r.value]) => {
|
|
614
|
-
typeof t.value.getDicts == "function" &&
|
|
614
|
+
typeof t.value.getDicts == "function" && fe(xe).catch((Le) => {
|
|
615
615
|
console.error(`Failed to load ${xe} for ${Ee}:`, Le);
|
|
616
616
|
});
|
|
617
617
|
};
|
|
618
618
|
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(e.value) && E(e.value), e.value === Se.TREESELECT && await (async () => {
|
|
619
619
|
try {
|
|
620
|
-
typeof t.value.getDicts == "function" ?
|
|
620
|
+
typeof t.value.getDicts == "function" ? c.value = await t.value.getDicts(a.formInfo) : c.value = T.value;
|
|
621
621
|
} catch (xe) {
|
|
622
622
|
console.error("Failed to load data for tree-select:", xe);
|
|
623
623
|
}
|
|
@@ -651,11 +651,11 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
651
651
|
});
|
|
652
652
|
const ne = Ke(() => {
|
|
653
653
|
var E;
|
|
654
|
-
return t.value["file-list"] && t.value["file-list"].length ? (E = t.value["file-list"]) == null ? void 0 : E.map((g) => g == null ? void 0 : g.url) : [
|
|
654
|
+
return t.value["file-list"] && t.value["file-list"].length ? (E = t.value["file-list"]) == null ? void 0 : E.map((g) => g == null ? void 0 : g.url) : [s.value];
|
|
655
655
|
});
|
|
656
656
|
return (E, g) => {
|
|
657
657
|
var rt, ot, H, de, F, G, ae, je, Ne, ze;
|
|
658
|
-
const le = L("el-image-viewer"), be = L("el-radio"), pe = L("el-radio-group"), $e = L("el-radio-button"), we = L("el-checkbox"), Ee = L("el-checkbox-group"), xe = L("el-checkbox-button"), Te = L("g-select-option"), Le = L("el-option"), ut = L("el-select"), st = L("el-tree-select"), it = L("el-time-picker"), dt = L("el-time-select"),
|
|
658
|
+
const le = L("el-image-viewer"), be = L("el-radio"), pe = L("el-radio-group"), $e = L("el-radio-button"), we = L("el-checkbox"), Ee = L("el-checkbox-group"), xe = L("el-checkbox-button"), Te = L("g-select-option"), Le = L("el-option"), ut = L("el-select"), st = L("el-tree-select"), it = L("el-time-picker"), dt = L("el-time-select"), ft = L("el-date-picker"), ct = L("el-color-picker"), vt = L("el-rate"), l = L("el-slider"), o = L("el-switch"), h = L("el-transfer"), $ = L("el-cascader"), x = L("el-icon"), U = L("el-image"), z = L("el-tooltip"), me = L("el-upload"), ke = L("el-autocomplete"), Ae = L("el-input-number"), Be = L("el-input"), Re = L("el-link"), He = L("el-text"), Je = L("el-avatar"), lt = L("el-tag");
|
|
659
659
|
return m(), Y(Z, null, [
|
|
660
660
|
X("div", null, [
|
|
661
661
|
d.value ? (m(), O(le, {
|
|
@@ -666,10 +666,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
666
666
|
}, null, 8, ["url-list"])) : ge("", !0)
|
|
667
667
|
]),
|
|
668
668
|
X("div", Cl, [
|
|
669
|
-
e.value ==
|
|
669
|
+
e.value == P(Se).RADIO ? (m(), O(pe, I({
|
|
670
670
|
key: 0,
|
|
671
|
-
modelValue:
|
|
672
|
-
"onUpdate:modelValue": g[1] || (g[1] = (y) =>
|
|
671
|
+
modelValue: s.value,
|
|
672
|
+
"onUpdate:modelValue": g[1] || (g[1] = (y) => s.value = y),
|
|
673
673
|
disabled: p.value[r.value].disabled
|
|
674
674
|
}, t.value), {
|
|
675
675
|
default: D(() => [
|
|
@@ -683,10 +683,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
683
683
|
], !0)
|
|
684
684
|
]),
|
|
685
685
|
_: 3
|
|
686
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
686
|
+
}, 16, ["modelValue", "disabled"])) : e.value == P(Se).RADIOBUTTON ? (m(), O(pe, I({
|
|
687
687
|
key: 1,
|
|
688
|
-
modelValue:
|
|
689
|
-
"onUpdate:modelValue": g[2] || (g[2] = (y) =>
|
|
688
|
+
modelValue: s.value,
|
|
689
|
+
"onUpdate:modelValue": g[2] || (g[2] = (y) => s.value = y),
|
|
690
690
|
disabled: p.value[r.value].disabled
|
|
691
691
|
}, t.value), {
|
|
692
692
|
default: D(() => [
|
|
@@ -700,10 +700,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
700
700
|
], !0)
|
|
701
701
|
]),
|
|
702
702
|
_: 3
|
|
703
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
703
|
+
}, 16, ["modelValue", "disabled"])) : e.value == P(Se).CHECKBOX ? (m(), O(we, I({
|
|
704
704
|
key: 2,
|
|
705
|
-
modelValue:
|
|
706
|
-
"onUpdate:modelValue": g[3] || (g[3] = (y) =>
|
|
705
|
+
modelValue: s.value,
|
|
706
|
+
"onUpdate:modelValue": g[3] || (g[3] = (y) => s.value = y),
|
|
707
707
|
disabled: p.value[r.value].disabled
|
|
708
708
|
}, t.value), {
|
|
709
709
|
default: D(() => [
|
|
@@ -712,10 +712,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
712
712
|
], !0)
|
|
713
713
|
]),
|
|
714
714
|
_: 3
|
|
715
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
715
|
+
}, 16, ["modelValue", "disabled"])) : e.value == P(Se).CHECKBOXGROUP ? (m(), O(Ee, I({
|
|
716
716
|
key: 3,
|
|
717
|
-
modelValue:
|
|
718
|
-
"onUpdate:modelValue": g[4] || (g[4] = (y) =>
|
|
717
|
+
modelValue: s.value,
|
|
718
|
+
"onUpdate:modelValue": g[4] || (g[4] = (y) => s.value = y),
|
|
719
719
|
disabled: p.value[r.value].disabled
|
|
720
720
|
}, t.value), {
|
|
721
721
|
default: D(() => [
|
|
@@ -731,10 +731,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
731
731
|
], !0)
|
|
732
732
|
]),
|
|
733
733
|
_: 3
|
|
734
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
734
|
+
}, 16, ["modelValue", "disabled"])) : e.value == P(Se).CHECKBOXGROUPBUTTON ? (m(), O(Ee, I({
|
|
735
735
|
key: 4,
|
|
736
|
-
modelValue:
|
|
737
|
-
"onUpdate:modelValue": g[5] || (g[5] = (y) =>
|
|
736
|
+
modelValue: s.value,
|
|
737
|
+
"onUpdate:modelValue": g[5] || (g[5] = (y) => s.value = y),
|
|
738
738
|
disabled: p.value[r.value].disabled
|
|
739
739
|
}, t.value), {
|
|
740
740
|
default: D(() => [
|
|
@@ -748,10 +748,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
748
748
|
], !0)
|
|
749
749
|
]),
|
|
750
750
|
_: 3
|
|
751
|
-
}, 16, ["modelValue", "disabled"])) : e.value ===
|
|
751
|
+
}, 16, ["modelValue", "disabled"])) : e.value === P(Se).SELECT ? (m(), O(ut, I({
|
|
752
752
|
key: 5,
|
|
753
|
-
modelValue:
|
|
754
|
-
"onUpdate:modelValue": g[6] || (g[6] = (y) =>
|
|
753
|
+
modelValue: s.value,
|
|
754
|
+
"onUpdate:modelValue": g[6] || (g[6] = (y) => s.value = y),
|
|
755
755
|
placeholder: p.value[r.value].label,
|
|
756
756
|
clearable: !0,
|
|
757
757
|
onClear: g[7] || (g[7] = () => {
|
|
@@ -764,7 +764,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
764
764
|
(m(!0), Y(Z, null, W(T.value, (y) => (m(), Y(Z, {
|
|
765
765
|
key: y.value
|
|
766
766
|
}, [
|
|
767
|
-
K(Le, I({ ref_for: !0 },
|
|
767
|
+
K(Le, I({ ref_for: !0 }, P(Ie)(y, (J) => J != "children"), {
|
|
768
768
|
onClick: (J) => {
|
|
769
769
|
ue.value.change && ue.value.change(y), ie();
|
|
770
770
|
}
|
|
@@ -789,7 +789,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
789
789
|
S(E.$slots, Pe, {
|
|
790
790
|
option: y,
|
|
791
791
|
data: tt,
|
|
792
|
-
form:
|
|
792
|
+
form: n.formInfo
|
|
793
793
|
}, void 0, !0)
|
|
794
794
|
])
|
|
795
795
|
}))
|
|
@@ -804,7 +804,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
804
804
|
style: { "margin-left": "20px" },
|
|
805
805
|
key: J.value,
|
|
806
806
|
ref_for: !0
|
|
807
|
-
},
|
|
807
|
+
}, P(Ie)(J, (q) => q != "children"), {
|
|
808
808
|
onClick: (q) => {
|
|
809
809
|
ue.value.change && ue.value.change(J), ie();
|
|
810
810
|
}
|
|
@@ -829,7 +829,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
829
829
|
S(E.$slots, tt, {
|
|
830
830
|
option: J,
|
|
831
831
|
data: $t,
|
|
832
|
-
form:
|
|
832
|
+
form: n.formInfo
|
|
833
833
|
}, void 0, !0)
|
|
834
834
|
])
|
|
835
835
|
}))
|
|
@@ -869,46 +869,46 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
869
869
|
W(A(), (y) => ({
|
|
870
870
|
name: y,
|
|
871
871
|
fn: D((J) => [
|
|
872
|
-
S(E.$slots, `${a.t}-${r.value}-${y}`, { form:
|
|
872
|
+
S(E.$slots, `${a.t}-${r.value}-${y}`, { form: n.formInfo }, void 0, !0)
|
|
873
873
|
])
|
|
874
874
|
}))
|
|
875
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value ==
|
|
875
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == P(Se).TREESELECT ? (m(), O(st, I({
|
|
876
876
|
key: 6,
|
|
877
|
-
modelValue:
|
|
878
|
-
"onUpdate:modelValue": g[8] || (g[8] = (y) =>
|
|
877
|
+
modelValue: s.value,
|
|
878
|
+
"onUpdate:modelValue": g[8] || (g[8] = (y) => s.value = y),
|
|
879
879
|
placeholder: p.value[r.value].label,
|
|
880
880
|
disabled: p.value[r.value].disabled
|
|
881
|
-
}, t.value, { data:
|
|
881
|
+
}, t.value, { data: c.value }), he({ _: 2 }, [
|
|
882
882
|
W(A(), (y) => ({
|
|
883
883
|
name: y,
|
|
884
884
|
fn: D((J) => [
|
|
885
885
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: J }, void 0, !0)
|
|
886
886
|
])
|
|
887
887
|
}))
|
|
888
|
-
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value ==
|
|
888
|
+
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value == P(Se).TIME ? (m(), O(it, I({
|
|
889
889
|
key: 7,
|
|
890
|
-
modelValue:
|
|
891
|
-
"onUpdate:modelValue": g[9] || (g[9] = (y) =>
|
|
890
|
+
modelValue: s.value,
|
|
891
|
+
"onUpdate:modelValue": g[9] || (g[9] = (y) => s.value = y),
|
|
892
892
|
"arrow-control": "",
|
|
893
893
|
disabled: p.value[r.value].disabled
|
|
894
894
|
}, t.value, {
|
|
895
895
|
placeholder: p.value[r.value].label
|
|
896
|
-
}), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value ==
|
|
896
|
+
}), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value == P(Se).TIMESELECT ? (m(), O(dt, I({
|
|
897
897
|
key: 8,
|
|
898
|
-
modelValue:
|
|
899
|
-
"onUpdate:modelValue": g[10] || (g[10] = (y) =>
|
|
898
|
+
modelValue: s.value,
|
|
899
|
+
"onUpdate:modelValue": g[10] || (g[10] = (y) => s.value = y),
|
|
900
900
|
start: "06:30",
|
|
901
901
|
step: "00:15",
|
|
902
902
|
end: "23:30",
|
|
903
903
|
placeholder: p.value[r.value].label,
|
|
904
904
|
disabled: p.value[r.value].disabled
|
|
905
|
-
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : B(e.value) ? (m(), O(
|
|
905
|
+
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : B(e.value) ? (m(), O(ft, I({
|
|
906
906
|
key: 9,
|
|
907
|
-
modelValue:
|
|
908
|
-
"onUpdate:modelValue": g[11] || (g[11] = (y) =>
|
|
907
|
+
modelValue: s.value,
|
|
908
|
+
"onUpdate:modelValue": g[11] || (g[11] = (y) => s.value = y),
|
|
909
909
|
type: e.value,
|
|
910
910
|
placeholder: p.value[r.value].label,
|
|
911
|
-
"value-format":
|
|
911
|
+
"value-format": ce(e.value),
|
|
912
912
|
disabled: p.value[r.value].disabled
|
|
913
913
|
}, t.value), he({ _: 2 }, [
|
|
914
914
|
W(A(), (y) => ({
|
|
@@ -917,24 +917,24 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
917
917
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: J }, void 0, !0)
|
|
918
918
|
])
|
|
919
919
|
}))
|
|
920
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value ==
|
|
920
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == P(Se).COLOR ? (m(), O(ct, I({
|
|
921
921
|
key: 10,
|
|
922
|
-
modelValue:
|
|
923
|
-
"onUpdate:modelValue": g[12] || (g[12] = (y) =>
|
|
924
|
-
}, t.value), null, 16, ["modelValue"])) : e.value ==
|
|
922
|
+
modelValue: s.value,
|
|
923
|
+
"onUpdate:modelValue": g[12] || (g[12] = (y) => s.value = y)
|
|
924
|
+
}, t.value), null, 16, ["modelValue"])) : e.value == P(Se).RATE ? (m(), O(vt, I({
|
|
925
925
|
key: 11,
|
|
926
|
-
modelValue:
|
|
927
|
-
"onUpdate:modelValue": g[13] || (g[13] = (y) =>
|
|
926
|
+
modelValue: s.value,
|
|
927
|
+
"onUpdate:modelValue": g[13] || (g[13] = (y) => s.value = y),
|
|
928
928
|
disabled: p.value[r.value].disabled
|
|
929
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value ==
|
|
929
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == P(Se).SLIDER ? (m(), O(l, I({
|
|
930
930
|
key: 12,
|
|
931
|
-
modelValue:
|
|
932
|
-
"onUpdate:modelValue": g[14] || (g[14] = (y) =>
|
|
931
|
+
modelValue: s.value,
|
|
932
|
+
"onUpdate:modelValue": g[14] || (g[14] = (y) => s.value = y),
|
|
933
933
|
disabled: p.value[r.value].disabled
|
|
934
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value ==
|
|
934
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == P(Se).SWITCH ? (m(), O(o, I({
|
|
935
935
|
key: 13,
|
|
936
|
-
modelValue:
|
|
937
|
-
"onUpdate:modelValue": g[15] || (g[15] = (y) =>
|
|
936
|
+
modelValue: s.value,
|
|
937
|
+
"onUpdate:modelValue": g[15] || (g[15] = (y) => s.value = y),
|
|
938
938
|
inlinePrompt: !0,
|
|
939
939
|
disabled: p.value[r.value].disabled
|
|
940
940
|
}, t.value), he({ _: 2 }, [
|
|
@@ -944,10 +944,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
944
944
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: J }, void 0, !0)
|
|
945
945
|
])
|
|
946
946
|
}))
|
|
947
|
-
]), 1040, ["modelValue", "disabled"])) : e.value ==
|
|
947
|
+
]), 1040, ["modelValue", "disabled"])) : e.value == P(Se).TRANSFER ? (m(), O(h, I({
|
|
948
948
|
key: 14,
|
|
949
|
-
modelValue:
|
|
950
|
-
"onUpdate:modelValue": g[16] || (g[16] = (y) =>
|
|
949
|
+
modelValue: s.value,
|
|
950
|
+
"onUpdate:modelValue": g[16] || (g[16] = (y) => s.value = y)
|
|
951
951
|
}, t.value), he({ _: 2 }, [
|
|
952
952
|
W(A(), (y) => ({
|
|
953
953
|
name: y,
|
|
@@ -955,10 +955,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
955
955
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: J }, void 0, !0)
|
|
956
956
|
])
|
|
957
957
|
}))
|
|
958
|
-
]), 1040, ["modelValue"])) : e.value ==
|
|
958
|
+
]), 1040, ["modelValue"])) : e.value == P(Se).CASCADER ? (m(), O($, I({
|
|
959
959
|
key: 15,
|
|
960
|
-
modelValue:
|
|
961
|
-
"onUpdate:modelValue": g[17] || (g[17] = (y) =>
|
|
960
|
+
modelValue: s.value,
|
|
961
|
+
"onUpdate:modelValue": g[17] || (g[17] = (y) => s.value = y)
|
|
962
962
|
}, t.value, { options: T.value }), he({ _: 2 }, [
|
|
963
963
|
W(A(), (y) => ({
|
|
964
964
|
name: y,
|
|
@@ -966,21 +966,21 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
966
966
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: J }, void 0, !0)
|
|
967
967
|
])
|
|
968
968
|
}))
|
|
969
|
-
]), 1040, ["modelValue", "options"])) : e.value ==
|
|
969
|
+
]), 1040, ["modelValue", "options"])) : e.value == P(Se).IMAGE ? (m(), O(me, I({
|
|
970
970
|
key: 16,
|
|
971
971
|
"file-list": t.value["file-list"],
|
|
972
972
|
"onUpdate:fileList": g[21] || (g[21] = (y) => t.value["file-list"] = y),
|
|
973
973
|
"list-type": "picture-card",
|
|
974
974
|
class: "custom-upload",
|
|
975
975
|
"on-preview": Fe
|
|
976
|
-
}, { ...
|
|
976
|
+
}, { ...N.value, ...t.value }, {
|
|
977
977
|
ref_key: "uploadRef",
|
|
978
978
|
ref: se
|
|
979
979
|
}), he({
|
|
980
980
|
default: D(() => {
|
|
981
981
|
var y;
|
|
982
982
|
return [
|
|
983
|
-
|
|
983
|
+
s.value ? (m(), Y("div", {
|
|
984
984
|
key: 1,
|
|
985
985
|
onClick: g[20] || (g[20] = (J) => J.stopPropagation()),
|
|
986
986
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
@@ -988,7 +988,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
988
988
|
X("div", Dl, [
|
|
989
989
|
K(U, I({
|
|
990
990
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
991
|
-
src:
|
|
991
|
+
src: s.value
|
|
992
992
|
}, { fit: "cover", lazy: !0, ...(y = t.value) == null ? void 0 : y.img }), he({ _: 2 }, [
|
|
993
993
|
W(A(), (J, q) => ({
|
|
994
994
|
name: J,
|
|
@@ -1004,13 +1004,13 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1004
1004
|
onMouseleave: g[19] || (g[19] = (J) => v.value = !1),
|
|
1005
1005
|
class: "up-view"
|
|
1006
1006
|
}, [
|
|
1007
|
-
v.value ? (m(), O(
|
|
1007
|
+
v.value ? (m(), O(z, {
|
|
1008
1008
|
key: 0,
|
|
1009
1009
|
content: "查看大图",
|
|
1010
1010
|
placement: "top"
|
|
1011
1011
|
}, {
|
|
1012
1012
|
default: D(() => [
|
|
1013
|
-
K(
|
|
1013
|
+
K(P(fl), {
|
|
1014
1014
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1015
1015
|
color: "white",
|
|
1016
1016
|
onClick: oe
|
|
@@ -1018,13 +1018,13 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1018
1018
|
]),
|
|
1019
1019
|
_: 1
|
|
1020
1020
|
})) : ge("", !0),
|
|
1021
|
-
|
|
1021
|
+
N.value.showDel && v.value ? (m(), O(z, {
|
|
1022
1022
|
key: 1,
|
|
1023
1023
|
content: "删除",
|
|
1024
1024
|
placement: "top"
|
|
1025
1025
|
}, {
|
|
1026
1026
|
default: D(() => [
|
|
1027
|
-
K(
|
|
1027
|
+
K(P(Yt), {
|
|
1028
1028
|
style: { width: "1.5em", height: "1.5em" },
|
|
1029
1029
|
color: "white",
|
|
1030
1030
|
onClick: ye
|
|
@@ -1035,7 +1035,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1035
1035
|
], 32)
|
|
1036
1036
|
])) : (m(), O(x, { key: 0 }, {
|
|
1037
1037
|
default: D(() => [
|
|
1038
|
-
K(
|
|
1038
|
+
K(P(dl))
|
|
1039
1039
|
]),
|
|
1040
1040
|
_: 1
|
|
1041
1041
|
}))
|
|
@@ -1049,10 +1049,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1049
1049
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: q }, void 0, !0)
|
|
1050
1050
|
])
|
|
1051
1051
|
}))
|
|
1052
|
-
]), 1040, ["file-list"])) : e.value ==
|
|
1052
|
+
]), 1040, ["file-list"])) : e.value == P(Se).AUTOCOMPLETE ? (m(), O(ke, I({
|
|
1053
1053
|
key: 17,
|
|
1054
|
-
modelValue:
|
|
1055
|
-
"onUpdate:modelValue": g[22] || (g[22] = (y) =>
|
|
1054
|
+
modelValue: s.value,
|
|
1055
|
+
"onUpdate:modelValue": g[22] || (g[22] = (y) => s.value = y)
|
|
1056
1056
|
}, t.value, {
|
|
1057
1057
|
placeholder: p.value[r.value].label
|
|
1058
1058
|
}), he({ _: 2 }, [
|
|
@@ -1062,10 +1062,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1062
1062
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: q }, void 0, !0)
|
|
1063
1063
|
])
|
|
1064
1064
|
}))
|
|
1065
|
-
]), 1040, ["modelValue", "placeholder"])) : e.value ==
|
|
1065
|
+
]), 1040, ["modelValue", "placeholder"])) : e.value == P(Se).INPUTNUMBER ? (m(), O(Ae, I({
|
|
1066
1066
|
key: 18,
|
|
1067
|
-
modelValue:
|
|
1068
|
-
"onUpdate:modelValue": g[23] || (g[23] = (y) =>
|
|
1067
|
+
modelValue: s.value,
|
|
1068
|
+
"onUpdate:modelValue": g[23] || (g[23] = (y) => s.value = y),
|
|
1069
1069
|
min: 0,
|
|
1070
1070
|
max: 1e8,
|
|
1071
1071
|
placeholder: p.value[r.value].label,
|
|
@@ -1077,22 +1077,22 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1077
1077
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: q }, void 0, !0)
|
|
1078
1078
|
])
|
|
1079
1079
|
}))
|
|
1080
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value ==
|
|
1080
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == P(Se).MONEY ? (m(), Y("div", {
|
|
1081
1081
|
key: 19,
|
|
1082
|
-
style: qe([{ position: "relative" },
|
|
1082
|
+
style: qe([{ position: "relative" }, u.value])
|
|
1083
1083
|
}, [
|
|
1084
1084
|
K(Be, I({
|
|
1085
|
-
modelValue:
|
|
1086
|
-
"onUpdate:modelValue": g[24] || (g[24] = (y) =>
|
|
1085
|
+
modelValue: s.value,
|
|
1086
|
+
"onUpdate:modelValue": g[24] || (g[24] = (y) => s.value = y),
|
|
1087
1087
|
placeholder: p.value[r.value].label,
|
|
1088
1088
|
type: "number",
|
|
1089
1089
|
maxlength: ((ot = t.value) == null ? void 0 : ot.max) || 25
|
|
1090
1090
|
}, { ...t.value, type: e.value }), he({
|
|
1091
1091
|
suffix: D(() => [
|
|
1092
1092
|
X("div", {
|
|
1093
|
-
title:
|
|
1093
|
+
title: P(Mt)(s.value),
|
|
1094
1094
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1095
|
-
}, De(
|
|
1095
|
+
}, De(P(Mt)(s.value)), 9, Sl)
|
|
1096
1096
|
]),
|
|
1097
1097
|
_: 2
|
|
1098
1098
|
}, [
|
|
@@ -1105,35 +1105,35 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1105
1105
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1106
1106
|
], 4)) : (H = e.value) != null && H.startsWith("link") ? (m(), Y("div", {
|
|
1107
1107
|
key: 20,
|
|
1108
|
-
style: qe(
|
|
1108
|
+
style: qe(u.value)
|
|
1109
1109
|
}, [
|
|
1110
1110
|
K(Re, I(t.value, {
|
|
1111
1111
|
type: e.value.replace("link-", ""),
|
|
1112
|
-
innerHTML:
|
|
1112
|
+
innerHTML: j.value || s.value
|
|
1113
1113
|
}), null, 16, ["type", "innerHTML"])
|
|
1114
1114
|
], 4)) : e.value != "textarea" && ((de = e.value) != null && de.startsWith("text")) ? (m(), Y("div", {
|
|
1115
1115
|
key: 21,
|
|
1116
|
-
style: qe(
|
|
1116
|
+
style: qe(u.value)
|
|
1117
1117
|
}, [
|
|
1118
1118
|
K(He, I(t.value, {
|
|
1119
1119
|
type: e.value.replace("text-", ""),
|
|
1120
|
-
innerHTML:
|
|
1120
|
+
innerHTML: j.value || s.value
|
|
1121
1121
|
}), null, 16, ["type", "innerHTML"])
|
|
1122
1122
|
], 4)) : e.value == "avatar" ? (m(), Y("div", {
|
|
1123
1123
|
key: 22,
|
|
1124
|
-
style: qe(
|
|
1124
|
+
style: qe(u.value)
|
|
1125
1125
|
}, [
|
|
1126
|
-
|
|
1126
|
+
j.value ? (m(), O(Je, _t(I({ key: 0 }, t.value)), {
|
|
1127
1127
|
default: D(() => [
|
|
1128
|
-
X("div", { innerHTML:
|
|
1128
|
+
X("div", { innerHTML: j.value }, null, 8, Ml)
|
|
1129
1129
|
]),
|
|
1130
1130
|
_: 1
|
|
1131
1131
|
}, 16)) : (m(), O(Je, _t(I({ key: 1 }, t.value)), null, 16))
|
|
1132
1132
|
], 4)) : (F = e.value) != null && F.startsWith("tag") ? (m(), Y("div", {
|
|
1133
1133
|
key: 23,
|
|
1134
|
-
style: qe(
|
|
1134
|
+
style: qe(u.value)
|
|
1135
1135
|
}, [
|
|
1136
|
-
Array.isArray(
|
|
1136
|
+
Array.isArray(j.value) && j.value.length > 0 ? (m(!0), Y(Z, { key: 0 }, W(j.value, (y, J) => (m(), Y(Z, { key: J }, [
|
|
1137
1137
|
typeof y == "object" ? (m(), O(lt, I({
|
|
1138
1138
|
key: 0,
|
|
1139
1139
|
ref_for: !0
|
|
@@ -1150,18 +1150,18 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1150
1150
|
}), null, 16, ["type", "innerHTML"]))
|
|
1151
1151
|
], 64))), 128)) : (m(), O(lt, I({ key: 1 }, t.value, {
|
|
1152
1152
|
type: e.value.replace("tag-", ""),
|
|
1153
|
-
innerHTML:
|
|
1153
|
+
innerHTML: j.value || s.value
|
|
1154
1154
|
}), null, 16, ["type", "innerHTML"]))
|
|
1155
1155
|
], 4)) : e.value == "div" ? (m(), Y("div", I({ key: 24 }, t.value, {
|
|
1156
|
-
innerHTML:
|
|
1157
|
-
style:
|
|
1156
|
+
innerHTML: j.value || s.value,
|
|
1157
|
+
style: u.value
|
|
1158
1158
|
}), null, 16, Tl)) : e.value == "span" ? (m(), Y("span", I({ key: 25 }, t.value, {
|
|
1159
|
-
innerHTML:
|
|
1160
|
-
style:
|
|
1159
|
+
innerHTML: j.value || s.value,
|
|
1160
|
+
style: u.value
|
|
1161
1161
|
}), null, 16, Fl)) : (m(), O(Be, I({
|
|
1162
1162
|
key: 26,
|
|
1163
|
-
modelValue:
|
|
1164
|
-
"onUpdate:modelValue": g[25] || (g[25] = (y) =>
|
|
1163
|
+
modelValue: s.value,
|
|
1164
|
+
"onUpdate:modelValue": g[25] || (g[25] = (y) => s.value = y),
|
|
1165
1165
|
placeholder: p.value[r.value].label,
|
|
1166
1166
|
maxlength: ((G = t.value) == null ? void 0 : G.max) || 25,
|
|
1167
1167
|
clearable: !0,
|
|
@@ -1169,7 +1169,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1169
1169
|
a.t == "q" && p.value.table.load();
|
|
1170
1170
|
}),
|
|
1171
1171
|
disabled: p.value[r.value].disabled
|
|
1172
|
-
}, { ...
|
|
1172
|
+
}, { ...P(Ie)(t.value, (y) => !["suffix", "prefix", "append", "prepend"].includes(y)), type: e.value }), he({ _: 2 }, [
|
|
1173
1173
|
(ae = t.value) != null && ae.suffix ? {
|
|
1174
1174
|
name: "suffix",
|
|
1175
1175
|
fn: D(() => {
|
|
@@ -1223,7 +1223,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1223
1223
|
fn: D((q) => [
|
|
1224
1224
|
S(E.$slots, `${a.t}-${r.value}-${y}`, {
|
|
1225
1225
|
data: q,
|
|
1226
|
-
form:
|
|
1226
|
+
form: n.formInfo
|
|
1227
1227
|
}, void 0, !0)
|
|
1228
1228
|
])
|
|
1229
1229
|
}))
|
|
@@ -1242,9 +1242,9 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1242
1242
|
modelModifiers: {}
|
|
1243
1243
|
}),
|
|
1244
1244
|
emits: /* @__PURE__ */ Xe(["submit", "reset"], ["update:modelValue"]),
|
|
1245
|
-
setup(
|
|
1245
|
+
setup(n, { expose: s, emit: a }) {
|
|
1246
1246
|
var ye, Fe, oe, se, ne, Ue;
|
|
1247
|
-
const t = Qe(
|
|
1247
|
+
const t = Qe(n, "modelValue"), r = a, e = re(null), p = Tt("options"), c = re({}), T = re(""), d = n;
|
|
1248
1248
|
t.value.form = Ve(
|
|
1249
1249
|
Pt,
|
|
1250
1250
|
p == null ? void 0 : p.form,
|
|
@@ -1254,18 +1254,18 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1254
1254
|
{ ...(se = Ft()) == null ? void 0 : se.style }
|
|
1255
1255
|
);
|
|
1256
1256
|
const v = async (M, _, b) => {
|
|
1257
|
-
let
|
|
1258
|
-
for (;
|
|
1257
|
+
let i = 5;
|
|
1258
|
+
for (; i > 0; ) {
|
|
1259
1259
|
if (await at(), e.value) {
|
|
1260
1260
|
e.value.validate((V, k) => {
|
|
1261
1261
|
V ? r("submit", M, _, b) : console.error("表单验证不通过!", k);
|
|
1262
1262
|
});
|
|
1263
1263
|
return;
|
|
1264
1264
|
}
|
|
1265
|
-
|
|
1265
|
+
i--, await new Promise((V) => setTimeout(V, 50));
|
|
1266
1266
|
}
|
|
1267
1267
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1268
|
-
},
|
|
1268
|
+
}, u = async () => {
|
|
1269
1269
|
let M = 5;
|
|
1270
1270
|
for (; M > 0; ) {
|
|
1271
1271
|
if (await at(), !e.value) {
|
|
@@ -1283,8 +1283,8 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1285
1285
|
};
|
|
1286
|
-
t.value.form.submit.click = v, t.value.form.saveSubmit.click = v, t.value.form.reset.click =
|
|
1287
|
-
const
|
|
1286
|
+
t.value.form.submit.click = v, t.value.form.saveSubmit.click = v, t.value.form.reset.click = u;
|
|
1287
|
+
const f = {
|
|
1288
1288
|
type: "hidden",
|
|
1289
1289
|
labelPosition: "right",
|
|
1290
1290
|
style: {
|
|
@@ -1292,7 +1292,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
};
|
|
1294
1294
|
t.value.formItems = Ve(
|
|
1295
|
-
|
|
1295
|
+
f,
|
|
1296
1296
|
p == null ? void 0 : p.formItems,
|
|
1297
1297
|
(ne = t == null ? void 0 : t.value) == null ? void 0 : ne.formItems
|
|
1298
1298
|
);
|
|
@@ -1310,7 +1310,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1310
1310
|
if (M.rules)
|
|
1311
1311
|
_ = M.rules;
|
|
1312
1312
|
else {
|
|
1313
|
-
const
|
|
1313
|
+
const i = { ...{
|
|
1314
1314
|
required: void 0,
|
|
1315
1315
|
max: void 0,
|
|
1316
1316
|
min: void 0,
|
|
@@ -1319,77 +1319,77 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1319
1319
|
pattern: void 0,
|
|
1320
1320
|
validate: void 0
|
|
1321
1321
|
}, ...M };
|
|
1322
|
-
|
|
1322
|
+
i.required && _.push({
|
|
1323
1323
|
required: !0,
|
|
1324
|
-
message: `${
|
|
1324
|
+
message: `${i.label}不能为空!`,
|
|
1325
1325
|
trigger: "blur"
|
|
1326
|
-
}),
|
|
1326
|
+
}), i.max !== void 0 && i.max !== null && i.max !== "" && (i.min === void 0 || i.min === null || i.min === "") && _.push({
|
|
1327
1327
|
validator: (V, k, C) => {
|
|
1328
1328
|
if (k == null || k === "") return C();
|
|
1329
|
-
|
|
1330
|
-
new Error(`${
|
|
1331
|
-
) : C() : Number(k) > Number(
|
|
1329
|
+
i.type !== "number" && i.type !== "input-number" ? ((k == null ? void 0 : k.toString()) || "").length > Number(i.max) ? C(
|
|
1330
|
+
new Error(`${i.label}长度不能超过${i.max}个字符!`)
|
|
1331
|
+
) : C() : Number(k) > Number(i.max) ? C(new Error(`${i.label}不能大于${i.max}!`)) : C();
|
|
1332
1332
|
}
|
|
1333
|
-
}),
|
|
1333
|
+
}), i.min !== void 0 && i.min !== null && i.min !== "" && (i.max === void 0 || i.max === null || i.max === "") && _.push({
|
|
1334
1334
|
validator: (V, k, C) => {
|
|
1335
1335
|
if (k == null || k === "") return C();
|
|
1336
|
-
|
|
1336
|
+
i.type !== "number" && i.type !== "input-number" ? Number(i.min) < 1 ? C(
|
|
1337
1337
|
new Error(
|
|
1338
|
-
`${
|
|
1338
|
+
`${i.label}长度最小值${i.min}设置错误!`
|
|
1339
1339
|
)
|
|
1340
|
-
) : k.toString().length < Number(
|
|
1340
|
+
) : k.toString().length < Number(i.min) ? C(
|
|
1341
1341
|
new Error(
|
|
1342
|
-
`${
|
|
1342
|
+
`${i.label}长度不能少于${i.min}个字符!`
|
|
1343
1343
|
)
|
|
1344
|
-
) : C() : Number(k) < Number(
|
|
1344
|
+
) : C() : Number(k) < Number(i.min) ? C(new Error(`${i.label}不能小于${i.min}!`)) : C();
|
|
1345
1345
|
}
|
|
1346
|
-
}),
|
|
1346
|
+
}), i.min !== void 0 && i.min !== null && i.min !== "" && i.max !== void 0 && i.max !== null && i.max !== "" && _.push({
|
|
1347
1347
|
validator: (V, k, C) => {
|
|
1348
1348
|
if (k == null || k === "") return C();
|
|
1349
|
-
const R = Number(
|
|
1350
|
-
|
|
1349
|
+
const R = Number(i.min), Q = Number(i.max);
|
|
1350
|
+
i.type !== "number" && i.type !== "input-number" ? Number(i.min) < 1 ? C(
|
|
1351
1351
|
new Error(
|
|
1352
|
-
`${
|
|
1352
|
+
`${i.label}长度最小值${i.min}设置错误!`
|
|
1353
1353
|
)
|
|
1354
1354
|
) : k.toString().length < R || k.toString().length > Q ? C(
|
|
1355
1355
|
new Error(
|
|
1356
|
-
`${
|
|
1356
|
+
`${i.label}长度必须在${R}-${Q}个字符之间!`
|
|
1357
1357
|
)
|
|
1358
|
-
) : C() : Number(k) < R || k > Q ? C(new Error(`${
|
|
1358
|
+
) : C() : Number(k) < R || k > Q ? C(new Error(`${i.label}必须在${R}-${Q}之间!`)) : C();
|
|
1359
1359
|
}
|
|
1360
|
-
}),
|
|
1361
|
-
pattern:
|
|
1362
|
-
message: (
|
|
1363
|
-
}),
|
|
1364
|
-
validator: (V, k, C) =>
|
|
1360
|
+
}), i.type == "email" && _.push({ type: "email", message: "不是一个正确的邮箱地址!" }), i.type == "url" && _.push({ type: "url", message: "不是一个合正确的URL!" }), i.pattern && _.push({
|
|
1361
|
+
pattern: i == null ? void 0 : i.pattern,
|
|
1362
|
+
message: (i == null ? void 0 : i.message) || "格式不正确!"
|
|
1363
|
+
}), i.validate && _.push({
|
|
1364
|
+
validator: (V, k, C) => i.validate(V, k, C)
|
|
1365
1365
|
});
|
|
1366
1366
|
}
|
|
1367
1367
|
return _;
|
|
1368
|
-
},
|
|
1368
|
+
}, N = (M, _ = !1) => {
|
|
1369
1369
|
var V, k, C, R, Q;
|
|
1370
|
-
const b = _ ? M : M == null ? void 0 : M.item,
|
|
1370
|
+
const b = _ ? M : M == null ? void 0 : M.item, i = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(c.value, (V = t.value.form) == null ? void 0 : V.modalState) : (b == null ? void 0 : b.editor) || {};
|
|
1371
1371
|
if (((k = t.value.form) == null ? void 0 : k.modalState) === "edit") {
|
|
1372
|
-
const te = typeof (b == null ? void 0 : b.editor) == "object" ? (C = b.editor) == null ? void 0 : C.ep : typeof (b == null ? void 0 : b.editor) == "function" ?
|
|
1373
|
-
return { ...
|
|
1372
|
+
const te = typeof (b == null ? void 0 : b.editor) == "object" ? (C = b.editor) == null ? void 0 : C.ep : typeof (b == null ? void 0 : b.editor) == "function" ? i == null ? void 0 : i.ep : {};
|
|
1373
|
+
return { ...i, ...te };
|
|
1374
1374
|
}
|
|
1375
1375
|
if (((R = t.value.form) == null ? void 0 : R.modalState) === "add") {
|
|
1376
|
-
const te = typeof (b == null ? void 0 : b.editor) == "object" ? (Q = b.editor) == null ? void 0 : Q.ap : typeof (b == null ? void 0 : b.editor) == "function" ?
|
|
1377
|
-
return { ...
|
|
1376
|
+
const te = typeof (b == null ? void 0 : b.editor) == "object" ? (Q = b.editor) == null ? void 0 : Q.ap : typeof (b == null ? void 0 : b.editor) == "function" ? i == null ? void 0 : i.ap : {};
|
|
1377
|
+
return { ...i, ...te };
|
|
1378
1378
|
}
|
|
1379
|
-
return
|
|
1380
|
-
},
|
|
1381
|
-
var b,
|
|
1382
|
-
const _ = typeof M.editor == "function" ? M.editor(
|
|
1383
|
-
return ((
|
|
1379
|
+
return i;
|
|
1380
|
+
}, j = (M) => {
|
|
1381
|
+
var b, i, V, k, C;
|
|
1382
|
+
const _ = typeof M.editor == "function" ? M.editor(c.value, (b = t.value.form) == null ? void 0 : b.modalState) : M.editor;
|
|
1383
|
+
return ((i = t.value.form) == null ? void 0 : i.modalState) === "edit" ? ((V = _ == null ? void 0 : _.ep) == null ? void 0 : V.type) ?? (_ == null ? void 0 : _.type) ?? M.type : ((k = t.value.form) == null ? void 0 : k.modalState) === "add" ? ((C = _ == null ? void 0 : _.ap) == null ? void 0 : C.type) ?? (_ == null ? void 0 : _.type) ?? M.type : (_ == null ? void 0 : _.type) ?? M.type;
|
|
1384
1384
|
};
|
|
1385
1385
|
nt(() => {
|
|
1386
|
-
B(), d != null && d.editForm ?
|
|
1386
|
+
B(), d != null && d.editForm ? c.value = d.editForm : c.value = ue.value;
|
|
1387
1387
|
}), Kt(() => {
|
|
1388
1388
|
e.value = null;
|
|
1389
1389
|
});
|
|
1390
1390
|
const B = () => {
|
|
1391
1391
|
T.value = Math.random().toString(36).substring(2);
|
|
1392
|
-
for (const [M, _] of Object.entries(
|
|
1392
|
+
for (const [M, _] of Object.entries(ce.value))
|
|
1393
1393
|
t.value[M].formItem = {
|
|
1394
1394
|
...t.value[M].formItem,
|
|
1395
1395
|
..._.formItem
|
|
@@ -1397,12 +1397,12 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1397
1397
|
...t.value[M].formItem.style,
|
|
1398
1398
|
..._.formItem.style
|
|
1399
1399
|
};
|
|
1400
|
-
},
|
|
1400
|
+
}, ce = Ke(
|
|
1401
1401
|
() => Object.fromEntries(
|
|
1402
1402
|
Object.entries(t.value).filter((M) => M[1].type != "hidden").filter((M) => M[1].hidden !== !0).filter((M) => M[1].edit !== !1).filter((M) => M[1].editor !== !1).filter((M) => M[1].type !== "control").filter((M) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(M[0])).filter((M) => {
|
|
1403
|
-
var b,
|
|
1404
|
-
const _ = typeof M[1].editor == "function" ? M[1].editor(
|
|
1405
|
-
return t.value.form.modalState === "edit" ? ((
|
|
1403
|
+
var b, i, V;
|
|
1404
|
+
const _ = typeof M[1].editor == "function" ? M[1].editor(c.value, (b = t.value.form) == null ? void 0 : b.modalState) : M[1].editor;
|
|
1405
|
+
return t.value.form.modalState === "edit" ? ((i = _ == null ? void 0 : _.ep) == null ? void 0 : i.editor) !== !1 : t.value.form.modalState === "add" ? ((V = _ == null ? void 0 : _.ap) == null ? void 0 : V.editor) !== !1 : !0;
|
|
1406
1406
|
}).map((M) => [M[0], M[1]])
|
|
1407
1407
|
)
|
|
1408
1408
|
), ue = Ke(
|
|
@@ -1411,20 +1411,20 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1411
1411
|
)
|
|
1412
1412
|
), Ce = Ke(() => {
|
|
1413
1413
|
const M = /* @__PURE__ */ new Map();
|
|
1414
|
-
return Object.entries(
|
|
1414
|
+
return Object.entries(ce.value).forEach(([_, b]) => {
|
|
1415
1415
|
if (b.groupName) {
|
|
1416
|
-
const
|
|
1417
|
-
M.has(
|
|
1418
|
-
groupName:
|
|
1416
|
+
const i = b.groupName;
|
|
1417
|
+
M.has(i) || M.set(i, {
|
|
1418
|
+
groupName: i,
|
|
1419
1419
|
items: []
|
|
1420
|
-
}), M.get(
|
|
1420
|
+
}), M.get(i).items.push({ key: _, item: b });
|
|
1421
1421
|
}
|
|
1422
1422
|
}), M.forEach((_) => {
|
|
1423
1423
|
_.tabPane = Ve(
|
|
1424
1424
|
..._.items.map(({ item: b }) => b.tabPane || {})
|
|
1425
1425
|
);
|
|
1426
1426
|
}), Array.from(M.values());
|
|
1427
|
-
}),
|
|
1427
|
+
}), fe = [
|
|
1428
1428
|
{
|
|
1429
1429
|
name: "f-submit",
|
|
1430
1430
|
label: t.value.form.submit.label,
|
|
@@ -1460,21 +1460,21 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1460
1460
|
originalOrder: 1
|
|
1461
1461
|
// 添加原始顺序标识
|
|
1462
1462
|
}
|
|
1463
|
-
], ie = Ke(() =>
|
|
1464
|
-
return
|
|
1463
|
+
], ie = Ke(() => fe.filter((M) => !M.hidden).sort((M, _) => M.sort - _.sort || M.originalOrder - _.originalOrder));
|
|
1464
|
+
return s({
|
|
1465
1465
|
submit: v,
|
|
1466
1466
|
saveSubmit: v,
|
|
1467
|
-
reset:
|
|
1468
|
-
formData:
|
|
1467
|
+
reset: u,
|
|
1468
|
+
formData: c
|
|
1469
1469
|
}), (M, _) => {
|
|
1470
1470
|
var Q, te, ee;
|
|
1471
|
-
const b = L("el-form-item"),
|
|
1471
|
+
const b = L("el-form-item"), i = L("el-col"), V = L("el-tab-pane"), k = L("el-tabs"), C = L("el-form"), R = L("el-button");
|
|
1472
1472
|
return m(), Y("div", Ol, [
|
|
1473
1473
|
K(C, I(
|
|
1474
1474
|
{
|
|
1475
1475
|
ref_key: "gform",
|
|
1476
1476
|
ref: e,
|
|
1477
|
-
model:
|
|
1477
|
+
model: c.value,
|
|
1478
1478
|
style: {
|
|
1479
1479
|
width: "98%",
|
|
1480
1480
|
padding: 0,
|
|
@@ -1482,7 +1482,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1482
1482
|
"box-sizing": "border-box"
|
|
1483
1483
|
}
|
|
1484
1484
|
},
|
|
1485
|
-
|
|
1485
|
+
P(Ie)(
|
|
1486
1486
|
t.value.form,
|
|
1487
1487
|
(E) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(E)
|
|
1488
1488
|
)
|
|
@@ -1504,7 +1504,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1504
1504
|
ref_for: !0
|
|
1505
1505
|
}, E.tabPane), {
|
|
1506
1506
|
default: D(() => [
|
|
1507
|
-
(m(!0), Y(Z, null, W(E.items, (g, le) => (m(), O(
|
|
1507
|
+
(m(!0), Y(Z, null, W(E.items, (g, le) => (m(), O(i, I({ ref_for: !0 }, { ...t.value.form.cols, ...g == null ? void 0 : g.item.col }, {
|
|
1508
1508
|
key: g.key,
|
|
1509
1509
|
style: { width: "100%" }
|
|
1510
1510
|
}), {
|
|
@@ -1520,21 +1520,21 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1520
1520
|
default: D(() => [
|
|
1521
1521
|
S(M.$slots, "f-" + g.key, {
|
|
1522
1522
|
item: g == null ? void 0 : g.item,
|
|
1523
|
-
formInfo:
|
|
1523
|
+
formInfo: c.value,
|
|
1524
1524
|
model: t.value,
|
|
1525
|
-
form:
|
|
1525
|
+
form: c.value
|
|
1526
1526
|
}, () => [
|
|
1527
1527
|
(m(), O(bt, {
|
|
1528
|
-
modelValue:
|
|
1529
|
-
"onUpdate:modelValue": ($e) =>
|
|
1530
|
-
item:
|
|
1528
|
+
modelValue: c.value[g.key],
|
|
1529
|
+
"onUpdate:modelValue": ($e) => c.value[g.key] = $e,
|
|
1530
|
+
item: N(g),
|
|
1531
1531
|
ctrlKey: g.key,
|
|
1532
|
-
ctrlType:
|
|
1532
|
+
ctrlType: j(g == null ? void 0 : g.item),
|
|
1533
1533
|
model: t.value,
|
|
1534
1534
|
key: `${g.key}-${T.value}`,
|
|
1535
1535
|
class: "g-ctrl-container",
|
|
1536
1536
|
t: "f",
|
|
1537
|
-
formInfo:
|
|
1537
|
+
formInfo: c.value
|
|
1538
1538
|
}, he({ _: 2 }, [
|
|
1539
1539
|
W(M.$slots, ($e, we) => ({
|
|
1540
1540
|
name: we,
|
|
@@ -1562,7 +1562,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1562
1562
|
_: 3
|
|
1563
1563
|
}, 16, ["modelValue"])
|
|
1564
1564
|
], !0) : S(M.$slots, "default", { key: 1 }, () => [
|
|
1565
|
-
(m(!0), Y(Z, null, W(
|
|
1565
|
+
(m(!0), Y(Z, null, W(ce.value, (E, g) => (m(), O(i, I({ ref_for: !0 }, { ...t.value.form.cols, ...E.col }, {
|
|
1566
1566
|
key: g,
|
|
1567
1567
|
style: { width: "100%" }
|
|
1568
1568
|
}), {
|
|
@@ -1587,21 +1587,21 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1587
1587
|
default: D(() => [
|
|
1588
1588
|
S(M.$slots, "f-" + g, {
|
|
1589
1589
|
item: E,
|
|
1590
|
-
formInfo:
|
|
1590
|
+
formInfo: c.value,
|
|
1591
1591
|
model: t.value,
|
|
1592
|
-
form:
|
|
1592
|
+
form: c.value
|
|
1593
1593
|
}, () => [
|
|
1594
1594
|
(m(), O(bt, {
|
|
1595
|
-
modelValue:
|
|
1596
|
-
"onUpdate:modelValue": (be) =>
|
|
1597
|
-
item:
|
|
1595
|
+
modelValue: c.value[g],
|
|
1596
|
+
"onUpdate:modelValue": (be) => c.value[g] = be,
|
|
1597
|
+
item: N(E, !0),
|
|
1598
1598
|
ctrlKey: g,
|
|
1599
|
-
ctrlType:
|
|
1599
|
+
ctrlType: j(E),
|
|
1600
1600
|
key: `${g}-${T.value}`,
|
|
1601
1601
|
model: t.value,
|
|
1602
1602
|
class: "g-ctrl-container",
|
|
1603
1603
|
t: "f",
|
|
1604
|
-
formInfo:
|
|
1604
|
+
formInfo: c.value
|
|
1605
1605
|
}, he({ _: 2 }, [
|
|
1606
1606
|
W(M.$slots, (be, pe) => ({
|
|
1607
1607
|
name: pe,
|
|
@@ -1635,7 +1635,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1635
1635
|
S(M.$slots, E.name + "-left", {}, void 0, !0),
|
|
1636
1636
|
S(M.$slots, E.name, {}, () => [
|
|
1637
1637
|
K(R, I({ ref_for: !0 }, E.info, {
|
|
1638
|
-
onClick: yt((g) => E.click(
|
|
1638
|
+
onClick: yt((g) => E.click(c.value, t.value, E.flag), ["stop"])
|
|
1639
1639
|
}), {
|
|
1640
1640
|
default: D(() => [
|
|
1641
1641
|
Ye(De(E == null ? void 0 : E.label), 1)
|
|
@@ -1660,46 +1660,46 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1660
1660
|
infoModifiers: {}
|
|
1661
1661
|
}),
|
|
1662
1662
|
emits: ["update:modelValue", "update:info"],
|
|
1663
|
-
setup(
|
|
1664
|
-
const
|
|
1663
|
+
setup(n) {
|
|
1664
|
+
const s = Qe(n, "modelValue"), a = n, t = Qe(n, "info"), r = (T) => Ke(() => Object.fromEntries(Object.entries(s.value).filter((d) => {
|
|
1665
1665
|
var v;
|
|
1666
|
-
return typeof d[1].search == "function" ? d[1].search && ((v = d[1].search(t.value,
|
|
1667
|
-
}).map((d) => [d[0], d[1]]))).value, e = (T) => typeof T.search == "function" ? T.search(t.value,
|
|
1666
|
+
return typeof d[1].search == "function" ? d[1].search && ((v = d[1].search(t.value, s.value.table)) == null ? void 0 : v.more) === T : d[1].search && d[1].search.more === T;
|
|
1667
|
+
}).map((d) => [d[0], d[1]]))).value, e = (T) => typeof T.search == "function" ? T.search(t.value, s.value.table) : T.search || {}, p = (T) => {
|
|
1668
1668
|
const d = e(T);
|
|
1669
1669
|
return (d == null ? void 0 : d.type) || T.type;
|
|
1670
|
-
},
|
|
1671
|
-
var
|
|
1670
|
+
}, c = (T) => {
|
|
1671
|
+
var u;
|
|
1672
1672
|
const d = e(T);
|
|
1673
|
-
let v = (d == null ? void 0 : d.width) || ((
|
|
1673
|
+
let v = (d == null ? void 0 : d.width) || ((u = s.value.queryItems) == null ? void 0 : u.width) || "100%";
|
|
1674
1674
|
return isNaN(v) || (v += "px"), v;
|
|
1675
1675
|
};
|
|
1676
1676
|
return (T, d) => {
|
|
1677
1677
|
const v = L("el-form-item");
|
|
1678
|
-
return m(!0), Y(Z, null, W(r(a.more), (
|
|
1679
|
-
key:
|
|
1680
|
-
item:
|
|
1678
|
+
return m(!0), Y(Z, null, W(r(a.more), (u, f) => S(T.$slots, `q-${f}`, {
|
|
1679
|
+
key: f,
|
|
1680
|
+
item: u,
|
|
1681
1681
|
queryModel: t.value,
|
|
1682
|
-
model:
|
|
1682
|
+
model: s.value
|
|
1683
1683
|
}, () => [
|
|
1684
1684
|
K(v, I({
|
|
1685
|
-
label:
|
|
1686
|
-
style: { width:
|
|
1685
|
+
label: u.label,
|
|
1686
|
+
style: { width: c(u) },
|
|
1687
1687
|
ref_for: !0
|
|
1688
|
-
}, { ...
|
|
1688
|
+
}, { ...s.value.queryItems, ...e(u) }), {
|
|
1689
1689
|
label: D(() => [
|
|
1690
|
-
S(T.$slots, `q-${
|
|
1691
|
-
item:
|
|
1692
|
-
model:
|
|
1690
|
+
S(T.$slots, `q-${f}-label`, {
|
|
1691
|
+
item: u,
|
|
1692
|
+
model: s.value
|
|
1693
1693
|
})
|
|
1694
1694
|
]),
|
|
1695
1695
|
default: D(() => [
|
|
1696
1696
|
K(bt, {
|
|
1697
|
-
modelValue: t.value[
|
|
1698
|
-
"onUpdate:modelValue": (w) => t.value[
|
|
1699
|
-
item: { ...
|
|
1700
|
-
ctrlKey:
|
|
1701
|
-
ctrlType: p(
|
|
1702
|
-
model:
|
|
1697
|
+
modelValue: t.value[f],
|
|
1698
|
+
"onUpdate:modelValue": (w) => t.value[f] = w,
|
|
1699
|
+
item: { ...u == null ? void 0 : u.editor, ...e(u) },
|
|
1700
|
+
ctrlKey: f,
|
|
1701
|
+
ctrlType: p(u),
|
|
1702
|
+
model: s.value,
|
|
1703
1703
|
t: "q",
|
|
1704
1704
|
formInfo: t.value
|
|
1705
1705
|
}, he({ _: 2 }, [
|
|
@@ -1708,8 +1708,8 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1708
1708
|
fn: D((A) => [
|
|
1709
1709
|
S(T.$slots, w, {
|
|
1710
1710
|
data: A,
|
|
1711
|
-
item:
|
|
1712
|
-
model:
|
|
1711
|
+
item: u,
|
|
1712
|
+
model: s.value
|
|
1713
1713
|
})
|
|
1714
1714
|
])
|
|
1715
1715
|
}))
|
|
@@ -1732,8 +1732,8 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1732
1732
|
infoModifiers: {}
|
|
1733
1733
|
},
|
|
1734
1734
|
emits: /* @__PURE__ */ Xe(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1735
|
-
setup(
|
|
1736
|
-
const a = Qe(
|
|
1735
|
+
setup(n, { emit: s }) {
|
|
1736
|
+
const a = Qe(n, "modelValue"), t = s, r = Tt("options"), e = re(!1), p = Qe(n, "info"), c = {
|
|
1737
1737
|
hidden: !1,
|
|
1738
1738
|
type: "hidden",
|
|
1739
1739
|
labelWidth: 100,
|
|
@@ -1750,7 +1750,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1750
1750
|
hidden: !0,
|
|
1751
1751
|
type: "primary",
|
|
1752
1752
|
label: "更多",
|
|
1753
|
-
icon: () => _e(
|
|
1753
|
+
icon: () => _e(cl),
|
|
1754
1754
|
click: () => {
|
|
1755
1755
|
e.value = !e.value;
|
|
1756
1756
|
}
|
|
@@ -1785,7 +1785,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
1787
|
};
|
|
1788
|
-
a.value.query = Ve(
|
|
1788
|
+
a.value.query = Ve(c, r == null ? void 0 : r.query, a.value.query);
|
|
1789
1789
|
const T = {
|
|
1790
1790
|
2: {
|
|
1791
1791
|
title: "更多查询",
|
|
@@ -1817,8 +1817,8 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
};
|
|
1819
1819
|
a.value.queryItems = Ve(d, r == null ? void 0 : r.queryItems, a.value.queryItems);
|
|
1820
|
-
const v = (A,
|
|
1821
|
-
const
|
|
1820
|
+
const v = (A, N) => {
|
|
1821
|
+
const j = Object.keys(A.slots).filter((B) => B !== "default").reduce((B, ce) => (B[ce] = (ue) => A.slots[ce]({
|
|
1822
1822
|
model: a.value
|
|
1823
1823
|
// 传递当前模型数据
|
|
1824
1824
|
}), B), {});
|
|
@@ -1827,14 +1827,14 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1827
1827
|
"onUpdate:modelValue": (B) => a.value = B,
|
|
1828
1828
|
info: p.value,
|
|
1829
1829
|
"onUpdate:info": (B) => p.value = B,
|
|
1830
|
-
more:
|
|
1831
|
-
},
|
|
1832
|
-
},
|
|
1833
|
-
var
|
|
1830
|
+
more: N
|
|
1831
|
+
}, j);
|
|
1832
|
+
}, u = Bt(), f = () => {
|
|
1833
|
+
var j, B, ce, ue, Ce, fe, ie, ye, Fe;
|
|
1834
1834
|
const A = [
|
|
1835
1835
|
{
|
|
1836
1836
|
key: "query",
|
|
1837
|
-
hidden: (
|
|
1837
|
+
hidden: (ce = (B = (j = a.value) == null ? void 0 : j.query) == null ? void 0 : B.query) == null ? void 0 : ce.hidden,
|
|
1838
1838
|
component: Oe,
|
|
1839
1839
|
props: {
|
|
1840
1840
|
...a.value.query.query,
|
|
@@ -1845,7 +1845,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1845
1845
|
},
|
|
1846
1846
|
{
|
|
1847
1847
|
key: "reset",
|
|
1848
|
-
hidden: (
|
|
1848
|
+
hidden: (fe = (Ce = (ue = a.value) == null ? void 0 : ue.query) == null ? void 0 : Ce.reset) == null ? void 0 : fe.hidden,
|
|
1849
1849
|
component: Oe,
|
|
1850
1850
|
props: {
|
|
1851
1851
|
...a.value.query.reset,
|
|
@@ -1867,7 +1867,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1867
1867
|
content: a.value.query.more.mode === 3 ? () => _e(mt, {
|
|
1868
1868
|
class: "query-form",
|
|
1869
1869
|
...Ie(a.value.query, (oe) => !["query", "more", "reset"].includes(oe))
|
|
1870
|
-
}, () => v({ slots:
|
|
1870
|
+
}, () => v({ slots: u }, !0)) : null
|
|
1871
1871
|
}
|
|
1872
1872
|
];
|
|
1873
1873
|
return A.sort((oe, se) => oe.sort - se.sort), A.filter((oe) => !oe.hidden).map((oe) => oe.key === "more" && oe.component === wt ? _e(wt, oe.props, {
|
|
@@ -1878,46 +1878,46 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1878
1878
|
diplay: "flex",
|
|
1879
1879
|
flexDirection: a.value.query.container.mode === "row" ? "row" : "column"
|
|
1880
1880
|
}));
|
|
1881
|
-
return (A,
|
|
1882
|
-
var
|
|
1883
|
-
const
|
|
1881
|
+
return (A, N) => {
|
|
1882
|
+
var ce, ue, Ce, fe, ie, ye, Fe, oe, se, ne, Ue, M, _, b, i, V, k;
|
|
1883
|
+
const j = L("el-form-item"), B = L("el-drawer");
|
|
1884
1884
|
return m(), Y(Z, null, [
|
|
1885
1885
|
X("div", {
|
|
1886
1886
|
class: "g-query-container",
|
|
1887
|
-
style: qe({ ...w.value, ...((ue = (
|
|
1887
|
+
style: qe({ ...w.value, ...((ue = (ce = a.value.query) == null ? void 0 : ce.container) == null ? void 0 : ue.style) || {} })
|
|
1888
1888
|
}, [
|
|
1889
|
-
K(
|
|
1890
|
-
onSubmit:
|
|
1889
|
+
K(P(mt), I({
|
|
1890
|
+
onSubmit: N[0] || (N[0] = yt(() => {
|
|
1891
1891
|
}, ["prevent"]))
|
|
1892
|
-
},
|
|
1892
|
+
}, P(Ie)(a.value.query, (C) => !["query", "more", "reset", "btns"].includes(C))), {
|
|
1893
1893
|
default: D(() => {
|
|
1894
1894
|
var C, R;
|
|
1895
1895
|
return [
|
|
1896
1896
|
(m(), O(We(v({ slots: A.$slots }, void 0)))),
|
|
1897
|
-
((R = (C = a.value.query) == null ? void 0 : C.container) == null ? void 0 : R.inline) === !0 ? (m(), O(
|
|
1897
|
+
((R = (C = a.value.query) == null ? void 0 : C.container) == null ? void 0 : R.inline) === !0 ? (m(), O(j, { key: 0 }, {
|
|
1898
1898
|
default: D(() => {
|
|
1899
1899
|
var Q, te, ee, E, g;
|
|
1900
1900
|
return [
|
|
1901
1901
|
X("div", {
|
|
1902
1902
|
style: qe((te = (Q = a.value.query) == null ? void 0 : Q.btns) == null ? void 0 : te.style)
|
|
1903
1903
|
}, [
|
|
1904
|
-
a.value.query.group ? (m(), O(
|
|
1904
|
+
a.value.query.group ? (m(), O(P(pt), { key: 0 }, {
|
|
1905
1905
|
default: D(() => [
|
|
1906
|
-
(m(!0), Y(Z, null, W(
|
|
1906
|
+
(m(!0), Y(Z, null, W(f(), (le) => S(A.$slots, le.props.slot, {}, () => [
|
|
1907
1907
|
(m(), O(We(le)))
|
|
1908
1908
|
], !0)), 256)),
|
|
1909
1909
|
S(A.$slots, "q-btns", {}, void 0, !0)
|
|
1910
1910
|
]),
|
|
1911
1911
|
_: 3
|
|
1912
1912
|
})) : (m(), Y(Z, { key: 1 }, [
|
|
1913
|
-
(g = (E = (ee = a.value) == null ? void 0 : ee.query) == null ? void 0 : E.btns) != null && g.group ? (m(), O(
|
|
1913
|
+
(g = (E = (ee = a.value) == null ? void 0 : ee.query) == null ? void 0 : E.btns) != null && g.group ? (m(), O(P(pt), { key: 0 }, {
|
|
1914
1914
|
default: D(() => [
|
|
1915
|
-
(m(!0), Y(Z, null, W(
|
|
1915
|
+
(m(!0), Y(Z, null, W(f(), (le) => S(A.$slots, le.props.slot, {}, () => [
|
|
1916
1916
|
(m(), O(We(le)))
|
|
1917
1917
|
], !0)), 256))
|
|
1918
1918
|
]),
|
|
1919
1919
|
_: 3
|
|
1920
|
-
})) : (m(!0), Y(Z, { key: 1 }, W(
|
|
1920
|
+
})) : (m(!0), Y(Z, { key: 1 }, W(f(), (le) => S(A.$slots, le.props.slot, {}, () => [
|
|
1921
1921
|
(m(), O(We(le)))
|
|
1922
1922
|
], !0)), 256)),
|
|
1923
1923
|
S(A.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1931,27 +1931,27 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1931
1931
|
}),
|
|
1932
1932
|
_: 3
|
|
1933
1933
|
}, 16),
|
|
1934
|
-
((ie = (
|
|
1934
|
+
((ie = (fe = (Ce = a.value) == null ? void 0 : Ce.query) == null ? void 0 : fe.container) == null ? void 0 : ie.inline) === !1 ? (m(), Y("div", {
|
|
1935
1935
|
key: 0,
|
|
1936
1936
|
style: qe((Fe = (ye = a.value.query) == null ? void 0 : ye.btns) == null ? void 0 : Fe.style)
|
|
1937
1937
|
}, [
|
|
1938
|
-
a.value.query.group ? (m(), O(
|
|
1938
|
+
a.value.query.group ? (m(), O(P(pt), { key: 0 }, {
|
|
1939
1939
|
default: D(() => [
|
|
1940
|
-
(m(!0), Y(Z, null, W(
|
|
1940
|
+
(m(!0), Y(Z, null, W(f(), (C) => S(A.$slots, C.props.slot, {}, () => [
|
|
1941
1941
|
(m(), O(We(C)))
|
|
1942
1942
|
], !0)), 256)),
|
|
1943
1943
|
S(A.$slots, "q-btns", {}, void 0, !0)
|
|
1944
1944
|
]),
|
|
1945
1945
|
_: 3
|
|
1946
1946
|
})) : (m(), Y(Z, { key: 1 }, [
|
|
1947
|
-
(se = (oe = a.value.query) == null ? void 0 : oe.btns) != null && se.group ? (m(), O(
|
|
1947
|
+
(se = (oe = a.value.query) == null ? void 0 : oe.btns) != null && se.group ? (m(), O(P(pt), { key: 0 }, {
|
|
1948
1948
|
default: D(() => [
|
|
1949
|
-
(m(!0), Y(Z, null, W(
|
|
1949
|
+
(m(!0), Y(Z, null, W(f(), (C) => S(A.$slots, C.props.slot, {}, () => [
|
|
1950
1950
|
(m(), O(We(C)))
|
|
1951
1951
|
], !0)), 256))
|
|
1952
1952
|
]),
|
|
1953
1953
|
_: 3
|
|
1954
|
-
})) : (m(!0), Y(Z, { key: 1 }, W(
|
|
1954
|
+
})) : (m(!0), Y(Z, { key: 1 }, W(f(), (C) => S(A.$slots, C.props.slot, {}, () => [
|
|
1955
1955
|
(m(), O(We(C)))
|
|
1956
1956
|
], !0)), 256)),
|
|
1957
1957
|
S(A.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1961,21 +1961,21 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1961
1961
|
e.value && !((M = (Ue = (ne = a.value) == null ? void 0 : ne.query) == null ? void 0 : Ue.more) != null && M.hidden) && a.value.query.more.mode == 2 ? (m(), O(B, I({
|
|
1962
1962
|
key: 0,
|
|
1963
1963
|
modelValue: e.value,
|
|
1964
|
-
"onUpdate:modelValue":
|
|
1964
|
+
"onUpdate:modelValue": N[6] || (N[6] = (C) => e.value = C),
|
|
1965
1965
|
title: "更多查询",
|
|
1966
1966
|
"show-close": !1
|
|
1967
1967
|
}, a.value.query.more.dialog), he({
|
|
1968
1968
|
default: D(() => [
|
|
1969
|
-
K(
|
|
1970
|
-
onSubmit:
|
|
1969
|
+
K(P(mt), I({
|
|
1970
|
+
onSubmit: N[3] || (N[3] = yt(() => {
|
|
1971
1971
|
}, ["prevent"]))
|
|
1972
|
-
},
|
|
1972
|
+
}, P(Ie)(a.value.query, (C) => !["query", "more", "reset"].includes(C)), { style: { width: "98%" } }), {
|
|
1973
1973
|
default: D(() => [
|
|
1974
1974
|
K(xt, {
|
|
1975
1975
|
modelValue: a.value,
|
|
1976
|
-
"onUpdate:modelValue":
|
|
1976
|
+
"onUpdate:modelValue": N[1] || (N[1] = (C) => a.value = C),
|
|
1977
1977
|
info: p.value,
|
|
1978
|
-
"onUpdate:info":
|
|
1978
|
+
"onUpdate:info": N[2] || (N[2] = (C) => p.value = C),
|
|
1979
1979
|
more: !0
|
|
1980
1980
|
}, he({ _: 2 }, [
|
|
1981
1981
|
W(A.$slots, (C, R, Q) => ({
|
|
@@ -1991,20 +1991,20 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1991
1991
|
]),
|
|
1992
1992
|
_: 2
|
|
1993
1993
|
}, [
|
|
1994
|
-
(k = (V = (
|
|
1994
|
+
(k = (V = (i = (b = (_ = a.value) == null ? void 0 : _.query) == null ? void 0 : b.more) == null ? void 0 : i.dialog) == null ? void 0 : V.footer) != null && k.hidden ? void 0 : {
|
|
1995
1995
|
name: "footer",
|
|
1996
1996
|
fn: D(() => [
|
|
1997
1997
|
X("div", _t(el(a.value.query.more.dialog.footer)), [
|
|
1998
|
-
K(
|
|
1999
|
-
onClick:
|
|
1998
|
+
K(P(Oe), I(a.value.query.query, {
|
|
1999
|
+
onClick: N[4] || (N[4] = (C) => a.value.query.query.click())
|
|
2000
2000
|
}), {
|
|
2001
2001
|
default: D(() => [
|
|
2002
2002
|
Ye(De(a.value.query.query.label), 1)
|
|
2003
2003
|
]),
|
|
2004
2004
|
_: 1
|
|
2005
2005
|
}, 16),
|
|
2006
|
-
K(
|
|
2007
|
-
onClick:
|
|
2006
|
+
K(P(Oe), I(a.value.query.reset, {
|
|
2007
|
+
onClick: N[5] || (N[5] = (C) => a.value.query.reset.click())
|
|
2008
2008
|
}), {
|
|
2009
2009
|
default: D(() => [
|
|
2010
2010
|
Ye(De(a.value.query.reset.label), 1)
|
|
@@ -2026,11 +2026,11 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2026
2026
|
return [
|
|
2027
2027
|
e.value && !((Q = (R = (C = a.value) == null ? void 0 : C.query) == null ? void 0 : R.more) != null && Q.hidden) && a.value.query.more.mode == 1 ? (m(), Y("div", Ul, [
|
|
2028
2028
|
X("div", Yl, [
|
|
2029
|
-
a.value.query.more.mode == 1 ? ll((m(), O(
|
|
2029
|
+
a.value.query.more.mode == 1 ? ll((m(), O(P(mt), I({
|
|
2030
2030
|
key: 0,
|
|
2031
|
-
onSubmit:
|
|
2031
|
+
onSubmit: N[7] || (N[7] = yt(() => {
|
|
2032
2032
|
}, ["prevent"]))
|
|
2033
|
-
},
|
|
2033
|
+
}, P(Ie)(a.value.query, (te) => !["query", "more", "reset"].includes(te))), {
|
|
2034
2034
|
default: D(() => [
|
|
2035
2035
|
(m(), O(We(v({ slots: A.$slots }, !0))))
|
|
2036
2036
|
]),
|
|
@@ -2057,8 +2057,8 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2057
2057
|
commitText: String
|
|
2058
2058
|
},
|
|
2059
2059
|
emits: ["excel"],
|
|
2060
|
-
setup(
|
|
2061
|
-
const a =
|
|
2060
|
+
setup(n, { emit: s }) {
|
|
2061
|
+
const a = n, t = s, r = re(a.items), e = () => {
|
|
2062
2062
|
r.value.forEach((T) => {
|
|
2063
2063
|
T.value = !0;
|
|
2064
2064
|
});
|
|
@@ -2066,7 +2066,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2066
2066
|
r.value.forEach((T) => {
|
|
2067
2067
|
T.value = !1;
|
|
2068
2068
|
});
|
|
2069
|
-
},
|
|
2069
|
+
}, c = () => {
|
|
2070
2070
|
t("excel", r.value, (T, d = "excel.xls") => {
|
|
2071
2071
|
if (!T) {
|
|
2072
2072
|
console.error("下载链接无效");
|
|
@@ -2091,7 +2091,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2091
2091
|
d && d.destroy();
|
|
2092
2092
|
});
|
|
2093
2093
|
}), (T, d) => {
|
|
2094
|
-
const v = L("el-divider"),
|
|
2094
|
+
const v = L("el-divider"), u = L("el-alert"), f = L("el-checkbox"), w = L("el-button");
|
|
2095
2095
|
return m(), Y("div", Hl, [
|
|
2096
2096
|
X("div", zl, [
|
|
2097
2097
|
X("div", Pl, [
|
|
@@ -2105,7 +2105,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2105
2105
|
style: { cursor: "pointer" }
|
|
2106
2106
|
}, "全不选")
|
|
2107
2107
|
]),
|
|
2108
|
-
K(
|
|
2108
|
+
K(u, {
|
|
2109
2109
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
2110
2110
|
type: "warning",
|
|
2111
2111
|
"show-icon": "",
|
|
@@ -2114,12 +2114,12 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2114
2114
|
}),
|
|
2115
2115
|
d[0] || (d[0] = X("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2116
2116
|
X("div", jl, [
|
|
2117
|
-
(m(!0), Y(Z, null, W(r.value, (A) => (m(), O(
|
|
2117
|
+
(m(!0), Y(Z, null, W(r.value, (A) => (m(), O(f, {
|
|
2118
2118
|
class: "check-box-hover",
|
|
2119
2119
|
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" },
|
|
2120
2120
|
"data-id": A.key,
|
|
2121
2121
|
modelValue: A.value,
|
|
2122
|
-
"onUpdate:modelValue": (
|
|
2122
|
+
"onUpdate:modelValue": (N) => A.value = N,
|
|
2123
2123
|
key: A.key,
|
|
2124
2124
|
title: A.label
|
|
2125
2125
|
}, {
|
|
@@ -2136,8 +2136,8 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2136
2136
|
X("div", Wl, [
|
|
2137
2137
|
K(w, {
|
|
2138
2138
|
type: "primary",
|
|
2139
|
-
onClick:
|
|
2140
|
-
icon:
|
|
2139
|
+
onClick: c,
|
|
2140
|
+
icon: P(Rt),
|
|
2141
2141
|
disabled: r.value.filter((A) => A.value).length < 1
|
|
2142
2142
|
}, {
|
|
2143
2143
|
default: D(() => [
|
|
@@ -2160,93 +2160,93 @@ ve.version(Zl).stores({
|
|
|
2160
2160
|
// 记录表格列显示状态
|
|
2161
2161
|
tableColsState: "++id,[page+key], page, key"
|
|
2162
2162
|
});
|
|
2163
|
-
const et = (
|
|
2164
|
-
if (!
|
|
2163
|
+
const et = (n, s) => {
|
|
2164
|
+
if (!n || typeof n != "string")
|
|
2165
2165
|
throw new Error("page参数必须是非空字符串");
|
|
2166
2166
|
};
|
|
2167
|
-
async function ht(
|
|
2167
|
+
async function ht(n, s, a) {
|
|
2168
2168
|
try {
|
|
2169
|
-
const t = await ve.tableColsState.where({ page:
|
|
2170
|
-
t ? a === "add" ? t.keys.includes(
|
|
2169
|
+
const t = await ve.tableColsState.where({ page: n }).first();
|
|
2170
|
+
t ? a === "add" ? t.keys.includes(s) || (t.keys.push(s), await ve.tableColsState.put(t)) : a === "del" ? (t.keys = t.keys.filter((r) => r !== s), await ve.tableColsState.put(t)) : a === "delAll" ? (t.keys = s, await ve.tableColsState.put(t)) : a === "selectAll" && await ve.tableColsState.where({ page: n }).delete() : a === "add" ? await ve.tableColsState.add({ page: n, keys: [s] }) : a === "delAll" && await ve.tableColsState.add({ page: n, keys: s });
|
|
2171
2171
|
} catch (t) {
|
|
2172
|
-
throw console.error(`处理表格列状态时出错 (page: ${
|
|
2172
|
+
throw console.error(`处理表格列状态时出错 (page: ${n}, key: ${s}, state: ${a}):`, t), t;
|
|
2173
2173
|
}
|
|
2174
2174
|
}
|
|
2175
|
-
async function Jl(
|
|
2176
|
-
et(
|
|
2175
|
+
async function Jl(n, s, a) {
|
|
2176
|
+
et(n);
|
|
2177
2177
|
try {
|
|
2178
|
-
const t = await ve.tableWidths.where({ page:
|
|
2179
|
-
return t ? (await ve.tableWidths.put({ ...t, width: a }), "update success") : (await ve.tableWidths.add({ page:
|
|
2178
|
+
const t = await ve.tableWidths.where({ page: n, key: s }).first();
|
|
2179
|
+
return t ? (await ve.tableWidths.put({ ...t, width: a }), "update success") : (await ve.tableWidths.add({ page: n, key: s, width: a }), "add success");
|
|
2180
2180
|
} catch (t) {
|
|
2181
|
-
throw console.error(`保存表格项设置信息时出错 (page: ${
|
|
2181
|
+
throw console.error(`保存表格项设置信息时出错 (page: ${n}, key: ${s}):`, t), t;
|
|
2182
2182
|
}
|
|
2183
2183
|
}
|
|
2184
|
-
async function Kl(
|
|
2185
|
-
et(
|
|
2184
|
+
async function Kl(n) {
|
|
2185
|
+
et(n);
|
|
2186
2186
|
try {
|
|
2187
|
-
return await ve.tableWidths.where({ page:
|
|
2188
|
-
} catch (
|
|
2189
|
-
throw console.error(`获取表格项设置信息时出错 (page: ${
|
|
2187
|
+
return await ve.tableWidths.where({ page: n }).toArray();
|
|
2188
|
+
} catch (s) {
|
|
2189
|
+
throw console.error(`获取表格项设置信息时出错 (page: ${n}):`, s), s;
|
|
2190
2190
|
}
|
|
2191
2191
|
}
|
|
2192
|
-
async function ea(
|
|
2193
|
-
et(
|
|
2192
|
+
async function ea(n) {
|
|
2193
|
+
et(n);
|
|
2194
2194
|
try {
|
|
2195
|
-
const
|
|
2196
|
-
return !
|
|
2197
|
-
} catch (
|
|
2198
|
-
throw console.error(`获取表格列状态时出错 (page: ${
|
|
2195
|
+
const s = await ve.tableColsState.where({ page: n }).toArray();
|
|
2196
|
+
return !s || s.length === 0 ? [] : s[0].keys;
|
|
2197
|
+
} catch (s) {
|
|
2198
|
+
throw console.error(`获取表格列状态时出错 (page: ${n}):`, s), s;
|
|
2199
2199
|
}
|
|
2200
2200
|
}
|
|
2201
|
-
async function ta(
|
|
2202
|
-
et(
|
|
2201
|
+
async function ta(n) {
|
|
2202
|
+
et(n);
|
|
2203
2203
|
try {
|
|
2204
2204
|
return await ve.transaction("rw", ve.tableWidths, ve.pageInfo, ve.sorts, ve.tableColsState, async () => {
|
|
2205
2205
|
await Promise.all([
|
|
2206
|
-
ve.tableWidths.where({ page:
|
|
2207
|
-
ve.pageInfo.where({ page:
|
|
2208
|
-
ve.sorts.where({ page:
|
|
2209
|
-
ve.tableColsState.where({ page:
|
|
2206
|
+
ve.tableWidths.where({ page: n }).delete(),
|
|
2207
|
+
ve.pageInfo.where({ page: n }).delete(),
|
|
2208
|
+
ve.sorts.where({ page: n }).delete(),
|
|
2209
|
+
ve.tableColsState.where({ page: n }).delete()
|
|
2210
2210
|
]);
|
|
2211
2211
|
});
|
|
2212
|
-
} catch (
|
|
2213
|
-
throw console.error(`删除页面"${
|
|
2212
|
+
} catch (s) {
|
|
2213
|
+
throw console.error(`删除页面"${n}"的表格设置信息时出错:`, s), s;
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
|
-
async function la({ page:
|
|
2217
|
-
et(
|
|
2216
|
+
async function la({ page: n, size: s }) {
|
|
2217
|
+
et(n);
|
|
2218
2218
|
try {
|
|
2219
|
-
const a = await ve.pageInfo.where({ page:
|
|
2220
|
-
return a ? (await ve.pageInfo.put({ ...a, size:
|
|
2219
|
+
const a = await ve.pageInfo.where({ page: n }).first();
|
|
2220
|
+
return a ? (await ve.pageInfo.put({ ...a, size: s }), "update success") : (await ve.pageInfo.add({ page: n, size: s }), "add success");
|
|
2221
2221
|
} catch (a) {
|
|
2222
|
-
throw console.error(`保存分页条数时出错 (page: ${
|
|
2222
|
+
throw console.error(`保存分页条数时出错 (page: ${n}):`, a), a;
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
2225
|
-
async function aa(
|
|
2226
|
-
et(
|
|
2225
|
+
async function aa(n) {
|
|
2226
|
+
et(n);
|
|
2227
2227
|
try {
|
|
2228
|
-
const
|
|
2229
|
-
return (
|
|
2230
|
-
} catch (
|
|
2231
|
-
throw console.error(`获取分页条数时出错 (page: ${
|
|
2228
|
+
const s = await ve.pageInfo.where({ page: n }).first();
|
|
2229
|
+
return (s == null ? void 0 : s.size) || 20;
|
|
2230
|
+
} catch (s) {
|
|
2231
|
+
throw console.error(`获取分页条数时出错 (page: ${n}):`, s), s;
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
2234
|
-
async function ra(
|
|
2235
|
-
et(
|
|
2234
|
+
async function ra(n, s) {
|
|
2235
|
+
et(n);
|
|
2236
2236
|
try {
|
|
2237
|
-
const a = await ve.sorts.where({ page:
|
|
2238
|
-
return a ? (await ve.sorts.put({ ...a, keys:
|
|
2237
|
+
const a = await ve.sorts.where({ page: n }).first();
|
|
2238
|
+
return a ? (await ve.sorts.put({ ...a, keys: s }), "update success") : (await ve.sorts.add({ page: n, keys: s }), "add success");
|
|
2239
2239
|
} catch (a) {
|
|
2240
|
-
throw console.error(`保存表格字段顺序时出错 (page: ${
|
|
2240
|
+
throw console.error(`保存表格字段顺序时出错 (page: ${n}):`, a), a;
|
|
2241
2241
|
}
|
|
2242
2242
|
}
|
|
2243
|
-
async function oa(
|
|
2244
|
-
et(
|
|
2243
|
+
async function oa(n) {
|
|
2244
|
+
et(n);
|
|
2245
2245
|
try {
|
|
2246
|
-
const
|
|
2247
|
-
return (
|
|
2248
|
-
} catch (
|
|
2249
|
-
throw console.error(`获取表格字段顺序时出错 (page: ${
|
|
2246
|
+
const s = await ve.sorts.where({ page: n }).first();
|
|
2247
|
+
return (s == null ? void 0 : s.keys) || [];
|
|
2248
|
+
} catch (s) {
|
|
2249
|
+
throw console.error(`获取表格字段顺序时出错 (page: ${n}):`, s), s;
|
|
2250
2250
|
}
|
|
2251
2251
|
}
|
|
2252
2252
|
const na = {
|
|
@@ -2267,18 +2267,18 @@ const na = {
|
|
|
2267
2267
|
modelModifiers: {}
|
|
2268
2268
|
}),
|
|
2269
2269
|
emits: /* @__PURE__ */ Xe(["setting-drag-end", "select-all"], ["update:modelValue"]),
|
|
2270
|
-
setup(
|
|
2271
|
-
const a =
|
|
2272
|
-
|
|
2273
|
-
},
|
|
2274
|
-
const
|
|
2275
|
-
if (
|
|
2276
|
-
let
|
|
2270
|
+
setup(n, { emit: s }) {
|
|
2271
|
+
const a = n, t = s, r = re([]), e = Qe(n, "modelValue"), p = async (u, f) => {
|
|
2272
|
+
u ? (e.value[f].showCol = !0, await ht(a.tuid, f, "del")) : (e.value[f].showCol = !1, await ht(a.tuid, f, "add"));
|
|
2273
|
+
}, c = () => {
|
|
2274
|
+
const u = document.getElementById("cols");
|
|
2275
|
+
if (u) {
|
|
2276
|
+
let f = Lt.create(u, {
|
|
2277
2277
|
animation: 150,
|
|
2278
2278
|
filter: ".filtered",
|
|
2279
2279
|
sort: !0,
|
|
2280
2280
|
onEnd: async () => {
|
|
2281
|
-
let w =
|
|
2281
|
+
let w = f.toArray();
|
|
2282
2282
|
try {
|
|
2283
2283
|
ra(a.tuid, w).then((A) => {
|
|
2284
2284
|
t("setting-drag-end");
|
|
@@ -2294,27 +2294,27 @@ const na = {
|
|
|
2294
2294
|
}
|
|
2295
2295
|
}, T = async () => {
|
|
2296
2296
|
try {
|
|
2297
|
-
r.value.forEach((
|
|
2298
|
-
|
|
2299
|
-
}), ht(a.tuid, [], "selectAll").then((
|
|
2297
|
+
r.value.forEach((u) => {
|
|
2298
|
+
u.showCol = !0;
|
|
2299
|
+
}), ht(a.tuid, [], "selectAll").then((u) => {
|
|
2300
2300
|
t("select-all");
|
|
2301
2301
|
});
|
|
2302
|
-
} catch (
|
|
2303
|
-
console.error("全选列保存信息时出错:",
|
|
2302
|
+
} catch (u) {
|
|
2303
|
+
console.error("全选列保存信息时出错:", u), Ge({
|
|
2304
2304
|
type: "error",
|
|
2305
2305
|
message: "全选列保存信息失败!"
|
|
2306
2306
|
});
|
|
2307
2307
|
}
|
|
2308
2308
|
}, d = async () => {
|
|
2309
2309
|
try {
|
|
2310
|
-
let
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
}), ht(a.tuid,
|
|
2310
|
+
let u = r.value.filter((f) => !f.alwaysShow && f.value != "control" && f.value != "hidden");
|
|
2311
|
+
u.forEach((f) => {
|
|
2312
|
+
f.showCol = !1;
|
|
2313
|
+
}), ht(a.tuid, u.map((f) => f.value), "delAll").then((f) => {
|
|
2314
2314
|
t("select-all");
|
|
2315
2315
|
});
|
|
2316
|
-
} catch (
|
|
2317
|
-
console.error("清除列保存信息时出错:",
|
|
2316
|
+
} catch (u) {
|
|
2317
|
+
console.error("清除列保存信息时出错:", u), Ge({
|
|
2318
2318
|
type: "error",
|
|
2319
2319
|
message: "清除列保存信息失败!"
|
|
2320
2320
|
});
|
|
@@ -2325,10 +2325,10 @@ const na = {
|
|
|
2325
2325
|
cancelButtonText: "取消",
|
|
2326
2326
|
type: "warning"
|
|
2327
2327
|
}).then(() => {
|
|
2328
|
-
ta(a.tuid).then((
|
|
2328
|
+
ta(a.tuid).then((u) => {
|
|
2329
2329
|
window.location.reload();
|
|
2330
|
-
}).catch((
|
|
2331
|
-
console.error("复位操作出错:",
|
|
2330
|
+
}).catch((u) => {
|
|
2331
|
+
console.error("复位操作出错:", u), Ge({
|
|
2332
2332
|
type: "info",
|
|
2333
2333
|
message: "复位失败!"
|
|
2334
2334
|
});
|
|
@@ -2336,16 +2336,16 @@ const na = {
|
|
|
2336
2336
|
});
|
|
2337
2337
|
};
|
|
2338
2338
|
return nt(async () => {
|
|
2339
|
-
r.value = Object.entries(e.value).filter(([,
|
|
2340
|
-
label:
|
|
2341
|
-
value:
|
|
2342
|
-
alwaysShow:
|
|
2343
|
-
showCol:
|
|
2344
|
-
sort:
|
|
2345
|
-
width:
|
|
2346
|
-
})).sort((
|
|
2347
|
-
}), (
|
|
2348
|
-
const w = L("el-divider"), A = L("el-alert"),
|
|
2339
|
+
r.value = Object.entries(e.value).filter(([, u]) => u.visible !== !1).filter(([, u]) => u.type != "hidden").map(([u, f]) => ({
|
|
2340
|
+
label: f.label,
|
|
2341
|
+
value: u,
|
|
2342
|
+
alwaysShow: f.alwaysShow,
|
|
2343
|
+
showCol: f.showCol !== !1,
|
|
2344
|
+
sort: f.sort || 0,
|
|
2345
|
+
width: f == null ? void 0 : f.width
|
|
2346
|
+
})).sort((u, f) => u.sort - f.sort), c();
|
|
2347
|
+
}), (u, f) => {
|
|
2348
|
+
const w = L("el-divider"), A = L("el-alert"), N = L("el-checkbox");
|
|
2349
2349
|
return m(), Y("div", null, [
|
|
2350
2350
|
X("div", na, [
|
|
2351
2351
|
X("a", { onClick: T }, "全选"),
|
|
@@ -2363,21 +2363,21 @@ const na = {
|
|
|
2363
2363
|
}),
|
|
2364
2364
|
X("div", null, [
|
|
2365
2365
|
X("div", ua, [
|
|
2366
|
-
(m(!0), Y(Z, null, W(r.value, (
|
|
2367
|
-
modelValue:
|
|
2368
|
-
"onUpdate:modelValue": (B) =>
|
|
2369
|
-
"data-id":
|
|
2370
|
-
class: Ot(["check-box-hover",
|
|
2371
|
-
onChange: (B) => p(B,
|
|
2366
|
+
(m(!0), Y(Z, null, W(r.value, (j) => (m(), O(N, {
|
|
2367
|
+
modelValue: j.showCol,
|
|
2368
|
+
"onUpdate:modelValue": (B) => j.showCol = B,
|
|
2369
|
+
"data-id": j.value,
|
|
2370
|
+
class: Ot(["check-box-hover", j.value == "control" ? "filtered" : ""]),
|
|
2371
|
+
onChange: (B) => p(B, j.value),
|
|
2372
2372
|
style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
2373
|
-
value:
|
|
2374
|
-
title:
|
|
2375
|
-
disabled:
|
|
2376
|
-
key:
|
|
2373
|
+
value: j.value,
|
|
2374
|
+
title: j.label,
|
|
2375
|
+
disabled: j.alwaysShow,
|
|
2376
|
+
key: j.value
|
|
2377
2377
|
}, {
|
|
2378
2378
|
default: D(() => [
|
|
2379
2379
|
X("span", {
|
|
2380
|
-
textContent: De(
|
|
2380
|
+
textContent: De(j.label),
|
|
2381
2381
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2382
2382
|
}, null, 8, sa)
|
|
2383
2383
|
]),
|
|
@@ -2388,7 +2388,7 @@ const na = {
|
|
|
2388
2388
|
]);
|
|
2389
2389
|
};
|
|
2390
2390
|
}
|
|
2391
|
-
}, da = /* @__PURE__ */ Ze(ia, [["__scopeId", "data-v-adb08f30"]]),
|
|
2391
|
+
}, da = /* @__PURE__ */ Ze(ia, [["__scopeId", "data-v-adb08f30"]]), fa = { class: "title" }, ca = { class: "content" }, va = {
|
|
2392
2392
|
__name: "g-cell-toopTip",
|
|
2393
2393
|
props: {
|
|
2394
2394
|
content: {
|
|
@@ -2400,31 +2400,31 @@ const na = {
|
|
|
2400
2400
|
default: () => ({})
|
|
2401
2401
|
}
|
|
2402
2402
|
},
|
|
2403
|
-
setup(
|
|
2404
|
-
const
|
|
2405
|
-
|
|
2403
|
+
setup(n) {
|
|
2404
|
+
const s = n, a = () => {
|
|
2405
|
+
s.content ? (navigator.clipboard.writeText(s.content), Ge.success("复制成功")) : Ge.warning("没有内容可复制");
|
|
2406
2406
|
};
|
|
2407
2407
|
return (t, r) => (m(), Y("div", {
|
|
2408
2408
|
class: "g-cell-toopTip",
|
|
2409
|
-
style: qe({ width:
|
|
2409
|
+
style: qe({ width: s.column.width + "px" })
|
|
2410
2410
|
}, [
|
|
2411
|
-
X("div",
|
|
2411
|
+
X("div", fa, [
|
|
2412
2412
|
r[0] || (r[0] = X("span", { class: "title-text" }, "内容", -1)),
|
|
2413
2413
|
X("span", {
|
|
2414
2414
|
class: "copy-btn",
|
|
2415
2415
|
onClick: a,
|
|
2416
2416
|
title: "复制内容"
|
|
2417
2417
|
}, [
|
|
2418
|
-
K(
|
|
2418
|
+
K(P(ml))
|
|
2419
2419
|
])
|
|
2420
2420
|
]),
|
|
2421
|
-
X("div",
|
|
2421
|
+
X("div", ca, De(s.content), 1)
|
|
2422
2422
|
], 4));
|
|
2423
2423
|
}
|
|
2424
2424
|
}, ma = /* @__PURE__ */ Ze(va, [["__scopeId", "data-v-f28912da"]]);
|
|
2425
2425
|
var jt = { exports: {} }, Nt = { exports: {} };
|
|
2426
2426
|
(function() {
|
|
2427
|
-
var
|
|
2427
|
+
var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = {
|
|
2428
2428
|
// Bit-wise rotation left
|
|
2429
2429
|
rotl: function(a, t) {
|
|
2430
2430
|
return a << t | a >>> 32 - t;
|
|
@@ -2436,9 +2436,9 @@ var jt = { exports: {} }, Nt = { exports: {} };
|
|
|
2436
2436
|
// Swap big-endian to little-endian and vice versa
|
|
2437
2437
|
endian: function(a) {
|
|
2438
2438
|
if (a.constructor == Number)
|
|
2439
|
-
return
|
|
2439
|
+
return s.rotl(a, 8) & 16711935 | s.rotl(a, 24) & 4278255360;
|
|
2440
2440
|
for (var t = 0; t < a.length; t++)
|
|
2441
|
-
a[t] =
|
|
2441
|
+
a[t] = s.endian(a[t]);
|
|
2442
2442
|
return a;
|
|
2443
2443
|
},
|
|
2444
2444
|
// Generate an array of any length of random bytes
|
|
@@ -2475,44 +2475,44 @@ var jt = { exports: {} }, Nt = { exports: {} };
|
|
|
2475
2475
|
bytesToBase64: function(a) {
|
|
2476
2476
|
for (var t = [], r = 0; r < a.length; r += 3)
|
|
2477
2477
|
for (var e = a[r] << 16 | a[r + 1] << 8 | a[r + 2], p = 0; p < 4; p++)
|
|
2478
|
-
r * 8 + p * 6 <= a.length * 8 ? t.push(
|
|
2478
|
+
r * 8 + p * 6 <= a.length * 8 ? t.push(n.charAt(e >>> 6 * (3 - p) & 63)) : t.push("=");
|
|
2479
2479
|
return t.join("");
|
|
2480
2480
|
},
|
|
2481
2481
|
// Convert a base-64 string to a byte array
|
|
2482
2482
|
base64ToBytes: function(a) {
|
|
2483
2483
|
a = a.replace(/[^A-Z0-9+\/]/ig, "");
|
|
2484
2484
|
for (var t = [], r = 0, e = 0; r < a.length; e = ++r % 4)
|
|
2485
|
-
e != 0 && t.push((
|
|
2485
|
+
e != 0 && t.push((n.indexOf(a.charAt(r - 1)) & Math.pow(2, -2 * e + 8) - 1) << e * 2 | n.indexOf(a.charAt(r)) >>> 6 - e * 2);
|
|
2486
2486
|
return t;
|
|
2487
2487
|
}
|
|
2488
2488
|
};
|
|
2489
|
-
Nt.exports =
|
|
2489
|
+
Nt.exports = s;
|
|
2490
2490
|
})();
|
|
2491
2491
|
var pa = Nt.exports, Ct = {
|
|
2492
2492
|
// UTF-8 encoding
|
|
2493
2493
|
utf8: {
|
|
2494
2494
|
// Convert a string to a byte array
|
|
2495
|
-
stringToBytes: function(
|
|
2496
|
-
return Ct.bin.stringToBytes(unescape(encodeURIComponent(
|
|
2495
|
+
stringToBytes: function(n) {
|
|
2496
|
+
return Ct.bin.stringToBytes(unescape(encodeURIComponent(n)));
|
|
2497
2497
|
},
|
|
2498
2498
|
// Convert a byte array to a string
|
|
2499
|
-
bytesToString: function(
|
|
2500
|
-
return decodeURIComponent(escape(Ct.bin.bytesToString(
|
|
2499
|
+
bytesToString: function(n) {
|
|
2500
|
+
return decodeURIComponent(escape(Ct.bin.bytesToString(n)));
|
|
2501
2501
|
}
|
|
2502
2502
|
},
|
|
2503
2503
|
// Binary encoding
|
|
2504
2504
|
bin: {
|
|
2505
2505
|
// Convert a string to a byte array
|
|
2506
|
-
stringToBytes: function(
|
|
2507
|
-
for (var
|
|
2508
|
-
|
|
2509
|
-
return
|
|
2506
|
+
stringToBytes: function(n) {
|
|
2507
|
+
for (var s = [], a = 0; a < n.length; a++)
|
|
2508
|
+
s.push(n.charCodeAt(a) & 255);
|
|
2509
|
+
return s;
|
|
2510
2510
|
},
|
|
2511
2511
|
// Convert a byte array to a string
|
|
2512
|
-
bytesToString: function(
|
|
2513
|
-
for (var
|
|
2514
|
-
|
|
2515
|
-
return
|
|
2512
|
+
bytesToString: function(n) {
|
|
2513
|
+
for (var s = [], a = 0; a < n.length; a++)
|
|
2514
|
+
s.push(String.fromCharCode(n[a]));
|
|
2515
|
+
return s.join("");
|
|
2516
2516
|
}
|
|
2517
2517
|
}
|
|
2518
2518
|
}, Vt = Ct;
|
|
@@ -2522,44 +2522,44 @@ var pa = Nt.exports, Ct = {
|
|
|
2522
2522
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
2523
2523
|
* @license MIT
|
|
2524
2524
|
*/
|
|
2525
|
-
var ha = function(
|
|
2526
|
-
return
|
|
2525
|
+
var ha = function(n) {
|
|
2526
|
+
return n != null && (Wt(n) || ya(n) || !!n._isBuffer);
|
|
2527
2527
|
};
|
|
2528
|
-
function Wt(
|
|
2529
|
-
return !!
|
|
2528
|
+
function Wt(n) {
|
|
2529
|
+
return !!n.constructor && typeof n.constructor.isBuffer == "function" && n.constructor.isBuffer(n);
|
|
2530
2530
|
}
|
|
2531
|
-
function ya(
|
|
2532
|
-
return typeof
|
|
2531
|
+
function ya(n) {
|
|
2532
|
+
return typeof n.readFloatLE == "function" && typeof n.slice == "function" && Wt(n.slice(0, 0));
|
|
2533
2533
|
}
|
|
2534
2534
|
(function() {
|
|
2535
|
-
var
|
|
2536
|
-
e.constructor == String ? p && p.encoding === "binary" ? e = t.stringToBytes(e) : e =
|
|
2537
|
-
for (var
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
for (var A = r._ff,
|
|
2541
|
-
var
|
|
2542
|
-
d = A(d, v,
|
|
2535
|
+
var n = pa, s = Vt.utf8, a = ha, t = Vt.bin, r = function(e, p) {
|
|
2536
|
+
e.constructor == String ? p && p.encoding === "binary" ? e = t.stringToBytes(e) : e = s.stringToBytes(e) : a(e) ? e = Array.prototype.slice.call(e, 0) : !Array.isArray(e) && e.constructor !== Uint8Array && (e = e.toString());
|
|
2537
|
+
for (var c = n.bytesToWords(e), T = e.length * 8, d = 1732584193, v = -271733879, u = -1732584194, f = 271733878, w = 0; w < c.length; w++)
|
|
2538
|
+
c[w] = (c[w] << 8 | c[w] >>> 24) & 16711935 | (c[w] << 24 | c[w] >>> 8) & 4278255360;
|
|
2539
|
+
c[T >>> 5] |= 128 << T % 32, c[(T + 64 >>> 9 << 4) + 14] = T;
|
|
2540
|
+
for (var A = r._ff, N = r._gg, j = r._hh, B = r._ii, w = 0; w < c.length; w += 16) {
|
|
2541
|
+
var ce = d, ue = v, Ce = u, fe = f;
|
|
2542
|
+
d = A(d, v, u, f, c[w + 0], 7, -680876936), f = A(f, d, v, u, c[w + 1], 12, -389564586), u = A(u, f, d, v, c[w + 2], 17, 606105819), v = A(v, u, f, d, c[w + 3], 22, -1044525330), d = A(d, v, u, f, c[w + 4], 7, -176418897), f = A(f, d, v, u, c[w + 5], 12, 1200080426), u = A(u, f, d, v, c[w + 6], 17, -1473231341), v = A(v, u, f, d, c[w + 7], 22, -45705983), d = A(d, v, u, f, c[w + 8], 7, 1770035416), f = A(f, d, v, u, c[w + 9], 12, -1958414417), u = A(u, f, d, v, c[w + 10], 17, -42063), v = A(v, u, f, d, c[w + 11], 22, -1990404162), d = A(d, v, u, f, c[w + 12], 7, 1804603682), f = A(f, d, v, u, c[w + 13], 12, -40341101), u = A(u, f, d, v, c[w + 14], 17, -1502002290), v = A(v, u, f, d, c[w + 15], 22, 1236535329), d = N(d, v, u, f, c[w + 1], 5, -165796510), f = N(f, d, v, u, c[w + 6], 9, -1069501632), u = N(u, f, d, v, c[w + 11], 14, 643717713), v = N(v, u, f, d, c[w + 0], 20, -373897302), d = N(d, v, u, f, c[w + 5], 5, -701558691), f = N(f, d, v, u, c[w + 10], 9, 38016083), u = N(u, f, d, v, c[w + 15], 14, -660478335), v = N(v, u, f, d, c[w + 4], 20, -405537848), d = N(d, v, u, f, c[w + 9], 5, 568446438), f = N(f, d, v, u, c[w + 14], 9, -1019803690), u = N(u, f, d, v, c[w + 3], 14, -187363961), v = N(v, u, f, d, c[w + 8], 20, 1163531501), d = N(d, v, u, f, c[w + 13], 5, -1444681467), f = N(f, d, v, u, c[w + 2], 9, -51403784), u = N(u, f, d, v, c[w + 7], 14, 1735328473), v = N(v, u, f, d, c[w + 12], 20, -1926607734), d = j(d, v, u, f, c[w + 5], 4, -378558), f = j(f, d, v, u, c[w + 8], 11, -2022574463), u = j(u, f, d, v, c[w + 11], 16, 1839030562), v = j(v, u, f, d, c[w + 14], 23, -35309556), d = j(d, v, u, f, c[w + 1], 4, -1530992060), f = j(f, d, v, u, c[w + 4], 11, 1272893353), u = j(u, f, d, v, c[w + 7], 16, -155497632), v = j(v, u, f, d, c[w + 10], 23, -1094730640), d = j(d, v, u, f, c[w + 13], 4, 681279174), f = j(f, d, v, u, c[w + 0], 11, -358537222), u = j(u, f, d, v, c[w + 3], 16, -722521979), v = j(v, u, f, d, c[w + 6], 23, 76029189), d = j(d, v, u, f, c[w + 9], 4, -640364487), f = j(f, d, v, u, c[w + 12], 11, -421815835), u = j(u, f, d, v, c[w + 15], 16, 530742520), v = j(v, u, f, d, c[w + 2], 23, -995338651), d = B(d, v, u, f, c[w + 0], 6, -198630844), f = B(f, d, v, u, c[w + 7], 10, 1126891415), u = B(u, f, d, v, c[w + 14], 15, -1416354905), v = B(v, u, f, d, c[w + 5], 21, -57434055), d = B(d, v, u, f, c[w + 12], 6, 1700485571), f = B(f, d, v, u, c[w + 3], 10, -1894986606), u = B(u, f, d, v, c[w + 10], 15, -1051523), v = B(v, u, f, d, c[w + 1], 21, -2054922799), d = B(d, v, u, f, c[w + 8], 6, 1873313359), f = B(f, d, v, u, c[w + 15], 10, -30611744), u = B(u, f, d, v, c[w + 6], 15, -1560198380), v = B(v, u, f, d, c[w + 13], 21, 1309151649), d = B(d, v, u, f, c[w + 4], 6, -145523070), f = B(f, d, v, u, c[w + 11], 10, -1120210379), u = B(u, f, d, v, c[w + 2], 15, 718787259), v = B(v, u, f, d, c[w + 9], 21, -343485551), d = d + ce >>> 0, v = v + ue >>> 0, u = u + Ce >>> 0, f = f + fe >>> 0;
|
|
2543
2543
|
}
|
|
2544
|
-
return
|
|
2544
|
+
return n.endian([d, v, u, f]);
|
|
2545
2545
|
};
|
|
2546
|
-
r._ff = function(e, p,
|
|
2547
|
-
var
|
|
2548
|
-
return (
|
|
2549
|
-
}, r._gg = function(e, p,
|
|
2550
|
-
var
|
|
2551
|
-
return (
|
|
2552
|
-
}, r._hh = function(e, p,
|
|
2553
|
-
var
|
|
2554
|
-
return (
|
|
2555
|
-
}, r._ii = function(e, p,
|
|
2556
|
-
var
|
|
2557
|
-
return (
|
|
2546
|
+
r._ff = function(e, p, c, T, d, v, u) {
|
|
2547
|
+
var f = e + (p & c | ~p & T) + (d >>> 0) + u;
|
|
2548
|
+
return (f << v | f >>> 32 - v) + p;
|
|
2549
|
+
}, r._gg = function(e, p, c, T, d, v, u) {
|
|
2550
|
+
var f = e + (p & T | c & ~T) + (d >>> 0) + u;
|
|
2551
|
+
return (f << v | f >>> 32 - v) + p;
|
|
2552
|
+
}, r._hh = function(e, p, c, T, d, v, u) {
|
|
2553
|
+
var f = e + (p ^ c ^ T) + (d >>> 0) + u;
|
|
2554
|
+
return (f << v | f >>> 32 - v) + p;
|
|
2555
|
+
}, r._ii = function(e, p, c, T, d, v, u) {
|
|
2556
|
+
var f = e + (c ^ (p | ~T)) + (d >>> 0) + u;
|
|
2557
|
+
return (f << v | f >>> 32 - v) + p;
|
|
2558
2558
|
}, r._blocksize = 16, r._digestsize = 16, jt.exports = function(e, p) {
|
|
2559
2559
|
if (e == null)
|
|
2560
2560
|
throw new Error("Illegal argument " + e);
|
|
2561
|
-
var
|
|
2562
|
-
return p && p.asBytes ?
|
|
2561
|
+
var c = n.wordsToBytes(r(e, p));
|
|
2562
|
+
return p && p.asBytes ? c : p && p.asString ? t.bytesToString(c) : n.bytesToHex(c);
|
|
2563
2563
|
};
|
|
2564
2564
|
})();
|
|
2565
2565
|
var ga = jt.exports;
|
|
@@ -2587,11 +2587,11 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2587
2587
|
"download",
|
|
2588
2588
|
"row-save"
|
|
2589
2589
|
], ["update:modelValue"]),
|
|
2590
|
-
setup(
|
|
2591
|
-
var ut, st, it, dt,
|
|
2592
|
-
const t = re(""), r = a, e = Qe(
|
|
2593
|
-
|
|
2594
|
-
const
|
|
2590
|
+
setup(n, { expose: s, emit: a }) {
|
|
2591
|
+
var ut, st, it, dt, ft, ct, vt;
|
|
2592
|
+
const t = re(""), r = a, e = Qe(n, "modelValue"), p = Tt("options"), c = re({}), T = re(null), d = re(null), v = Object.entries(e.value).filter(([l, o]) => (o == null ? void 0 : o.search) !== void 0).map(([l, o]) => [l, o.value]);
|
|
2593
|
+
c.value = Object.fromEntries(v);
|
|
2594
|
+
const u = re(!1), f = [
|
|
2595
2595
|
"type",
|
|
2596
2596
|
"index",
|
|
2597
2597
|
"label",
|
|
@@ -2620,7 +2620,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2620
2620
|
"filter-multiple",
|
|
2621
2621
|
"filter-method",
|
|
2622
2622
|
"filtered-value"
|
|
2623
|
-
], w = re([]), A = Ft(),
|
|
2623
|
+
], w = re([]), A = Ft(), N = re({}), j = re([]), B = re(null), ce = re(""), ue = re("/"), Ce = re({
|
|
2624
2624
|
autoWatch: !1,
|
|
2625
2625
|
data: [],
|
|
2626
2626
|
border: !0,
|
|
@@ -2630,13 +2630,13 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2630
2630
|
type: "hidden",
|
|
2631
2631
|
load: async () => {
|
|
2632
2632
|
e.value.table.page.pageSize = await aa(ue.value);
|
|
2633
|
-
let { currentPage: l, pageSize:
|
|
2633
|
+
let { currentPage: l, pageSize: o } = e.value.table.page;
|
|
2634
2634
|
try {
|
|
2635
2635
|
r(
|
|
2636
2636
|
"load",
|
|
2637
|
-
{ currentPage: l, pageSize:
|
|
2637
|
+
{ currentPage: l, pageSize: o, ...c.value },
|
|
2638
2638
|
(h = [], $ = 0, { fields: x = [], sums: U = {} } = {}) => {
|
|
2639
|
-
var
|
|
2639
|
+
var z;
|
|
2640
2640
|
if (!Array.isArray(h)) {
|
|
2641
2641
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ge.error("数据加载失败,请检查数据格式。");
|
|
2642
2642
|
return;
|
|
@@ -2645,7 +2645,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2645
2645
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ge.error("数据加载失败,请检查数据格式。");
|
|
2646
2646
|
return;
|
|
2647
2647
|
}
|
|
2648
|
-
e.value.table.data = h, ((
|
|
2648
|
+
e.value.table.data = h, ((z = e.value.control) == null ? void 0 : z.add(B.value, e).inline) === !0 && e.value.table.data.unshift(B.value), e.value.table.page.total = $, j.value = x, N.value = U, we(), ce.value = Math.random().toString(36).substring(2);
|
|
2649
2649
|
},
|
|
2650
2650
|
B.value
|
|
2651
2651
|
);
|
|
@@ -2653,11 +2653,11 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2653
2653
|
console.error("触发 load 事件时出现错误:", h), Ge.error("数据加载时出现错误,请稍后重试。");
|
|
2654
2654
|
}
|
|
2655
2655
|
},
|
|
2656
|
-
onHeaderDragend: (l,
|
|
2656
|
+
onHeaderDragend: (l, o, h) => {
|
|
2657
2657
|
Jl(ue.value, h.property, l);
|
|
2658
2658
|
},
|
|
2659
|
-
onRowDblclick: (l,
|
|
2660
|
-
e.value.table.dblclickType == "edit" ? b(l,
|
|
2659
|
+
onRowDblclick: (l, o, h) => {
|
|
2660
|
+
e.value.table.dblclickType == "edit" ? b(l, o, h, e) : e.value.table.dblclickType == "view" ? V(l, o, h, e) : e.value.table.dblclickType == "delete" ? i(l, o, h, e) : e.value.table.dblclickType(l, o, h, e);
|
|
2661
2661
|
},
|
|
2662
2662
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2663
2663
|
page: {
|
|
@@ -2683,8 +2683,8 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2683
2683
|
}
|
|
2684
2684
|
},
|
|
2685
2685
|
dblclickType: "edit",
|
|
2686
|
-
"summary-method": ({ columns: l, data:
|
|
2687
|
-
onSortChange: ({ column: l, prop:
|
|
2686
|
+
"summary-method": ({ columns: l, data: o }, h) => h,
|
|
2687
|
+
onSortChange: ({ column: l, prop: o, order: h }, $) => {
|
|
2688
2688
|
}
|
|
2689
2689
|
});
|
|
2690
2690
|
e.value.table = Ve(
|
|
@@ -2694,7 +2694,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2694
2694
|
A
|
|
2695
2695
|
// 继承父组件的属性
|
|
2696
2696
|
);
|
|
2697
|
-
const
|
|
2697
|
+
const fe = {
|
|
2698
2698
|
type: "control",
|
|
2699
2699
|
label: "操作",
|
|
2700
2700
|
align: "center",
|
|
@@ -2703,7 +2703,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2703
2703
|
fixed: "right",
|
|
2704
2704
|
style: { ...(st = (ut = e.value) == null ? void 0 : ut.control) == null ? void 0 : st.style },
|
|
2705
2705
|
validate: async (l) => await !0,
|
|
2706
|
-
view: (l,
|
|
2706
|
+
view: (l, o, h, $) => ({
|
|
2707
2707
|
label: "查看",
|
|
2708
2708
|
text: !0,
|
|
2709
2709
|
type: "success",
|
|
@@ -2714,7 +2714,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2714
2714
|
return !(((x = $ == null ? void 0 : $.control) == null ? void 0 : x.add(l, $).inline) === !0 && h === 0);
|
|
2715
2715
|
}
|
|
2716
2716
|
}),
|
|
2717
|
-
edit: (l,
|
|
2717
|
+
edit: (l, o, h, $) => ({
|
|
2718
2718
|
label: "编辑",
|
|
2719
2719
|
text: !0,
|
|
2720
2720
|
type: "primary",
|
|
@@ -2725,7 +2725,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2725
2725
|
return ((x = $ == null ? void 0 : $.control) == null ? void 0 : x.add(l, $).inline) !== !0;
|
|
2726
2726
|
}
|
|
2727
2727
|
}),
|
|
2728
|
-
delete: (l,
|
|
2728
|
+
delete: (l, o, h, $) => ({
|
|
2729
2729
|
text: !0,
|
|
2730
2730
|
label: "删除",
|
|
2731
2731
|
type: "danger",
|
|
@@ -2744,7 +2744,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2744
2744
|
}
|
|
2745
2745
|
}
|
|
2746
2746
|
}),
|
|
2747
|
-
save: (l,
|
|
2747
|
+
save: (l, o, h, $) => {
|
|
2748
2748
|
var x, U;
|
|
2749
2749
|
return {
|
|
2750
2750
|
label: ((x = $.control) == null ? void 0 : x.add(l, $).inline) !== !0 ? "保存" : h === 0 ? "新增" : "保存",
|
|
@@ -2753,12 +2753,12 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2753
2753
|
type: ((U = $.control) == null ? void 0 : U.add(l, $).inline) !== !0 || h === 0 ? "primary" : "success",
|
|
2754
2754
|
sort: -1,
|
|
2755
2755
|
auth: () => {
|
|
2756
|
-
var
|
|
2757
|
-
return ((
|
|
2756
|
+
var z;
|
|
2757
|
+
return ((z = $.control) == null ? void 0 : z.add(l, $).inline) === !0;
|
|
2758
2758
|
}
|
|
2759
2759
|
};
|
|
2760
2760
|
},
|
|
2761
|
-
add: (l,
|
|
2761
|
+
add: (l, o) => ({
|
|
2762
2762
|
label: "新增",
|
|
2763
2763
|
text: !1,
|
|
2764
2764
|
type: "primary",
|
|
@@ -2767,7 +2767,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2767
2767
|
icon: () => _e(yl),
|
|
2768
2768
|
auth: () => !0
|
|
2769
2769
|
}),
|
|
2770
|
-
download: (l) => ({
|
|
2770
|
+
download: (l, o) => ({
|
|
2771
2771
|
label: "下载",
|
|
2772
2772
|
text: !1,
|
|
2773
2773
|
type: "primary",
|
|
@@ -2776,7 +2776,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2776
2776
|
excelLabel: "下载EXCEL",
|
|
2777
2777
|
auth: () => !0
|
|
2778
2778
|
}),
|
|
2779
|
-
setting: (l) => ({
|
|
2779
|
+
setting: (l, o) => ({
|
|
2780
2780
|
label: "设置列",
|
|
2781
2781
|
text: !1,
|
|
2782
2782
|
type: "primary",
|
|
@@ -2784,7 +2784,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2784
2784
|
icon: () => _e(gl),
|
|
2785
2785
|
auth: () => !0
|
|
2786
2786
|
}),
|
|
2787
|
-
dropdown: (l,
|
|
2787
|
+
dropdown: (l, o, h, $) => ({
|
|
2788
2788
|
label: "编辑",
|
|
2789
2789
|
operate: "edit",
|
|
2790
2790
|
"split-button": !0,
|
|
@@ -2793,44 +2793,44 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2793
2793
|
auth: () => !($.control.add(l, $).inline === !0 && h == 0),
|
|
2794
2794
|
onClick: () => {
|
|
2795
2795
|
var U;
|
|
2796
|
-
let x = (U = ye(l,
|
|
2797
|
-
x === "edit" ? b(l,
|
|
2796
|
+
let x = (U = ye(l, o, h, $)) == null ? void 0 : U.operate;
|
|
2797
|
+
x === "edit" ? b(l, o, h, $) : x === "delete" ? i(l, o, h, $) : x === "view" && V(l, o, h, $);
|
|
2798
2798
|
},
|
|
2799
2799
|
"button-props": { round: !0, plain: !0 }
|
|
2800
2800
|
})
|
|
2801
2801
|
};
|
|
2802
2802
|
e.value.control = Ve(
|
|
2803
|
-
|
|
2803
|
+
fe,
|
|
2804
2804
|
p == null ? void 0 : p.control,
|
|
2805
2805
|
(it = e.value) == null ? void 0 : it.control
|
|
2806
2806
|
);
|
|
2807
|
-
const ie = (l,
|
|
2808
|
-
const h = e.value.control[l], $ =
|
|
2807
|
+
const ie = (l, o = !0) => {
|
|
2808
|
+
const h = e.value.control[l], $ = o ? (x, U, z, me) => {
|
|
2809
2809
|
var Re, He, Je;
|
|
2810
|
-
if (!x || !U ||
|
|
2810
|
+
if (!x || !U || z == null)
|
|
2811
2811
|
return console.warn(`merge${l.charAt(0).toUpperCase() + l.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
2812
|
-
const ke = ((Re =
|
|
2812
|
+
const ke = ((Re = fe[l]) == null ? void 0 : Re.call(fe, x, U, z, me)) || {}, Ae = ((Je = (He = p == null ? void 0 : p.control) == null ? void 0 : He[l]) == null ? void 0 : Je.call(He, x, U, z, me)) || {}, Be = (h == null ? void 0 : h(x, U, z, me)) || {};
|
|
2813
2813
|
return Ve(ke, Ae, Be) || {};
|
|
2814
2814
|
} : (x, U) => {
|
|
2815
2815
|
var Ae, Be, Re;
|
|
2816
|
-
const
|
|
2817
|
-
return Ve(
|
|
2816
|
+
const z = ((Ae = fe[l]) == null ? void 0 : Ae.call(fe, x, U)) || {}, me = ((Re = (Be = p == null ? void 0 : p.control) == null ? void 0 : Be[l]) == null ? void 0 : Re.call(Be, x, U)) || {}, ke = (h == null ? void 0 : h(x, U)) || {};
|
|
2817
|
+
return Ve(z, me, ke) || {};
|
|
2818
2818
|
};
|
|
2819
2819
|
e.value.control[l] = $;
|
|
2820
2820
|
};
|
|
2821
2821
|
ie("edit"), ie("delete"), ie("view"), ie("save"), ie("add", !1), ie("download", !1), ie("setting", !1);
|
|
2822
|
-
const ye = (l,
|
|
2822
|
+
const ye = (l, o, h, $) => {
|
|
2823
2823
|
var me, ke, Ae, Be, Re, He;
|
|
2824
|
-
if (!l || !
|
|
2824
|
+
if (!l || !o || h == null)
|
|
2825
2825
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2826
|
-
const x = ((me =
|
|
2827
|
-
return Ve(x, U,
|
|
2826
|
+
const x = ((me = fe.dropdown) == null ? void 0 : me.call(fe, l, o, h, $)) || {}, U = ((Ae = (ke = p == null ? void 0 : p.control) == null ? void 0 : ke.dropdown) == null ? void 0 : Ae.call(ke, l, o, h, $)) || {}, z = ((He = (Re = (Be = e.value) == null ? void 0 : Be.control) == null ? void 0 : Re.dropdown) == null ? void 0 : He.call(Re, l, o, h, $)) || {};
|
|
2827
|
+
return Ve(x, U, z) || {};
|
|
2828
2828
|
}, Fe = {
|
|
2829
2829
|
type: "hidden",
|
|
2830
2830
|
"min-width": 100,
|
|
2831
2831
|
align: "center",
|
|
2832
|
-
formatter: (l,
|
|
2833
|
-
"tooltip-formatter": ({ row: l, column:
|
|
2832
|
+
formatter: (l, o, h, $) => h,
|
|
2833
|
+
"tooltip-formatter": ({ row: l, column: o, cellValue: h }) => _e(ma, { content: h, column: o })
|
|
2834
2834
|
};
|
|
2835
2835
|
e.value.tableColumns = Ve(
|
|
2836
2836
|
Fe,
|
|
@@ -2839,7 +2839,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2839
2839
|
), e.value.form = Ve(
|
|
2840
2840
|
Pt,
|
|
2841
2841
|
p == null ? void 0 : p.form,
|
|
2842
|
-
(
|
|
2842
|
+
(ft = e.value) == null ? void 0 : ft.form
|
|
2843
2843
|
);
|
|
2844
2844
|
const oe = {
|
|
2845
2845
|
type: "hidden",
|
|
@@ -2851,7 +2851,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2851
2851
|
e.value.formItems = Ve(
|
|
2852
2852
|
oe,
|
|
2853
2853
|
p == null ? void 0 : p.formItems,
|
|
2854
|
-
(
|
|
2854
|
+
(ct = e == null ? void 0 : e.value) == null ? void 0 : ct.formItems
|
|
2855
2855
|
);
|
|
2856
2856
|
const se = {
|
|
2857
2857
|
title: "编辑",
|
|
@@ -2879,11 +2879,11 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2879
2879
|
p == null ? void 0 : p.dialog,
|
|
2880
2880
|
(vt = e.value) == null ? void 0 : vt.dialog
|
|
2881
2881
|
);
|
|
2882
|
-
const ne = (l,
|
|
2883
|
-
let h =
|
|
2884
|
-
if (l.decimals && !isNaN(parseFloat(
|
|
2882
|
+
const ne = (l, o) => {
|
|
2883
|
+
let h = o;
|
|
2884
|
+
if (l.decimals && !isNaN(parseFloat(o)) && (typeof l.decimals == "number" ? h = parseFloat(h).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? h = parseFloat(h).toFixed(l.decimals.num) : h = parseFloat(
|
|
2885
2885
|
parseFloat(h).toFixed(l.decimals.num)
|
|
2886
|
-
).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Et(
|
|
2886
|
+
).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Et(o).isValid()) {
|
|
2887
2887
|
const x = {
|
|
2888
2888
|
date: "YYYY-MM-DD",
|
|
2889
2889
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
@@ -2895,49 +2895,49 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2895
2895
|
parseFloat(h)
|
|
2896
2896
|
)}">${Na(parseFloat(h))}</span>`), l.prefix && h && (h = `<span>${l.prefix}${h}</span>`), l.suffix && h && (h = `${h}<span>${l.suffix}</span>`), h;
|
|
2897
2897
|
}, Ue = (l) => {
|
|
2898
|
-
|
|
2898
|
+
c.value = Object.fromEntries(v), e.value.table.load();
|
|
2899
2899
|
}, M = (l) => {
|
|
2900
|
-
|
|
2901
|
-
}, _ = async (l,
|
|
2900
|
+
c.value = l, e.value.table.load();
|
|
2901
|
+
}, _ = async (l, o) => {
|
|
2902
2902
|
var h, $;
|
|
2903
2903
|
e.value.form.modalState = "add", t.value = "add";
|
|
2904
2904
|
try {
|
|
2905
|
-
if (!await ((h = e.value.control) == null ? void 0 : h.validate("add", { row: B.value, m:
|
|
2905
|
+
if (!await ((h = e.value.control) == null ? void 0 : h.validate("add", { row: B.value, m: o }))) return;
|
|
2906
2906
|
} catch (x) {
|
|
2907
2907
|
console.error("验证失败:", x);
|
|
2908
2908
|
return;
|
|
2909
2909
|
}
|
|
2910
|
-
($ = e.value.control.add(l,
|
|
2910
|
+
($ = e.value.control.add(l, o)) != null && $.click ? e.value.control.add(l, o).click(B.value, o) : e.value.control.add(l, o).inline === !0 ? (e.value.table.data.unshift(B.value), r("open", "row-add", { row: B.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add(l, o).mode, e.value.dialog.title = e.value.control.add(l, o).title || e.value.control.add(l, o).label || "新增", Object.keys(B.value).forEach((x) => {
|
|
2911
2911
|
e.value[x] && (e.value[x].value = B.value[x]);
|
|
2912
|
-
}),
|
|
2913
|
-
}, b = async (l,
|
|
2912
|
+
}), u.value = !0, r("open", "add", { row: B.value, m: o }), gt());
|
|
2913
|
+
}, b = async (l, o, h, $) => {
|
|
2914
2914
|
var x, U;
|
|
2915
2915
|
e.value.form.modalState = "edit", t.value = "edit";
|
|
2916
2916
|
try {
|
|
2917
|
-
if (!await ((x = e.value.control) == null ? void 0 : x.validate("edit", { row: l, column:
|
|
2918
|
-
} catch (
|
|
2919
|
-
console.error("验证失败:",
|
|
2917
|
+
if (!await ((x = e.value.control) == null ? void 0 : x.validate("edit", { row: l, column: o, index: h, m: $ }))) return;
|
|
2918
|
+
} catch (z) {
|
|
2919
|
+
console.error("验证失败:", z);
|
|
2920
2920
|
return;
|
|
2921
2921
|
}
|
|
2922
|
-
(U = e.value.control.edit(l,
|
|
2923
|
-
e.value[
|
|
2924
|
-
}),
|
|
2925
|
-
},
|
|
2922
|
+
(U = e.value.control.edit(l, o, h, $)) != null && U.click ? e.value.control.edit(l, o, h, $).click(l, o, h, $) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(l, o, h, $).mode, e.value.dialog.title = e.value.control.edit(l, o, h, $).title || e.value.control.edit(l, o, h, $).label || "编辑", Object.keys(l).forEach((z) => {
|
|
2923
|
+
e.value[z] && (e.value[z].value = l[z]);
|
|
2924
|
+
}), u.value = !0, r("open", "edit", { m: $, row: l, column: o, index: h }), gt());
|
|
2925
|
+
}, i = async (l, o, h, $) => {
|
|
2926
2926
|
var x, U;
|
|
2927
2927
|
try {
|
|
2928
|
-
if (!await ((x = e.value.control) == null ? void 0 : x.validate("delete", { row: l, column:
|
|
2929
|
-
} catch (
|
|
2930
|
-
console.error("验证失败:",
|
|
2928
|
+
if (!await ((x = e.value.control) == null ? void 0 : x.validate("delete", { row: l, column: o, index: h, m: $ }))) return;
|
|
2929
|
+
} catch (z) {
|
|
2930
|
+
console.error("验证失败:", z);
|
|
2931
2931
|
return;
|
|
2932
2932
|
}
|
|
2933
|
-
if ((U = e.value.control.delete(l,
|
|
2934
|
-
e.value.control.delete(l,
|
|
2933
|
+
if ((U = e.value.control.delete(l, o, h, $)) != null && U.click)
|
|
2934
|
+
e.value.control.delete(l, o, h, $).click(l, o, h, $);
|
|
2935
2935
|
else {
|
|
2936
|
-
let { message:
|
|
2937
|
-
At.confirm(
|
|
2936
|
+
let { message: z, title: me, options: ke } = e.value.control.delete(l, o, h, $).dialog;
|
|
2937
|
+
At.confirm(z, me, ke).then(() => {
|
|
2938
2938
|
r(
|
|
2939
2939
|
"delete",
|
|
2940
|
-
{ row: l, column:
|
|
2940
|
+
{ row: l, column: o, index: h, m: $ },
|
|
2941
2941
|
(Ae = !0, Be = !1) => {
|
|
2942
2942
|
Ae && (e.value.table.data.splice(h, 1), e.value.table.page.total--), Be && e.value.table.load();
|
|
2943
2943
|
}
|
|
@@ -2945,25 +2945,25 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2945
2945
|
}).catch(() => {
|
|
2946
2946
|
});
|
|
2947
2947
|
}
|
|
2948
|
-
}, V = async (l,
|
|
2948
|
+
}, V = async (l, o, h, $) => {
|
|
2949
2949
|
var x, U;
|
|
2950
2950
|
e.value.form.modalState = void 0, t.value = "view";
|
|
2951
2951
|
try {
|
|
2952
|
-
if (!await ((x = e.value.control) == null ? void 0 : x.validate("view", { row: l, column:
|
|
2953
|
-
} catch (
|
|
2954
|
-
console.error("验证失败:",
|
|
2952
|
+
if (!await ((x = e.value.control) == null ? void 0 : x.validate("view", { row: l, column: o, index: h, m: $ }))) return;
|
|
2953
|
+
} catch (z) {
|
|
2954
|
+
console.error("验证失败:", z);
|
|
2955
2955
|
return;
|
|
2956
2956
|
}
|
|
2957
|
-
(U = e.value.control.view(l,
|
|
2958
|
-
e.value[
|
|
2959
|
-
}),
|
|
2960
|
-
}, k = (l,
|
|
2957
|
+
(U = e.value.control.view(l, o, h, $)) != null && U.click ? e.value.control.view(l, o, h, $).click(l, o, h, $) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(l, o, h, $).mode, e.value.dialog.title = e.value.control.view(l, o, h, $).title || e.value.control.view(l, o, h, $).label || "查看", Object.keys(l).forEach((z) => {
|
|
2958
|
+
e.value[z] && (e.value[z].value = l[z]);
|
|
2959
|
+
}), u.value = !0, r("open", "view", { m: $, row: l, column: o, index: h }), gt());
|
|
2960
|
+
}, k = (l, o, h, $) => {
|
|
2961
2961
|
var x;
|
|
2962
|
-
(x = e.value.control.save(l,
|
|
2962
|
+
(x = e.value.control.save(l, o, h, $)) != null && x.click ? e.value.control.save(l, o, h, $).click(l, o, h, $) : r(
|
|
2963
2963
|
"row-save",
|
|
2964
|
-
{ row: l, column:
|
|
2965
|
-
(U = !0,
|
|
2966
|
-
U && e.value.table.load(),
|
|
2964
|
+
{ row: l, column: o, index: h, data: e.value.table.data },
|
|
2965
|
+
(U = !0, z = !0) => {
|
|
2966
|
+
U && e.value.table.load(), z && at(() => {
|
|
2967
2967
|
B.value = Object.assign(
|
|
2968
2968
|
{},
|
|
2969
2969
|
Object.fromEntries(
|
|
@@ -2975,58 +2975,58 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2975
2975
|
});
|
|
2976
2976
|
}
|
|
2977
2977
|
);
|
|
2978
|
-
}, C = (l,
|
|
2979
|
-
r("submit", e.value.form.modalState, l,
|
|
2980
|
-
$ && (h === 1 && (
|
|
2978
|
+
}, C = (l, o, h) => {
|
|
2979
|
+
r("submit", e.value.form.modalState, l, o, ($) => {
|
|
2980
|
+
$ && (h === 1 && (u.value = !1), Object.keys(B.value).forEach((x) => {
|
|
2981
2981
|
l[x] = B.value[x];
|
|
2982
|
-
}),
|
|
2982
|
+
}), o.table.load());
|
|
2983
2983
|
});
|
|
2984
2984
|
}, R = (l) => {
|
|
2985
2985
|
r("reset", l);
|
|
2986
|
-
}, Q = (l,
|
|
2987
|
-
var
|
|
2988
|
-
if ((
|
|
2989
|
-
|
|
2986
|
+
}, Q = (l, o, h) => {
|
|
2987
|
+
var $;
|
|
2988
|
+
if (($ = o.control.download(l, o)) != null && $.click)
|
|
2989
|
+
o.control.download(l, o).click(l, o, h);
|
|
2990
2990
|
else {
|
|
2991
|
-
let
|
|
2991
|
+
let x = St(
|
|
2992
2992
|
{
|
|
2993
|
-
title:
|
|
2994
|
-
size:
|
|
2995
|
-
width:
|
|
2993
|
+
title: o.control.download(l, o).title || o.control.download(l, o).label || "下载",
|
|
2994
|
+
size: o.control.download(l, o).size || 480,
|
|
2995
|
+
width: o.control.download(l, o).width || 600,
|
|
2996
2996
|
slots: {
|
|
2997
2997
|
default: () => _e(Xl, {
|
|
2998
|
-
items:
|
|
2999
|
-
commitText:
|
|
3000
|
-
onExcel: (
|
|
3001
|
-
r("download",
|
|
2998
|
+
items: h,
|
|
2999
|
+
commitText: o.control.download(l, o).excelLabel,
|
|
3000
|
+
onExcel: (U, z) => {
|
|
3001
|
+
r("download", U, c.value, z), x();
|
|
3002
3002
|
}
|
|
3003
3003
|
})
|
|
3004
3004
|
}
|
|
3005
3005
|
},
|
|
3006
|
-
|
|
3006
|
+
o.control.download(l, o).mode
|
|
3007
3007
|
);
|
|
3008
3008
|
}
|
|
3009
|
-
}, te = (l) => {
|
|
3010
|
-
var
|
|
3011
|
-
(
|
|
3009
|
+
}, te = (l, o) => {
|
|
3010
|
+
var h;
|
|
3011
|
+
(h = o.control.setting(l, o)) != null && h.click ? o.control.setting(l, o).click(l, o) : St(
|
|
3012
3012
|
{
|
|
3013
|
-
title:
|
|
3014
|
-
size:
|
|
3015
|
-
width:
|
|
3013
|
+
title: o.control.setting(l, o).title || o.control.setting(l, o).label || "设置",
|
|
3014
|
+
size: o.control.setting(l, o).size || 470,
|
|
3015
|
+
width: o.control.setting(l, o).width || 600,
|
|
3016
3016
|
slots: {
|
|
3017
3017
|
default: () => _e(da, {
|
|
3018
|
-
modelValue:
|
|
3018
|
+
modelValue: o,
|
|
3019
3019
|
tuid: ue.value,
|
|
3020
3020
|
onSettingDragEnd: async () => {
|
|
3021
3021
|
await Te(ue.value);
|
|
3022
3022
|
},
|
|
3023
|
-
onSelectAll: async (
|
|
3023
|
+
onSelectAll: async ($) => {
|
|
3024
3024
|
await Te(ue.value);
|
|
3025
3025
|
}
|
|
3026
3026
|
})
|
|
3027
3027
|
}
|
|
3028
3028
|
},
|
|
3029
|
-
|
|
3029
|
+
o.control.setting(l, o).mode
|
|
3030
3030
|
);
|
|
3031
3031
|
}, ee = e.value.control, E = [
|
|
3032
3032
|
{ type: "add", func: _ },
|
|
@@ -3034,66 +3034,66 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3034
3034
|
{ type: "setting", func: te },
|
|
3035
3035
|
{ type: "view", func: V },
|
|
3036
3036
|
{ type: "edit", func: b },
|
|
3037
|
-
{ type: "delete", func:
|
|
3037
|
+
{ type: "delete", func: i },
|
|
3038
3038
|
{ type: "save", func: k }
|
|
3039
|
-
], g = (l,
|
|
3039
|
+
], g = (l, o, h, $, x) => E.filter((U) => l.includes(U.type)).map(({ type: U, func: z }) => {
|
|
3040
3040
|
var me, ke, Ae;
|
|
3041
3041
|
return {
|
|
3042
3042
|
name: `control-${U}`,
|
|
3043
|
-
attr: ee == null ? void 0 : ee[U](
|
|
3044
|
-
func:
|
|
3045
|
-
label: (me = ee == null ? void 0 : ee[U](
|
|
3046
|
-
sort: ((ke = ee == null ? void 0 : ee[U](
|
|
3047
|
-
groupName: ((Ae = ee == null ? void 0 : ee[U](
|
|
3043
|
+
attr: ee == null ? void 0 : ee[U](o, h, $, x),
|
|
3044
|
+
func: z,
|
|
3045
|
+
label: (me = ee == null ? void 0 : ee[U](o, h, $, x)) == null ? void 0 : me.label,
|
|
3046
|
+
sort: ((ke = ee == null ? void 0 : ee[U](o, h, $, x)) == null ? void 0 : ke.sort) || 0,
|
|
3047
|
+
groupName: ((Ae = ee == null ? void 0 : ee[U](o, h, $, x)) == null ? void 0 : Ae.groupName) || "default"
|
|
3048
3048
|
};
|
|
3049
|
-
}).sort((U,
|
|
3050
|
-
const me =
|
|
3051
|
-
return U[me] || (U[me] = []), U[me].push(
|
|
3049
|
+
}).sort((U, z) => U.sort - z.sort), le = (l, o, h, $, x) => g(l, o, h, $, x).reduce((U, z) => {
|
|
3050
|
+
const me = z.groupName || "default";
|
|
3051
|
+
return U[me] || (U[me] = []), U[me].push(z), U;
|
|
3052
3052
|
}, {}), be = Ke(
|
|
3053
3053
|
() => Object.fromEntries(
|
|
3054
|
-
Object.entries(e.value).filter(([l,
|
|
3054
|
+
Object.entries(e.value).filter(([l, o]) => o.type !== "hidden").filter(([l, o]) => o.hidden !== !0).filter(([l, o]) => o.visible !== !1).filter(([l, o]) => o.showCol !== !1).map(([l, o]) => (o.sort = typeof o.sort == "number" ? o.sort : 0, [l, o])).sort((l, o) => l[1].sort - o[1].sort)
|
|
3055
3055
|
)
|
|
3056
|
-
), pe = re({}), $e = (l,
|
|
3056
|
+
), pe = re({}), $e = (l, o) => {
|
|
3057
3057
|
const h = ($, x) => {
|
|
3058
3058
|
for (const U of $) {
|
|
3059
3059
|
if (U.value == x) return U.label;
|
|
3060
3060
|
if (U.children) {
|
|
3061
|
-
const
|
|
3062
|
-
if (
|
|
3061
|
+
const z = h(U.children, x);
|
|
3062
|
+
if (z) return z;
|
|
3063
3063
|
}
|
|
3064
3064
|
}
|
|
3065
3065
|
return null;
|
|
3066
3066
|
};
|
|
3067
3067
|
if (l.getDicts) {
|
|
3068
|
-
const $ =
|
|
3069
|
-
return pe.value[$] ? (l.options = pe.value[$], l.formatter || (l.formatter = (x, U,
|
|
3070
|
-
pe.value[$] = x, l.options = x, l.formatter || (l.formatter = (U,
|
|
3068
|
+
const $ = o.toString();
|
|
3069
|
+
return pe.value[$] ? (l.options = pe.value[$], l.formatter || (l.formatter = (x, U, z, me) => l.options && h(l.options, z) || z), Promise.resolve()) : l.getDicts(e.value.table.data).then((x) => {
|
|
3070
|
+
pe.value[$] = x, l.options = x, l.formatter || (l.formatter = (U, z, me, ke) => l.options && h(l.options, me) || me);
|
|
3071
3071
|
});
|
|
3072
3072
|
}
|
|
3073
3073
|
return Promise.resolve();
|
|
3074
3074
|
}, we = () => {
|
|
3075
3075
|
const l = [];
|
|
3076
|
-
Object.keys(e.value).forEach((
|
|
3077
|
-
if (e.value[
|
|
3078
|
-
const h = $e(e.value[
|
|
3076
|
+
Object.keys(e.value).forEach((o) => {
|
|
3077
|
+
if (e.value[o].getDicts) {
|
|
3078
|
+
const h = $e(e.value[o], o).then(() => {
|
|
3079
3079
|
e.value.table.data.forEach(($) => {
|
|
3080
3080
|
var x;
|
|
3081
|
-
if (e.value[
|
|
3082
|
-
const U = $[
|
|
3083
|
-
$[
|
|
3081
|
+
if (e.value[o].getDicts && ((x = e.value[o]) == null ? void 0 : x.forceString) !== !1) {
|
|
3082
|
+
const U = $[o];
|
|
3083
|
+
$[o] = U != null ? U.toString() : U;
|
|
3084
3084
|
}
|
|
3085
3085
|
});
|
|
3086
3086
|
}).catch(($) => {
|
|
3087
|
-
console.error(`加载字典${
|
|
3087
|
+
console.error(`加载字典${o}出错:`, $);
|
|
3088
3088
|
});
|
|
3089
3089
|
l.push(h);
|
|
3090
3090
|
}
|
|
3091
|
-
}), Promise.all(l).catch((
|
|
3092
|
-
console.error("字典加载过程中发生错误:",
|
|
3091
|
+
}), Promise.all(l).catch((o) => {
|
|
3092
|
+
console.error("字典加载过程中发生错误:", o);
|
|
3093
3093
|
});
|
|
3094
|
-
}, Ee = (l,
|
|
3094
|
+
}, Ee = (l, o, h, $) => {
|
|
3095
3095
|
var x, U;
|
|
3096
|
-
return l.table ? (x = l.table(
|
|
3096
|
+
return l.table ? (x = l.table(o, h, $)) != null && x.auth ? (U = l.table(o, h, $)) == null ? void 0 : U.auth(o, h, $) : !0 : !1;
|
|
3097
3097
|
}, xe = () => {
|
|
3098
3098
|
if (e.value.dialog.mode == "drawer")
|
|
3099
3099
|
d.value.handleClose();
|
|
@@ -3101,17 +3101,17 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3101
3101
|
try {
|
|
3102
3102
|
T.value.handleClose();
|
|
3103
3103
|
} catch {
|
|
3104
|
-
|
|
3104
|
+
u.value = !1;
|
|
3105
3105
|
}
|
|
3106
3106
|
else
|
|
3107
|
-
|
|
3107
|
+
u.value = !1;
|
|
3108
3108
|
};
|
|
3109
3109
|
ol(() => {
|
|
3110
3110
|
e.value.table.autoWatch && e.value.table.load();
|
|
3111
3111
|
});
|
|
3112
3112
|
const Te = async () => {
|
|
3113
3113
|
try {
|
|
3114
|
-
const [l,
|
|
3114
|
+
const [l, o, h] = await Promise.all([
|
|
3115
3115
|
Kl(ue.value),
|
|
3116
3116
|
oa(ue.value),
|
|
3117
3117
|
ea(ue.value)
|
|
@@ -3119,7 +3119,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3119
3119
|
l && Array.isArray(l) && l.forEach(($) => {
|
|
3120
3120
|
const x = e.value[$.key];
|
|
3121
3121
|
x && (x.width = $.width);
|
|
3122
|
-
}),
|
|
3122
|
+
}), o && Array.isArray(o) && o.forEach(($, x) => {
|
|
3123
3123
|
const U = e.value[$];
|
|
3124
3124
|
U && (U.sort = x);
|
|
3125
3125
|
}), h && Array.isArray(h) && h.length > 0 ? h.forEach(($) => {
|
|
@@ -3136,41 +3136,41 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3136
3136
|
ue.value = Le();
|
|
3137
3137
|
}), nt(async () => {
|
|
3138
3138
|
w.value = Object.entries(e.value).filter(
|
|
3139
|
-
([l,
|
|
3140
|
-
).map(([l,
|
|
3139
|
+
([l, o]) => o.type !== "hidden" && o.type !== "control" && o.visible !== !1
|
|
3140
|
+
).map(([l, o]) => ({
|
|
3141
3141
|
key: l || "",
|
|
3142
|
-
label:
|
|
3142
|
+
label: o.label,
|
|
3143
3143
|
value: !0
|
|
3144
3144
|
}));
|
|
3145
3145
|
try {
|
|
3146
3146
|
await at();
|
|
3147
3147
|
const l = Object.entries(e.value).filter(
|
|
3148
|
-
([
|
|
3148
|
+
([o, h]) => h.type !== "control" && h.editor !== !1 && h.type !== "hidden"
|
|
3149
3149
|
);
|
|
3150
3150
|
B.value = Object.fromEntries(
|
|
3151
|
-
l.map(([
|
|
3151
|
+
l.map(([o, h]) => [o, h.value])
|
|
3152
3152
|
), await Te();
|
|
3153
3153
|
} catch (l) {
|
|
3154
3154
|
console.error("Error during component initialization:", l);
|
|
3155
3155
|
}
|
|
3156
3156
|
e.value.table.autoWatch || e.value.table.load();
|
|
3157
|
-
}),
|
|
3157
|
+
}), s({ addRow: _, editRow: b, deleteRow: i, readForm: V, saveRowData: k, closeDialog: xe }), (l, o) => {
|
|
3158
3158
|
var He, Je, lt, rt, ot;
|
|
3159
|
-
const h = L("el-icon"), $ = L("el-dialog"), x = L("el-drawer"), U = L("el-button-group"),
|
|
3159
|
+
const h = L("el-icon"), $ = L("el-dialog"), x = L("el-drawer"), U = L("el-button-group"), z = L("el-dropdown-item"), me = L("el-dropdown-menu"), ke = L("el-dropdown"), Ae = L("el-table-column"), Be = L("el-table"), Re = L("el-pagination");
|
|
3160
3160
|
return m(), Y(Z, null, [
|
|
3161
|
-
e.value.dialog.mode == "dialog" &&
|
|
3161
|
+
e.value.dialog.mode == "dialog" && u.value ? (m(), Y("div", $a, [
|
|
3162
3162
|
K($, I(
|
|
3163
3163
|
{
|
|
3164
3164
|
ref_key: "dialogRef",
|
|
3165
3165
|
ref: T,
|
|
3166
3166
|
id: "dialogRef",
|
|
3167
|
-
modelValue:
|
|
3168
|
-
"onUpdate:modelValue":
|
|
3167
|
+
modelValue: u.value,
|
|
3168
|
+
"onUpdate:modelValue": o[3] || (o[3] = (H) => u.value = H),
|
|
3169
3169
|
fullscreen: e.value.dialog.fullScreen
|
|
3170
3170
|
},
|
|
3171
|
-
|
|
3171
|
+
P(Ie)(e.value.dialog, (H) => !["size", "max", "min"].includes(H)),
|
|
3172
3172
|
{
|
|
3173
|
-
width:
|
|
3173
|
+
width: P(Xt)(e.value.dialog.width) + 35
|
|
3174
3174
|
}
|
|
3175
3175
|
), {
|
|
3176
3176
|
header: D(() => {
|
|
@@ -3185,7 +3185,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3185
3185
|
((de = (H = e.value) == null ? void 0 : H.dialog) == null ? void 0 : de.fullScreen) === !1 ? (m(), Y("div", {
|
|
3186
3186
|
key: 0,
|
|
3187
3187
|
style: qe((ae = (G = (F = e.value) == null ? void 0 : F.dialog) == null ? void 0 : G.max) == null ? void 0 : ae.style),
|
|
3188
|
-
onClick:
|
|
3188
|
+
onClick: o[0] || (o[0] = (q) => e.value.dialog.fullScreen = !0),
|
|
3189
3189
|
class: "max"
|
|
3190
3190
|
}, [
|
|
3191
3191
|
K(h, null, {
|
|
@@ -3201,7 +3201,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3201
3201
|
((Ne = (je = e.value) == null ? void 0 : je.dialog) == null ? void 0 : Ne.fullScreen) === !0 ? (m(), Y("div", {
|
|
3202
3202
|
key: 1,
|
|
3203
3203
|
style: qe((J = (y = (ze = e.value) == null ? void 0 : ze.dialog) == null ? void 0 : y.min) == null ? void 0 : J.style),
|
|
3204
|
-
onClick:
|
|
3204
|
+
onClick: o[1] || (o[1] = (q) => e.value.dialog.fullScreen = !1),
|
|
3205
3205
|
class: "max"
|
|
3206
3206
|
}, [
|
|
3207
3207
|
K(h, null, {
|
|
@@ -3222,7 +3222,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3222
3222
|
S(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
3223
3223
|
K(kt, {
|
|
3224
3224
|
modelValue: e.value,
|
|
3225
|
-
"onUpdate:modelValue":
|
|
3225
|
+
"onUpdate:modelValue": o[2] || (o[2] = (H) => e.value = H),
|
|
3226
3226
|
onSubmit: C,
|
|
3227
3227
|
onReset: R,
|
|
3228
3228
|
flag: t.value
|
|
@@ -3240,13 +3240,13 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3240
3240
|
_: 3
|
|
3241
3241
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
3242
3242
|
])) : ge("", !0),
|
|
3243
|
-
e.value.dialog.mode == "drawer" &&
|
|
3243
|
+
e.value.dialog.mode == "drawer" && u.value ? (m(), Y("div", ka, [
|
|
3244
3244
|
K(x, I({
|
|
3245
3245
|
ref_key: "drawerRef",
|
|
3246
3246
|
ref: d,
|
|
3247
|
-
modelValue:
|
|
3248
|
-
"onUpdate:modelValue":
|
|
3249
|
-
},
|
|
3247
|
+
modelValue: u.value,
|
|
3248
|
+
"onUpdate:modelValue": o[5] || (o[5] = (H) => u.value = H)
|
|
3249
|
+
}, P(Ie)(e.value.dialog, (H) => !["width"].includes(H))), {
|
|
3250
3250
|
header: D(() => [
|
|
3251
3251
|
X("div", Ca, [
|
|
3252
3252
|
X("div", Da, [
|
|
@@ -3260,7 +3260,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3260
3260
|
S(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3261
3261
|
K(kt, {
|
|
3262
3262
|
modelValue: e.value,
|
|
3263
|
-
"onUpdate:modelValue":
|
|
3263
|
+
"onUpdate:modelValue": o[4] || (o[4] = (H) => e.value = H),
|
|
3264
3264
|
onSubmit: C,
|
|
3265
3265
|
onReset: R,
|
|
3266
3266
|
flag: t.value
|
|
@@ -3282,9 +3282,9 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3282
3282
|
S(l.$slots, "query", {}, () => [
|
|
3283
3283
|
K(Ll, {
|
|
3284
3284
|
modelValue: e.value,
|
|
3285
|
-
"onUpdate:modelValue":
|
|
3286
|
-
info:
|
|
3287
|
-
"onUpdate:info":
|
|
3285
|
+
"onUpdate:modelValue": o[6] || (o[6] = (H) => e.value = H),
|
|
3286
|
+
info: c.value,
|
|
3287
|
+
"onUpdate:info": o[7] || (o[7] = (H) => c.value = H),
|
|
3288
3288
|
onQuery: M,
|
|
3289
3289
|
onReset: Ue
|
|
3290
3290
|
}, he({
|
|
@@ -3294,7 +3294,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3294
3294
|
de == "default" ? (m(!0), Y(Z, { key: 0 }, W(H, (F) => (m(), Y(Z, null, [
|
|
3295
3295
|
S(l.$slots, F.name + "-left", {}, void 0, !0),
|
|
3296
3296
|
(F.name === "control-add" ? F.attr.auth() && F.attr.inline === !1 : F.attr.auth()) ? S(l.$slots, F.name, { key: 0 }, () => [
|
|
3297
|
-
F.label ? (m(), O(
|
|
3297
|
+
F.label ? (m(), O(P(Oe), I({
|
|
3298
3298
|
key: 0,
|
|
3299
3299
|
title: F.label,
|
|
3300
3300
|
ref_for: !0
|
|
@@ -3305,7 +3305,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3305
3305
|
Ye(De(F.label), 1)
|
|
3306
3306
|
]),
|
|
3307
3307
|
_: 2
|
|
3308
|
-
}, 1040, ["title", "onClick"])) : (m(), O(
|
|
3308
|
+
}, 1040, ["title", "onClick"])) : (m(), O(P(Oe), I({
|
|
3309
3309
|
key: 1,
|
|
3310
3310
|
title: F.label,
|
|
3311
3311
|
ref_for: !0
|
|
@@ -3319,7 +3319,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3319
3319
|
(m(!0), Y(Z, null, W(H, (F) => (m(), Y(Z, null, [
|
|
3320
3320
|
S(l.$slots, F.name + "-left", {}, void 0, !0),
|
|
3321
3321
|
(F.name === "control-add" ? F.attr.auth() && F.attr.inline === !1 : F.attr.auth()) ? S(l.$slots, F.name, { key: 0 }, () => [
|
|
3322
|
-
F.label ? (m(), O(
|
|
3322
|
+
F.label ? (m(), O(P(Oe), I({
|
|
3323
3323
|
key: 0,
|
|
3324
3324
|
title: F.label,
|
|
3325
3325
|
ref_for: !0
|
|
@@ -3330,7 +3330,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3330
3330
|
Ye(De(F.label), 1)
|
|
3331
3331
|
]),
|
|
3332
3332
|
_: 2
|
|
3333
|
-
}, 1040, ["title", "onClick"])) : (m(), O(
|
|
3333
|
+
}, 1040, ["title", "onClick"])) : (m(), O(P(Oe), I({
|
|
3334
3334
|
key: 1,
|
|
3335
3335
|
title: F.label,
|
|
3336
3336
|
ref_for: !0
|
|
@@ -3360,15 +3360,15 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3360
3360
|
X("div", Ta, [
|
|
3361
3361
|
K(Be, I({
|
|
3362
3362
|
...l.$attrs,
|
|
3363
|
-
...
|
|
3363
|
+
...P(Ie)(
|
|
3364
3364
|
e.value.table,
|
|
3365
3365
|
(H) => !["dblclickType", "page"].includes(H)
|
|
3366
3366
|
)
|
|
3367
3367
|
}, {
|
|
3368
|
-
"summary-method": (H) => e.value.table["summary-method"](H, { fields:
|
|
3369
|
-
onSortChange:
|
|
3368
|
+
"summary-method": (H) => e.value.table["summary-method"](H, { fields: j.value, sums: N.value }),
|
|
3369
|
+
onSortChange: o[8] || (o[8] = (H) => {
|
|
3370
3370
|
var de, F;
|
|
3371
|
-
e.value.table.onSortChange(H,
|
|
3371
|
+
e.value.table.onSortChange(H, c.value), ((de = H == null ? void 0 : H.column) == null ? void 0 : de.sortable) === "custom" && ((F = e.value.table) == null || F.load());
|
|
3372
3372
|
})
|
|
3373
3373
|
}), {
|
|
3374
3374
|
append: D(() => [
|
|
@@ -3385,7 +3385,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3385
3385
|
ref_for: !0
|
|
3386
3386
|
}, {
|
|
3387
3387
|
...e.value.tableColumns,
|
|
3388
|
-
...
|
|
3388
|
+
...P(Ie)(H, (F) => f.includes(F))
|
|
3389
3389
|
}), he({
|
|
3390
3390
|
header: D(({ column: F, $index: G }) => [
|
|
3391
3391
|
de == "control" ? S(l.$slots, `${de}-header`, {
|
|
@@ -3445,7 +3445,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3445
3445
|
column: G,
|
|
3446
3446
|
index: ae
|
|
3447
3447
|
}, () => [
|
|
3448
|
-
q.label ? (m(), O(
|
|
3448
|
+
q.label ? (m(), O(P(Oe), I({
|
|
3449
3449
|
key: 0,
|
|
3450
3450
|
title: q.label,
|
|
3451
3451
|
ref_for: !0
|
|
@@ -3456,7 +3456,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3456
3456
|
Ye(De(q.label), 1)
|
|
3457
3457
|
]),
|
|
3458
3458
|
_: 2
|
|
3459
|
-
}, 1040, ["title", "onClick"])) : (m(), O(
|
|
3459
|
+
}, 1040, ["title", "onClick"])) : (m(), O(P(Oe), I({
|
|
3460
3460
|
key: 1,
|
|
3461
3461
|
title: q.label,
|
|
3462
3462
|
ref_for: !0
|
|
@@ -3485,7 +3485,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3485
3485
|
column: G,
|
|
3486
3486
|
index: ae
|
|
3487
3487
|
}, void 0, !0) : ge("", !0),
|
|
3488
|
-
q.attr.auth() ? (m(), O(
|
|
3488
|
+
q.attr.auth() ? (m(), O(z, I({
|
|
3489
3489
|
key: 1,
|
|
3490
3490
|
ref_for: !0
|
|
3491
3491
|
}, {
|
|
@@ -3499,7 +3499,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3499
3499
|
column: G,
|
|
3500
3500
|
index: ae
|
|
3501
3501
|
}, () => [
|
|
3502
|
-
q.label ? (m(), O(
|
|
3502
|
+
q.label ? (m(), O(P(Oe), I({
|
|
3503
3503
|
key: 0,
|
|
3504
3504
|
title: q.label,
|
|
3505
3505
|
ref_for: !0
|
|
@@ -3510,7 +3510,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3510
3510
|
Ye(De(q.label), 1)
|
|
3511
3511
|
]),
|
|
3512
3512
|
_: 2
|
|
3513
|
-
}, 1040, ["title", "onClick"])) : (m(), O(
|
|
3513
|
+
}, 1040, ["title", "onClick"])) : (m(), O(P(Oe), I({
|
|
3514
3514
|
key: 1,
|
|
3515
3515
|
title: q.label,
|
|
3516
3516
|
ref_for: !0
|
|
@@ -3554,7 +3554,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3554
3554
|
column: G,
|
|
3555
3555
|
index: ae
|
|
3556
3556
|
}, () => [
|
|
3557
|
-
q.label ? (m(), O(
|
|
3557
|
+
q.label ? (m(), O(P(Oe), I({
|
|
3558
3558
|
key: 0,
|
|
3559
3559
|
title: q.label,
|
|
3560
3560
|
ref_for: !0
|
|
@@ -3565,7 +3565,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3565
3565
|
Ye(De(q.label), 1)
|
|
3566
3566
|
]),
|
|
3567
3567
|
_: 2
|
|
3568
|
-
}, 1040, ["title", "onClick"])) : (m(), O(
|
|
3568
|
+
}, 1040, ["title", "onClick"])) : (m(), O(P(Oe), I({
|
|
3569
3569
|
key: 1,
|
|
3570
3570
|
title: q.label,
|
|
3571
3571
|
ref_for: !0
|
|
@@ -3610,7 +3610,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3610
3610
|
"onUpdate:modelValue": (Ne) => F[de] = Ne,
|
|
3611
3611
|
item: H == null ? void 0 : H.table(F, G, ae),
|
|
3612
3612
|
ctrlKey: de,
|
|
3613
|
-
key: `${de}-${ae} -${
|
|
3613
|
+
key: `${de}-${ae} -${ce.value}`,
|
|
3614
3614
|
ctrlType: (je = H.table(F, G, ae)) != null && je.type ? H.table(F, G, ae).type : H.type,
|
|
3615
3615
|
model: e.value,
|
|
3616
3616
|
class: "g-ctrl-container",
|
|
@@ -3654,9 +3654,9 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3654
3654
|
(ot = (rt = (lt = e.value) == null ? void 0 : lt.table) == null ? void 0 : rt.page) != null && ot.hidden ? ge("", !0) : S(l.$slots, "page", { key: 0 }, () => [
|
|
3655
3655
|
K(Re, I({
|
|
3656
3656
|
"page-size": e.value.table.page.pageSize,
|
|
3657
|
-
"onUpdate:pageSize":
|
|
3657
|
+
"onUpdate:pageSize": o[9] || (o[9] = (H) => e.value.table.page.pageSize = H),
|
|
3658
3658
|
"current-page": e.value.table.page.currentPage,
|
|
3659
|
-
"onUpdate:currentPage":
|
|
3659
|
+
"onUpdate:currentPage": o[10] || (o[10] = (H) => e.value.table.page.currentPage = H)
|
|
3660
3660
|
}, e.value.table.page), {
|
|
3661
3661
|
default: D(() => [
|
|
3662
3662
|
S(l.$slots, "table-page", {}, void 0, !0)
|
|
@@ -3669,7 +3669,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3669
3669
|
], 64);
|
|
3670
3670
|
};
|
|
3671
3671
|
}
|
|
3672
|
-
}), Va = /* @__PURE__ */ Ze(xa, [["__scopeId", "data-v-
|
|
3672
|
+
}), Va = /* @__PURE__ */ Ze(xa, [["__scopeId", "data-v-986b846f"]]), qa = { class: "g-tree-table" }, Aa = { class: "g-tree-container" }, Ba = { class: "g-tree-table-container" }, Oa = /* @__PURE__ */ Object.assign({
|
|
3673
3673
|
name: "g-tree-table",
|
|
3674
3674
|
inheritAttrs: !1
|
|
3675
3675
|
}, {
|
|
@@ -3679,24 +3679,24 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3679
3679
|
modelModifiers: {}
|
|
3680
3680
|
},
|
|
3681
3681
|
emits: /* @__PURE__ */ Xe(["load"], ["update:modelValue"]),
|
|
3682
|
-
setup(
|
|
3683
|
-
var w, A,
|
|
3684
|
-
const a =
|
|
3682
|
+
setup(n, { emit: s }) {
|
|
3683
|
+
var w, A, N, j;
|
|
3684
|
+
const a = s, t = Qe(n, "modelValue"), r = Ft(), e = re(
|
|
3685
3685
|
typeof ((w = r == null ? void 0 : r.tree) == null ? void 0 : w.width) == "number" ? `${r.tree.width}px` : ((A = r == null ? void 0 : r.tree) == null ? void 0 : A.width) || "180px"
|
|
3686
|
-
), p = re(((
|
|
3687
|
-
var Ce,
|
|
3686
|
+
), p = re(((N = r == null ? void 0 : r.tree) == null ? void 0 : N.search) === void 0 ? !0 : (j = r == null ? void 0 : r.tree) == null ? void 0 : j.search), c = re({}), T = re(""), d = re(null), v = (B, ce) => {
|
|
3687
|
+
var Ce, fe;
|
|
3688
3688
|
if (!B) return !0;
|
|
3689
|
-
const ue = ((
|
|
3690
|
-
return
|
|
3691
|
-
},
|
|
3692
|
-
a("load",
|
|
3693
|
-
},
|
|
3694
|
-
|
|
3689
|
+
const ue = ((fe = (Ce = r.tree) == null ? void 0 : Ce.props) == null ? void 0 : fe.label) || "label";
|
|
3690
|
+
return ce[ue].includes(B);
|
|
3691
|
+
}, u = (B, ce) => {
|
|
3692
|
+
a("load", c.value, B, ce);
|
|
3693
|
+
}, f = (B) => {
|
|
3694
|
+
c.value = B, t.value.table.load();
|
|
3695
3695
|
};
|
|
3696
3696
|
return ul(T, (B) => {
|
|
3697
3697
|
d.value.filter(B);
|
|
3698
|
-
}), (B,
|
|
3699
|
-
const ue = L("el-input"), Ce = L("el-tree"),
|
|
3698
|
+
}), (B, ce) => {
|
|
3699
|
+
const ue = L("el-input"), Ce = L("el-tree"), fe = L("g-table");
|
|
3700
3700
|
return m(), Y("div", qa, [
|
|
3701
3701
|
X("div", {
|
|
3702
3702
|
class: "g-tree-left",
|
|
@@ -3705,7 +3705,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3705
3705
|
p.value ? (m(), O(ue, {
|
|
3706
3706
|
key: 0,
|
|
3707
3707
|
modelValue: T.value,
|
|
3708
|
-
"onUpdate:modelValue":
|
|
3708
|
+
"onUpdate:modelValue": ce[0] || (ce[0] = (ie) => T.value = ie),
|
|
3709
3709
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
3710
3710
|
placeholder: "输入节点查询",
|
|
3711
3711
|
clearable: ""
|
|
@@ -3717,7 +3717,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3717
3717
|
"expand-on-click-node": !1,
|
|
3718
3718
|
ref_key: "treeRef",
|
|
3719
3719
|
ref: d,
|
|
3720
|
-
onNodeClick:
|
|
3720
|
+
onNodeClick: f
|
|
3721
3721
|
}, B.$attrs.tree), he({
|
|
3722
3722
|
default: D(({ node: ie, data: ye }) => [
|
|
3723
3723
|
S(B.$slots, "tree", {
|
|
@@ -3739,10 +3739,10 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3739
3739
|
])
|
|
3740
3740
|
], 4),
|
|
3741
3741
|
X("div", Ba, [
|
|
3742
|
-
K(
|
|
3742
|
+
K(fe, I({
|
|
3743
3743
|
modelValue: t.value,
|
|
3744
|
-
"onUpdate:modelValue":
|
|
3745
|
-
}, B.$attrs, { onLoad:
|
|
3744
|
+
"onUpdate:modelValue": ce[1] || (ce[1] = (ie) => t.value = ie)
|
|
3745
|
+
}, B.$attrs, { onLoad: u }), he({ _: 2 }, [
|
|
3746
3746
|
W(B.$slots, (ie, ye, Fe) => ({
|
|
3747
3747
|
name: ye,
|
|
3748
3748
|
fn: D((oe) => [
|
|
@@ -3781,25 +3781,25 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3781
3781
|
default: ""
|
|
3782
3782
|
}
|
|
3783
3783
|
},
|
|
3784
|
-
setup(
|
|
3785
|
-
const
|
|
3786
|
-
return (a, t) =>
|
|
3787
|
-
(m(!0), Y(Z, null, W(
|
|
3784
|
+
setup(n) {
|
|
3785
|
+
const s = n;
|
|
3786
|
+
return (a, t) => s.title ? (m(), Y("div", Ua, [
|
|
3787
|
+
(m(!0), Y(Z, null, W(s.columns, (r) => (m(), Y("span", {
|
|
3788
3788
|
style: qe({ width: (r == null ? void 0 : r.width) || qt, ...r == null ? void 0 : r.titleStyle, textAlign: (r == null ? void 0 : r.align) || "center" }),
|
|
3789
3789
|
key: r.key
|
|
3790
3790
|
}, [
|
|
3791
|
-
S(a.$slots, `${
|
|
3791
|
+
S(a.$slots, `${n.t}-title-${r.key}`, { col: r }, () => [
|
|
3792
3792
|
Ye(De(r.label), 1)
|
|
3793
3793
|
], !0)
|
|
3794
3794
|
], 4))), 128))
|
|
3795
3795
|
])) : (m(), Y("div", Ya, [
|
|
3796
|
-
(m(!0), Y(Z, null, W(
|
|
3796
|
+
(m(!0), Y(Z, null, W(s.columns, (r) => (m(), Y("span", {
|
|
3797
3797
|
style: qe({ width: (r == null ? void 0 : r.width) || qt, textAlign: (r == null ? void 0 : r.align) || "center", ...r == null ? void 0 : r.style }),
|
|
3798
3798
|
key: r.key,
|
|
3799
|
-
title:
|
|
3799
|
+
title: n.data[r.key]
|
|
3800
3800
|
}, [
|
|
3801
|
-
S(a.$slots, `${
|
|
3802
|
-
Ye(De(
|
|
3801
|
+
S(a.$slots, `${n.t}-option-${r.key}`, { col: r }, () => [
|
|
3802
|
+
Ye(De(n.data[r.key] ?? "-"), 1)
|
|
3803
3803
|
], !0)
|
|
3804
3804
|
], 12, Ra))), 128))
|
|
3805
3805
|
]));
|
|
@@ -3807,18 +3807,18 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3807
3807
|
}), Ha = /* @__PURE__ */ Ze(La, [["__scopeId", "data-v-c0ac6b77"]]), za = Object.freeze({}), Gt = [Va, kt, Ia, Ha];
|
|
3808
3808
|
let Dt = {};
|
|
3809
3809
|
const tr = {
|
|
3810
|
-
install: (
|
|
3811
|
-
Dt = Object.freeze({ ...za, ...
|
|
3812
|
-
|
|
3813
|
-
}),
|
|
3810
|
+
install: (n, s = {}) => {
|
|
3811
|
+
Dt = Object.freeze({ ...za, ...s }), Gt.forEach((a) => {
|
|
3812
|
+
n.component(a.name, a);
|
|
3813
|
+
}), n.provide("options", Dt), n.config.globalProperties.$openModal = St;
|
|
3814
3814
|
}
|
|
3815
|
-
}, Pa = (
|
|
3815
|
+
}, Pa = (n) => ({ dialog: Zt, drawer: Jt })[n] || null, St = (n = {}, s = "dialog") => {
|
|
3816
3816
|
if (typeof document > "u") return () => {
|
|
3817
3817
|
};
|
|
3818
3818
|
const a = document.createElement("div");
|
|
3819
3819
|
let t = () => {
|
|
3820
3820
|
};
|
|
3821
|
-
const r = Pa(
|
|
3821
|
+
const r = Pa(s);
|
|
3822
3822
|
if (!r) return () => {
|
|
3823
3823
|
};
|
|
3824
3824
|
const e = re(!0), p = sl({
|
|
@@ -3828,7 +3828,7 @@ const tr = {
|
|
|
3828
3828
|
p.unmount(), a.remove();
|
|
3829
3829
|
}, 300);
|
|
3830
3830
|
}, () => {
|
|
3831
|
-
var
|
|
3831
|
+
var c, T, d;
|
|
3832
3832
|
return _e(r, {
|
|
3833
3833
|
modelValue: e.value,
|
|
3834
3834
|
"onUpdate:modelValue": (v) => e.value = v,
|
|
@@ -3838,11 +3838,11 @@ const tr = {
|
|
|
3838
3838
|
overflow: !0,
|
|
3839
3839
|
destroyOnClose: !0,
|
|
3840
3840
|
"close-on-click-modal": !1,
|
|
3841
|
-
...
|
|
3841
|
+
...n
|
|
3842
3842
|
}, {
|
|
3843
|
-
default: (
|
|
3844
|
-
header: (T =
|
|
3845
|
-
footer: (d =
|
|
3843
|
+
default: (c = n.slots) == null ? void 0 : c.default,
|
|
3844
|
+
header: (T = n.slots) == null ? void 0 : T.header,
|
|
3845
|
+
footer: (d = n.slots) == null ? void 0 : d.footer
|
|
3846
3846
|
});
|
|
3847
3847
|
};
|
|
3848
3848
|
},
|
|
@@ -3850,83 +3850,83 @@ const tr = {
|
|
|
3850
3850
|
gt();
|
|
3851
3851
|
}
|
|
3852
3852
|
});
|
|
3853
|
-
return Gt.forEach((
|
|
3854
|
-
p.component(
|
|
3853
|
+
return Gt.forEach((c) => {
|
|
3854
|
+
p.component(c.name, c);
|
|
3855
3855
|
}), p.provide("options", Dt), p.use(Qt, { locale: El }), document.body.appendChild(a), p.mount(a), t;
|
|
3856
3856
|
};
|
|
3857
|
-
function Xt(
|
|
3858
|
-
if (typeof
|
|
3859
|
-
return
|
|
3860
|
-
if (
|
|
3861
|
-
return parseFloat(
|
|
3857
|
+
function Xt(n, s = window.innerWidth) {
|
|
3858
|
+
if (typeof n == "number")
|
|
3859
|
+
return n;
|
|
3860
|
+
if (n.endsWith("px"))
|
|
3861
|
+
return parseFloat(n);
|
|
3862
3862
|
const a = window.innerHeight, t = window.innerWidth;
|
|
3863
|
-
if (
|
|
3864
|
-
return a * parseFloat(
|
|
3865
|
-
if (
|
|
3866
|
-
return t * parseFloat(
|
|
3867
|
-
if (
|
|
3868
|
-
if (typeof
|
|
3863
|
+
if (n.endsWith("vh"))
|
|
3864
|
+
return a * parseFloat(n) / 100;
|
|
3865
|
+
if (n.endsWith("vw"))
|
|
3866
|
+
return t * parseFloat(n) / 100;
|
|
3867
|
+
if (n.endsWith("%")) {
|
|
3868
|
+
if (typeof s != "number")
|
|
3869
3869
|
throw new Error("Reference size is required to convert % to px");
|
|
3870
|
-
return
|
|
3870
|
+
return s * parseFloat(n) / 100;
|
|
3871
3871
|
}
|
|
3872
|
-
if (
|
|
3873
|
-
let e = function(
|
|
3874
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
3875
|
-
return new Function("return " +
|
|
3872
|
+
if (n.startsWith("calc(") && n.endsWith(")")) {
|
|
3873
|
+
let e = function(c) {
|
|
3874
|
+
if (/[0-9+\-*/().\s]+$/.test(c))
|
|
3875
|
+
return new Function("return " + c)();
|
|
3876
3876
|
throw new Error("Invalid calc expression");
|
|
3877
3877
|
};
|
|
3878
|
-
const r =
|
|
3879
|
-
return e(r.replace(/([0-9.]+)([a-z%]+)/g, (
|
|
3878
|
+
const r = n.slice(5, -1).trim();
|
|
3879
|
+
return e(r.replace(/([0-9.]+)([a-z%]+)/g, (c, T, d) => Xt(T + d, s)));
|
|
3880
3880
|
}
|
|
3881
|
-
throw new Error("Unsupported unit in value: " +
|
|
3881
|
+
throw new Error("Unsupported unit in value: " + n);
|
|
3882
3882
|
}
|
|
3883
|
-
const Ve = (...
|
|
3884
|
-
const
|
|
3883
|
+
const Ve = (...n) => {
|
|
3884
|
+
const s = {}, a = (t, r) => (Object.keys(r).forEach((e) => {
|
|
3885
3885
|
t[e] = typeof r[e] == "object" && !Array.isArray(r[e]) ? a(t[e] || {}, r[e]) : r[e];
|
|
3886
3886
|
}), t);
|
|
3887
|
-
return
|
|
3887
|
+
return n.forEach((t = {}) => a(s, t)), s;
|
|
3888
3888
|
};
|
|
3889
|
-
function Ie(
|
|
3889
|
+
function Ie(n, s = (a, t) => s(a, t)) {
|
|
3890
3890
|
const a = {};
|
|
3891
|
-
for (const t in
|
|
3892
|
-
|
|
3891
|
+
for (const t in n)
|
|
3892
|
+
n.hasOwnProperty(t) && s(t, n[t]) && (a[t] = n[t]);
|
|
3893
3893
|
return a;
|
|
3894
3894
|
}
|
|
3895
|
-
function ja(
|
|
3896
|
-
for (const e of
|
|
3897
|
-
if (e[a] ===
|
|
3895
|
+
function ja(n, s, a = "value", t = "label", r = "children") {
|
|
3896
|
+
for (const e of n) {
|
|
3897
|
+
if (e[a] === s)
|
|
3898
3898
|
return e[t];
|
|
3899
3899
|
if (e[r] && e[r].length > 0) {
|
|
3900
|
-
const p = ja(e[r],
|
|
3900
|
+
const p = ja(e[r], s, a, t, r);
|
|
3901
3901
|
if (p)
|
|
3902
3902
|
return p;
|
|
3903
3903
|
}
|
|
3904
3904
|
}
|
|
3905
3905
|
return null;
|
|
3906
3906
|
}
|
|
3907
|
-
function Mt(
|
|
3908
|
-
if (!
|
|
3909
|
-
const
|
|
3907
|
+
function Mt(n) {
|
|
3908
|
+
if (!n || isNaN(n)) return "零";
|
|
3909
|
+
const s = ["角", "分"], a = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
|
|
3910
3910
|
["元", "万", "亿"],
|
|
3911
3911
|
["", "拾", "佰", "仟"]
|
|
3912
|
-
], r =
|
|
3913
|
-
|
|
3912
|
+
], r = n < 0 ? "欠" : "";
|
|
3913
|
+
n = Math.abs(n);
|
|
3914
3914
|
let e = "";
|
|
3915
|
-
for (let p = 0; p <
|
|
3916
|
-
e += (a[Math.floor(
|
|
3917
|
-
e = e || "整",
|
|
3918
|
-
for (let p = 0; p < t[0].length &&
|
|
3919
|
-
let
|
|
3920
|
-
for (let T = 0; T < t[1].length &&
|
|
3921
|
-
|
|
3922
|
-
e =
|
|
3915
|
+
for (let p = 0; p < s.length; p++)
|
|
3916
|
+
e += (a[Math.floor(n * 10 * Math.pow(10, p)) % 10] + s[p]).replace(/零./, "");
|
|
3917
|
+
e = e || "整", n = Math.floor(n);
|
|
3918
|
+
for (let p = 0; p < t[0].length && n > 0; p++) {
|
|
3919
|
+
let c = "";
|
|
3920
|
+
for (let T = 0; T < t[1].length && n > 0; T++)
|
|
3921
|
+
c = a[n % 10] + t[1][T] + c, n = Math.floor(n / 10);
|
|
3922
|
+
e = c.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][p] + e;
|
|
3923
3923
|
}
|
|
3924
3924
|
return r + e.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3925
3925
|
}
|
|
3926
|
-
function Na(
|
|
3927
|
-
if (typeof
|
|
3926
|
+
function Na(n) {
|
|
3927
|
+
if (typeof n != "number" || isNaN(n) || !isFinite(n))
|
|
3928
3928
|
return "0.00";
|
|
3929
|
-
const
|
|
3929
|
+
const s = n.toFixed(2), [a, t] = s.split(".");
|
|
3930
3930
|
return `${a.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${t}`;
|
|
3931
3931
|
}
|
|
3932
3932
|
const Se = {
|
|
@@ -3959,15 +3959,15 @@ const Se = {
|
|
|
3959
3959
|
TEL: "tel"
|
|
3960
3960
|
}, gt = () => {
|
|
3961
3961
|
at(() => {
|
|
3962
|
-
const
|
|
3963
|
-
if (!
|
|
3962
|
+
const n = document.querySelector(".el-dialog");
|
|
3963
|
+
if (!n || n.querySelector(".dialog-resize-handle"))
|
|
3964
3964
|
return;
|
|
3965
|
-
const
|
|
3966
|
-
|
|
3965
|
+
const s = Wa();
|
|
3966
|
+
n.appendChild(s), Ga(n), Xa(n, s);
|
|
3967
3967
|
});
|
|
3968
3968
|
}, Wa = () => {
|
|
3969
|
-
const
|
|
3970
|
-
return Object.assign(
|
|
3969
|
+
const n = document.createElement("div");
|
|
3970
|
+
return Object.assign(n.style, {
|
|
3971
3971
|
position: "absolute",
|
|
3972
3972
|
right: "0",
|
|
3973
3973
|
bottom: "0",
|
|
@@ -3976,27 +3976,27 @@ const Se = {
|
|
|
3976
3976
|
background: "transparent",
|
|
3977
3977
|
cursor: "nwse-resize",
|
|
3978
3978
|
zIndex: "999999999999"
|
|
3979
|
-
}),
|
|
3980
|
-
}, Ga = (
|
|
3981
|
-
Object.assign(
|
|
3979
|
+
}), n.className = "dialog-resize-handle", n;
|
|
3980
|
+
}, Ga = (n) => {
|
|
3981
|
+
Object.assign(n.style, {
|
|
3982
3982
|
transition: "none",
|
|
3983
3983
|
minWidth: "300px",
|
|
3984
3984
|
minHeight: "200px",
|
|
3985
3985
|
resize: "none"
|
|
3986
3986
|
// 防止与原生resize冲突
|
|
3987
3987
|
});
|
|
3988
|
-
}, Xa = (
|
|
3988
|
+
}, Xa = (n, s) => {
|
|
3989
3989
|
let a = !1, t, r, e, p;
|
|
3990
|
-
const
|
|
3991
|
-
v.preventDefault(), a = !0, t = v.clientX, r = v.clientY, e = parseInt(document.defaultView.getComputedStyle(
|
|
3990
|
+
const c = (v) => {
|
|
3991
|
+
v.preventDefault(), a = !0, t = v.clientX, r = v.clientY, e = parseInt(document.defaultView.getComputedStyle(n).width), p = parseInt(document.defaultView.getComputedStyle(n).height), document.addEventListener("mousemove", T), document.addEventListener("mouseup", d);
|
|
3992
3992
|
}, T = (v) => {
|
|
3993
3993
|
if (!a) return;
|
|
3994
|
-
const
|
|
3995
|
-
|
|
3994
|
+
const u = Math.max(300, e + v.clientX - t), f = Math.max(200, p + v.clientY - r);
|
|
3995
|
+
n.style.width = `${u}px`, n.style.height = `${f}px`;
|
|
3996
3996
|
}, d = () => {
|
|
3997
3997
|
a = !1, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", d);
|
|
3998
3998
|
};
|
|
3999
|
-
|
|
3999
|
+
s.addEventListener("mousedown", c);
|
|
4000
4000
|
};
|
|
4001
4001
|
export {
|
|
4002
4002
|
Se as CT,
|