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