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