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