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