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