vue-2024-ui 0.1.5 → 0.1.7
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 +1610 -1564
- 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 { Plus as
|
|
4
|
-
import
|
|
5
|
-
import { Dexie as
|
|
6
|
-
var
|
|
1
|
+
import It, { ElForm as ut, ElButtonGroup as nt, ElButton as ke, ElPopover as it, ElMessage as Se, ElMessageBox as Ft, ElDialog as Yt, ElDrawer as Ut } from "element-plus";
|
|
2
|
+
import { mergeModels as Ye, useModel as Ue, ref as te, nextTick as We, onMounted as et, computed as je, resolveComponent as Y, openBlock as i, createElementBlock as x, Fragment as W, createElementVNode as Q, createBlock as F, createCommentVNode as ce, unref as U, mergeProps as q, withCtx as y, renderSlot as h, renderList as R, createTextVNode as _e, toDisplayString as ve, createSlots as fe, createVNode as G, useSlots as Tt, inject as ht, useAttrs as yt, onUnmounted as Rt, normalizeStyle as Ie, withModifiers as Ct, normalizeProps as dt, guardReactiveProps as Dt, resolveDynamicComponent as Re, Transition as jt, withDirectives as Lt, vShow as Nt, h as Ae, onBeforeUnmount as Pt, normalizeClass as St, watchEffect as Ht, watch as zt, createApp as Wt } from "vue";
|
|
3
|
+
import { Plus as Xt, ZoomOut as Gt, Delete as Qt, FullScreen as Zt, Remove as Jt } from "@element-plus/icons-vue";
|
|
4
|
+
import qt from "sortablejs";
|
|
5
|
+
import { Dexie as Kt } from "dexie";
|
|
6
|
+
var el = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
9
9
|
breadcrumb: {
|
|
@@ -180,313 +180,313 @@ var Xt = {
|
|
|
180
180
|
indicator: "幻灯片切换至索引 {index}"
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
},
|
|
184
|
-
function
|
|
183
|
+
}, tl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
184
|
+
function ll(m) {
|
|
185
185
|
return m && m.__esModule && Object.prototype.hasOwnProperty.call(m, "default") ? m.default : m;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
188
|
-
(function(m,
|
|
189
|
-
(function(
|
|
187
|
+
var xt = { exports: {} };
|
|
188
|
+
(function(m, c) {
|
|
189
|
+
(function(u, t) {
|
|
190
190
|
m.exports = t();
|
|
191
|
-
})(
|
|
192
|
-
var
|
|
193
|
-
var
|
|
194
|
-
return "[" + p + (
|
|
195
|
-
} },
|
|
196
|
-
var
|
|
197
|
-
return !
|
|
198
|
-
},
|
|
199
|
-
var
|
|
200
|
-
return (
|
|
201
|
-
}, m: function p(
|
|
202
|
-
if (
|
|
203
|
-
var
|
|
204
|
-
return +(-(
|
|
191
|
+
})(tl, function() {
|
|
192
|
+
var u = 1e3, t = 6e4, e = 36e5, d = "millisecond", k = "second", T = "minute", S = "hour", M = "day", E = "week", L = "month", K = "quarter", I = "year", H = "date", oe = "Invalid Date", le = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Z = /\[([^\]]+)]|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, me = { 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(p) {
|
|
193
|
+
var a = ["th", "st", "nd", "rd"], v = p % 100;
|
|
194
|
+
return "[" + p + (a[(v - 20) % 10] || a[v] || a[0]) + "]";
|
|
195
|
+
} }, he = function(p, a, v) {
|
|
196
|
+
var g = String(p);
|
|
197
|
+
return !g || g.length >= a ? p : "" + Array(a + 1 - g.length).join(v) + p;
|
|
198
|
+
}, ge = { s: he, z: function(p) {
|
|
199
|
+
var a = -p.utcOffset(), v = Math.abs(a), g = Math.floor(v / 60), s = v % 60;
|
|
200
|
+
return (a <= 0 ? "+" : "-") + he(g, 2, "0") + ":" + he(s, 2, "0");
|
|
201
|
+
}, m: function p(a, v) {
|
|
202
|
+
if (a.date() < v.date()) return -p(v, a);
|
|
203
|
+
var g = 12 * (v.year() - a.year()) + (v.month() - a.month()), s = a.clone().add(g, L), V = v - s < 0, C = a.clone().add(g + (V ? -1 : 1), L);
|
|
204
|
+
return +(-(g + (v - s) / (V ? s - C : C - s)) || 0);
|
|
205
205
|
}, a: function(p) {
|
|
206
206
|
return p < 0 ? Math.ceil(p) || 0 : Math.floor(p);
|
|
207
207
|
}, p: function(p) {
|
|
208
|
-
return { M:
|
|
208
|
+
return { M: L, y: I, w: E, d: M, D: H, h: S, m: T, s: k, ms: d, Q: K }[p] || String(p || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(p) {
|
|
210
210
|
return p === void 0;
|
|
211
|
-
} },
|
|
212
|
-
|
|
213
|
-
var
|
|
214
|
-
return p instanceof
|
|
215
|
-
}, be = function p(
|
|
216
|
-
var
|
|
217
|
-
if (!
|
|
218
|
-
if (typeof
|
|
219
|
-
var
|
|
220
|
-
|
|
221
|
-
var
|
|
222
|
-
if (!
|
|
211
|
+
} }, se = "en", ie = {};
|
|
212
|
+
ie[se] = me;
|
|
213
|
+
var ue = "$isDayjsObject", ee = function(p) {
|
|
214
|
+
return p instanceof o || !(!p || !p[ue]);
|
|
215
|
+
}, be = function p(a, v, g) {
|
|
216
|
+
var s;
|
|
217
|
+
if (!a) return se;
|
|
218
|
+
if (typeof a == "string") {
|
|
219
|
+
var V = a.toLowerCase();
|
|
220
|
+
ie[V] && (s = V), v && (ie[V] = v, s = V);
|
|
221
|
+
var C = a.split("-");
|
|
222
|
+
if (!s && C.length > 1) return p(C[0]);
|
|
223
223
|
} else {
|
|
224
|
-
var
|
|
225
|
-
|
|
224
|
+
var j = a.name;
|
|
225
|
+
ie[j] = a, s = j;
|
|
226
226
|
}
|
|
227
|
-
return !
|
|
228
|
-
},
|
|
227
|
+
return !g && s && (se = s), s || !g && se;
|
|
228
|
+
}, ne = function(p, a) {
|
|
229
229
|
if (ee(p)) return p.clone();
|
|
230
|
-
var
|
|
231
|
-
return
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
return
|
|
230
|
+
var v = typeof a == "object" ? a : {};
|
|
231
|
+
return v.date = p, v.args = arguments, new o(v);
|
|
232
|
+
}, b = ge;
|
|
233
|
+
b.l = be, b.i = ee, b.w = function(p, a) {
|
|
234
|
+
return ne(p, { locale: a.$L, utc: a.$u, x: a.$x, $offset: a.$offset });
|
|
235
235
|
};
|
|
236
|
-
var
|
|
237
|
-
function p(
|
|
238
|
-
this.$L = be(
|
|
236
|
+
var o = function() {
|
|
237
|
+
function p(v) {
|
|
238
|
+
this.$L = be(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[ue] = !0;
|
|
239
239
|
}
|
|
240
|
-
var
|
|
241
|
-
return
|
|
242
|
-
this.$d = function(
|
|
243
|
-
var
|
|
244
|
-
if (
|
|
245
|
-
if (
|
|
246
|
-
if (
|
|
247
|
-
if (typeof
|
|
248
|
-
var
|
|
249
|
-
if (
|
|
250
|
-
var
|
|
251
|
-
return
|
|
240
|
+
var a = p.prototype;
|
|
241
|
+
return a.parse = function(v) {
|
|
242
|
+
this.$d = function(g) {
|
|
243
|
+
var s = g.date, V = g.utc;
|
|
244
|
+
if (s === null) return /* @__PURE__ */ new Date(NaN);
|
|
245
|
+
if (b.u(s)) return /* @__PURE__ */ new Date();
|
|
246
|
+
if (s instanceof Date) return new Date(s);
|
|
247
|
+
if (typeof s == "string" && !/Z$/i.test(s)) {
|
|
248
|
+
var C = s.match(le);
|
|
249
|
+
if (C) {
|
|
250
|
+
var j = C[2] - 1 || 0, X = (C[7] || "0").substring(0, 3);
|
|
251
|
+
return V ? new Date(Date.UTC(C[1], j, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, X)) : new Date(C[1], j, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, X);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
return new Date(
|
|
255
|
-
}(
|
|
256
|
-
},
|
|
257
|
-
var
|
|
258
|
-
this.$y =
|
|
259
|
-
},
|
|
260
|
-
return
|
|
261
|
-
},
|
|
262
|
-
return this.$d.toString() !==
|
|
263
|
-
},
|
|
264
|
-
var
|
|
265
|
-
return this.startOf(
|
|
266
|
-
},
|
|
267
|
-
return
|
|
268
|
-
},
|
|
269
|
-
return this.endOf(
|
|
270
|
-
},
|
|
271
|
-
return
|
|
272
|
-
},
|
|
254
|
+
return new Date(s);
|
|
255
|
+
}(v), this.init();
|
|
256
|
+
}, a.init = function() {
|
|
257
|
+
var v = this.$d;
|
|
258
|
+
this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
|
|
259
|
+
}, a.$utils = function() {
|
|
260
|
+
return b;
|
|
261
|
+
}, a.isValid = function() {
|
|
262
|
+
return this.$d.toString() !== oe;
|
|
263
|
+
}, a.isSame = function(v, g) {
|
|
264
|
+
var s = ne(v);
|
|
265
|
+
return this.startOf(g) <= s && s <= this.endOf(g);
|
|
266
|
+
}, a.isAfter = function(v, g) {
|
|
267
|
+
return ne(v) < this.startOf(g);
|
|
268
|
+
}, a.isBefore = function(v, g) {
|
|
269
|
+
return this.endOf(g) < ne(v);
|
|
270
|
+
}, a.$g = function(v, g, s) {
|
|
271
|
+
return b.u(v) ? this[g] : this.set(s, v);
|
|
272
|
+
}, a.unix = function() {
|
|
273
273
|
return Math.floor(this.valueOf() / 1e3);
|
|
274
|
-
},
|
|
274
|
+
}, a.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
|
-
},
|
|
277
|
-
var
|
|
278
|
-
var
|
|
279
|
-
return
|
|
280
|
-
},
|
|
281
|
-
return
|
|
282
|
-
}, O = this.$W,
|
|
283
|
-
switch (
|
|
284
|
-
case
|
|
285
|
-
return
|
|
286
|
-
case A:
|
|
287
|
-
return C ? Y(1, x) : Y(0, x + 1);
|
|
288
|
-
case V:
|
|
289
|
-
var _e = this.$locale().weekStart || 0, Fe = (O < _e ? O + 7 : O) - _e;
|
|
290
|
-
return Y(C ? ue - Fe : ue + (6 - Fe), x);
|
|
291
|
-
case D:
|
|
276
|
+
}, a.startOf = function(v, g) {
|
|
277
|
+
var s = this, V = !!b.u(g) || g, C = b.p(v), j = function(Ve, $e) {
|
|
278
|
+
var Me = b.w(s.$u ? Date.UTC(s.$y, $e, Ve) : new Date(s.$y, $e, Ve), s);
|
|
279
|
+
return V ? Me : Me.endOf(M);
|
|
280
|
+
}, X = function(Ve, $e) {
|
|
281
|
+
return b.w(s.toDate()[Ve].apply(s.toDate("s"), (V ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($e)), s);
|
|
282
|
+
}, O = this.$W, A = this.$M, re = this.$D, Ee = "set" + (this.$u ? "UTC" : "");
|
|
283
|
+
switch (C) {
|
|
284
|
+
case I:
|
|
285
|
+
return V ? j(1, 0) : j(31, 11);
|
|
292
286
|
case L:
|
|
293
|
-
return
|
|
294
|
-
case
|
|
295
|
-
|
|
287
|
+
return V ? j(1, A) : j(0, A + 1);
|
|
288
|
+
case E:
|
|
289
|
+
var we = this.$locale().weekStart || 0, De = (O < we ? O + 7 : O) - we;
|
|
290
|
+
return j(V ? re - De : re + (6 - De), A);
|
|
291
|
+
case M:
|
|
292
|
+
case H:
|
|
293
|
+
return X(Ee + "Hours", 0);
|
|
294
|
+
case S:
|
|
295
|
+
return X(Ee + "Minutes", 1);
|
|
296
296
|
case T:
|
|
297
|
-
return
|
|
297
|
+
return X(Ee + "Seconds", 2);
|
|
298
298
|
case k:
|
|
299
|
-
return
|
|
299
|
+
return X(Ee + "Milliseconds", 3);
|
|
300
300
|
default:
|
|
301
301
|
return this.clone();
|
|
302
302
|
}
|
|
303
|
-
},
|
|
304
|
-
return this.startOf(
|
|
305
|
-
},
|
|
306
|
-
var
|
|
307
|
-
if (
|
|
308
|
-
var O = this.clone().set(
|
|
309
|
-
O.$d[
|
|
310
|
-
} else
|
|
303
|
+
}, a.endOf = function(v) {
|
|
304
|
+
return this.startOf(v, !1);
|
|
305
|
+
}, a.$set = function(v, g) {
|
|
306
|
+
var s, V = b.p(v), C = "set" + (this.$u ? "UTC" : ""), j = (s = {}, s[M] = C + "Date", s[H] = C + "Date", s[L] = C + "Month", s[I] = C + "FullYear", s[S] = C + "Hours", s[T] = C + "Minutes", s[k] = C + "Seconds", s[d] = C + "Milliseconds", s)[V], X = V === M ? this.$D + (g - this.$W) : g;
|
|
307
|
+
if (V === L || V === I) {
|
|
308
|
+
var O = this.clone().set(H, 1);
|
|
309
|
+
O.$d[j](X), O.init(), this.$d = O.set(H, Math.min(this.$D, O.daysInMonth())).$d;
|
|
310
|
+
} else j && this.$d[j](X);
|
|
311
311
|
return this.init(), this;
|
|
312
|
-
},
|
|
313
|
-
return this.clone().$set(
|
|
314
|
-
},
|
|
315
|
-
return this[
|
|
316
|
-
},
|
|
317
|
-
var
|
|
318
|
-
|
|
319
|
-
var
|
|
320
|
-
var
|
|
321
|
-
return
|
|
312
|
+
}, a.set = function(v, g) {
|
|
313
|
+
return this.clone().$set(v, g);
|
|
314
|
+
}, a.get = function(v) {
|
|
315
|
+
return this[b.p(v)]();
|
|
316
|
+
}, a.add = function(v, g) {
|
|
317
|
+
var s, V = this;
|
|
318
|
+
v = Number(v);
|
|
319
|
+
var C = b.p(g), j = function(A) {
|
|
320
|
+
var re = ne(V);
|
|
321
|
+
return b.w(re.date(re.date() + Math.round(A * v)), V);
|
|
322
322
|
};
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
327
|
-
var
|
|
328
|
-
return
|
|
329
|
-
},
|
|
330
|
-
return this.add(-1 *
|
|
331
|
-
},
|
|
332
|
-
var
|
|
333
|
-
if (!this.isValid()) return
|
|
334
|
-
var
|
|
335
|
-
return $e && ($e[
|
|
336
|
-
},
|
|
337
|
-
return
|
|
338
|
-
},
|
|
339
|
-
var
|
|
340
|
-
return
|
|
323
|
+
if (C === L) return this.set(L, this.$M + v);
|
|
324
|
+
if (C === I) return this.set(I, this.$y + v);
|
|
325
|
+
if (C === M) return j(1);
|
|
326
|
+
if (C === E) return j(7);
|
|
327
|
+
var X = (s = {}, s[T] = t, s[S] = e, s[k] = u, s)[C] || 1, O = this.$d.getTime() + v * X;
|
|
328
|
+
return b.w(O, this);
|
|
329
|
+
}, a.subtract = function(v, g) {
|
|
330
|
+
return this.add(-1 * v, g);
|
|
331
|
+
}, a.format = function(v) {
|
|
332
|
+
var g = this, s = this.$locale();
|
|
333
|
+
if (!this.isValid()) return s.invalidDate || oe;
|
|
334
|
+
var V = v || "YYYY-MM-DDTHH:mm:ssZ", C = b.z(this), j = this.$H, X = this.$m, O = this.$M, A = s.weekdays, re = s.months, Ee = s.meridiem, we = function($e, Me, Oe, qe) {
|
|
335
|
+
return $e && ($e[Me] || $e(g, V)) || Oe[Me].slice(0, qe);
|
|
336
|
+
}, De = function($e) {
|
|
337
|
+
return b.s(j % 12 || 12, $e, "0");
|
|
338
|
+
}, Ve = Ee || function($e, Me, Oe) {
|
|
339
|
+
var qe = $e < 12 ? "AM" : "PM";
|
|
340
|
+
return Oe ? qe.toLowerCase() : qe;
|
|
341
341
|
};
|
|
342
|
-
return
|
|
343
|
-
return
|
|
344
|
-
switch (
|
|
342
|
+
return V.replace(Z, function($e, Me) {
|
|
343
|
+
return Me || function(Oe) {
|
|
344
|
+
switch (Oe) {
|
|
345
345
|
case "YY":
|
|
346
|
-
return String(
|
|
346
|
+
return String(g.$y).slice(-2);
|
|
347
347
|
case "YYYY":
|
|
348
|
-
return
|
|
348
|
+
return b.s(g.$y, 4, "0");
|
|
349
349
|
case "M":
|
|
350
350
|
return O + 1;
|
|
351
351
|
case "MM":
|
|
352
|
-
return
|
|
352
|
+
return b.s(O + 1, 2, "0");
|
|
353
353
|
case "MMM":
|
|
354
|
-
return
|
|
354
|
+
return we(s.monthsShort, O, re, 3);
|
|
355
355
|
case "MMMM":
|
|
356
|
-
return
|
|
356
|
+
return we(re, O);
|
|
357
357
|
case "D":
|
|
358
|
-
return
|
|
358
|
+
return g.$D;
|
|
359
359
|
case "DD":
|
|
360
|
-
return
|
|
360
|
+
return b.s(g.$D, 2, "0");
|
|
361
361
|
case "d":
|
|
362
|
-
return String(
|
|
362
|
+
return String(g.$W);
|
|
363
363
|
case "dd":
|
|
364
|
-
return
|
|
364
|
+
return we(s.weekdaysMin, g.$W, A, 2);
|
|
365
365
|
case "ddd":
|
|
366
|
-
return
|
|
366
|
+
return we(s.weekdaysShort, g.$W, A, 3);
|
|
367
367
|
case "dddd":
|
|
368
|
-
return
|
|
368
|
+
return A[g.$W];
|
|
369
369
|
case "H":
|
|
370
|
-
return String(
|
|
370
|
+
return String(j);
|
|
371
371
|
case "HH":
|
|
372
|
-
return
|
|
372
|
+
return b.s(j, 2, "0");
|
|
373
373
|
case "h":
|
|
374
|
-
return
|
|
374
|
+
return De(1);
|
|
375
375
|
case "hh":
|
|
376
|
-
return
|
|
376
|
+
return De(2);
|
|
377
377
|
case "a":
|
|
378
|
-
return
|
|
378
|
+
return Ve(j, X, !0);
|
|
379
379
|
case "A":
|
|
380
|
-
return
|
|
380
|
+
return Ve(j, X, !1);
|
|
381
381
|
case "m":
|
|
382
|
-
return String(
|
|
382
|
+
return String(X);
|
|
383
383
|
case "mm":
|
|
384
|
-
return
|
|
384
|
+
return b.s(X, 2, "0");
|
|
385
385
|
case "s":
|
|
386
|
-
return String(
|
|
386
|
+
return String(g.$s);
|
|
387
387
|
case "ss":
|
|
388
|
-
return
|
|
388
|
+
return b.s(g.$s, 2, "0");
|
|
389
389
|
case "SSS":
|
|
390
|
-
return
|
|
390
|
+
return b.s(g.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
|
-
return
|
|
392
|
+
return C;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}($e) ||
|
|
395
|
+
}($e) || C.replace(":", "");
|
|
396
396
|
});
|
|
397
|
-
},
|
|
397
|
+
}, a.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
|
-
},
|
|
400
|
-
var
|
|
401
|
-
return
|
|
399
|
+
}, a.diff = function(v, g, s) {
|
|
400
|
+
var V, C = this, j = b.p(g), X = ne(v), O = (X.utcOffset() - this.utcOffset()) * t, A = this - X, re = function() {
|
|
401
|
+
return b.m(C, X);
|
|
402
402
|
};
|
|
403
|
-
switch (
|
|
404
|
-
case
|
|
405
|
-
|
|
403
|
+
switch (j) {
|
|
404
|
+
case I:
|
|
405
|
+
V = re() / 12;
|
|
406
406
|
break;
|
|
407
|
-
case
|
|
408
|
-
|
|
407
|
+
case L:
|
|
408
|
+
V = re();
|
|
409
409
|
break;
|
|
410
|
-
case
|
|
411
|
-
|
|
410
|
+
case K:
|
|
411
|
+
V = re() / 3;
|
|
412
412
|
break;
|
|
413
|
-
case
|
|
414
|
-
|
|
413
|
+
case E:
|
|
414
|
+
V = (A - O) / 6048e5;
|
|
415
415
|
break;
|
|
416
|
-
case
|
|
417
|
-
|
|
416
|
+
case M:
|
|
417
|
+
V = (A - O) / 864e5;
|
|
418
418
|
break;
|
|
419
|
-
case
|
|
420
|
-
|
|
419
|
+
case S:
|
|
420
|
+
V = A / e;
|
|
421
421
|
break;
|
|
422
422
|
case T:
|
|
423
|
-
|
|
423
|
+
V = A / t;
|
|
424
424
|
break;
|
|
425
425
|
case k:
|
|
426
|
-
|
|
426
|
+
V = A / u;
|
|
427
427
|
break;
|
|
428
428
|
default:
|
|
429
|
-
|
|
429
|
+
V = A;
|
|
430
430
|
}
|
|
431
|
-
return
|
|
432
|
-
},
|
|
433
|
-
return this.endOf(
|
|
434
|
-
},
|
|
435
|
-
return
|
|
436
|
-
},
|
|
437
|
-
if (!
|
|
438
|
-
var
|
|
439
|
-
return
|
|
440
|
-
},
|
|
441
|
-
return
|
|
442
|
-
},
|
|
431
|
+
return s ? V : b.a(V);
|
|
432
|
+
}, a.daysInMonth = function() {
|
|
433
|
+
return this.endOf(L).$D;
|
|
434
|
+
}, a.$locale = function() {
|
|
435
|
+
return ie[this.$L];
|
|
436
|
+
}, a.locale = function(v, g) {
|
|
437
|
+
if (!v) return this.$L;
|
|
438
|
+
var s = this.clone(), V = be(v, g, !0);
|
|
439
|
+
return V && (s.$L = V), s;
|
|
440
|
+
}, a.clone = function() {
|
|
441
|
+
return b.w(this.$d, this);
|
|
442
|
+
}, a.toDate = function() {
|
|
443
443
|
return new Date(this.valueOf());
|
|
444
|
-
},
|
|
444
|
+
}, a.toJSON = function() {
|
|
445
445
|
return this.isValid() ? this.toISOString() : null;
|
|
446
|
-
},
|
|
446
|
+
}, a.toISOString = function() {
|
|
447
447
|
return this.$d.toISOString();
|
|
448
|
-
},
|
|
448
|
+
}, a.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, p;
|
|
451
|
-
}(),
|
|
452
|
-
return
|
|
453
|
-
|
|
454
|
-
return this.$g(
|
|
451
|
+
}(), _ = o.prototype;
|
|
452
|
+
return ne.prototype = _, [["$ms", d], ["$s", k], ["$m", T], ["$H", S], ["$W", M], ["$M", L], ["$y", I], ["$D", H]].forEach(function(p) {
|
|
453
|
+
_[p[1]] = function(a) {
|
|
454
|
+
return this.$g(a, p[0], p[1]);
|
|
455
455
|
};
|
|
456
|
-
}),
|
|
457
|
-
return p.$i || (p(
|
|
458
|
-
},
|
|
459
|
-
return
|
|
460
|
-
},
|
|
456
|
+
}), ne.extend = function(p, a) {
|
|
457
|
+
return p.$i || (p(a, o, ne), p.$i = !0), ne;
|
|
458
|
+
}, ne.locale = be, ne.isDayjs = ee, ne.unix = function(p) {
|
|
459
|
+
return ne(1e3 * p);
|
|
460
|
+
}, ne.en = ie[se], ne.Ls = ie, ne.p = {}, ne;
|
|
461
461
|
});
|
|
462
|
-
})(
|
|
463
|
-
var
|
|
464
|
-
const
|
|
465
|
-
const
|
|
466
|
-
for (const [t, e] of
|
|
467
|
-
|
|
468
|
-
return
|
|
469
|
-
},
|
|
462
|
+
})(xt);
|
|
463
|
+
var al = xt.exports;
|
|
464
|
+
const ft = /* @__PURE__ */ ll(al), Le = (m, c) => {
|
|
465
|
+
const u = m.__vccOpts || m;
|
|
466
|
+
for (const [t, e] of c)
|
|
467
|
+
u[t] = e;
|
|
468
|
+
return u;
|
|
469
|
+
}, ol = {
|
|
470
470
|
style: { display: "flex", width: "100%" },
|
|
471
471
|
class: "g-ctrl-container"
|
|
472
|
-
},
|
|
472
|
+
}, rl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, ul = {
|
|
473
473
|
key: 19,
|
|
474
474
|
style: { position: "relative" }
|
|
475
|
-
},
|
|
475
|
+
}, nl = ["title"], sl = { key: 20 }, il = { key: 21 }, dl = ["innerHTML"], fl = ["innerHTML"], cl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
476
476
|
__name: "g-ctrl",
|
|
477
|
-
props: /* @__PURE__ */
|
|
477
|
+
props: /* @__PURE__ */ Ye(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
478
478
|
modelValue: { required: !0 },
|
|
479
479
|
modelModifiers: {}
|
|
480
480
|
}),
|
|
481
481
|
emits: ["update:modelValue"],
|
|
482
482
|
setup(m) {
|
|
483
|
-
var be,
|
|
484
|
-
const
|
|
483
|
+
var be, ne;
|
|
484
|
+
const c = Ue(m, "modelValue"), u = m, t = te(u.item || {}), e = te(u.ctrlKey), d = te(u.ctrlType), k = te(u.model), T = te([]), S = te([]), M = te(!1), E = te(!1), L = () => Object.keys(Tt()).filter((b) => b.startsWith(`${u.t}-${e}-`)).map((b) => b.replace(`${u.t}-${e}-`, "")), K = te({
|
|
485
485
|
multiple: !1,
|
|
486
486
|
"show-file-list": !1,
|
|
487
487
|
"file-list": [],
|
|
488
|
-
showDel: (be = t.value) != null && be.showDel ? (
|
|
489
|
-
}),
|
|
488
|
+
showDel: (be = t.value) != null && be.showDel ? (ne = t.value) == null ? void 0 : ne.showDel : u.t !== "t"
|
|
489
|
+
}), I = te(t.value.innerHtml), H = (b) => [
|
|
490
490
|
"year",
|
|
491
491
|
"years",
|
|
492
492
|
"month",
|
|
@@ -499,7 +499,7 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
499
499
|
"daterange",
|
|
500
500
|
"monthrange",
|
|
501
501
|
"yearrange"
|
|
502
|
-
].includes(
|
|
502
|
+
].includes(b), oe = (b) => ({
|
|
503
503
|
year: "YYYY",
|
|
504
504
|
years: "YYYY",
|
|
505
505
|
month: "YYYY-MM",
|
|
@@ -513,62 +513,62 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
513
513
|
daterange: "YYYY-MM-DD",
|
|
514
514
|
monthrange: "YYYY-MM",
|
|
515
515
|
yearrange: "YYYY"
|
|
516
|
-
})[
|
|
516
|
+
})[b] || "YYYY-MM-DD", le = te({
|
|
517
517
|
filterable: !0,
|
|
518
518
|
remote: !!(t.value && t.value["remote-method"]),
|
|
519
519
|
...t.value
|
|
520
|
-
}),
|
|
521
|
-
t.value["remote-method"](
|
|
522
|
-
|
|
523
|
-
|
|
520
|
+
}), Z = te((b) => {
|
|
521
|
+
t.value["remote-method"](b, (o) => {
|
|
522
|
+
We(() => {
|
|
523
|
+
S.value = o;
|
|
524
524
|
});
|
|
525
525
|
});
|
|
526
|
-
}),
|
|
527
|
-
var
|
|
526
|
+
}), me = async (b = "options") => {
|
|
527
|
+
var o;
|
|
528
528
|
try {
|
|
529
|
-
const
|
|
530
|
-
if (typeof
|
|
531
|
-
|
|
529
|
+
const _ = await ((o = t.value) == null ? void 0 : o.getDicts(u.formInfo));
|
|
530
|
+
if (typeof _ == "string")
|
|
531
|
+
S.value = [{ label: _, value: c.value }];
|
|
532
532
|
else {
|
|
533
|
-
const p =
|
|
534
|
-
...
|
|
535
|
-
value:
|
|
536
|
-
label:
|
|
533
|
+
const p = _ == null ? void 0 : _.map((a, v) => ({
|
|
534
|
+
...a,
|
|
535
|
+
value: a.value ?? a.label ?? v,
|
|
536
|
+
label: a.label || "未知选项"
|
|
537
537
|
}));
|
|
538
|
-
|
|
538
|
+
S.value = p || [];
|
|
539
539
|
}
|
|
540
|
-
} catch (
|
|
541
|
-
throw console.error("获取选项失败:",
|
|
540
|
+
} catch (_) {
|
|
541
|
+
throw console.error("获取选项失败:", _), _;
|
|
542
542
|
}
|
|
543
|
-
},
|
|
544
|
-
var
|
|
545
|
-
t.value.noSearch !== !0 &&
|
|
546
|
-
},
|
|
547
|
-
|
|
548
|
-
},
|
|
549
|
-
|
|
550
|
-
},
|
|
551
|
-
|
|
552
|
-
},
|
|
543
|
+
}, he = () => {
|
|
544
|
+
var b, o;
|
|
545
|
+
t.value.noSearch !== !0 && u.t === "q" && ((o = (b = k.value) == null ? void 0 : b.table) == null || o.load());
|
|
546
|
+
}, ge = (b) => {
|
|
547
|
+
b.preventDefault(), b.stopPropagation(), c.value = "";
|
|
548
|
+
}, se = (b) => {
|
|
549
|
+
M.value = !0;
|
|
550
|
+
}, ie = (b) => {
|
|
551
|
+
b.preventDefault(), b.stopPropagation(), M.value = !0;
|
|
552
|
+
}, ue = te(null);
|
|
553
553
|
et(async () => {
|
|
554
|
-
var
|
|
555
|
-
t.value && t.value["remote-method"] && (
|
|
556
|
-
const
|
|
557
|
-
typeof t.value.getDicts == "function" &&
|
|
558
|
-
console.error(`Failed to load ${
|
|
554
|
+
var _, p, a, v, g;
|
|
555
|
+
t.value && t.value["remote-method"] && (le.value["remote-method"] = Z), (p = (_ = k.value[e.value]) == null ? void 0 : _.options) != null && p.length && (S.value = k.value[e.value].options);
|
|
556
|
+
const b = (s, V = "options", C = k.value[e.value]) => {
|
|
557
|
+
typeof t.value.getDicts == "function" && me(V).catch((j) => {
|
|
558
|
+
console.error(`Failed to load ${V} for ${s}:`, j);
|
|
559
559
|
});
|
|
560
560
|
};
|
|
561
|
-
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(d.value) &&
|
|
561
|
+
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(d.value) && b(d.value), d.value === pe.TREESELECT && await (async () => {
|
|
562
562
|
try {
|
|
563
|
-
typeof t.value.getDicts == "function" ? T.value = await t.value.getDicts(
|
|
564
|
-
} catch (
|
|
565
|
-
console.error("Failed to load data for tree-select:",
|
|
563
|
+
typeof t.value.getDicts == "function" ? T.value = await t.value.getDicts(u.formInfo) : T.value = S.value;
|
|
564
|
+
} catch (V) {
|
|
565
|
+
console.error("Failed to load data for tree-select:", V);
|
|
566
566
|
}
|
|
567
|
-
})(),
|
|
568
|
-
let
|
|
569
|
-
(
|
|
570
|
-
var
|
|
571
|
-
console.log(
|
|
567
|
+
})(), u.t == "q") {
|
|
568
|
+
let s = t.value.type || d.value;
|
|
569
|
+
(s === void 0 || d.value === "input" || s == pe.NUMBER || s == pe.EMAIL || s == "url" || s == "text") && t.value.onKeyup == null && (t.value.onKeyup = (V) => {
|
|
570
|
+
var C, j;
|
|
571
|
+
console.log(V.key), (V.keyCode === 13 || V.key === "Enter") && ((j = (C = k.value) == null ? void 0 : C.table) == null || j.load());
|
|
572
572
|
}), [
|
|
573
573
|
"radio",
|
|
574
574
|
"switch",
|
|
@@ -585,84 +585,84 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
585
585
|
"datetime",
|
|
586
586
|
"datetimerange",
|
|
587
587
|
"week"
|
|
588
|
-
].includes(
|
|
589
|
-
var
|
|
590
|
-
(
|
|
588
|
+
].includes(s) && t.value.onChange === void 0 && (t.value.onChange = (V) => {
|
|
589
|
+
var C, j;
|
|
590
|
+
(j = (C = k.value) == null ? void 0 : C.table) == null || j.load();
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
|
-
d.value == "image" && (t.value.width && ((
|
|
593
|
+
d.value == "image" && (t.value.width && ((a = ue.value) != null && a.$el) && ue.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((v = ue.value) != null && v.$el) && ue.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((g = ue.value) != null && g.$el) && ue.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
594
594
|
});
|
|
595
|
-
const ee =
|
|
596
|
-
var
|
|
597
|
-
return t.value["file-list"] && t.value["file-list"].length ? (
|
|
595
|
+
const ee = je(() => {
|
|
596
|
+
var b;
|
|
597
|
+
return t.value["file-list"] && t.value["file-list"].length ? (b = t.value["file-list"]) == null ? void 0 : b.map((o) => o == null ? void 0 : o.url) : [c.value];
|
|
598
598
|
});
|
|
599
|
-
return (
|
|
600
|
-
var
|
|
601
|
-
const
|
|
602
|
-
return
|
|
603
|
-
|
|
604
|
-
|
|
599
|
+
return (b, o) => {
|
|
600
|
+
var r, f, D;
|
|
601
|
+
const _ = Y("el-image-viewer"), p = Y("el-radio"), a = Y("el-radio-group"), v = Y("el-radio-button"), g = Y("el-checkbox"), s = Y("el-checkbox-group"), V = Y("el-checkbox-button"), C = Y("g-select-option"), j = Y("el-option"), X = Y("el-select"), O = Y("el-tree-select"), A = Y("el-time-picker"), re = Y("el-time-select"), Ee = Y("el-date-picker"), we = Y("el-color-picker"), De = Y("el-rate"), Ve = Y("el-slider"), $e = Y("el-switch"), Me = Y("el-transfer"), Oe = Y("el-cascader"), qe = Y("el-icon"), tt = Y("el-image"), Xe = Y("el-tooltip"), lt = Y("el-upload"), at = Y("el-autocomplete"), ot = Y("el-input-number"), Ge = Y("el-input"), rt = Y("el-link"), l = Y("el-tag");
|
|
602
|
+
return i(), x(W, null, [
|
|
603
|
+
Q("div", null, [
|
|
604
|
+
M.value ? (i(), F(_, {
|
|
605
605
|
key: 0,
|
|
606
606
|
teleported: !0,
|
|
607
607
|
"url-list": ee.value,
|
|
608
|
-
onClose:
|
|
609
|
-
}, null, 8, ["url-list"])) :
|
|
608
|
+
onClose: o[0] || (o[0] = (n) => M.value = !1)
|
|
609
|
+
}, null, 8, ["url-list"])) : ce("", !0)
|
|
610
610
|
]),
|
|
611
|
-
|
|
612
|
-
d.value ==
|
|
611
|
+
Q("div", ol, [
|
|
612
|
+
d.value == U(pe).RADIO ? (i(), F(a, q({
|
|
613
613
|
key: 0,
|
|
614
|
-
modelValue:
|
|
615
|
-
"onUpdate:modelValue":
|
|
614
|
+
modelValue: c.value,
|
|
615
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => c.value = n)
|
|
616
616
|
}, t.value), {
|
|
617
617
|
default: y(() => [
|
|
618
|
-
|
|
619
|
-
(
|
|
618
|
+
h(b.$slots, `${u.t}-${e.value}`, { data: t.value }, () => [
|
|
619
|
+
(i(!0), x(W, null, R(S.value, (n) => (i(), F(p, q({ ref_for: !0 }, n), {
|
|
620
620
|
default: y(() => [
|
|
621
|
-
|
|
621
|
+
h(b.$slots, `${u.t}-${e.value}-options`, { option: n }, void 0, !0)
|
|
622
622
|
]),
|
|
623
623
|
_: 2
|
|
624
624
|
}, 1040))), 256))
|
|
625
625
|
], !0)
|
|
626
626
|
]),
|
|
627
627
|
_: 3
|
|
628
|
-
}, 16, ["modelValue"])) : d.value ==
|
|
628
|
+
}, 16, ["modelValue"])) : d.value == U(pe).RADIOBUTTON ? (i(), F(a, q({
|
|
629
629
|
key: 1,
|
|
630
|
-
modelValue:
|
|
631
|
-
"onUpdate:modelValue":
|
|
630
|
+
modelValue: c.value,
|
|
631
|
+
"onUpdate:modelValue": o[2] || (o[2] = (n) => c.value = n)
|
|
632
632
|
}, t.value), {
|
|
633
633
|
default: y(() => [
|
|
634
|
-
|
|
635
|
-
(
|
|
634
|
+
h(b.$slots, `${u.t}-${e.value}`, { data: t.value }, () => [
|
|
635
|
+
(i(!0), x(W, null, R(S.value, (n) => (i(), F(v, q({ ref_for: !0 }, n), {
|
|
636
636
|
default: y(() => [
|
|
637
|
-
|
|
637
|
+
h(b.$slots, `${u.t}-${e.value}-options`, { option: n }, void 0, !0)
|
|
638
638
|
]),
|
|
639
639
|
_: 2
|
|
640
640
|
}, 1040))), 256))
|
|
641
641
|
], !0)
|
|
642
642
|
]),
|
|
643
643
|
_: 3
|
|
644
|
-
}, 16, ["modelValue"])) : d.value ==
|
|
644
|
+
}, 16, ["modelValue"])) : d.value == U(pe).CHECKBOX ? (i(), F(g, q({
|
|
645
645
|
key: 2,
|
|
646
|
-
modelValue:
|
|
647
|
-
"onUpdate:modelValue":
|
|
646
|
+
modelValue: c.value,
|
|
647
|
+
"onUpdate:modelValue": o[3] || (o[3] = (n) => c.value = n)
|
|
648
648
|
}, t.value), {
|
|
649
649
|
default: y(() => [
|
|
650
|
-
|
|
651
|
-
|
|
650
|
+
h(b.$slots, `${u.t}-${e.value}`, { data: t.value }, () => [
|
|
651
|
+
o[27] || (o[27] = _e(ve(" ")))
|
|
652
652
|
], !0)
|
|
653
653
|
]),
|
|
654
654
|
_: 3
|
|
655
|
-
}, 16, ["modelValue"])) : d.value ==
|
|
655
|
+
}, 16, ["modelValue"])) : d.value == U(pe).CHECKBOXGROUP ? (i(), F(s, q({
|
|
656
656
|
key: 3,
|
|
657
|
-
modelValue:
|
|
658
|
-
"onUpdate:modelValue":
|
|
657
|
+
modelValue: c.value,
|
|
658
|
+
"onUpdate:modelValue": o[4] || (o[4] = (n) => c.value = n)
|
|
659
659
|
}, t.value), {
|
|
660
660
|
default: y(() => [
|
|
661
|
-
|
|
662
|
-
(
|
|
661
|
+
h(b.$slots, `${u.t}-${e.value}`, { data: t.value }, () => [
|
|
662
|
+
(i(!0), x(W, null, R(S.value, (n) => (i(), F(g, q({ ref_for: !0 }, n), {
|
|
663
663
|
default: y(() => [
|
|
664
|
-
|
|
665
|
-
|
|
664
|
+
h(b.$slots, `${u.t}-${e.value}-options`, { option: n }, () => [
|
|
665
|
+
_e(ve(n.label), 1)
|
|
666
666
|
], !0)
|
|
667
667
|
]),
|
|
668
668
|
_: 2
|
|
@@ -670,130 +670,130 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
670
670
|
], !0)
|
|
671
671
|
]),
|
|
672
672
|
_: 3
|
|
673
|
-
}, 16, ["modelValue"])) : d.value ==
|
|
673
|
+
}, 16, ["modelValue"])) : d.value == U(pe).CHECKBOXGROUPBUTTON ? (i(), F(s, q({
|
|
674
674
|
key: 4,
|
|
675
|
-
modelValue:
|
|
676
|
-
"onUpdate:modelValue":
|
|
675
|
+
modelValue: c.value,
|
|
676
|
+
"onUpdate:modelValue": o[5] || (o[5] = (n) => c.value = n)
|
|
677
677
|
}, t.value), {
|
|
678
678
|
default: y(() => [
|
|
679
|
-
|
|
680
|
-
(
|
|
679
|
+
h(b.$slots, `${u.t}-${e.value}`, { data: t.value }, () => [
|
|
680
|
+
(i(!0), x(W, null, R(S.value, (n) => (i(), F(V, q({ ref_for: !0 }, n), {
|
|
681
681
|
default: y(() => [
|
|
682
|
-
|
|
682
|
+
h(b.$slots, `${u.t}-${e.value}-options`, { option: n }, void 0, !0)
|
|
683
683
|
]),
|
|
684
684
|
_: 2
|
|
685
685
|
}, 1040))), 256))
|
|
686
686
|
], !0)
|
|
687
687
|
]),
|
|
688
688
|
_: 3
|
|
689
|
-
}, 16, ["modelValue"])) : d.value ===
|
|
689
|
+
}, 16, ["modelValue"])) : d.value === U(pe).SELECT ? (i(), F(X, q({
|
|
690
690
|
key: 5,
|
|
691
|
-
modelValue:
|
|
692
|
-
"onUpdate:modelValue":
|
|
691
|
+
modelValue: c.value,
|
|
692
|
+
"onUpdate:modelValue": o[6] || (o[6] = (n) => c.value = n),
|
|
693
693
|
placeholder: k.value[e.value].label,
|
|
694
694
|
clearable: !0,
|
|
695
|
-
onClear:
|
|
696
|
-
|
|
695
|
+
onClear: o[7] || (o[7] = () => {
|
|
696
|
+
u.t == "q" && k.value.table.load();
|
|
697
697
|
})
|
|
698
|
-
},
|
|
698
|
+
}, le.value), fe({
|
|
699
699
|
default: y(() => [
|
|
700
|
-
|
|
701
|
-
(
|
|
702
|
-
key:
|
|
700
|
+
h(b.$slots, `${u.t}-${e.value}`, { options: S.value }, () => [
|
|
701
|
+
(i(!0), x(W, null, R(S.value, (n) => (i(), x(W, {
|
|
702
|
+
key: n.value
|
|
703
703
|
}, [
|
|
704
|
-
|
|
705
|
-
onClick: (
|
|
706
|
-
|
|
704
|
+
G(j, q({ ref_for: !0 }, U(Ce)(n, ($) => $ != "children"), {
|
|
705
|
+
onClick: ($) => {
|
|
706
|
+
le.value.change && le.value.change(n), he();
|
|
707
707
|
}
|
|
708
708
|
}), {
|
|
709
709
|
default: y(() => {
|
|
710
|
-
var
|
|
710
|
+
var $;
|
|
711
711
|
return [
|
|
712
|
-
(
|
|
712
|
+
($ = t.value) != null && $.columns ? h(b.$slots, `${u.t}-${e.value}-options`, {
|
|
713
713
|
key: 0,
|
|
714
|
-
option:
|
|
714
|
+
option: n
|
|
715
715
|
}, () => {
|
|
716
|
-
var
|
|
716
|
+
var B;
|
|
717
717
|
return [
|
|
718
|
-
|
|
719
|
-
columns: (
|
|
720
|
-
data:
|
|
721
|
-
t:
|
|
722
|
-
},
|
|
723
|
-
|
|
724
|
-
name:
|
|
725
|
-
fn: y((
|
|
726
|
-
|
|
727
|
-
option:
|
|
728
|
-
data:
|
|
718
|
+
G(C, {
|
|
719
|
+
columns: (B = t.value) == null ? void 0 : B.columns,
|
|
720
|
+
data: n,
|
|
721
|
+
t: u.t
|
|
722
|
+
}, fe({ _: 2 }, [
|
|
723
|
+
R(b.$slots, (de, ye) => ({
|
|
724
|
+
name: ye,
|
|
725
|
+
fn: y((Fe) => [
|
|
726
|
+
h(b.$slots, ye, {
|
|
727
|
+
option: n,
|
|
728
|
+
data: Fe
|
|
729
729
|
}, void 0, !0)
|
|
730
730
|
])
|
|
731
731
|
}))
|
|
732
732
|
]), 1032, ["columns", "data", "t"])
|
|
733
733
|
];
|
|
734
|
-
}, !0) :
|
|
734
|
+
}, !0) : ce("", !0)
|
|
735
735
|
];
|
|
736
736
|
}),
|
|
737
737
|
_: 2
|
|
738
738
|
}, 1040, ["onClick"]),
|
|
739
|
-
|
|
739
|
+
n.children && n.children.length ? (i(!0), x(W, { key: 0 }, R(n.children, ($) => (i(), F(j, q({
|
|
740
740
|
style: { "margin-left": "20px" },
|
|
741
|
-
key:
|
|
741
|
+
key: $.value,
|
|
742
742
|
ref_for: !0
|
|
743
|
-
},
|
|
744
|
-
onClick: (
|
|
745
|
-
|
|
743
|
+
}, U(Ce)($, (B) => B != "children"), {
|
|
744
|
+
onClick: (B) => {
|
|
745
|
+
le.value.change && le.value.change($), he();
|
|
746
746
|
}
|
|
747
747
|
}), {
|
|
748
748
|
default: y(() => {
|
|
749
|
-
var
|
|
749
|
+
var B;
|
|
750
750
|
return [
|
|
751
|
-
(
|
|
751
|
+
(B = t.value) != null && B.columns ? h(b.$slots, `${u.t}-${e.value}-options`, {
|
|
752
752
|
key: 0,
|
|
753
|
-
option:
|
|
753
|
+
option: $
|
|
754
754
|
}, () => {
|
|
755
|
-
var
|
|
755
|
+
var de;
|
|
756
756
|
return [
|
|
757
|
-
|
|
758
|
-
columns: (
|
|
759
|
-
data:
|
|
760
|
-
t:
|
|
761
|
-
},
|
|
762
|
-
|
|
763
|
-
name:
|
|
764
|
-
fn: y((
|
|
765
|
-
|
|
766
|
-
option:
|
|
767
|
-
data:
|
|
757
|
+
G(C, {
|
|
758
|
+
columns: (de = t.value) == null ? void 0 : de.columns,
|
|
759
|
+
data: $,
|
|
760
|
+
t: u.t
|
|
761
|
+
}, fe({ _: 2 }, [
|
|
762
|
+
R(b.$slots, (ye, Fe) => ({
|
|
763
|
+
name: Fe,
|
|
764
|
+
fn: y((xe) => [
|
|
765
|
+
h(b.$slots, Fe, {
|
|
766
|
+
option: $,
|
|
767
|
+
data: xe
|
|
768
768
|
}, void 0, !0)
|
|
769
769
|
])
|
|
770
770
|
}))
|
|
771
771
|
]), 1032, ["columns", "data", "t"])
|
|
772
772
|
];
|
|
773
|
-
}, !0) :
|
|
773
|
+
}, !0) : ce("", !0)
|
|
774
774
|
];
|
|
775
775
|
}),
|
|
776
776
|
_: 2
|
|
777
|
-
}, 1040, ["onClick"]))), 128)) :
|
|
777
|
+
}, 1040, ["onClick"]))), 128)) : ce("", !0)
|
|
778
778
|
], 64))), 128))
|
|
779
779
|
], !0)
|
|
780
780
|
]),
|
|
781
781
|
_: 2
|
|
782
782
|
}, [
|
|
783
|
-
(
|
|
783
|
+
(r = t.value) != null && r.columns ? {
|
|
784
784
|
name: "header",
|
|
785
785
|
fn: y(() => {
|
|
786
|
-
var
|
|
786
|
+
var n;
|
|
787
787
|
return [
|
|
788
|
-
|
|
789
|
-
columns: (
|
|
788
|
+
G(C, {
|
|
789
|
+
columns: (n = t.value) == null ? void 0 : n.columns,
|
|
790
790
|
title: !0,
|
|
791
|
-
t:
|
|
792
|
-
},
|
|
793
|
-
|
|
794
|
-
name:
|
|
795
|
-
fn: y((
|
|
796
|
-
|
|
791
|
+
t: u.t
|
|
792
|
+
}, fe({ _: 2 }, [
|
|
793
|
+
R(b.$slots, ($, B) => ({
|
|
794
|
+
name: B,
|
|
795
|
+
fn: y((de) => [
|
|
796
|
+
h(b.$slots, B, { data: de }, void 0, !0)
|
|
797
797
|
])
|
|
798
798
|
}))
|
|
799
799
|
]), 1032, ["columns", "t"])
|
|
@@ -801,168 +801,168 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
801
801
|
}),
|
|
802
802
|
key: "0"
|
|
803
803
|
} : void 0,
|
|
804
|
-
|
|
805
|
-
name:
|
|
806
|
-
fn: y((
|
|
807
|
-
|
|
804
|
+
R(L(), (n) => ({
|
|
805
|
+
name: n,
|
|
806
|
+
fn: y(($) => [
|
|
807
|
+
h(b.$slots, `${u.t}-${e.value}-${n}`, { data: $ }, void 0, !0)
|
|
808
808
|
])
|
|
809
809
|
}))
|
|
810
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value ==
|
|
810
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == U(pe).TREESELECT ? (i(), F(O, q({
|
|
811
811
|
key: 6,
|
|
812
|
-
modelValue:
|
|
813
|
-
"onUpdate:modelValue":
|
|
812
|
+
modelValue: c.value,
|
|
813
|
+
"onUpdate:modelValue": o[8] || (o[8] = (n) => c.value = n),
|
|
814
814
|
placeholder: k.value[e.value].label
|
|
815
|
-
}, t.value, { data: T.value }),
|
|
816
|
-
|
|
817
|
-
name:
|
|
818
|
-
fn: y((
|
|
819
|
-
|
|
815
|
+
}, t.value, { data: T.value }), fe({ _: 2 }, [
|
|
816
|
+
R(L(), (n) => ({
|
|
817
|
+
name: n,
|
|
818
|
+
fn: y(($) => [
|
|
819
|
+
h(b.$slots, `${u.t}-${e.value}-${n}`, { data: $ }, void 0, !0)
|
|
820
820
|
])
|
|
821
821
|
}))
|
|
822
|
-
]), 1040, ["modelValue", "placeholder", "data"])) : d.value ==
|
|
822
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : d.value == U(pe).TIME ? (i(), F(A, q({
|
|
823
823
|
key: 7,
|
|
824
|
-
modelValue:
|
|
825
|
-
"onUpdate:modelValue":
|
|
824
|
+
modelValue: c.value,
|
|
825
|
+
"onUpdate:modelValue": o[9] || (o[9] = (n) => c.value = n),
|
|
826
826
|
"arrow-control": ""
|
|
827
827
|
}, t.value, {
|
|
828
828
|
placeholder: k.value[e.value].label
|
|
829
|
-
}), null, 16, ["modelValue", "placeholder"])) : d.value ==
|
|
829
|
+
}), null, 16, ["modelValue", "placeholder"])) : d.value == U(pe).TIMESELECT ? (i(), F(re, q({
|
|
830
830
|
key: 8,
|
|
831
|
-
modelValue:
|
|
832
|
-
"onUpdate:modelValue":
|
|
831
|
+
modelValue: c.value,
|
|
832
|
+
"onUpdate:modelValue": o[10] || (o[10] = (n) => c.value = n),
|
|
833
833
|
start: "06:30",
|
|
834
834
|
step: "00:15",
|
|
835
835
|
end: "23:30",
|
|
836
836
|
placeholder: k.value[e.value].label
|
|
837
|
-
}, t.value), null, 16, ["modelValue", "placeholder"])) :
|
|
837
|
+
}, t.value), null, 16, ["modelValue", "placeholder"])) : H(d.value) ? (i(), F(Ee, q({
|
|
838
838
|
key: 9,
|
|
839
|
-
modelValue:
|
|
840
|
-
"onUpdate:modelValue":
|
|
839
|
+
modelValue: c.value,
|
|
840
|
+
"onUpdate:modelValue": o[11] || (o[11] = (n) => c.value = n),
|
|
841
841
|
type: d.value,
|
|
842
842
|
placeholder: k.value[e.value].label,
|
|
843
|
-
"value-format":
|
|
844
|
-
}, t.value),
|
|
845
|
-
|
|
846
|
-
name:
|
|
847
|
-
fn: y((
|
|
848
|
-
|
|
843
|
+
"value-format": oe(d.value)
|
|
844
|
+
}, t.value), fe({ _: 2 }, [
|
|
845
|
+
R(L(), (n) => ({
|
|
846
|
+
name: n,
|
|
847
|
+
fn: y(($) => [
|
|
848
|
+
h(b.$slots, `${u.t}-${e.value}-${n}`, { data: $ }, void 0, !0)
|
|
849
849
|
])
|
|
850
850
|
}))
|
|
851
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : d.value ==
|
|
851
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : d.value == U(pe).COLOR ? (i(), F(we, q({
|
|
852
852
|
key: 10,
|
|
853
|
-
modelValue:
|
|
854
|
-
"onUpdate:modelValue":
|
|
855
|
-
}, t.value), null, 16, ["modelValue"])) : d.value ==
|
|
853
|
+
modelValue: c.value,
|
|
854
|
+
"onUpdate:modelValue": o[12] || (o[12] = (n) => c.value = n)
|
|
855
|
+
}, t.value), null, 16, ["modelValue"])) : d.value == U(pe).RATE ? (i(), F(De, q({
|
|
856
856
|
key: 11,
|
|
857
|
-
modelValue:
|
|
858
|
-
"onUpdate:modelValue":
|
|
859
|
-
}, t.value), null, 16, ["modelValue"])) : d.value ==
|
|
857
|
+
modelValue: c.value,
|
|
858
|
+
"onUpdate:modelValue": o[13] || (o[13] = (n) => c.value = n)
|
|
859
|
+
}, t.value), null, 16, ["modelValue"])) : d.value == U(pe).SLIDER ? (i(), F(Ve, q({
|
|
860
860
|
key: 12,
|
|
861
|
-
modelValue:
|
|
862
|
-
"onUpdate:modelValue":
|
|
863
|
-
}, t.value), null, 16, ["modelValue"])) : d.value ==
|
|
861
|
+
modelValue: c.value,
|
|
862
|
+
"onUpdate:modelValue": o[14] || (o[14] = (n) => c.value = n)
|
|
863
|
+
}, t.value), null, 16, ["modelValue"])) : d.value == U(pe).SWITCH ? (i(), F($e, q({
|
|
864
864
|
key: 13,
|
|
865
|
-
modelValue:
|
|
866
|
-
"onUpdate:modelValue":
|
|
867
|
-
}, t.value),
|
|
868
|
-
|
|
869
|
-
name:
|
|
870
|
-
fn: y((
|
|
871
|
-
|
|
865
|
+
modelValue: c.value,
|
|
866
|
+
"onUpdate:modelValue": o[15] || (o[15] = (n) => c.value = n)
|
|
867
|
+
}, t.value), fe({ _: 2 }, [
|
|
868
|
+
R(L(), (n) => ({
|
|
869
|
+
name: n,
|
|
870
|
+
fn: y(($) => [
|
|
871
|
+
h(b.$slots, `${u.t}-${e.value}-${n}`, { data: $ }, void 0, !0)
|
|
872
872
|
])
|
|
873
873
|
}))
|
|
874
|
-
]), 1040, ["modelValue"])) : d.value ==
|
|
874
|
+
]), 1040, ["modelValue"])) : d.value == U(pe).TRANSFER ? (i(), F(Me, q({
|
|
875
875
|
key: 14,
|
|
876
|
-
modelValue:
|
|
877
|
-
"onUpdate:modelValue":
|
|
878
|
-
}, t.value),
|
|
879
|
-
|
|
880
|
-
name:
|
|
881
|
-
fn: y((
|
|
882
|
-
|
|
876
|
+
modelValue: c.value,
|
|
877
|
+
"onUpdate:modelValue": o[16] || (o[16] = (n) => c.value = n)
|
|
878
|
+
}, t.value), fe({ _: 2 }, [
|
|
879
|
+
R(L(), (n) => ({
|
|
880
|
+
name: n,
|
|
881
|
+
fn: y(($) => [
|
|
882
|
+
h(b.$slots, `${u.t}-${e.value}-${n}`, { data: $ }, void 0, !0)
|
|
883
883
|
])
|
|
884
884
|
}))
|
|
885
|
-
]), 1040, ["modelValue"])) : d.value ==
|
|
885
|
+
]), 1040, ["modelValue"])) : d.value == U(pe).CASCADER ? (i(), F(Oe, q({
|
|
886
886
|
key: 15,
|
|
887
|
-
modelValue:
|
|
888
|
-
"onUpdate:modelValue":
|
|
889
|
-
}, t.value, { options:
|
|
890
|
-
|
|
891
|
-
name:
|
|
892
|
-
fn: y((
|
|
893
|
-
|
|
887
|
+
modelValue: c.value,
|
|
888
|
+
"onUpdate:modelValue": o[17] || (o[17] = (n) => c.value = n)
|
|
889
|
+
}, t.value, { options: S.value }), fe({ _: 2 }, [
|
|
890
|
+
R(L(), (n) => ({
|
|
891
|
+
name: n,
|
|
892
|
+
fn: y(($) => [
|
|
893
|
+
h(b.$slots, `${u.t}-${e.value}-${n}`, { data: $ }, void 0, !0)
|
|
894
894
|
])
|
|
895
895
|
}))
|
|
896
|
-
]), 1040, ["modelValue", "options"])) : d.value ==
|
|
896
|
+
]), 1040, ["modelValue", "options"])) : d.value == U(pe).IMAGE ? (i(), F(lt, q({
|
|
897
897
|
key: 16,
|
|
898
898
|
"file-list": t.value["file-list"],
|
|
899
|
-
"onUpdate:fileList":
|
|
899
|
+
"onUpdate:fileList": o[21] || (o[21] = (n) => t.value["file-list"] = n),
|
|
900
900
|
"list-type": "picture-card",
|
|
901
901
|
class: "custom-upload",
|
|
902
|
-
"on-preview":
|
|
903
|
-
}, { ...
|
|
902
|
+
"on-preview": se
|
|
903
|
+
}, { ...K.value, ...t.value }, {
|
|
904
904
|
ref_key: "uploadRef",
|
|
905
|
-
ref:
|
|
906
|
-
}),
|
|
905
|
+
ref: ue
|
|
906
|
+
}), fe({
|
|
907
907
|
default: y(() => {
|
|
908
|
-
var
|
|
908
|
+
var n;
|
|
909
909
|
return [
|
|
910
|
-
|
|
910
|
+
c.value ? (i(), x("div", {
|
|
911
911
|
key: 1,
|
|
912
|
-
onClick:
|
|
912
|
+
onClick: o[20] || (o[20] = ($) => $.stopPropagation()),
|
|
913
913
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
914
914
|
}, [
|
|
915
|
-
|
|
916
|
-
|
|
915
|
+
Q("div", rl, [
|
|
916
|
+
G(tt, q({
|
|
917
917
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
918
|
-
src:
|
|
919
|
-
}, { fit: "cover", lazy: !0, ...(
|
|
920
|
-
|
|
921
|
-
name:
|
|
922
|
-
fn: y((
|
|
923
|
-
|
|
918
|
+
src: c.value
|
|
919
|
+
}, { fit: "cover", lazy: !0, ...(n = t.value) == null ? void 0 : n.img }), fe({ _: 2 }, [
|
|
920
|
+
R(L(), ($, B) => ({
|
|
921
|
+
name: $,
|
|
922
|
+
fn: y((de) => [
|
|
923
|
+
h(b.$slots, `${u.t}-${e.value}-${$}`, { data: de }, void 0, !0)
|
|
924
924
|
])
|
|
925
925
|
}))
|
|
926
926
|
]), 1040, ["src"])
|
|
927
927
|
]),
|
|
928
|
-
|
|
928
|
+
Q("div", {
|
|
929
929
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "absolute", "align-items": "center", "justify-content": "center" },
|
|
930
|
-
onMouseenter:
|
|
931
|
-
onMouseleave:
|
|
930
|
+
onMouseenter: o[18] || (o[18] = ($) => E.value = !0),
|
|
931
|
+
onMouseleave: o[19] || (o[19] = ($) => E.value = !1),
|
|
932
932
|
class: "up-view"
|
|
933
933
|
}, [
|
|
934
|
-
|
|
934
|
+
E.value ? (i(), F(Xe, {
|
|
935
935
|
key: 0,
|
|
936
936
|
content: "查看大图",
|
|
937
937
|
placement: "top"
|
|
938
938
|
}, {
|
|
939
939
|
default: y(() => [
|
|
940
|
-
|
|
940
|
+
G(U(Gt), {
|
|
941
941
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
942
942
|
color: "white",
|
|
943
|
-
onClick:
|
|
943
|
+
onClick: ie
|
|
944
944
|
})
|
|
945
945
|
]),
|
|
946
946
|
_: 1
|
|
947
|
-
})) :
|
|
948
|
-
|
|
947
|
+
})) : ce("", !0),
|
|
948
|
+
K.value.showDel && E.value ? (i(), F(Xe, {
|
|
949
949
|
key: 1,
|
|
950
950
|
content: "删除",
|
|
951
951
|
placement: "top"
|
|
952
952
|
}, {
|
|
953
953
|
default: y(() => [
|
|
954
|
-
|
|
954
|
+
G(U(Qt), {
|
|
955
955
|
style: { width: "1.5em", height: "1.5em" },
|
|
956
956
|
color: "white",
|
|
957
|
-
onClick:
|
|
957
|
+
onClick: ge
|
|
958
958
|
})
|
|
959
959
|
]),
|
|
960
960
|
_: 1
|
|
961
|
-
})) :
|
|
961
|
+
})) : ce("", !0)
|
|
962
962
|
], 32)
|
|
963
|
-
])) : (
|
|
963
|
+
])) : (i(), F(qe, { key: 0 }, {
|
|
964
964
|
default: y(() => [
|
|
965
|
-
|
|
965
|
+
G(U(Xt))
|
|
966
966
|
]),
|
|
967
967
|
_: 1
|
|
968
968
|
}))
|
|
@@ -970,103 +970,103 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
970
970
|
}),
|
|
971
971
|
_: 2
|
|
972
972
|
}, [
|
|
973
|
-
|
|
974
|
-
name:
|
|
975
|
-
fn: y((
|
|
976
|
-
|
|
973
|
+
R(L(), (n, $) => ({
|
|
974
|
+
name: n,
|
|
975
|
+
fn: y((B) => [
|
|
976
|
+
h(b.$slots, `${u.t}-${e.value}-${n}`, { data: B }, void 0, !0)
|
|
977
977
|
])
|
|
978
978
|
}))
|
|
979
|
-
]), 1040, ["file-list"])) : d.value ==
|
|
979
|
+
]), 1040, ["file-list"])) : d.value == U(pe).AUTOCOMPLETE ? (i(), F(at, q({
|
|
980
980
|
key: 17,
|
|
981
|
-
modelValue:
|
|
982
|
-
"onUpdate:modelValue":
|
|
981
|
+
modelValue: c.value,
|
|
982
|
+
"onUpdate:modelValue": o[22] || (o[22] = (n) => c.value = n)
|
|
983
983
|
}, t.value, {
|
|
984
984
|
placeholder: k.value[e.value].label
|
|
985
|
-
}),
|
|
986
|
-
|
|
987
|
-
name:
|
|
988
|
-
fn: y((
|
|
989
|
-
|
|
985
|
+
}), fe({ _: 2 }, [
|
|
986
|
+
R(L(), (n, $) => ({
|
|
987
|
+
name: n,
|
|
988
|
+
fn: y((B) => [
|
|
989
|
+
h(b.$slots, `${u.t}-${e.value}-${n}`, { data: B }, void 0, !0)
|
|
990
990
|
])
|
|
991
991
|
}))
|
|
992
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value ==
|
|
992
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == U(pe).INPUTNUMBER ? (i(), F(ot, q({
|
|
993
993
|
key: 18,
|
|
994
|
-
modelValue:
|
|
995
|
-
"onUpdate:modelValue":
|
|
994
|
+
modelValue: c.value,
|
|
995
|
+
"onUpdate:modelValue": o[23] || (o[23] = (n) => c.value = n),
|
|
996
996
|
min: 0,
|
|
997
997
|
max: 1e8,
|
|
998
998
|
placeholder: k.value[e.value].label
|
|
999
|
-
}, t.value),
|
|
1000
|
-
|
|
1001
|
-
name:
|
|
1002
|
-
fn: y((
|
|
1003
|
-
|
|
999
|
+
}, t.value), fe({ _: 2 }, [
|
|
1000
|
+
R(L(), (n, $) => ({
|
|
1001
|
+
name: n,
|
|
1002
|
+
fn: y((B) => [
|
|
1003
|
+
h(b.$slots, `${u.t}-${e.value}-${n}`, { data: B }, void 0, !0)
|
|
1004
1004
|
])
|
|
1005
1005
|
}))
|
|
1006
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value ==
|
|
1007
|
-
|
|
1008
|
-
modelValue:
|
|
1009
|
-
"onUpdate:modelValue":
|
|
1006
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == U(pe).MONEY ? (i(), x("div", ul, [
|
|
1007
|
+
G(Ge, q({
|
|
1008
|
+
modelValue: c.value,
|
|
1009
|
+
"onUpdate:modelValue": o[24] || (o[24] = (n) => c.value = n),
|
|
1010
1010
|
placeholder: k.value[e.value].label,
|
|
1011
|
-
type:
|
|
1012
|
-
maxlength: ((
|
|
1013
|
-
}, { ...t.value, type: d.value }),
|
|
1011
|
+
type: U(pe).NUMBER,
|
|
1012
|
+
maxlength: ((f = t.value) == null ? void 0 : f.max) || 25
|
|
1013
|
+
}, { ...t.value, type: d.value }), fe({
|
|
1014
1014
|
suffix: y(() => [
|
|
1015
|
-
|
|
1016
|
-
title:
|
|
1015
|
+
Q("div", {
|
|
1016
|
+
title: U(vt)(c.value),
|
|
1017
1017
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1018
|
-
},
|
|
1018
|
+
}, ve(U(vt)(c.value)), 9, nl)
|
|
1019
1019
|
]),
|
|
1020
1020
|
_: 2
|
|
1021
1021
|
}, [
|
|
1022
|
-
|
|
1023
|
-
name:
|
|
1024
|
-
fn: y((
|
|
1025
|
-
|
|
1022
|
+
R(L(), (n, $) => ({
|
|
1023
|
+
name: n,
|
|
1024
|
+
fn: y((B) => [
|
|
1025
|
+
h(b.$slots, `${u.t}-${e.value}-${n}`, { data: B }, void 0, !0)
|
|
1026
1026
|
])
|
|
1027
1027
|
}))
|
|
1028
1028
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
1029
|
-
])) : (d.value === "primary" || d.value === "success" || d.value === "warning" || d.value == "danger" || d.value === "info" || d.value == "default") && t.value.isLink === !0 ? (
|
|
1030
|
-
|
|
1031
|
-
innerHTML:
|
|
1029
|
+
])) : (d.value === "primary" || d.value === "success" || d.value === "warning" || d.value == "danger" || d.value === "info" || d.value == "default") && t.value.isLink === !0 ? (i(), x("div", sl, [
|
|
1030
|
+
G(rt, q(t.value, {
|
|
1031
|
+
innerHTML: I.value || c.value
|
|
1032
1032
|
}), null, 16, ["innerHTML"])
|
|
1033
|
-
])) : (d.value === "primary" || d.value === "success" || d.value === "warning" || d.value == "danger" || d.value === "info") && t.value.isTag === !0 ? (
|
|
1034
|
-
Array.isArray(
|
|
1035
|
-
typeof
|
|
1033
|
+
])) : (d.value === "primary" || d.value === "success" || d.value === "warning" || d.value == "danger" || d.value === "info") && t.value.isTag === !0 ? (i(), x("div", il, [
|
|
1034
|
+
Array.isArray(I.value) && I.value.length > 0 ? (i(!0), x(W, { key: 0 }, R(I.value, (n, $) => (i(), x(W, { key: $ }, [
|
|
1035
|
+
typeof n == "object" ? (i(), F(l, q({
|
|
1036
1036
|
key: 0,
|
|
1037
1037
|
ref_for: !0
|
|
1038
|
-
},
|
|
1039
|
-
innerHTML:
|
|
1038
|
+
}, n, {
|
|
1039
|
+
innerHTML: n == null ? void 0 : n.value,
|
|
1040
1040
|
style: { "margin-right": "3px" }
|
|
1041
|
-
}), null, 16, ["innerHTML"])) : (
|
|
1041
|
+
}), null, 16, ["innerHTML"])) : (i(), F(l, q({
|
|
1042
1042
|
key: 1,
|
|
1043
1043
|
ref_for: !0
|
|
1044
1044
|
}, t.value, {
|
|
1045
|
-
innerHTML:
|
|
1045
|
+
innerHTML: n,
|
|
1046
1046
|
style: { "margin-right": "3px" }
|
|
1047
1047
|
}), null, 16, ["innerHTML"]))
|
|
1048
|
-
], 64))), 128)) : (
|
|
1049
|
-
innerHTML:
|
|
1048
|
+
], 64))), 128)) : (i(), F(l, q({ key: 1 }, t.value, {
|
|
1049
|
+
innerHTML: I.value || c.value
|
|
1050
1050
|
}), null, 16, ["innerHTML"]))
|
|
1051
|
-
])) : d.value == "div" ? (
|
|
1052
|
-
innerHTML:
|
|
1053
|
-
}), null, 16,
|
|
1054
|
-
innerHTML:
|
|
1055
|
-
}), null, 16,
|
|
1051
|
+
])) : d.value == "div" ? (i(), x("div", q({ key: 22 }, t.value, {
|
|
1052
|
+
innerHTML: I.value || c.value
|
|
1053
|
+
}), null, 16, dl)) : d.value == "span" ? (i(), x("span", q({ key: 23 }, t.value, {
|
|
1054
|
+
innerHTML: I.value || c.value
|
|
1055
|
+
}), null, 16, fl)) : (i(), F(Ge, q({
|
|
1056
1056
|
key: 24,
|
|
1057
|
-
modelValue:
|
|
1058
|
-
"onUpdate:modelValue":
|
|
1057
|
+
modelValue: c.value,
|
|
1058
|
+
"onUpdate:modelValue": o[25] || (o[25] = (n) => c.value = n),
|
|
1059
1059
|
placeholder: k.value[e.value].label,
|
|
1060
|
-
maxlength: ((
|
|
1060
|
+
maxlength: ((D = t.value) == null ? void 0 : D.max) || 25,
|
|
1061
1061
|
clearable: !0,
|
|
1062
|
-
onClear:
|
|
1063
|
-
|
|
1062
|
+
onClear: o[26] || (o[26] = () => {
|
|
1063
|
+
u.t == "q" && k.value.table.load();
|
|
1064
1064
|
})
|
|
1065
|
-
}, { ...t.value, type: d.value }),
|
|
1066
|
-
|
|
1067
|
-
name:
|
|
1068
|
-
fn: y((
|
|
1069
|
-
|
|
1065
|
+
}, { ...t.value, type: d.value }), fe({ _: 2 }, [
|
|
1066
|
+
R(L(), (n, $) => ({
|
|
1067
|
+
name: n,
|
|
1068
|
+
fn: y((B) => [
|
|
1069
|
+
h(b.$slots, `${u.t}-${e.value}-${n}`, { data: B }, void 0, !0)
|
|
1070
1070
|
])
|
|
1071
1071
|
}))
|
|
1072
1072
|
]), 1040, ["modelValue", "placeholder", "maxlength"]))
|
|
@@ -1074,19 +1074,19 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1074
1074
|
], 64);
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
|
-
}),
|
|
1077
|
+
}), st = /* @__PURE__ */ Le(cl, [["__scopeId", "data-v-a78297fa"]]), ct = /* @__PURE__ */ Object.assign({
|
|
1078
1078
|
name: "g-form",
|
|
1079
1079
|
inheritAttrs: !1
|
|
1080
1080
|
}, {
|
|
1081
1081
|
__name: "g-form",
|
|
1082
|
-
props: /* @__PURE__ */
|
|
1082
|
+
props: /* @__PURE__ */ Ye(["editForm"], {
|
|
1083
1083
|
modelValue: { required: !0 },
|
|
1084
1084
|
modelModifiers: {}
|
|
1085
1085
|
}),
|
|
1086
|
-
emits: /* @__PURE__ */
|
|
1087
|
-
setup(m, { expose:
|
|
1088
|
-
var ee, be,
|
|
1089
|
-
const t =
|
|
1086
|
+
emits: /* @__PURE__ */ Ye(["submit", "reset"], ["update:modelValue"]),
|
|
1087
|
+
setup(m, { expose: c, emit: u }) {
|
|
1088
|
+
var ee, be, ne, b;
|
|
1089
|
+
const t = Ue(m, "modelValue"), e = u, d = te(null), k = ht("options"), T = te({}), S = te(""), M = m, E = {
|
|
1090
1090
|
inline: !0,
|
|
1091
1091
|
type: "hidden",
|
|
1092
1092
|
"scroll-to-error": !0,
|
|
@@ -1096,7 +1096,7 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1096
1096
|
style: {
|
|
1097
1097
|
display: "flex",
|
|
1098
1098
|
flexWrap: "wrap",
|
|
1099
|
-
...(ee =
|
|
1099
|
+
...(ee = yt()) == null ? void 0 : ee.style
|
|
1100
1100
|
},
|
|
1101
1101
|
// 表单底部属性
|
|
1102
1102
|
footer: {
|
|
@@ -1130,69 +1130,69 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1130
1130
|
editable: !1
|
|
1131
1131
|
}
|
|
1132
1132
|
};
|
|
1133
|
-
t.value.form =
|
|
1134
|
-
|
|
1133
|
+
t.value.form = Te(
|
|
1134
|
+
E,
|
|
1135
1135
|
k == null ? void 0 : k.form,
|
|
1136
1136
|
(be = t.value) == null ? void 0 : be.form
|
|
1137
1137
|
);
|
|
1138
|
-
const
|
|
1138
|
+
const L = async (o, _) => {
|
|
1139
1139
|
let p = 5;
|
|
1140
1140
|
for (; p > 0; ) {
|
|
1141
|
-
if (await
|
|
1142
|
-
d.value.validate((
|
|
1143
|
-
|
|
1141
|
+
if (await We(), d.value) {
|
|
1142
|
+
d.value.validate((a, v) => {
|
|
1143
|
+
a ? e("submit", o, _) : console.log("表单验证不通过!", v);
|
|
1144
1144
|
});
|
|
1145
1145
|
return;
|
|
1146
1146
|
}
|
|
1147
|
-
p--, await new Promise((
|
|
1147
|
+
p--, await new Promise((a) => setTimeout(a, 50));
|
|
1148
1148
|
}
|
|
1149
1149
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1150
|
-
},
|
|
1151
|
-
let
|
|
1152
|
-
for (;
|
|
1153
|
-
if (await
|
|
1154
|
-
|
|
1150
|
+
}, K = async () => {
|
|
1151
|
+
let o = 5;
|
|
1152
|
+
for (; o > 0; ) {
|
|
1153
|
+
if (await We(), !d.value) {
|
|
1154
|
+
o--, await new Promise((p) => setTimeout(p, 50));
|
|
1155
1155
|
continue;
|
|
1156
1156
|
}
|
|
1157
|
-
let
|
|
1157
|
+
let _ = !0;
|
|
1158
1158
|
if (e("reset", (p) => {
|
|
1159
|
-
|
|
1160
|
-
}),
|
|
1159
|
+
_ = p;
|
|
1160
|
+
}), _) {
|
|
1161
1161
|
d.value.resetFields();
|
|
1162
1162
|
return;
|
|
1163
1163
|
}
|
|
1164
|
-
|
|
1164
|
+
o--, await new Promise((p) => setTimeout(p, 50));
|
|
1165
1165
|
}
|
|
1166
1166
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1167
1167
|
};
|
|
1168
|
-
t.value.form.submit.click =
|
|
1169
|
-
const
|
|
1168
|
+
t.value.form.submit.click = L, t.value.form.reset.click = K;
|
|
1169
|
+
const I = {
|
|
1170
1170
|
type: "hidden",
|
|
1171
1171
|
labelPosition: "right",
|
|
1172
1172
|
style: {
|
|
1173
1173
|
width: "100%"
|
|
1174
1174
|
}
|
|
1175
1175
|
};
|
|
1176
|
-
t.value.formItems =
|
|
1177
|
-
|
|
1176
|
+
t.value.formItems = Te(
|
|
1177
|
+
I,
|
|
1178
1178
|
k == null ? void 0 : k.formItems,
|
|
1179
|
-
(
|
|
1179
|
+
(ne = t == null ? void 0 : t.value) == null ? void 0 : ne.formItems
|
|
1180
1180
|
);
|
|
1181
|
-
const
|
|
1181
|
+
const H = {
|
|
1182
1182
|
span: 12,
|
|
1183
1183
|
offset: 0
|
|
1184
1184
|
};
|
|
1185
|
-
t.value.form.cols =
|
|
1186
|
-
|
|
1187
|
-
(
|
|
1185
|
+
t.value.form.cols = Te(
|
|
1186
|
+
H,
|
|
1187
|
+
(b = k == null ? void 0 : k.form) == null ? void 0 : b.cols,
|
|
1188
1188
|
t.value.form.cols
|
|
1189
1189
|
);
|
|
1190
|
-
const
|
|
1191
|
-
let
|
|
1192
|
-
if (
|
|
1193
|
-
|
|
1190
|
+
const oe = (o) => {
|
|
1191
|
+
let _ = [];
|
|
1192
|
+
if (o.rules)
|
|
1193
|
+
_ = o.rules;
|
|
1194
1194
|
else {
|
|
1195
|
-
const
|
|
1195
|
+
const a = { ...{
|
|
1196
1196
|
required: void 0,
|
|
1197
1197
|
max: void 0,
|
|
1198
1198
|
min: void 0,
|
|
@@ -1200,78 +1200,78 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1200
1200
|
url: void 0,
|
|
1201
1201
|
pattern: void 0,
|
|
1202
1202
|
validate: void 0
|
|
1203
|
-
}, ...
|
|
1204
|
-
|
|
1205
|
-
validator: (
|
|
1206
|
-
if (
|
|
1207
|
-
|
|
1203
|
+
}, ...o };
|
|
1204
|
+
a.required && _.push({ required: !0, message: `${a.label}不能为空!`, trigger: "blur" }), a.max !== void 0 && a.max !== null && a.max !== "" && (a.min === void 0 || a.min === null || a.min === "") && _.push({
|
|
1205
|
+
validator: (v, g, s) => {
|
|
1206
|
+
if (g == null || g === "") return s();
|
|
1207
|
+
a.type !== "number" && a.type !== "input-number" ? ((g == null ? void 0 : g.toString()) || "").length > Number(a.max) ? s(new Error(`${a.label}长度不能超过${a.max}个字符!`)) : s() : Number(g) > Number(a.max) ? s(new Error(`${a.label}不能大于${a.max}!`)) : s();
|
|
1208
1208
|
}
|
|
1209
|
-
}),
|
|
1210
|
-
validator: (
|
|
1211
|
-
if (
|
|
1212
|
-
|
|
1209
|
+
}), a.min !== void 0 && a.min !== null && a.min !== "" && (a.max === void 0 || a.max === null || a.max === "") && _.push({
|
|
1210
|
+
validator: (v, g, s) => {
|
|
1211
|
+
if (g == null || g === "") return s();
|
|
1212
|
+
a.type !== "number" && a.type !== "input-number" ? Number(a.min) < 1 ? s(new Error(`${a.label}长度最小值${a.min}设置错误!`)) : g.toString().length < Number(a.min) ? s(new Error(`${a.label}长度不能少于${a.min}个字符!`)) : s() : Number(g) < Number(a.min) ? s(new Error(`${a.label}不能小于${a.min}!`)) : s();
|
|
1213
1213
|
}
|
|
1214
|
-
}),
|
|
1215
|
-
validator: (
|
|
1216
|
-
if (
|
|
1217
|
-
const
|
|
1218
|
-
|
|
1214
|
+
}), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" && _.push({
|
|
1215
|
+
validator: (v, g, s) => {
|
|
1216
|
+
if (g == null || g === "") return s();
|
|
1217
|
+
const V = Number(a.min), C = Number(a.max);
|
|
1218
|
+
a.type !== "number" && a.type !== "input-number" ? Number(a.min) < 1 ? s(new Error(`${a.label}长度最小值${a.min}设置错误!`)) : g.toString().length < V || g.toString().length > C ? s(new Error(`${a.label}长度必须在${V}-${C}个字符之间!`)) : s() : Number(g) < V || g > C ? s(new Error(`${a.label}必须在${V}-${C}之间!`)) : s();
|
|
1219
1219
|
}
|
|
1220
|
-
}),
|
|
1221
|
-
validator: (
|
|
1220
|
+
}), a.type == "email" && _.push({ type: "email", message: "不是一个正确的邮箱地址!" }), a.type == "url" && _.push({ type: "url", message: "不是一个合正确的URL!" }), a.pattern && _.push({ pattern: a == null ? void 0 : a.pattern, message: (a == null ? void 0 : a.message) || "格式不正确!" }), a.validate && _.push({
|
|
1221
|
+
validator: (v, g, s) => a.validate(v, g, s)
|
|
1222
1222
|
});
|
|
1223
1223
|
}
|
|
1224
|
-
return
|
|
1225
|
-
},
|
|
1226
|
-
var
|
|
1227
|
-
const p =
|
|
1228
|
-
if (((
|
|
1229
|
-
const
|
|
1230
|
-
return { ...
|
|
1224
|
+
return _;
|
|
1225
|
+
}, le = (o, _ = !1) => {
|
|
1226
|
+
var v, g, s, V, C;
|
|
1227
|
+
const p = _ ? o : o == null ? void 0 : o.item, a = typeof (p == null ? void 0 : p.editor) == "function" ? p.editor(T.value, (v = t.value.form) == null ? void 0 : v.modalState) : (p == null ? void 0 : p.editor) || {};
|
|
1228
|
+
if (((g = t.value.form) == null ? void 0 : g.modalState) === "edit") {
|
|
1229
|
+
const j = typeof (p == null ? void 0 : p.editor) == "object" ? (s = p.editor) == null ? void 0 : s.ep : typeof (p == null ? void 0 : p.editor) == "function" ? a == null ? void 0 : a.ep : {};
|
|
1230
|
+
return { ...a, ...j };
|
|
1231
1231
|
}
|
|
1232
|
-
if (((
|
|
1233
|
-
const
|
|
1234
|
-
return { ...
|
|
1232
|
+
if (((V = t.value.form) == null ? void 0 : V.modalState) === "add") {
|
|
1233
|
+
const j = typeof (p == null ? void 0 : p.editor) == "object" ? (C = p.editor) == null ? void 0 : C.ap : typeof (p == null ? void 0 : p.editor) == "function" ? a == null ? void 0 : a.ap : {};
|
|
1234
|
+
return { ...a, ...j };
|
|
1235
1235
|
}
|
|
1236
|
-
return
|
|
1237
|
-
},
|
|
1238
|
-
var p,
|
|
1239
|
-
const
|
|
1240
|
-
return ((
|
|
1236
|
+
return a;
|
|
1237
|
+
}, Z = (o) => {
|
|
1238
|
+
var p, a, v, g, s;
|
|
1239
|
+
const _ = typeof o.editor == "function" ? o.editor(T.value, (p = t.value.form) == null ? void 0 : p.modalState) : o.editor;
|
|
1240
|
+
return ((a = t.value.form) == null ? void 0 : a.modalState) === "edit" ? ((v = _ == null ? void 0 : _.ep) == null ? void 0 : v.type) ?? (_ == null ? void 0 : _.type) ?? o.type : ((g = t.value.form) == null ? void 0 : g.modalState) === "add" ? ((s = _ == null ? void 0 : _.ap) == null ? void 0 : s.type) ?? (_ == null ? void 0 : _.type) ?? o.type : (_ == null ? void 0 : _.type) ?? o.type;
|
|
1241
1241
|
};
|
|
1242
1242
|
et(() => {
|
|
1243
|
-
|
|
1244
|
-
}),
|
|
1243
|
+
me(), M != null && M.editForm ? T.value = M.editForm : T.value = ge.value;
|
|
1244
|
+
}), Rt(() => {
|
|
1245
1245
|
d.value = null;
|
|
1246
1246
|
});
|
|
1247
|
-
const
|
|
1248
|
-
|
|
1249
|
-
for (const [
|
|
1250
|
-
t.value[
|
|
1251
|
-
},
|
|
1252
|
-
var p,
|
|
1253
|
-
const
|
|
1254
|
-
return t.value.form.modalState === "edit" ? ((
|
|
1255
|
-
}).map((
|
|
1256
|
-
const
|
|
1257
|
-
return Object.entries(
|
|
1247
|
+
const me = () => {
|
|
1248
|
+
S.value = Math.random().toString(36).substring(2);
|
|
1249
|
+
for (const [o, _] of Object.entries(he.value))
|
|
1250
|
+
t.value[o].formItem = { ...t.value[o].formItem, ..._.formItem }, t.value[o].formItem.style = { ...t.value[o].formItem.style, ..._.formItem.style };
|
|
1251
|
+
}, he = je(() => Object.fromEntries(Object.entries(t.value).filter((o) => o[1].type != "hidden").filter((o) => o[1].edit !== !1).filter((o) => !["table", "tableColumns", "query", "queryItems"].includes(o[0])).filter((o) => o[1].editor !== !1).filter((o) => o[1].type !== "control").filter((o) => {
|
|
1252
|
+
var p, a, v;
|
|
1253
|
+
const _ = typeof o[1].editor == "function" ? o[1].editor(T.value, (p = t.value.form) == null ? void 0 : p.modalState) : o[1].editor;
|
|
1254
|
+
return t.value.form.modalState === "edit" ? ((a = _ == null ? void 0 : _.ep) == null ? void 0 : a.editor) !== !1 : t.value.form.modalState === "add" ? ((v = _ == null ? void 0 : _.ap) == null ? void 0 : v.editor) !== !1 : !0;
|
|
1255
|
+
}).map((o) => [o[0], o[1]]))), ge = je(() => Object.fromEntries(Object.entries(t.value).filter((o) => o[1].type != "hidden").filter((o) => o[1].type != "control").map((o) => [o[0], o[1].value]))), se = je(() => {
|
|
1256
|
+
const o = /* @__PURE__ */ new Map();
|
|
1257
|
+
return Object.entries(he.value).forEach(([_, p]) => {
|
|
1258
1258
|
if (p.groupName) {
|
|
1259
|
-
const
|
|
1260
|
-
|
|
1261
|
-
groupName:
|
|
1259
|
+
const a = p.groupName;
|
|
1260
|
+
o.has(a) || o.set(a, {
|
|
1261
|
+
groupName: a,
|
|
1262
1262
|
items: []
|
|
1263
|
-
}),
|
|
1263
|
+
}), o.get(a).items.push({ key: _, item: p });
|
|
1264
1264
|
}
|
|
1265
|
-
}),
|
|
1266
|
-
|
|
1267
|
-
}), Array.from(
|
|
1268
|
-
}),
|
|
1265
|
+
}), o.forEach((_) => {
|
|
1266
|
+
_.tabPane = Te(..._.items.map(({ item: p }) => p.tabPane || {}));
|
|
1267
|
+
}), Array.from(o.values());
|
|
1268
|
+
}), ie = [
|
|
1269
1269
|
{
|
|
1270
1270
|
name: "f-submit",
|
|
1271
1271
|
label: t.value.form.submit.label,
|
|
1272
1272
|
click: t.value.form.submit.click,
|
|
1273
1273
|
hidden: t.value.form.submit.hidden,
|
|
1274
|
-
info:
|
|
1274
|
+
info: Ce(t.value.form.submit, (o) => !["click"].includes(o)),
|
|
1275
1275
|
sort: t.value.form.submit.sort ?? 1,
|
|
1276
1276
|
// 使用空值合并运算符
|
|
1277
1277
|
originalOrder: 0
|
|
@@ -1281,37 +1281,37 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1281
1281
|
name: "f-reset",
|
|
1282
1282
|
label: t.value.form.reset.label,
|
|
1283
1283
|
click: t.value.form.reset.click,
|
|
1284
|
-
info:
|
|
1284
|
+
info: Ce(t.value.form.reset, (o) => !["click"].includes(o)),
|
|
1285
1285
|
hidden: t.value.form.reset.hidden,
|
|
1286
1286
|
sort: t.value.form.reset.sort ?? 2,
|
|
1287
1287
|
// 使用空值合并运算符
|
|
1288
1288
|
originalOrder: 1
|
|
1289
1289
|
// 添加原始顺序标识
|
|
1290
1290
|
}
|
|
1291
|
-
],
|
|
1292
|
-
return
|
|
1293
|
-
submitClickHandler:
|
|
1294
|
-
resetClickHandler:
|
|
1295
|
-
}), (
|
|
1296
|
-
const p =
|
|
1297
|
-
return
|
|
1291
|
+
], ue = je(() => ie.filter((o) => !o.hidden).sort((o, _) => o.sort - _.sort || o.originalOrder - _.originalOrder));
|
|
1292
|
+
return c({
|
|
1293
|
+
submitClickHandler: L,
|
|
1294
|
+
resetClickHandler: K
|
|
1295
|
+
}), (o, _) => {
|
|
1296
|
+
const p = Y("el-form-item"), a = Y("el-col"), v = Y("el-tab-pane"), g = Y("el-tabs"), s = Y("el-button"), V = Y("el-form");
|
|
1297
|
+
return i(), F(V, q({
|
|
1298
1298
|
ref_key: "gform",
|
|
1299
1299
|
ref: d,
|
|
1300
1300
|
model: T.value,
|
|
1301
1301
|
style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
|
|
1302
|
-
},
|
|
1302
|
+
}, U(Ce)(t.value.form, (C) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(C)), { class: "g-form-container" }), {
|
|
1303
1303
|
default: y(() => [
|
|
1304
|
-
|
|
1305
|
-
var
|
|
1304
|
+
se.value.length > 0 ? h(o.$slots, "default", { key: 0 }, () => {
|
|
1305
|
+
var C, j, X;
|
|
1306
1306
|
return [
|
|
1307
|
-
|
|
1307
|
+
G(g, q({
|
|
1308
1308
|
class: "demo-tabs",
|
|
1309
|
-
modelValue:
|
|
1310
|
-
"onUpdate:modelValue":
|
|
1309
|
+
modelValue: se.value[0].groupName,
|
|
1310
|
+
"onUpdate:modelValue": _[0] || (_[0] = (O) => se.value[0].groupName = O),
|
|
1311
1311
|
style: { width: "100%" }
|
|
1312
1312
|
}, t.value.form.tabs), {
|
|
1313
1313
|
default: y(() => [
|
|
1314
|
-
(
|
|
1314
|
+
(i(!0), x(W, null, R(se.value, (O) => (i(), F(v, q({
|
|
1315
1315
|
key: O.groupName,
|
|
1316
1316
|
label: O.groupName,
|
|
1317
1317
|
name: O.groupName,
|
|
@@ -1319,43 +1319,43 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1319
1319
|
ref_for: !0
|
|
1320
1320
|
}, O.tabPane), {
|
|
1321
1321
|
default: y(() => [
|
|
1322
|
-
(
|
|
1323
|
-
key:
|
|
1322
|
+
(i(!0), x(W, null, R(O.items, (A, re) => (i(), F(a, q({ ref_for: !0 }, { ...t.value.form.cols, ...A == null ? void 0 : A.item.col }, {
|
|
1323
|
+
key: A.key,
|
|
1324
1324
|
style: { width: "100%" }
|
|
1325
1325
|
}), {
|
|
1326
1326
|
default: y(() => {
|
|
1327
|
-
var
|
|
1327
|
+
var Ee, we;
|
|
1328
1328
|
return [
|
|
1329
|
-
|
|
1330
|
-
label:
|
|
1331
|
-
prop:
|
|
1332
|
-
rules:
|
|
1329
|
+
G(p, q({
|
|
1330
|
+
label: A == null ? void 0 : A.item.label,
|
|
1331
|
+
prop: A.key,
|
|
1332
|
+
rules: oe(A == null ? void 0 : A.item),
|
|
1333
1333
|
ref_for: !0
|
|
1334
|
-
}, { ...(
|
|
1334
|
+
}, { ...(Ee = t.value) == null ? void 0 : Ee.formItems, ...(we = A == null ? void 0 : A.item) == null ? void 0 : we.formItem }, { style: { width: "100%" } }), {
|
|
1335
1335
|
default: y(() => [
|
|
1336
|
-
|
|
1337
|
-
item:
|
|
1336
|
+
h(o.$slots, "f-" + A.key, {
|
|
1337
|
+
item: A == null ? void 0 : A.item,
|
|
1338
1338
|
formInfo: T.value,
|
|
1339
1339
|
model: t.value
|
|
1340
1340
|
}, () => [
|
|
1341
|
-
(
|
|
1342
|
-
modelValue: T.value[
|
|
1343
|
-
"onUpdate:modelValue": (
|
|
1344
|
-
item:
|
|
1345
|
-
ctrlKey:
|
|
1346
|
-
ctrlType:
|
|
1341
|
+
(i(), F(st, {
|
|
1342
|
+
modelValue: T.value[A.key],
|
|
1343
|
+
"onUpdate:modelValue": (De) => T.value[A.key] = De,
|
|
1344
|
+
item: le(A),
|
|
1345
|
+
ctrlKey: A.key,
|
|
1346
|
+
ctrlType: Z(A == null ? void 0 : A.item),
|
|
1347
1347
|
model: t.value,
|
|
1348
|
-
key: `${
|
|
1348
|
+
key: `${A.key}-${S.value}`,
|
|
1349
1349
|
class: "g-ctrl-container",
|
|
1350
1350
|
t: "f",
|
|
1351
1351
|
formInfo: T.value
|
|
1352
|
-
},
|
|
1353
|
-
|
|
1354
|
-
name:
|
|
1352
|
+
}, fe({ _: 2 }, [
|
|
1353
|
+
R(o.$slots, (De, Ve) => ({
|
|
1354
|
+
name: Ve,
|
|
1355
1355
|
fn: y(($e) => [
|
|
1356
|
-
|
|
1356
|
+
h(o.$slots, Ve, {
|
|
1357
1357
|
data: $e,
|
|
1358
|
-
item:
|
|
1358
|
+
item: A.item,
|
|
1359
1359
|
model: t.value
|
|
1360
1360
|
})
|
|
1361
1361
|
])
|
|
@@ -1375,77 +1375,77 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1375
1375
|
]),
|
|
1376
1376
|
_: 3
|
|
1377
1377
|
}, 16, ["modelValue"]),
|
|
1378
|
-
(
|
|
1379
|
-
|
|
1380
|
-
style:
|
|
1378
|
+
(X = (j = (C = t.value) == null ? void 0 : C.form) == null ? void 0 : j.footer) != null && X.hidden ? ce("", !0) : h(o.$slots, "f-footer", { key: 0 }, () => [
|
|
1379
|
+
Q("div", {
|
|
1380
|
+
style: Ie(t.value.form.footer.style)
|
|
1381
1381
|
}, [
|
|
1382
|
-
|
|
1383
|
-
(
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
onClick:
|
|
1382
|
+
h(o.$slots, "f-footer-left"),
|
|
1383
|
+
(i(!0), x(W, null, R(ue.value, (O) => (i(), x(W, null, [
|
|
1384
|
+
h(o.$slots, O.name + "-left"),
|
|
1385
|
+
h(o.$slots, O.name, {}, () => [
|
|
1386
|
+
G(s, q({ ref_for: !0 }, O.info, {
|
|
1387
|
+
onClick: Ct((A) => O.click(T.value, t.value), ["stop"])
|
|
1388
1388
|
}), {
|
|
1389
1389
|
default: y(() => [
|
|
1390
|
-
|
|
1390
|
+
_e(ve(O == null ? void 0 : O.label), 1)
|
|
1391
1391
|
]),
|
|
1392
1392
|
_: 2
|
|
1393
1393
|
}, 1040, ["onClick"])
|
|
1394
1394
|
]),
|
|
1395
|
-
|
|
1395
|
+
h(o.$slots, O.name + "-right")
|
|
1396
1396
|
], 64))), 256)),
|
|
1397
|
-
|
|
1397
|
+
h(o.$slots, "f-footer-right")
|
|
1398
1398
|
], 4)
|
|
1399
1399
|
])
|
|
1400
1400
|
];
|
|
1401
|
-
}) :
|
|
1402
|
-
var
|
|
1401
|
+
}) : h(o.$slots, "default", { key: 1 }, () => {
|
|
1402
|
+
var C, j, X;
|
|
1403
1403
|
return [
|
|
1404
|
-
(
|
|
1405
|
-
key:
|
|
1404
|
+
(i(!0), x(W, null, R(he.value, (O, A) => (i(), F(a, q({ ref_for: !0 }, { ...t.value.form.cols, ...O.col }, {
|
|
1405
|
+
key: A,
|
|
1406
1406
|
style: { width: "100%" }
|
|
1407
1407
|
}), {
|
|
1408
1408
|
default: y(() => {
|
|
1409
|
-
var
|
|
1409
|
+
var re;
|
|
1410
1410
|
return [
|
|
1411
|
-
|
|
1411
|
+
G(p, q({
|
|
1412
1412
|
label: O.label,
|
|
1413
|
-
prop:
|
|
1414
|
-
rules:
|
|
1413
|
+
prop: A,
|
|
1414
|
+
rules: oe(O),
|
|
1415
1415
|
ref_for: !0
|
|
1416
|
-
}, { ...(
|
|
1417
|
-
label: y((
|
|
1418
|
-
|
|
1419
|
-
data:
|
|
1416
|
+
}, { ...(re = t.value) == null ? void 0 : re.formItems, ...O == null ? void 0 : O.formItem }, { style: { width: "100%" } }), {
|
|
1417
|
+
label: y((Ee) => [
|
|
1418
|
+
h(o.$slots, `f-${A}-label`, {
|
|
1419
|
+
data: Ee,
|
|
1420
1420
|
item: O,
|
|
1421
1421
|
model: t.value
|
|
1422
1422
|
}, () => [
|
|
1423
|
-
|
|
1423
|
+
_e(ve(O.label), 1)
|
|
1424
1424
|
])
|
|
1425
1425
|
]),
|
|
1426
1426
|
default: y(() => [
|
|
1427
|
-
|
|
1427
|
+
h(o.$slots, "f-" + A, {
|
|
1428
1428
|
item: O,
|
|
1429
1429
|
formInfo: T.value,
|
|
1430
1430
|
model: t.value
|
|
1431
1431
|
}, () => [
|
|
1432
|
-
(
|
|
1433
|
-
modelValue: T.value[
|
|
1434
|
-
"onUpdate:modelValue": (
|
|
1435
|
-
item:
|
|
1436
|
-
ctrlKey:
|
|
1437
|
-
ctrlType:
|
|
1438
|
-
key: `${
|
|
1432
|
+
(i(), F(st, {
|
|
1433
|
+
modelValue: T.value[A],
|
|
1434
|
+
"onUpdate:modelValue": (Ee) => T.value[A] = Ee,
|
|
1435
|
+
item: le(O, !0),
|
|
1436
|
+
ctrlKey: A,
|
|
1437
|
+
ctrlType: Z(O),
|
|
1438
|
+
key: `${A}-${S.value}`,
|
|
1439
1439
|
model: t.value,
|
|
1440
1440
|
class: "g-ctrl-container",
|
|
1441
1441
|
t: "f",
|
|
1442
1442
|
formInfo: T.value
|
|
1443
|
-
},
|
|
1444
|
-
|
|
1445
|
-
name:
|
|
1446
|
-
fn: y((
|
|
1447
|
-
|
|
1448
|
-
data:
|
|
1443
|
+
}, fe({ _: 2 }, [
|
|
1444
|
+
R(o.$slots, (Ee, we) => ({
|
|
1445
|
+
name: we,
|
|
1446
|
+
fn: y((De) => [
|
|
1447
|
+
h(o.$slots, we, {
|
|
1448
|
+
data: De,
|
|
1449
1449
|
item: O,
|
|
1450
1450
|
model: t.value
|
|
1451
1451
|
})
|
|
@@ -1460,26 +1460,26 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1460
1460
|
}),
|
|
1461
1461
|
_: 2
|
|
1462
1462
|
}, 1040))), 128)),
|
|
1463
|
-
(
|
|
1464
|
-
|
|
1465
|
-
style:
|
|
1463
|
+
(X = (j = (C = t.value) == null ? void 0 : C.form) == null ? void 0 : j.footer) != null && X.hidden ? ce("", !0) : h(o.$slots, "f-footer", { key: 0 }, () => [
|
|
1464
|
+
Q("div", {
|
|
1465
|
+
style: Ie(t.value.form.footer.style)
|
|
1466
1466
|
}, [
|
|
1467
|
-
|
|
1468
|
-
(
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
onClick:
|
|
1467
|
+
h(o.$slots, "f-footer-left"),
|
|
1468
|
+
(i(!0), x(W, null, R(ue.value, (O) => (i(), x(W, null, [
|
|
1469
|
+
h(o.$slots, O.name + "-left"),
|
|
1470
|
+
h(o.$slots, O.name, {}, () => [
|
|
1471
|
+
G(s, q({ ref_for: !0 }, O.info, {
|
|
1472
|
+
onClick: Ct((A) => O.click(T.value, t.value), ["stop"])
|
|
1473
1473
|
}), {
|
|
1474
1474
|
default: y(() => [
|
|
1475
|
-
|
|
1475
|
+
_e(ve(O == null ? void 0 : O.label), 1)
|
|
1476
1476
|
]),
|
|
1477
1477
|
_: 2
|
|
1478
1478
|
}, 1040, ["onClick"])
|
|
1479
1479
|
]),
|
|
1480
|
-
|
|
1480
|
+
h(o.$slots, O.name + "-right")
|
|
1481
1481
|
], 64))), 256)),
|
|
1482
|
-
|
|
1482
|
+
h(o.$slots, "f-footer-right")
|
|
1483
1483
|
], 4)
|
|
1484
1484
|
])
|
|
1485
1485
|
];
|
|
@@ -1489,9 +1489,9 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1489
1489
|
}, 16, ["model"]);
|
|
1490
1490
|
};
|
|
1491
1491
|
}
|
|
1492
|
-
}),
|
|
1492
|
+
}), Vt = {
|
|
1493
1493
|
__name: "g-query-item",
|
|
1494
|
-
props: /* @__PURE__ */
|
|
1494
|
+
props: /* @__PURE__ */ Ye(["more"], {
|
|
1495
1495
|
modelValue: { required: !0 },
|
|
1496
1496
|
modelModifiers: {},
|
|
1497
1497
|
info: { required: !0 },
|
|
@@ -1499,49 +1499,49 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1499
1499
|
}),
|
|
1500
1500
|
emits: ["update:modelValue", "update:info"],
|
|
1501
1501
|
setup(m) {
|
|
1502
|
-
const
|
|
1503
|
-
var
|
|
1504
|
-
return typeof
|
|
1505
|
-
}).map((
|
|
1506
|
-
const
|
|
1507
|
-
return (
|
|
1502
|
+
const c = Ue(m, "modelValue"), u = m, t = Ue(m, "info"), e = (T) => je(() => Object.fromEntries(Object.entries(c.value).filter((S) => {
|
|
1503
|
+
var M;
|
|
1504
|
+
return typeof S[1].search == "function" ? S[1].search && ((M = S[1].search(t.value, c.value.table)) == null ? void 0 : M.more) === T : S[1].search && S[1].search.more === T;
|
|
1505
|
+
}).map((S) => [S[0], S[1]]))).value, d = (T) => typeof T.search == "function" ? T.search(t.value, c.value.table) : T.search || {}, k = (T) => {
|
|
1506
|
+
const S = d(T);
|
|
1507
|
+
return (S == null ? void 0 : S.type) || T.type;
|
|
1508
1508
|
};
|
|
1509
|
-
return (T,
|
|
1510
|
-
const
|
|
1511
|
-
return
|
|
1512
|
-
key:
|
|
1513
|
-
item:
|
|
1509
|
+
return (T, S) => {
|
|
1510
|
+
const M = Y("el-form-item");
|
|
1511
|
+
return i(!0), x(W, null, R(e(u.more), (E, L) => h(T.$slots, `q-${L}`, {
|
|
1512
|
+
key: L,
|
|
1513
|
+
item: E,
|
|
1514
1514
|
queryModel: t.value,
|
|
1515
|
-
model:
|
|
1515
|
+
model: c.value
|
|
1516
1516
|
}, () => [
|
|
1517
|
-
|
|
1518
|
-
label:
|
|
1517
|
+
G(M, q({
|
|
1518
|
+
label: E.label,
|
|
1519
1519
|
ref_for: !0
|
|
1520
|
-
}, { ...
|
|
1520
|
+
}, { ...c.value.queryItems, ...d(E) }), {
|
|
1521
1521
|
label: y(() => [
|
|
1522
|
-
|
|
1523
|
-
item:
|
|
1524
|
-
model:
|
|
1522
|
+
h(T.$slots, `q-${L}-label`, {
|
|
1523
|
+
item: E,
|
|
1524
|
+
model: c.value
|
|
1525
1525
|
})
|
|
1526
1526
|
]),
|
|
1527
1527
|
default: y(() => [
|
|
1528
|
-
|
|
1529
|
-
modelValue: t.value[
|
|
1530
|
-
"onUpdate:modelValue": (
|
|
1531
|
-
item: { ...
|
|
1532
|
-
ctrlKey:
|
|
1533
|
-
ctrlType: k(
|
|
1534
|
-
model:
|
|
1528
|
+
G(st, {
|
|
1529
|
+
modelValue: t.value[L],
|
|
1530
|
+
"onUpdate:modelValue": (K) => t.value[L] = K,
|
|
1531
|
+
item: { ...E == null ? void 0 : E.editor, ...d(E) },
|
|
1532
|
+
ctrlKey: L,
|
|
1533
|
+
ctrlType: k(E),
|
|
1534
|
+
model: c.value,
|
|
1535
1535
|
t: "q",
|
|
1536
1536
|
formInfo: t.value
|
|
1537
|
-
},
|
|
1538
|
-
|
|
1539
|
-
name:
|
|
1540
|
-
fn: y((
|
|
1541
|
-
|
|
1542
|
-
data:
|
|
1543
|
-
item:
|
|
1544
|
-
model:
|
|
1537
|
+
}, fe({ _: 2 }, [
|
|
1538
|
+
R(Object.keys(T.$slots), (K) => ({
|
|
1539
|
+
name: K,
|
|
1540
|
+
fn: y((I) => [
|
|
1541
|
+
h(T.$slots, K, {
|
|
1542
|
+
data: I,
|
|
1543
|
+
item: E,
|
|
1544
|
+
model: c.value
|
|
1545
1545
|
})
|
|
1546
1546
|
])
|
|
1547
1547
|
}))
|
|
@@ -1552,10 +1552,10 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1552
1552
|
])), 128);
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
|
-
},
|
|
1555
|
+
}, ml = {
|
|
1556
1556
|
key: 0,
|
|
1557
1557
|
class: "outer"
|
|
1558
|
-
},
|
|
1558
|
+
}, pl = { class: "inner" }, vl = {
|
|
1559
1559
|
__name: "g-query",
|
|
1560
1560
|
props: {
|
|
1561
1561
|
modelValue: { required: !0 },
|
|
@@ -1563,9 +1563,9 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1563
1563
|
info: { required: !0 },
|
|
1564
1564
|
infoModifiers: {}
|
|
1565
1565
|
},
|
|
1566
|
-
emits: /* @__PURE__ */
|
|
1567
|
-
setup(m, { emit:
|
|
1568
|
-
const
|
|
1566
|
+
emits: /* @__PURE__ */ Ye(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1567
|
+
setup(m, { emit: c }) {
|
|
1568
|
+
const u = Ue(m, "modelValue"), t = c, e = ht("options"), d = te(!1), k = Ue(m, "info"), T = {
|
|
1569
1569
|
hidden: !1,
|
|
1570
1570
|
type: "hidden",
|
|
1571
1571
|
labelWidth: 100,
|
|
@@ -1613,8 +1613,8 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1613
1613
|
}
|
|
1614
1614
|
}
|
|
1615
1615
|
};
|
|
1616
|
-
|
|
1617
|
-
const
|
|
1616
|
+
u.value.query = Te(T, e == null ? void 0 : e.query, u.value.query);
|
|
1617
|
+
const S = {
|
|
1618
1618
|
2: {
|
|
1619
1619
|
title: "更多查询",
|
|
1620
1620
|
showClose: !1,
|
|
@@ -1631,174 +1631,174 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1631
1631
|
trigger: "click"
|
|
1632
1632
|
}
|
|
1633
1633
|
};
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1634
|
+
u.value.query.more.dialog = Te(
|
|
1635
|
+
S[u.value.query.more.mode] || {},
|
|
1636
|
+
u.value.query.more.dialog
|
|
1637
1637
|
);
|
|
1638
|
-
const
|
|
1638
|
+
const M = {
|
|
1639
1639
|
type: "hidden",
|
|
1640
1640
|
labelPosition: "right",
|
|
1641
1641
|
style: {
|
|
1642
1642
|
width: "280px"
|
|
1643
1643
|
}
|
|
1644
1644
|
};
|
|
1645
|
-
|
|
1646
|
-
const
|
|
1647
|
-
const
|
|
1648
|
-
model:
|
|
1645
|
+
u.value.queryItems = Te(M, e == null ? void 0 : e.queryItems, u.value.queryItems);
|
|
1646
|
+
const E = (I, H) => {
|
|
1647
|
+
const oe = Object.keys(I.slots).filter((le) => le !== "default").reduce((le, Z) => (le[Z] = (me) => I.slots[Z]({
|
|
1648
|
+
model: u.value
|
|
1649
1649
|
// 传递当前模型数据
|
|
1650
|
-
}),
|
|
1651
|
-
return
|
|
1652
|
-
modelValue:
|
|
1653
|
-
"onUpdate:modelValue": (
|
|
1650
|
+
}), le), {});
|
|
1651
|
+
return Ae(Vt, {
|
|
1652
|
+
modelValue: u.value,
|
|
1653
|
+
"onUpdate:modelValue": (le) => u.value = le,
|
|
1654
1654
|
info: k.value,
|
|
1655
|
-
"onUpdate:info": (
|
|
1656
|
-
more:
|
|
1657
|
-
},
|
|
1658
|
-
},
|
|
1659
|
-
var
|
|
1660
|
-
const
|
|
1655
|
+
"onUpdate:info": (le) => k.value = le,
|
|
1656
|
+
more: H
|
|
1657
|
+
}, oe);
|
|
1658
|
+
}, L = Tt(), K = () => {
|
|
1659
|
+
var oe, le, Z, me, he, ge, se, ie, ue;
|
|
1660
|
+
const I = [
|
|
1661
1661
|
{
|
|
1662
1662
|
key: "query",
|
|
1663
|
-
hidden: (
|
|
1664
|
-
component:
|
|
1663
|
+
hidden: (Z = (le = (oe = u.value) == null ? void 0 : oe.query) == null ? void 0 : le.query) == null ? void 0 : Z.hidden,
|
|
1664
|
+
component: ke,
|
|
1665
1665
|
props: {
|
|
1666
|
-
...
|
|
1667
|
-
onClick:
|
|
1666
|
+
...u.value.query.query,
|
|
1667
|
+
onClick: u.value.query.query.click
|
|
1668
1668
|
},
|
|
1669
|
-
label:
|
|
1670
|
-
sort:
|
|
1669
|
+
label: u.value.query.query.label,
|
|
1670
|
+
sort: u.value.query.query.sort || 0
|
|
1671
1671
|
},
|
|
1672
1672
|
{
|
|
1673
1673
|
key: "reset",
|
|
1674
|
-
hidden: (
|
|
1675
|
-
component:
|
|
1674
|
+
hidden: (ge = (he = (me = u.value) == null ? void 0 : me.query) == null ? void 0 : he.reset) == null ? void 0 : ge.hidden,
|
|
1675
|
+
component: ke,
|
|
1676
1676
|
props: {
|
|
1677
|
-
...
|
|
1678
|
-
onClick:
|
|
1677
|
+
...u.value.query.reset,
|
|
1678
|
+
onClick: u.value.query.reset.click
|
|
1679
1679
|
},
|
|
1680
|
-
label:
|
|
1681
|
-
sort:
|
|
1680
|
+
label: u.value.query.reset.label,
|
|
1681
|
+
sort: u.value.query.reset.sort || 0
|
|
1682
1682
|
},
|
|
1683
1683
|
{
|
|
1684
1684
|
key: "more",
|
|
1685
|
-
hidden: (
|
|
1686
|
-
component:
|
|
1687
|
-
props:
|
|
1688
|
-
...
|
|
1689
|
-
onClick:
|
|
1685
|
+
hidden: (ue = (ie = (se = u.value) == null ? void 0 : se.query) == null ? void 0 : ie.more) == null ? void 0 : ue.hidden,
|
|
1686
|
+
component: u.value.query.more.mode === 3 ? it : ke,
|
|
1687
|
+
props: u.value.query.more.mode === 3 ? { ...u.value.query.more.dialog } : {
|
|
1688
|
+
...u.value.query.more,
|
|
1689
|
+
onClick: u.value.query.more.click
|
|
1690
1690
|
},
|
|
1691
|
-
label:
|
|
1692
|
-
sort:
|
|
1693
|
-
content:
|
|
1691
|
+
label: u.value.query.more.label,
|
|
1692
|
+
sort: u.value.query.more.sort || 0,
|
|
1693
|
+
content: u.value.query.more.mode === 3 ? () => Ae(ut, {
|
|
1694
1694
|
class: "query-form",
|
|
1695
|
-
...
|
|
1696
|
-
}, () =>
|
|
1695
|
+
...Ce(u.value.query, (ee) => !["query", "more", "reset"].includes(ee))
|
|
1696
|
+
}, () => E({ slots: L }, !0)) : null
|
|
1697
1697
|
}
|
|
1698
1698
|
];
|
|
1699
|
-
return
|
|
1700
|
-
reference: () =>
|
|
1699
|
+
return I.sort((ee, be) => ee.sort - be.sort), I.filter((ee) => !ee.hidden).map((ee) => ee.key === "more" && ee.component === it ? Ae(it, ee.props, {
|
|
1700
|
+
reference: () => Ae(ke, u.value.query.more, () => ee.label),
|
|
1701
1701
|
default: ee.content
|
|
1702
|
-
}) : (ee.props.slot = "query-" + ee.key, ee.label ?
|
|
1702
|
+
}) : (ee.props.slot = "query-" + ee.key, ee.label ? Ae(ee.component, ee.props, () => ee.label) : Ae(ee.component, ee.props)));
|
|
1703
1703
|
};
|
|
1704
|
-
return (
|
|
1705
|
-
var
|
|
1706
|
-
const
|
|
1707
|
-
return
|
|
1708
|
-
|
|
1704
|
+
return (I, H) => {
|
|
1705
|
+
var Z, me, he, ge, se, ie, ue, ee, be, ne, b, o, _, p, a, v, g;
|
|
1706
|
+
const oe = Y("el-form-item"), le = Y("el-drawer");
|
|
1707
|
+
return i(), x(W, null, [
|
|
1708
|
+
Q("div", {
|
|
1709
1709
|
class: "g-query-container",
|
|
1710
|
-
style:
|
|
1710
|
+
style: Ie((me = (Z = u.value.query) == null ? void 0 : Z.container) == null ? void 0 : me.style)
|
|
1711
1711
|
}, [
|
|
1712
|
-
|
|
1712
|
+
G(U(ut), dt(Dt(U(Ce)(u.value.query, (s) => !["query", "more", "reset", "btns"].includes(s)))), {
|
|
1713
1713
|
default: y(() => {
|
|
1714
|
-
var
|
|
1714
|
+
var s, V;
|
|
1715
1715
|
return [
|
|
1716
|
-
(
|
|
1717
|
-
((
|
|
1716
|
+
(i(), F(Re(E({ slots: I.$slots }, void 0)))),
|
|
1717
|
+
((V = (s = u.value.query) == null ? void 0 : s.container) == null ? void 0 : V.inline) === !0 ? (i(), F(oe, { key: 0 }, {
|
|
1718
1718
|
default: y(() => {
|
|
1719
|
-
var
|
|
1719
|
+
var C, j, X, O, A;
|
|
1720
1720
|
return [
|
|
1721
|
-
|
|
1722
|
-
style:
|
|
1721
|
+
Q("div", {
|
|
1722
|
+
style: Ie((j = (C = u.value.query) == null ? void 0 : C.btns) == null ? void 0 : j.style)
|
|
1723
1723
|
}, [
|
|
1724
|
-
|
|
1724
|
+
u.value.query.group ? (i(), F(U(nt), { key: 0 }, {
|
|
1725
1725
|
default: y(() => [
|
|
1726
|
-
(
|
|
1727
|
-
(
|
|
1726
|
+
(i(!0), x(W, null, R(K(), (re) => h(I.$slots, re.props.slot, {}, () => [
|
|
1727
|
+
(i(), F(Re(re)))
|
|
1728
1728
|
], !0)), 256)),
|
|
1729
|
-
|
|
1729
|
+
h(I.$slots, "q-btns", {}, void 0, !0)
|
|
1730
1730
|
]),
|
|
1731
1731
|
_: 3
|
|
1732
|
-
})) : (
|
|
1733
|
-
(
|
|
1732
|
+
})) : (i(), x(W, { key: 1 }, [
|
|
1733
|
+
(A = (O = (X = u.value) == null ? void 0 : X.query) == null ? void 0 : O.btns) != null && A.group ? (i(), F(U(nt), { key: 0 }, {
|
|
1734
1734
|
default: y(() => [
|
|
1735
|
-
(
|
|
1736
|
-
(
|
|
1735
|
+
(i(!0), x(W, null, R(K(), (re) => h(I.$slots, re.props.slot, {}, () => [
|
|
1736
|
+
(i(), F(Re(re)))
|
|
1737
1737
|
], !0)), 256))
|
|
1738
1738
|
]),
|
|
1739
1739
|
_: 3
|
|
1740
|
-
})) : (
|
|
1741
|
-
(
|
|
1740
|
+
})) : (i(!0), x(W, { key: 1 }, R(K(), (re) => h(I.$slots, re.props.slot, {}, () => [
|
|
1741
|
+
(i(), F(Re(re)))
|
|
1742
1742
|
], !0)), 256)),
|
|
1743
|
-
|
|
1743
|
+
h(I.$slots, "q-btns", {}, void 0, !0)
|
|
1744
1744
|
], 64))
|
|
1745
1745
|
], 4)
|
|
1746
1746
|
];
|
|
1747
1747
|
}),
|
|
1748
1748
|
_: 3
|
|
1749
|
-
})) :
|
|
1749
|
+
})) : ce("", !0)
|
|
1750
1750
|
];
|
|
1751
1751
|
}),
|
|
1752
1752
|
_: 3
|
|
1753
1753
|
}, 16),
|
|
1754
|
-
((
|
|
1754
|
+
((se = (ge = (he = u.value) == null ? void 0 : he.query) == null ? void 0 : ge.container) == null ? void 0 : se.inline) === !1 ? (i(), x("div", {
|
|
1755
1755
|
key: 0,
|
|
1756
|
-
style:
|
|
1756
|
+
style: Ie((ue = (ie = u.value.query) == null ? void 0 : ie.btns) == null ? void 0 : ue.style)
|
|
1757
1757
|
}, [
|
|
1758
|
-
|
|
1758
|
+
u.value.query.group ? (i(), F(U(nt), { key: 0 }, {
|
|
1759
1759
|
default: y(() => [
|
|
1760
|
-
(
|
|
1761
|
-
(
|
|
1760
|
+
(i(!0), x(W, null, R(K(), (s) => h(I.$slots, s.props.slot, {}, () => [
|
|
1761
|
+
(i(), F(Re(s)))
|
|
1762
1762
|
], !0)), 256)),
|
|
1763
|
-
|
|
1763
|
+
h(I.$slots, "q-btns", {}, void 0, !0)
|
|
1764
1764
|
]),
|
|
1765
1765
|
_: 3
|
|
1766
|
-
})) : (
|
|
1767
|
-
(be = (ee =
|
|
1766
|
+
})) : (i(), x(W, { key: 1 }, [
|
|
1767
|
+
(be = (ee = u.value.query) == null ? void 0 : ee.btns) != null && be.group ? (i(), F(U(nt), { key: 0 }, {
|
|
1768
1768
|
default: y(() => [
|
|
1769
|
-
(
|
|
1770
|
-
(
|
|
1769
|
+
(i(!0), x(W, null, R(K(), (s) => h(I.$slots, s.props.slot, {}, () => [
|
|
1770
|
+
(i(), F(Re(s)))
|
|
1771
1771
|
], !0)), 256))
|
|
1772
1772
|
]),
|
|
1773
1773
|
_: 3
|
|
1774
|
-
})) : (
|
|
1775
|
-
(
|
|
1774
|
+
})) : (i(!0), x(W, { key: 1 }, R(K(), (s) => h(I.$slots, s.props.slot, {}, () => [
|
|
1775
|
+
(i(), F(Re(s)))
|
|
1776
1776
|
], !0)), 256)),
|
|
1777
|
-
|
|
1777
|
+
h(I.$slots, "q-btns", {}, void 0, !0)
|
|
1778
1778
|
], 64))
|
|
1779
|
-
], 4)) :
|
|
1779
|
+
], 4)) : ce("", !0)
|
|
1780
1780
|
], 4),
|
|
1781
|
-
d.value && !((
|
|
1781
|
+
d.value && !((o = (b = (ne = u.value) == null ? void 0 : ne.query) == null ? void 0 : b.more) != null && o.hidden) && u.value.query.more.mode == 2 ? (i(), F(le, q({
|
|
1782
1782
|
key: 0,
|
|
1783
1783
|
modelValue: d.value,
|
|
1784
|
-
"onUpdate:modelValue":
|
|
1784
|
+
"onUpdate:modelValue": H[4] || (H[4] = (s) => d.value = s),
|
|
1785
1785
|
title: "更多查询",
|
|
1786
1786
|
"show-close": !1
|
|
1787
|
-
},
|
|
1787
|
+
}, u.value.query.more.dialog), fe({
|
|
1788
1788
|
default: y(() => [
|
|
1789
|
-
|
|
1789
|
+
G(U(ut), q(U(Ce)(u.value.query, (s) => !["query", "more", "reset"].includes(s)), { style: { width: "98%" } }), {
|
|
1790
1790
|
default: y(() => [
|
|
1791
|
-
|
|
1792
|
-
modelValue:
|
|
1793
|
-
"onUpdate:modelValue":
|
|
1791
|
+
G(Vt, {
|
|
1792
|
+
modelValue: u.value,
|
|
1793
|
+
"onUpdate:modelValue": H[0] || (H[0] = (s) => u.value = s),
|
|
1794
1794
|
info: k.value,
|
|
1795
|
-
"onUpdate:info":
|
|
1795
|
+
"onUpdate:info": H[1] || (H[1] = (s) => k.value = s),
|
|
1796
1796
|
more: !0
|
|
1797
|
-
},
|
|
1798
|
-
|
|
1799
|
-
name:
|
|
1800
|
-
fn: y((
|
|
1801
|
-
|
|
1797
|
+
}, fe({ _: 2 }, [
|
|
1798
|
+
R(I.$slots, (s, V, C) => ({
|
|
1799
|
+
name: V,
|
|
1800
|
+
fn: y((j) => [
|
|
1801
|
+
h(I.$slots, V, { model: u.value }, void 0, !0)
|
|
1802
1802
|
])
|
|
1803
1803
|
}))
|
|
1804
1804
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1808,23 +1808,23 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1808
1808
|
]),
|
|
1809
1809
|
_: 2
|
|
1810
1810
|
}, [
|
|
1811
|
-
(
|
|
1811
|
+
(g = (v = (a = (p = (_ = u.value) == null ? void 0 : _.query) == null ? void 0 : p.more) == null ? void 0 : a.dialog) == null ? void 0 : v.footer) != null && g.hidden ? void 0 : {
|
|
1812
1812
|
name: "footer",
|
|
1813
1813
|
fn: y(() => [
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
onClick:
|
|
1814
|
+
Q("div", dt(Dt(u.value.query.more.dialog.footer)), [
|
|
1815
|
+
G(U(ke), q(u.value.query.query, {
|
|
1816
|
+
onClick: H[2] || (H[2] = (s) => u.value.query.query.click())
|
|
1817
1817
|
}), {
|
|
1818
1818
|
default: y(() => [
|
|
1819
|
-
|
|
1819
|
+
_e(ve(u.value.query.query.label), 1)
|
|
1820
1820
|
]),
|
|
1821
1821
|
_: 1
|
|
1822
1822
|
}, 16),
|
|
1823
|
-
|
|
1824
|
-
onClick:
|
|
1823
|
+
G(U(ke), q(u.value.query.reset, {
|
|
1824
|
+
onClick: H[3] || (H[3] = (s) => u.value.query.reset.click())
|
|
1825
1825
|
}), {
|
|
1826
1826
|
default: y(() => [
|
|
1827
|
-
|
|
1827
|
+
_e(ve(u.value.query.reset.label), 1)
|
|
1828
1828
|
]),
|
|
1829
1829
|
_: 1
|
|
1830
1830
|
}, 16)
|
|
@@ -1832,27 +1832,27 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1832
1832
|
]),
|
|
1833
1833
|
key: "0"
|
|
1834
1834
|
}
|
|
1835
|
-
]), 1040, ["modelValue"])) :
|
|
1836
|
-
|
|
1835
|
+
]), 1040, ["modelValue"])) : ce("", !0),
|
|
1836
|
+
G(jt, {
|
|
1837
1837
|
duration: 300,
|
|
1838
1838
|
name: "nested",
|
|
1839
1839
|
style: { padding: "10px" }
|
|
1840
1840
|
}, {
|
|
1841
1841
|
default: y(() => {
|
|
1842
|
-
var
|
|
1842
|
+
var s, V, C;
|
|
1843
1843
|
return [
|
|
1844
|
-
d.value && !((
|
|
1845
|
-
|
|
1846
|
-
|
|
1844
|
+
d.value && !((C = (V = (s = u.value) == null ? void 0 : s.query) == null ? void 0 : V.more) != null && C.hidden) && u.value.query.more.mode == 1 ? (i(), x("div", ml, [
|
|
1845
|
+
Q("div", pl, [
|
|
1846
|
+
u.value.query.more.mode == 1 ? Lt((i(), F(U(ut), dt(q({ key: 0 }, U(Ce)(u.value.query, (j) => !["query", "more", "reset"].includes(j)))), {
|
|
1847
1847
|
default: y(() => [
|
|
1848
|
-
(
|
|
1848
|
+
(i(), F(Re(E({ slots: I.$slots }, !0))))
|
|
1849
1849
|
]),
|
|
1850
1850
|
_: 1
|
|
1851
1851
|
}, 16)), [
|
|
1852
|
-
[
|
|
1853
|
-
]) :
|
|
1852
|
+
[Nt, d.value]
|
|
1853
|
+
]) : ce("", !0)
|
|
1854
1854
|
])
|
|
1855
|
-
])) :
|
|
1855
|
+
])) : ce("", !0)
|
|
1856
1856
|
];
|
|
1857
1857
|
}),
|
|
1858
1858
|
_: 1
|
|
@@ -1860,101 +1860,101 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1860
1860
|
], 64);
|
|
1861
1861
|
};
|
|
1862
1862
|
}
|
|
1863
|
-
},
|
|
1863
|
+
}, hl = /* @__PURE__ */ Le(vl, [["__scopeId", "data-v-80ccf765"]]), yl = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, gl = { style: { padding: "10px", "box-sizing": "border-box" } }, bl = { style: { margin: "10px" } }, $l = {
|
|
1864
1864
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
1865
1865
|
id: "excelSortEl"
|
|
1866
|
-
},
|
|
1866
|
+
}, wl = ["textContent"], El = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, kl = {
|
|
1867
1867
|
__name: "check-excel-item",
|
|
1868
1868
|
props: {
|
|
1869
1869
|
items: Array,
|
|
1870
1870
|
commitText: String
|
|
1871
1871
|
},
|
|
1872
1872
|
emits: ["excel"],
|
|
1873
|
-
setup(m, { emit:
|
|
1874
|
-
const
|
|
1875
|
-
e.value.forEach((
|
|
1876
|
-
|
|
1873
|
+
setup(m, { emit: c }) {
|
|
1874
|
+
const u = m, t = c, e = te(u.items), d = () => {
|
|
1875
|
+
e.value.forEach((S) => {
|
|
1876
|
+
S.value = !0;
|
|
1877
1877
|
});
|
|
1878
1878
|
}, k = () => {
|
|
1879
|
-
e.value.forEach((
|
|
1880
|
-
|
|
1879
|
+
e.value.forEach((S) => {
|
|
1880
|
+
S.value = !1;
|
|
1881
1881
|
});
|
|
1882
1882
|
}, T = () => {
|
|
1883
|
-
t("excel", e.value, (
|
|
1884
|
-
if (!
|
|
1883
|
+
t("excel", e.value, (S, M = "excel.xls") => {
|
|
1884
|
+
if (!S) {
|
|
1885
1885
|
console.error("下载链接无效");
|
|
1886
1886
|
return;
|
|
1887
1887
|
}
|
|
1888
1888
|
try {
|
|
1889
|
-
const
|
|
1890
|
-
|
|
1891
|
-
} catch (
|
|
1892
|
-
console.error("下载文件时出现错误:",
|
|
1889
|
+
const E = document.createElement("a");
|
|
1890
|
+
E.href = S, E.download = M, E.style.display = "none", document.body.appendChild(E), E.click(), document.body.removeChild(E);
|
|
1891
|
+
} catch (E) {
|
|
1892
|
+
console.error("下载文件时出现错误:", E);
|
|
1893
1893
|
}
|
|
1894
1894
|
});
|
|
1895
1895
|
};
|
|
1896
1896
|
return et(() => {
|
|
1897
|
-
const
|
|
1897
|
+
const S = new qt(document.getElementById("excelSortEl"), {
|
|
1898
1898
|
animation: 150,
|
|
1899
1899
|
onEnd: () => {
|
|
1900
|
-
let
|
|
1901
|
-
console.log(
|
|
1900
|
+
let E = S.toArray();
|
|
1901
|
+
console.log(E);
|
|
1902
1902
|
}
|
|
1903
|
-
}),
|
|
1904
|
-
|
|
1905
|
-
|
|
1903
|
+
}), M = S;
|
|
1904
|
+
Pt(() => {
|
|
1905
|
+
M && M.destroy();
|
|
1906
1906
|
});
|
|
1907
|
-
}), (
|
|
1908
|
-
const
|
|
1909
|
-
return
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1907
|
+
}), (S, M) => {
|
|
1908
|
+
const E = Y("el-divider"), L = Y("el-alert"), K = Y("el-checkbox"), I = Y("el-button");
|
|
1909
|
+
return i(), x("div", yl, [
|
|
1910
|
+
Q("div", gl, [
|
|
1911
|
+
Q("div", bl, [
|
|
1912
|
+
Q("a", {
|
|
1913
1913
|
onClick: d,
|
|
1914
1914
|
style: { cursor: "pointer" }
|
|
1915
1915
|
}, "全选"),
|
|
1916
|
-
|
|
1917
|
-
|
|
1916
|
+
G(E, { direction: "vertical" }),
|
|
1917
|
+
Q("a", {
|
|
1918
1918
|
onClick: k,
|
|
1919
1919
|
style: { cursor: "pointer" }
|
|
1920
1920
|
}, "全不选")
|
|
1921
1921
|
]),
|
|
1922
|
-
|
|
1922
|
+
G(L, {
|
|
1923
1923
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
1924
1924
|
type: "warning",
|
|
1925
1925
|
"show-icon": "",
|
|
1926
1926
|
closable: !1,
|
|
1927
1927
|
style: { "margin-bottom": "10px" }
|
|
1928
1928
|
}),
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
(
|
|
1929
|
+
M[0] || (M[0] = Q("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
1930
|
+
Q("div", $l, [
|
|
1931
|
+
(i(!0), x(W, null, R(e.value, (H) => (i(), F(K, {
|
|
1932
1932
|
class: "check-box-hover",
|
|
1933
1933
|
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" },
|
|
1934
|
-
"data-id":
|
|
1935
|
-
modelValue:
|
|
1936
|
-
"onUpdate:modelValue": (
|
|
1937
|
-
key:
|
|
1938
|
-
title:
|
|
1934
|
+
"data-id": H.key,
|
|
1935
|
+
modelValue: H.value,
|
|
1936
|
+
"onUpdate:modelValue": (oe) => H.value = oe,
|
|
1937
|
+
key: H.key,
|
|
1938
|
+
title: H.label
|
|
1939
1939
|
}, {
|
|
1940
1940
|
default: y(() => [
|
|
1941
|
-
|
|
1942
|
-
textContent:
|
|
1941
|
+
Q("span", {
|
|
1942
|
+
textContent: ve(H.label),
|
|
1943
1943
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
1944
|
-
}, null, 8,
|
|
1944
|
+
}, null, 8, wl)
|
|
1945
1945
|
]),
|
|
1946
1946
|
_: 2
|
|
1947
1947
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
1948
1948
|
])
|
|
1949
1949
|
]),
|
|
1950
|
-
|
|
1951
|
-
|
|
1950
|
+
Q("div", El, [
|
|
1951
|
+
G(I, {
|
|
1952
1952
|
type: "primary",
|
|
1953
1953
|
onClick: T,
|
|
1954
|
-
disabled: e.value.filter((
|
|
1954
|
+
disabled: e.value.filter((H) => H.value).length < 1
|
|
1955
1955
|
}, {
|
|
1956
1956
|
default: y(() => [
|
|
1957
|
-
|
|
1957
|
+
_e(ve(u.commitText), 1)
|
|
1958
1958
|
]),
|
|
1959
1959
|
_: 1
|
|
1960
1960
|
}, 8, ["disabled"])
|
|
@@ -1962,46 +1962,46 @@ const it = /* @__PURE__ */ Jt(Kt), He = (m, f) => {
|
|
|
1962
1962
|
]);
|
|
1963
1963
|
};
|
|
1964
1964
|
}
|
|
1965
|
-
},
|
|
1966
|
-
|
|
1965
|
+
}, _l = /* @__PURE__ */ Le(kl, [["__scopeId", "data-v-51dfb7ef"]]), Be = new Kt("gyc");
|
|
1966
|
+
Be.version(1).stores({
|
|
1967
1967
|
tableInfo: "++id,[user+page+key],user,page,key,showCol,width,sort",
|
|
1968
1968
|
tableList: "++id,name"
|
|
1969
1969
|
});
|
|
1970
|
-
async function
|
|
1971
|
-
if (await
|
|
1972
|
-
let d = await
|
|
1973
|
-
return await
|
|
1970
|
+
async function Ke(m, c, u, t = {}) {
|
|
1971
|
+
if (await Be.tableInfo.where({ user: m, page: c, key: u }).count() > 0) {
|
|
1972
|
+
let d = await Be.tableInfo.where({ user: m, page: c, key: u }).first();
|
|
1973
|
+
return await Be.tableInfo.put({ ...d, ...t }), "update success";
|
|
1974
1974
|
} else {
|
|
1975
1975
|
let d = { showCol: !0, width: "auto", sort: 0, ...t };
|
|
1976
|
-
return await
|
|
1976
|
+
return await Be.tableInfo.add({ user: m, page: c, key: u, ...d }), "add success";
|
|
1977
1977
|
}
|
|
1978
1978
|
}
|
|
1979
|
-
async function
|
|
1980
|
-
return await
|
|
1979
|
+
async function Cl(m, c) {
|
|
1980
|
+
return await Be.tableInfo.where({ user: m, page: c }).toArray();
|
|
1981
1981
|
}
|
|
1982
|
-
async function
|
|
1982
|
+
async function Dl(m, c) {
|
|
1983
1983
|
try {
|
|
1984
|
-
const
|
|
1985
|
-
return console.log("删除了" +
|
|
1986
|
-
} catch (
|
|
1987
|
-
throw console.error("删除表格项设置信息时出错:",
|
|
1984
|
+
const u = await Be.tableInfo.where({ user: m, page: c }).delete();
|
|
1985
|
+
return console.log("删除了" + u + "条数据"), u;
|
|
1986
|
+
} catch (u) {
|
|
1987
|
+
throw console.error("删除表格项设置信息时出错:", u), u;
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
1990
|
-
async function
|
|
1991
|
-
return await
|
|
1990
|
+
async function Vl(m) {
|
|
1991
|
+
return await Be.tableList.where({ name: m }).first();
|
|
1992
1992
|
}
|
|
1993
|
-
async function
|
|
1994
|
-
return typeof m == "string" && (m = { name: m }), await
|
|
1993
|
+
async function Ml(m) {
|
|
1994
|
+
return typeof m == "string" && (m = { name: m }), await Be.tableList.add(m), "add success";
|
|
1995
1995
|
}
|
|
1996
|
-
const
|
|
1996
|
+
const Fl = {
|
|
1997
1997
|
style: { margin: "10px" },
|
|
1998
1998
|
class: "allcheck"
|
|
1999
|
-
},
|
|
1999
|
+
}, Tl = {
|
|
2000
2000
|
id: "cols",
|
|
2001
2001
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2002
|
-
},
|
|
2002
|
+
}, Sl = ["textContent"], ql = {
|
|
2003
2003
|
__name: "columns-setting",
|
|
2004
|
-
props: /* @__PURE__ */
|
|
2004
|
+
props: /* @__PURE__ */ Ye({
|
|
2005
2005
|
name: {
|
|
2006
2006
|
type: String,
|
|
2007
2007
|
required: !0
|
|
@@ -2012,34 +2012,34 @@ const Cl = {
|
|
|
2012
2012
|
}),
|
|
2013
2013
|
emits: ["update:modelValue"],
|
|
2014
2014
|
setup(m) {
|
|
2015
|
-
const
|
|
2016
|
-
|
|
2015
|
+
const c = m, u = te([]), t = Ue(m, "modelValue"), e = async (M, E) => {
|
|
2016
|
+
M ? t.value[E].showCol = !0 : t.value[E].showCol = !1;
|
|
2017
2017
|
try {
|
|
2018
|
-
const
|
|
2019
|
-
console.log(
|
|
2020
|
-
} catch (
|
|
2021
|
-
console.error("列显示状态保存信息时出错:",
|
|
2018
|
+
const L = await Ke(t.value.table.user, c.name, E, { showCol: M });
|
|
2019
|
+
console.log(L);
|
|
2020
|
+
} catch (L) {
|
|
2021
|
+
console.error("列显示状态保存信息时出错:", L), Se({
|
|
2022
2022
|
type: "error",
|
|
2023
2023
|
message: "列显示状态保存信息失败!"
|
|
2024
2024
|
});
|
|
2025
2025
|
}
|
|
2026
2026
|
}, d = () => {
|
|
2027
|
-
const
|
|
2028
|
-
if (
|
|
2029
|
-
let
|
|
2027
|
+
const M = document.getElementById("cols");
|
|
2028
|
+
if (M) {
|
|
2029
|
+
let E = qt.create(M, {
|
|
2030
2030
|
animation: 150,
|
|
2031
2031
|
filter: ".filtered",
|
|
2032
2032
|
//
|
|
2033
2033
|
sort: !0,
|
|
2034
2034
|
onEnd: () => {
|
|
2035
|
-
|
|
2036
|
-
t.value[
|
|
2037
|
-
let
|
|
2035
|
+
E.toArray().forEach(async (K, I) => {
|
|
2036
|
+
t.value[K].sort = I;
|
|
2037
|
+
let H = t.value[K].width || "auto";
|
|
2038
2038
|
try {
|
|
2039
|
-
const
|
|
2040
|
-
console.log(
|
|
2041
|
-
} catch (
|
|
2042
|
-
console.error("列排序和宽度保存信息时出错:",
|
|
2039
|
+
const oe = await Ke(t.value.table.user, c.name, K, { sort: I, width: H });
|
|
2040
|
+
console.log(oe);
|
|
2041
|
+
} catch (oe) {
|
|
2042
|
+
console.error("列排序和宽度保存信息时出错:", oe), Se({
|
|
2043
2043
|
type: "error",
|
|
2044
2044
|
message: "列排序和宽度保存信息失败!"
|
|
2045
2045
|
});
|
|
@@ -2050,49 +2050,49 @@ const Cl = {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
}, k = async () => {
|
|
2052
2052
|
try {
|
|
2053
|
-
for (const
|
|
2054
|
-
|
|
2055
|
-
const
|
|
2053
|
+
for (const M of u.value) {
|
|
2054
|
+
M.showCol = !0, t.value[M.value].showCol = !0;
|
|
2055
|
+
const E = await Ke(t.value.table.user, c.name, M.value, {
|
|
2056
2056
|
showCol: !0,
|
|
2057
|
-
width:
|
|
2058
|
-
sort:
|
|
2057
|
+
width: M.width,
|
|
2058
|
+
sort: M.sort
|
|
2059
2059
|
});
|
|
2060
|
-
console.log(
|
|
2060
|
+
console.log(E);
|
|
2061
2061
|
}
|
|
2062
|
-
} catch (
|
|
2063
|
-
console.error("全选列保存信息时出错:",
|
|
2062
|
+
} catch (M) {
|
|
2063
|
+
console.error("全选列保存信息时出错:", M), Se({
|
|
2064
2064
|
type: "error",
|
|
2065
2065
|
message: "全选列保存信息失败!"
|
|
2066
2066
|
});
|
|
2067
2067
|
}
|
|
2068
2068
|
}, T = async () => {
|
|
2069
2069
|
try {
|
|
2070
|
-
const
|
|
2071
|
-
for (const
|
|
2072
|
-
|
|
2073
|
-
const
|
|
2070
|
+
const M = u.value.filter((E) => !E.alwaysShow);
|
|
2071
|
+
for (const E of M) {
|
|
2072
|
+
E.showCol = !1, t.value[E.value].showCol = !1;
|
|
2073
|
+
const L = await Ke(t.value.table.user, c.name, E.value, {
|
|
2074
2074
|
showCol: !1,
|
|
2075
|
-
width:
|
|
2076
|
-
sort:
|
|
2075
|
+
width: E.width,
|
|
2076
|
+
sort: E.sort
|
|
2077
2077
|
});
|
|
2078
|
-
console.log(
|
|
2078
|
+
console.log(L);
|
|
2079
2079
|
}
|
|
2080
|
-
} catch (
|
|
2081
|
-
console.error("清除列保存信息时出错:",
|
|
2080
|
+
} catch (M) {
|
|
2081
|
+
console.error("清除列保存信息时出错:", M), Se({
|
|
2082
2082
|
type: "error",
|
|
2083
2083
|
message: "清除列保存信息失败!"
|
|
2084
2084
|
});
|
|
2085
2085
|
}
|
|
2086
|
-
},
|
|
2087
|
-
|
|
2086
|
+
}, S = () => {
|
|
2087
|
+
Ft.confirm("确定要复位吗?", "提示", {
|
|
2088
2088
|
confirmButtonText: "确定",
|
|
2089
2089
|
cancelButtonText: "取消",
|
|
2090
2090
|
type: "warning"
|
|
2091
2091
|
}).then(() => {
|
|
2092
|
-
|
|
2093
|
-
console.log(
|
|
2094
|
-
}).catch((
|
|
2095
|
-
console.error("复位操作出错:",
|
|
2092
|
+
Dl(t.value.table.user, c.name).then((M) => {
|
|
2093
|
+
console.log(M), window.location.reload();
|
|
2094
|
+
}).catch((M) => {
|
|
2095
|
+
console.error("复位操作出错:", M), Se({
|
|
2096
2096
|
type: "info",
|
|
2097
2097
|
message: "复位失败!"
|
|
2098
2098
|
});
|
|
@@ -2100,50 +2100,50 @@ const Cl = {
|
|
|
2100
2100
|
});
|
|
2101
2101
|
};
|
|
2102
2102
|
return et(async () => {
|
|
2103
|
-
|
|
2104
|
-
label:
|
|
2105
|
-
value:
|
|
2106
|
-
alwaysShow:
|
|
2107
|
-
showCol:
|
|
2108
|
-
sort:
|
|
2109
|
-
width:
|
|
2110
|
-
})).sort((
|
|
2111
|
-
}), (
|
|
2112
|
-
const
|
|
2113
|
-
return
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2103
|
+
u.value = Object.entries(t.value).filter(([, M]) => M.visible !== !1).filter(([, M]) => M.type != "hidden").map(([M, E]) => ({
|
|
2104
|
+
label: E.label,
|
|
2105
|
+
value: M,
|
|
2106
|
+
alwaysShow: E.alwaysShow,
|
|
2107
|
+
showCol: E.showCol !== !1,
|
|
2108
|
+
sort: E.sort || 0,
|
|
2109
|
+
width: E.width || "auto"
|
|
2110
|
+
})).sort((M, E) => M.sort - E.sort), d();
|
|
2111
|
+
}), (M, E) => {
|
|
2112
|
+
const L = Y("el-divider"), K = Y("el-alert"), I = Y("el-checkbox");
|
|
2113
|
+
return i(), x("div", null, [
|
|
2114
|
+
Q("div", Fl, [
|
|
2115
|
+
Q("a", { onClick: k }, "全选"),
|
|
2116
|
+
G(L, { direction: "vertical" }),
|
|
2117
|
+
Q("a", { onClick: T }, "全不选"),
|
|
2118
|
+
G(L, { direction: "vertical" }),
|
|
2119
|
+
Q("a", { onClick: S }, "复位")
|
|
2120
2120
|
]),
|
|
2121
|
-
|
|
2121
|
+
G(K, {
|
|
2122
2122
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
2123
2123
|
type: "warning",
|
|
2124
2124
|
"show-icon": "",
|
|
2125
2125
|
closable: !1,
|
|
2126
2126
|
style: { "margin-bottom": "10px" }
|
|
2127
2127
|
}),
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
(
|
|
2131
|
-
modelValue:
|
|
2132
|
-
"onUpdate:modelValue": (
|
|
2133
|
-
"data-id":
|
|
2134
|
-
class:
|
|
2135
|
-
onChange: (
|
|
2128
|
+
Q("div", null, [
|
|
2129
|
+
Q("div", Tl, [
|
|
2130
|
+
(i(!0), x(W, null, R(u.value, (H) => (i(), F(I, {
|
|
2131
|
+
modelValue: H.showCol,
|
|
2132
|
+
"onUpdate:modelValue": (oe) => H.showCol = oe,
|
|
2133
|
+
"data-id": H.value,
|
|
2134
|
+
class: St(["check-box-hover", H.value == "control" ? "filtered" : ""]),
|
|
2135
|
+
onChange: (oe) => e(oe, H.value),
|
|
2136
2136
|
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" },
|
|
2137
|
-
value:
|
|
2138
|
-
title:
|
|
2139
|
-
disabled:
|
|
2140
|
-
key:
|
|
2137
|
+
value: H.value,
|
|
2138
|
+
title: H.label,
|
|
2139
|
+
disabled: H.alwaysShow,
|
|
2140
|
+
key: H.value
|
|
2141
2141
|
}, {
|
|
2142
2142
|
default: y(() => [
|
|
2143
|
-
|
|
2144
|
-
textContent:
|
|
2143
|
+
Q("span", {
|
|
2144
|
+
textContent: ve(H.label),
|
|
2145
2145
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2146
|
-
}, null, 8,
|
|
2146
|
+
}, null, 8, Sl)
|
|
2147
2147
|
]),
|
|
2148
2148
|
_: 2
|
|
2149
2149
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2152,30 +2152,30 @@ const Cl = {
|
|
|
2152
2152
|
]);
|
|
2153
2153
|
};
|
|
2154
2154
|
}
|
|
2155
|
-
},
|
|
2155
|
+
}, xl = /* @__PURE__ */ Le(ql, [["__scopeId", "data-v-c423ede0"]]), Ol = { class: "g-table-container" }, Al = {
|
|
2156
2156
|
key: 0,
|
|
2157
2157
|
class: "table-query-container"
|
|
2158
|
-
},
|
|
2158
|
+
}, Bl = { class: "table-container" }, Il = ["innerHTML"], Yl = { key: 0 }, Ul = { style: { display: "flex", "margin-top": "-2px" } }, Rl = { style: { display: "flex", flex: "1" } }, jl = {
|
|
2159
2159
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
2160
2160
|
id: "table-form"
|
|
2161
|
-
},
|
|
2161
|
+
}, Ll = { key: 1 }, Nl = { style: { display: "flex" } }, Pl = { style: { display: "flex", flex: "1" } }, Hl = /* @__PURE__ */ Object.assign({
|
|
2162
2162
|
name: "g-table",
|
|
2163
2163
|
inheritAttrs: !1
|
|
2164
2164
|
}, {
|
|
2165
2165
|
__name: "g-table",
|
|
2166
|
-
props: /* @__PURE__ */
|
|
2166
|
+
props: /* @__PURE__ */ Ye({
|
|
2167
2167
|
name: String,
|
|
2168
2168
|
require: !0
|
|
2169
2169
|
}, {
|
|
2170
2170
|
modelValue: { required: !0 },
|
|
2171
2171
|
modelModifiers: {}
|
|
2172
2172
|
}),
|
|
2173
|
-
emits: /* @__PURE__ */
|
|
2174
|
-
setup(m, { expose:
|
|
2175
|
-
var
|
|
2176
|
-
const t =
|
|
2177
|
-
k.value = Object.fromEntries(
|
|
2178
|
-
const
|
|
2173
|
+
emits: /* @__PURE__ */ Ye(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
|
|
2174
|
+
setup(m, { expose: c, emit: u }) {
|
|
2175
|
+
var tt, Xe, lt, at, ot, Ge, rt;
|
|
2176
|
+
const t = u, e = Ue(m, "modelValue"), d = ht("options"), k = te({}), T = te(null), S = te(null), M = Object.entries(e.value).filter(([l, r]) => (r == null ? void 0 : r.search) !== void 0).map(([l, r]) => [l, r.value]);
|
|
2177
|
+
k.value = Object.fromEntries(M);
|
|
2178
|
+
const E = te(!1), L = ["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"], K = te([]), I = m, H = yt(), oe = te({}), le = te([]), Z = te(null), me = te(""), he = {
|
|
2179
2179
|
autoWatch: !1,
|
|
2180
2180
|
data: [],
|
|
2181
2181
|
border: !0,
|
|
@@ -2184,30 +2184,30 @@ const Cl = {
|
|
|
2184
2184
|
fit: !1,
|
|
2185
2185
|
type: "hidden",
|
|
2186
2186
|
load: () => {
|
|
2187
|
-
let { currentPage: l, pageSize:
|
|
2187
|
+
let { currentPage: l, pageSize: r } = e.value.table.page;
|
|
2188
2188
|
try {
|
|
2189
|
-
t("load", { currentPage: l, pageSize:
|
|
2190
|
-
var
|
|
2191
|
-
if (!Array.isArray(
|
|
2192
|
-
console.error("从 load 事件回调中接收到的数据不是数组格式。"),
|
|
2189
|
+
t("load", { currentPage: l, pageSize: r, ...k.value }, (f, D, { fields: n = [], sums: $ = {} } = {}) => {
|
|
2190
|
+
var B, de;
|
|
2191
|
+
if (!Array.isArray(f)) {
|
|
2192
|
+
console.error("从 load 事件回调中接收到的数据不是数组格式。"), Se.error("数据加载失败,请检查数据格式。");
|
|
2193
2193
|
return;
|
|
2194
2194
|
}
|
|
2195
|
-
if (typeof
|
|
2196
|
-
console.error("从 load 事件回调中接收到的 total 不是数字格式。"),
|
|
2195
|
+
if (typeof D != "number") {
|
|
2196
|
+
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Se.error("数据加载失败,请检查数据格式。");
|
|
2197
2197
|
return;
|
|
2198
2198
|
}
|
|
2199
|
-
e.value.table.data =
|
|
2200
|
-
},
|
|
2201
|
-
} catch (
|
|
2202
|
-
console.error("触发 load 事件时出现错误:",
|
|
2199
|
+
e.value.table.data = f, ((de = (B = e.value.control) == null ? void 0 : B.add) == null ? void 0 : de.inline) === !0 && e.value.table.data.unshift(Z.value), e.value.table.page.total = D, le.value = n, oe.value = $, Ve(), me.value = Math.random().toString(36).substring(2);
|
|
2200
|
+
}, Z.value);
|
|
2201
|
+
} catch (f) {
|
|
2202
|
+
console.error("触发 load 事件时出现错误:", f), Se.error("数据加载时出现错误,请稍后重试。");
|
|
2203
2203
|
}
|
|
2204
2204
|
},
|
|
2205
|
-
onHeaderDragend: (l,
|
|
2206
|
-
var
|
|
2207
|
-
|
|
2205
|
+
onHeaderDragend: (l, r, f) => {
|
|
2206
|
+
var D;
|
|
2207
|
+
Ke((D = e.value.table) == null ? void 0 : D.user, I.name, f.property, { width: l });
|
|
2208
2208
|
},
|
|
2209
|
-
onRowDblclick: (l,
|
|
2210
|
-
e.value.table.dblclickType == "edit" ?
|
|
2209
|
+
onRowDblclick: (l, r, f) => {
|
|
2210
|
+
e.value.table.dblclickType == "edit" ? p(l, r, f, e) : e.value.table.dblclickType == "view" && v(l, r, f, e);
|
|
2211
2211
|
},
|
|
2212
2212
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2213
2213
|
page: {
|
|
@@ -2231,23 +2231,23 @@ const Cl = {
|
|
|
2231
2231
|
}
|
|
2232
2232
|
},
|
|
2233
2233
|
dblclickType: "edit",
|
|
2234
|
-
"summary-method": ({ columns: l, data:
|
|
2235
|
-
onSortChange: ({ column: l, prop:
|
|
2234
|
+
"summary-method": ({ columns: l, data: r }, f) => f,
|
|
2235
|
+
onSortChange: ({ column: l, prop: r, order: f }, D) => {
|
|
2236
2236
|
}
|
|
2237
2237
|
};
|
|
2238
|
-
e.value.table =
|
|
2239
|
-
|
|
2238
|
+
e.value.table = Te(
|
|
2239
|
+
he,
|
|
2240
2240
|
d == null ? void 0 : d.table,
|
|
2241
2241
|
e.value.table,
|
|
2242
|
-
|
|
2242
|
+
H
|
|
2243
2243
|
// 继承父组件的属性
|
|
2244
2244
|
);
|
|
2245
|
-
const
|
|
2245
|
+
const ge = {
|
|
2246
2246
|
type: "control",
|
|
2247
2247
|
label: "操作",
|
|
2248
2248
|
width: 250,
|
|
2249
2249
|
fixed: "right",
|
|
2250
|
-
style: { ...(
|
|
2250
|
+
style: { ...(Xe = (tt = e.value) == null ? void 0 : tt.control) == null ? void 0 : Xe.style },
|
|
2251
2251
|
validate: async (l) => await !0,
|
|
2252
2252
|
add: {
|
|
2253
2253
|
label: "新增",
|
|
@@ -2262,25 +2262,25 @@ const Cl = {
|
|
|
2262
2262
|
text: !0,
|
|
2263
2263
|
type: "success",
|
|
2264
2264
|
mode: "dialog",
|
|
2265
|
-
auth: (l,
|
|
2265
|
+
auth: (l, r, f) => !1
|
|
2266
2266
|
},
|
|
2267
2267
|
edit: {
|
|
2268
2268
|
label: "编辑",
|
|
2269
2269
|
text: !0,
|
|
2270
2270
|
type: "primary",
|
|
2271
2271
|
mode: "dialog",
|
|
2272
|
-
auth: (l,
|
|
2273
|
-
var
|
|
2274
|
-
return ((
|
|
2272
|
+
auth: (l, r, f) => {
|
|
2273
|
+
var D, n, $;
|
|
2274
|
+
return (($ = (n = (D = e.value) == null ? void 0 : D.control) == null ? void 0 : n.add) == null ? void 0 : $.inline) === !1;
|
|
2275
2275
|
}
|
|
2276
2276
|
},
|
|
2277
2277
|
delete: {
|
|
2278
2278
|
text: !0,
|
|
2279
2279
|
label: "删除",
|
|
2280
2280
|
type: "danger",
|
|
2281
|
-
auth: (l,
|
|
2282
|
-
var
|
|
2283
|
-
return !(((
|
|
2281
|
+
auth: (l, r, f) => {
|
|
2282
|
+
var D, n, $;
|
|
2283
|
+
return !((($ = (n = (D = e.value) == null ? void 0 : D.control) == null ? void 0 : n.add) == null ? void 0 : $.inline) === !0 && f === 0);
|
|
2284
2284
|
},
|
|
2285
2285
|
dialog: {
|
|
2286
2286
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2310,374 +2310,413 @@ const Cl = {
|
|
|
2310
2310
|
sort: -1,
|
|
2311
2311
|
addLabel: "新增",
|
|
2312
2312
|
auth: () => {
|
|
2313
|
-
var l,
|
|
2314
|
-
return ((
|
|
2313
|
+
var l, r, f;
|
|
2314
|
+
return ((f = (r = (l = e.value) == null ? void 0 : l.control) == null ? void 0 : r.add) == null ? void 0 : f.inline) === !0;
|
|
2315
2315
|
}
|
|
2316
2316
|
},
|
|
2317
|
-
dropdown: (l,
|
|
2317
|
+
dropdown: (l, r, f, D) => ({
|
|
2318
2318
|
label: "编辑",
|
|
2319
2319
|
operate: "edit",
|
|
2320
2320
|
"split-button": !0,
|
|
2321
2321
|
type: "primary",
|
|
2322
2322
|
size: "small",
|
|
2323
|
-
auth: () => !(
|
|
2323
|
+
auth: () => !(D.control.add.inline === !0 && f == 0),
|
|
2324
2324
|
onClick: () => {
|
|
2325
|
-
var
|
|
2326
|
-
let
|
|
2327
|
-
|
|
2325
|
+
var $;
|
|
2326
|
+
let n = ($ = se(l, r, f, D)) == null ? void 0 : $.operate;
|
|
2327
|
+
n === "edit" ? p(l, r, f, D) : n === "delete" ? a(l, r, f, D) : n === "view" && v(l, r, f, D);
|
|
2328
2328
|
},
|
|
2329
2329
|
"button-props": { round: !0, plain: !0 }
|
|
2330
2330
|
})
|
|
2331
2331
|
};
|
|
2332
|
-
e.value.control =
|
|
2333
|
-
|
|
2332
|
+
e.value.control = Te(
|
|
2333
|
+
ge,
|
|
2334
2334
|
d == null ? void 0 : d.control,
|
|
2335
|
-
(
|
|
2335
|
+
(lt = e.value) == null ? void 0 : lt.control
|
|
2336
2336
|
);
|
|
2337
|
-
const
|
|
2338
|
-
var
|
|
2339
|
-
if (!l || !
|
|
2337
|
+
const se = (l, r, f, D) => {
|
|
2338
|
+
var de, ye, Fe, xe, Ne, Qe;
|
|
2339
|
+
if (!l || !r || f == null)
|
|
2340
2340
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2341
|
-
const
|
|
2342
|
-
return
|
|
2343
|
-
},
|
|
2341
|
+
const n = ((de = ge.dropdown) == null ? void 0 : de.call(ge, l, r, f, D)) || {}, $ = ((Fe = (ye = d == null ? void 0 : d.control) == null ? void 0 : ye.dropdown) == null ? void 0 : Fe.call(ye, l, r, f, D)) || {}, B = ((Qe = (Ne = (xe = e.value) == null ? void 0 : xe.control) == null ? void 0 : Ne.dropdown) == null ? void 0 : Qe.call(Ne, l, r, f, D)) || {};
|
|
2342
|
+
return Te(n, $, B) || {};
|
|
2343
|
+
}, ie = {
|
|
2344
2344
|
type: "hidden",
|
|
2345
2345
|
minWidth: 120,
|
|
2346
2346
|
align: "center",
|
|
2347
|
-
formatter: (l,
|
|
2347
|
+
formatter: (l, r, f, D) => f
|
|
2348
2348
|
};
|
|
2349
|
-
e.value.tableColumns =
|
|
2350
|
-
|
|
2349
|
+
e.value.tableColumns = Te(
|
|
2350
|
+
ie,
|
|
2351
2351
|
d == null ? void 0 : d.tableColumns,
|
|
2352
|
-
(
|
|
2352
|
+
(at = e.value) == null ? void 0 : at.tableColumns
|
|
2353
2353
|
);
|
|
2354
|
-
const
|
|
2354
|
+
const ue = {
|
|
2355
2355
|
type: "hidden",
|
|
2356
2356
|
disabled: void 0,
|
|
2357
2357
|
footer: { hidden: !1 },
|
|
2358
2358
|
modalState: void 0
|
|
2359
2359
|
};
|
|
2360
|
-
e.value.form =
|
|
2361
|
-
|
|
2360
|
+
e.value.form = Te(
|
|
2361
|
+
ue,
|
|
2362
2362
|
d == null ? void 0 : d.form,
|
|
2363
|
-
(
|
|
2363
|
+
(ot = e.value) == null ? void 0 : ot.form
|
|
2364
2364
|
);
|
|
2365
|
-
const
|
|
2365
|
+
const ee = {
|
|
2366
2366
|
type: "hidden",
|
|
2367
2367
|
labelPosition: "right",
|
|
2368
2368
|
style: {
|
|
2369
2369
|
width: "100%"
|
|
2370
2370
|
}
|
|
2371
2371
|
};
|
|
2372
|
-
e.value.formItems =
|
|
2373
|
-
|
|
2372
|
+
e.value.formItems = Te(
|
|
2373
|
+
ee,
|
|
2374
2374
|
d == null ? void 0 : d.formItems,
|
|
2375
|
-
(
|
|
2375
|
+
(Ge = e == null ? void 0 : e.value) == null ? void 0 : Ge.formItems
|
|
2376
2376
|
);
|
|
2377
|
-
const
|
|
2377
|
+
const be = {
|
|
2378
2378
|
title: "编辑",
|
|
2379
2379
|
mode: "drawer",
|
|
2380
2380
|
type: "hidden",
|
|
2381
2381
|
width: 700,
|
|
2382
2382
|
size: 700,
|
|
2383
2383
|
fullScreen: !1,
|
|
2384
|
-
"close-on-click-modal": !1
|
|
2384
|
+
"close-on-click-modal": !1,
|
|
2385
|
+
draggable: !0,
|
|
2386
|
+
overflow: !0
|
|
2385
2387
|
};
|
|
2386
|
-
e.value.dialog =
|
|
2387
|
-
|
|
2388
|
+
e.value.dialog = Te(
|
|
2389
|
+
be,
|
|
2388
2390
|
d == null ? void 0 : d.dialog,
|
|
2389
|
-
(
|
|
2391
|
+
(rt = e.value) == null ? void 0 : rt.dialog
|
|
2390
2392
|
);
|
|
2391
|
-
const
|
|
2392
|
-
let
|
|
2393
|
-
if (l.decimals && !isNaN(parseFloat(
|
|
2394
|
-
const
|
|
2393
|
+
const ne = (l, r) => {
|
|
2394
|
+
let f = r;
|
|
2395
|
+
if (l.decimals && !isNaN(parseFloat(r)) && (typeof l.decimals == "number" ? f = parseFloat(f).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? f = parseFloat(f).toFixed(l.decimals.num) : f = parseFloat(parseFloat(f).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && ft(r).isValid()) {
|
|
2396
|
+
const n = {
|
|
2395
2397
|
date: "YYYY-MM-DD",
|
|
2396
2398
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2397
2399
|
time: "HH:mm:ss"
|
|
2398
2400
|
};
|
|
2399
|
-
|
|
2401
|
+
f = l.format ? ft(f).format(l.format) : ft(f).format(n[l.type]);
|
|
2400
2402
|
}
|
|
2401
|
-
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130,
|
|
2402
|
-
},
|
|
2403
|
-
k.value = Object.fromEntries(
|
|
2404
|
-
},
|
|
2403
|
+
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, f = `<span title="${vt(parseFloat(f))}">${ua(parseFloat(f))}</span>`), l.prefix && f && (f = `<span>${l.prefix}${f}</span>`), l.suffix && f && (f = `${f}<span>${l.suffix}</span>`), f;
|
|
2404
|
+
}, b = (l) => {
|
|
2405
|
+
k.value = Object.fromEntries(M), e.value.table.load();
|
|
2406
|
+
}, o = (l) => {
|
|
2405
2407
|
k.value = l, e.value.table.load();
|
|
2406
|
-
},
|
|
2407
|
-
var
|
|
2408
|
+
}, _ = async (l) => {
|
|
2409
|
+
var r, f;
|
|
2408
2410
|
e.value.form.modalState = "add";
|
|
2409
2411
|
try {
|
|
2410
|
-
if (!await ((
|
|
2411
|
-
} catch (
|
|
2412
|
-
console.error("验证失败:",
|
|
2412
|
+
if (!await ((r = e.value.control) == null ? void 0 : r.validate("add", { m: l }))) return;
|
|
2413
|
+
} catch (D) {
|
|
2414
|
+
console.error("验证失败:", D);
|
|
2413
2415
|
return;
|
|
2414
2416
|
}
|
|
2415
|
-
(
|
|
2416
|
-
e.value[
|
|
2417
|
-
}),
|
|
2418
|
-
|
|
2419
|
-
|
|
2417
|
+
(f = e.value.control.add) != null && f.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(Z.value), t("open", "row-add", { initFormData: Z.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(Z.value).forEach((D) => {
|
|
2418
|
+
e.value[D] && (e.value[D].value = Z.value[D]);
|
|
2419
|
+
}), E.value = !0, t("open", "add", { m: l }), setTimeout(() => {
|
|
2420
|
+
qe();
|
|
2421
|
+
}, 1e3));
|
|
2422
|
+
}, p = async (l, r, f, D) => {
|
|
2423
|
+
var n, $;
|
|
2420
2424
|
e.value.form.modalState = "edit";
|
|
2421
2425
|
try {
|
|
2422
|
-
if (!await ((
|
|
2423
|
-
} catch (
|
|
2424
|
-
console.error("验证失败:",
|
|
2426
|
+
if (!await ((n = e.value.control) == null ? void 0 : n.validate("edit", { row: l, column: r, $index: f, m: D }))) return;
|
|
2427
|
+
} catch (B) {
|
|
2428
|
+
console.error("验证失败:", B);
|
|
2425
2429
|
return;
|
|
2426
2430
|
}
|
|
2427
|
-
(
|
|
2428
|
-
e.value[
|
|
2429
|
-
}),
|
|
2430
|
-
|
|
2431
|
-
|
|
2431
|
+
($ = e.value.control.edit) != null && $.click ? e.value.control.edit.click(l, r, f, D) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((B) => {
|
|
2432
|
+
e.value[B] && (e.value[B].value = l[B]);
|
|
2433
|
+
}), E.value = !0, t("open", "edit", { m: D, row: l, column: r, $index: f }), setTimeout(() => {
|
|
2434
|
+
qe();
|
|
2435
|
+
}, 1e3));
|
|
2436
|
+
}, a = async (l, r, f, D) => {
|
|
2437
|
+
var n, $;
|
|
2432
2438
|
try {
|
|
2433
|
-
if (!await ((
|
|
2434
|
-
} catch (
|
|
2435
|
-
console.error("验证失败:",
|
|
2439
|
+
if (!await ((n = e.value.control) == null ? void 0 : n.validate("delete", { row: l, column: r, $index: f, m: D }))) return;
|
|
2440
|
+
} catch (B) {
|
|
2441
|
+
console.error("验证失败:", B);
|
|
2436
2442
|
return;
|
|
2437
2443
|
}
|
|
2438
|
-
if ((
|
|
2439
|
-
e.value.control.delete.click(l,
|
|
2444
|
+
if (($ = e.value.control.delete) != null && $.click)
|
|
2445
|
+
e.value.control.delete.click(l, r, f, D);
|
|
2440
2446
|
else {
|
|
2441
|
-
let { message:
|
|
2442
|
-
|
|
2443
|
-
t("delete", { row: l, column:
|
|
2444
|
-
|
|
2447
|
+
let { message: B, title: de, options: ye } = e.value.control.delete.dialog;
|
|
2448
|
+
Ft.confirm(B, de, ye).then(() => {
|
|
2449
|
+
t("delete", { row: l, column: r, $index: f }, (Fe = !0, xe = !1) => {
|
|
2450
|
+
Fe && (e.value.table.data.splice(f, 1), e.value.table.page.total--), xe && e.value.table.load();
|
|
2445
2451
|
});
|
|
2446
2452
|
}).catch(() => {
|
|
2447
2453
|
});
|
|
2448
2454
|
}
|
|
2449
|
-
},
|
|
2450
|
-
var
|
|
2455
|
+
}, v = async (l, r, f, D) => {
|
|
2456
|
+
var n, $;
|
|
2451
2457
|
e.value.form.modalState = void 0;
|
|
2452
2458
|
try {
|
|
2453
|
-
if (!await ((
|
|
2454
|
-
} catch (
|
|
2455
|
-
console.error("验证失败:",
|
|
2459
|
+
if (!await ((n = e.value.control) == null ? void 0 : n.validate("view", { row: l, column: r, $index: f, m: D }))) return;
|
|
2460
|
+
} catch (B) {
|
|
2461
|
+
console.error("验证失败:", B);
|
|
2456
2462
|
return;
|
|
2457
2463
|
}
|
|
2458
|
-
(
|
|
2459
|
-
e.value[
|
|
2460
|
-
}),
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2464
|
+
($ = e.value.control.view) != null && $.click ? e.value.control.view.click(l, r, f, D) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((B) => {
|
|
2465
|
+
e.value[B] && (e.value[B].value = l[B]);
|
|
2466
|
+
}), E.value = !0, t("open", "view", { m: D, row: l, column: r, $index: f }), setTimeout(() => {
|
|
2467
|
+
qe();
|
|
2468
|
+
}, 1e3));
|
|
2469
|
+
}, g = (l, r, f, D) => {
|
|
2470
|
+
var n;
|
|
2471
|
+
(n = e.value.control.save) != null && n.click ? e.value.control.save.click(l, r, f, D) : t("row-save", { row: l, column: r, $index: f, data: e.value.table.data }, ($ = !0, B = !0) => {
|
|
2472
|
+
$ && (e.value.table.load(), console.log("load")), B && We(() => {
|
|
2473
|
+
Z.value = Object.assign({}, Object.fromEntries(Object.entries(Ce(e.value, (de, ye) => ye.type != "control" && ye.editor !== !1 && ye.type != "hidden")).map(([de, ye]) => [de, ye.value])));
|
|
2466
2474
|
});
|
|
2467
2475
|
});
|
|
2468
|
-
},
|
|
2469
|
-
t("submit", e.value.form.modalState, l,
|
|
2470
|
-
|
|
2476
|
+
}, s = (l, r) => {
|
|
2477
|
+
t("submit", e.value.form.modalState, l, r, (f) => {
|
|
2478
|
+
f && (E.value = !1, r.table.load());
|
|
2471
2479
|
});
|
|
2472
|
-
},
|
|
2480
|
+
}, V = (l) => {
|
|
2473
2481
|
t("reset", l);
|
|
2474
|
-
},
|
|
2475
|
-
var
|
|
2476
|
-
if ((
|
|
2477
|
-
l.control.download.click(l,
|
|
2482
|
+
}, C = (l, r) => {
|
|
2483
|
+
var f;
|
|
2484
|
+
if ((f = l.control.download) != null && f.click)
|
|
2485
|
+
l.control.download.click(l, r);
|
|
2478
2486
|
else {
|
|
2479
|
-
let
|
|
2487
|
+
let D = pt({
|
|
2480
2488
|
title: l.control.download.label,
|
|
2481
2489
|
size: 480,
|
|
2482
2490
|
width: 600,
|
|
2483
2491
|
slots: {
|
|
2484
|
-
default: () =>
|
|
2485
|
-
items:
|
|
2492
|
+
default: () => Ae(_l, {
|
|
2493
|
+
items: r,
|
|
2486
2494
|
commitText: l.control.download.excelLabel,
|
|
2487
|
-
onExcel: (
|
|
2488
|
-
t("download",
|
|
2495
|
+
onExcel: (n, $) => {
|
|
2496
|
+
t("download", n, $), D();
|
|
2489
2497
|
}
|
|
2490
2498
|
})
|
|
2491
2499
|
}
|
|
2492
2500
|
}, l.control.download.mode);
|
|
2493
2501
|
}
|
|
2494
|
-
},
|
|
2495
|
-
var
|
|
2496
|
-
(
|
|
2502
|
+
}, j = (l) => {
|
|
2503
|
+
var r;
|
|
2504
|
+
(r = l.control.setting) != null && r.click ? l.control.setting.click(l) : pt({
|
|
2497
2505
|
title: l.control.setting.label,
|
|
2498
2506
|
size: 470,
|
|
2499
2507
|
width: 600,
|
|
2500
2508
|
slots: {
|
|
2501
|
-
default: () =>
|
|
2509
|
+
default: () => Ae(xl, {
|
|
2502
2510
|
modelValue: l,
|
|
2503
|
-
name:
|
|
2511
|
+
name: I.name
|
|
2504
2512
|
})
|
|
2505
2513
|
}
|
|
2506
2514
|
}, l.control.setting.mode);
|
|
2507
|
-
},
|
|
2508
|
-
{ type: "add", func:
|
|
2509
|
-
{ type: "download", func:
|
|
2510
|
-
{ type: "setting", func:
|
|
2511
|
-
{ type: "view", func:
|
|
2512
|
-
{ type: "edit", func:
|
|
2513
|
-
{ type: "delete", func:
|
|
2514
|
-
{ type: "save", func:
|
|
2515
|
-
],
|
|
2516
|
-
var
|
|
2515
|
+
}, X = e.value.control, O = [
|
|
2516
|
+
{ type: "add", func: _ },
|
|
2517
|
+
{ type: "download", func: C },
|
|
2518
|
+
{ type: "setting", func: j },
|
|
2519
|
+
{ type: "view", func: v },
|
|
2520
|
+
{ type: "edit", func: p },
|
|
2521
|
+
{ type: "delete", func: a },
|
|
2522
|
+
{ type: "save", func: g }
|
|
2523
|
+
], A = (l) => O.filter((r) => l.includes(r.type)).map(({ type: r, func: f }) => {
|
|
2524
|
+
var D, n, $;
|
|
2517
2525
|
return {
|
|
2518
|
-
name: `control-${
|
|
2519
|
-
attr:
|
|
2520
|
-
func:
|
|
2521
|
-
label: (
|
|
2522
|
-
sort: ((
|
|
2523
|
-
groupName: ((
|
|
2526
|
+
name: `control-${r}`,
|
|
2527
|
+
attr: X == null ? void 0 : X[r],
|
|
2528
|
+
func: f,
|
|
2529
|
+
label: (D = X == null ? void 0 : X[r]) == null ? void 0 : D.label,
|
|
2530
|
+
sort: ((n = X == null ? void 0 : X[r]) == null ? void 0 : n.sort) || 0,
|
|
2531
|
+
groupName: (($ = X == null ? void 0 : X[r]) == null ? void 0 : $.groupName) || "default"
|
|
2524
2532
|
};
|
|
2525
|
-
}).sort((
|
|
2526
|
-
const
|
|
2527
|
-
return
|
|
2528
|
-
}, {}),
|
|
2529
|
-
Object.entries(e.value).filter(([l,
|
|
2530
|
-
)),
|
|
2531
|
-
const
|
|
2532
|
-
for (const
|
|
2533
|
-
if (
|
|
2534
|
-
if (
|
|
2535
|
-
const
|
|
2536
|
-
if (
|
|
2533
|
+
}).sort((r, f) => r.sort - f.sort), re = (l) => A(l).reduce((r, f) => {
|
|
2534
|
+
const D = f.groupName || "default";
|
|
2535
|
+
return r[D] || (r[D] = []), r[D].push(f), r;
|
|
2536
|
+
}, {}), Ee = je(() => Object.fromEntries(
|
|
2537
|
+
Object.entries(e.value).filter(([l, r]) => r.type !== "hidden").filter(([l, r]) => r.visible !== !1).filter(([l, r]) => r.showCol !== !1).map(([l, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [l, r])).sort((l, r) => l[1].sort - r[1].sort)
|
|
2538
|
+
)), we = te({}), De = (l, r) => {
|
|
2539
|
+
const f = (D, n) => {
|
|
2540
|
+
for (const $ of D) {
|
|
2541
|
+
if ($.value == n) return $.label;
|
|
2542
|
+
if ($.children) {
|
|
2543
|
+
const B = f($.children, n);
|
|
2544
|
+
if (B) return B;
|
|
2537
2545
|
}
|
|
2538
2546
|
}
|
|
2539
2547
|
return null;
|
|
2540
2548
|
};
|
|
2541
2549
|
if (l.getDicts) {
|
|
2542
|
-
const
|
|
2543
|
-
return
|
|
2544
|
-
|
|
2550
|
+
const D = r.toString();
|
|
2551
|
+
return we.value[D] ? (l.options = we.value[D], l.formatter || (l.formatter = (n, $, B, de) => l.options && f(l.options, B) || B), Promise.resolve()) : l.getDicts(e.value.table.data).then((n) => {
|
|
2552
|
+
we.value[D] = n, l.options = n, l.formatter || (l.formatter = ($, B, de, ye) => l.options && f(l.options, de) || de);
|
|
2545
2553
|
});
|
|
2546
2554
|
}
|
|
2547
2555
|
return Promise.resolve();
|
|
2548
|
-
},
|
|
2556
|
+
}, Ve = () => {
|
|
2549
2557
|
const l = [];
|
|
2550
|
-
Object.keys(e.value).forEach((
|
|
2551
|
-
if (e.value[
|
|
2552
|
-
const
|
|
2553
|
-
e.value.table.data.forEach((
|
|
2554
|
-
var
|
|
2555
|
-
if (e.value[
|
|
2556
|
-
const
|
|
2557
|
-
|
|
2558
|
+
Object.keys(e.value).forEach((r) => {
|
|
2559
|
+
if (e.value[r].getDicts) {
|
|
2560
|
+
const f = De(e.value[r], r).then(() => {
|
|
2561
|
+
e.value.table.data.forEach((D) => {
|
|
2562
|
+
var n;
|
|
2563
|
+
if (e.value[r].getDicts && ((n = e.value[r]) == null ? void 0 : n.forceString) !== !1) {
|
|
2564
|
+
const $ = D[r];
|
|
2565
|
+
D[r] = $ != null ? $.toString() : $;
|
|
2558
2566
|
}
|
|
2559
2567
|
});
|
|
2560
|
-
}).catch((
|
|
2561
|
-
console.error(`加载字典${
|
|
2568
|
+
}).catch((D) => {
|
|
2569
|
+
console.error(`加载字典${r}出错:`, D);
|
|
2562
2570
|
});
|
|
2563
|
-
l.push(
|
|
2571
|
+
l.push(f);
|
|
2572
|
+
}
|
|
2573
|
+
}), Promise.all(l).catch((r) => {
|
|
2574
|
+
console.error("字典加载过程中发生错误:", r);
|
|
2575
|
+
});
|
|
2576
|
+
}, $e = (l, r, f, D) => {
|
|
2577
|
+
var n, $;
|
|
2578
|
+
return l.table ? (n = l.table(r, f, D)) != null && n.auth ? ($ = l.table(r, f, D)) == null ? void 0 : $.auth(r, f, D) : !0 : !1;
|
|
2579
|
+
}, Me = (l, r) => l.name === "control-save" && r === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label, Oe = () => {
|
|
2580
|
+
if (e.value.dialog.mode == "drawer")
|
|
2581
|
+
S.value.handleClose();
|
|
2582
|
+
else if (e.value.dialog.mode == "dialog")
|
|
2583
|
+
try {
|
|
2584
|
+
T.value.handleClose();
|
|
2585
|
+
} catch {
|
|
2586
|
+
E.value = !1;
|
|
2564
2587
|
}
|
|
2565
|
-
|
|
2566
|
-
|
|
2588
|
+
else
|
|
2589
|
+
E.value = !1;
|
|
2590
|
+
}, qe = () => {
|
|
2591
|
+
We(() => {
|
|
2592
|
+
if (!T.value) return;
|
|
2593
|
+
const l = document.querySelector(".el-dialog__wrapper");
|
|
2594
|
+
if (!l) return;
|
|
2595
|
+
const r = l.querySelector(".el-dialog");
|
|
2596
|
+
if (!r || r.querySelector(".dialog-resize-handle")) return;
|
|
2597
|
+
const f = document.createElement("div");
|
|
2598
|
+
f.className = "dialog-resize-handle", r.appendChild(f), f.onmousedown = (D) => {
|
|
2599
|
+
D.preventDefault();
|
|
2600
|
+
const n = D.clientX, $ = D.clientY, B = parseInt(document.defaultView.getComputedStyle(r).width), de = parseInt(document.defaultView.getComputedStyle(r).height);
|
|
2601
|
+
document.onmousemove = (ye) => {
|
|
2602
|
+
const Fe = B + ye.clientX - n, xe = de + ye.clientY - $;
|
|
2603
|
+
r.style.width = `${Math.max(300, Fe)}px`, r.style.height = `${Math.max(200, xe)}px`;
|
|
2604
|
+
}, document.onmouseup = () => {
|
|
2605
|
+
document.onmousemove = null, document.onmouseup = null;
|
|
2606
|
+
};
|
|
2607
|
+
};
|
|
2567
2608
|
});
|
|
2568
|
-
}
|
|
2569
|
-
|
|
2570
|
-
return l.table ? (P = l.table(u, c, M)) != null && P.auth ? (z = l.table(u, c, M)) == null ? void 0 : z.auth(u, c, M) : !0 : !1;
|
|
2571
|
-
}, Ce = (l, u) => l.name === "control-save" && u === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label;
|
|
2572
|
-
return Lt(() => {
|
|
2609
|
+
};
|
|
2610
|
+
return Ht(() => {
|
|
2573
2611
|
e.value.table.autoWatch && e.value.table.load();
|
|
2574
2612
|
}), et(async () => {
|
|
2575
2613
|
var l;
|
|
2576
|
-
if (
|
|
2577
|
-
|
|
2578
|
-
Object.entries(
|
|
2614
|
+
if (K.value = Object.values(e.value).filter((r) => r.type !== "hidden").filter((r) => r.type !== "control").filter((r) => r.visible !== !1).map((r) => ({ key: r.key || "", label: r.label, value: !0 })), We(() => {
|
|
2615
|
+
Z.value = Object.assign({}, Object.fromEntries(
|
|
2616
|
+
Object.entries(Ce(e.value, (r, f) => f.type != "control" && f.editor !== !1 && f.type != "hidden")).map(([r, f]) => [r, f.value])
|
|
2579
2617
|
));
|
|
2580
2618
|
}), !((l = e.value.table) != null && l.user)) {
|
|
2581
|
-
|
|
2619
|
+
Se.error("必须给使用此表格的用户一个名字!");
|
|
2582
2620
|
return;
|
|
2583
2621
|
}
|
|
2584
|
-
if (!
|
|
2585
|
-
|
|
2622
|
+
if (!I.name) {
|
|
2623
|
+
Se.error("必须给表格一个唯一的name属性");
|
|
2586
2624
|
return;
|
|
2587
2625
|
}
|
|
2588
2626
|
try {
|
|
2589
|
-
let
|
|
2590
|
-
if (
|
|
2591
|
-
if (
|
|
2592
|
-
|
|
2627
|
+
let r = await Vl(I.name);
|
|
2628
|
+
if (r) {
|
|
2629
|
+
if (I.name !== r.name) {
|
|
2630
|
+
Se.error("此表格已经存在,请换一个名字!");
|
|
2593
2631
|
return;
|
|
2594
2632
|
}
|
|
2595
2633
|
} else
|
|
2596
|
-
await
|
|
2597
|
-
} catch (
|
|
2598
|
-
console.error("检查表格名称时出现错误:",
|
|
2634
|
+
await Ml({ name: I.name });
|
|
2635
|
+
} catch (r) {
|
|
2636
|
+
console.error("检查表格名称时出现错误:", r), Se.error("检查表格名称时出现错误,请稍后重试。");
|
|
2599
2637
|
}
|
|
2600
2638
|
try {
|
|
2601
|
-
const
|
|
2602
|
-
|
|
2603
|
-
e.value[
|
|
2639
|
+
const r = await Cl(e.value.table.user, I.name);
|
|
2640
|
+
r && r.forEach((f) => {
|
|
2641
|
+
e.value[f.key] && (e.value[f.key].width = f.width, e.value[f.key].showCol = f.showCol, e.value[f.key].sort = f.sort);
|
|
2604
2642
|
});
|
|
2605
|
-
} catch (
|
|
2606
|
-
console.error("Error fetching table column settings:",
|
|
2643
|
+
} catch (r) {
|
|
2644
|
+
console.error("Error fetching table column settings:", r);
|
|
2607
2645
|
}
|
|
2608
2646
|
e.value.table.autoWatch || e.value.table.load();
|
|
2609
|
-
}),
|
|
2610
|
-
addRow:
|
|
2611
|
-
editRow:
|
|
2612
|
-
deleteRow:
|
|
2613
|
-
readForm:
|
|
2614
|
-
saveRowData:
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2647
|
+
}), c({
|
|
2648
|
+
addRow: _,
|
|
2649
|
+
editRow: p,
|
|
2650
|
+
deleteRow: a,
|
|
2651
|
+
readForm: v,
|
|
2652
|
+
saveRowData: g,
|
|
2653
|
+
closeDialog: Oe
|
|
2654
|
+
}), (l, r) => {
|
|
2655
|
+
var Qe, gt, bt, $t, wt;
|
|
2656
|
+
const f = Y("el-button-group"), D = Y("el-dropdown-item"), n = Y("el-dropdown-menu"), $ = Y("el-dropdown"), B = Y("el-table-column"), de = Y("el-table"), ye = Y("el-pagination"), Fe = Y("el-icon"), xe = Y("el-dialog"), Ne = Y("el-drawer");
|
|
2657
|
+
return i(), x(W, null, [
|
|
2658
|
+
Q("div", Ol, [
|
|
2659
|
+
((gt = (Qe = e.value) == null ? void 0 : Qe.query) == null ? void 0 : gt.hidden) != !0 ? (i(), x("div", Al, [
|
|
2660
|
+
h(l.$slots, "query", {}, () => [
|
|
2661
|
+
G(hl, {
|
|
2623
2662
|
modelValue: e.value,
|
|
2624
|
-
"onUpdate:modelValue":
|
|
2663
|
+
"onUpdate:modelValue": r[0] || (r[0] = (N) => e.value = N),
|
|
2625
2664
|
info: k.value,
|
|
2626
|
-
"onUpdate:info":
|
|
2627
|
-
onQuery:
|
|
2628
|
-
onReset:
|
|
2629
|
-
},
|
|
2665
|
+
"onUpdate:info": r[1] || (r[1] = (N) => k.value = N),
|
|
2666
|
+
onQuery: o,
|
|
2667
|
+
onReset: b
|
|
2668
|
+
}, fe({
|
|
2630
2669
|
"q-btns": y(() => [
|
|
2631
|
-
|
|
2632
|
-
(
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
(w.name === "control-add" ? w.attr.auth() && w.attr.inline === !1 : w.attr.auth()) ?
|
|
2636
|
-
w.label ? (
|
|
2670
|
+
h(l.$slots, "q-btns", {}, () => [
|
|
2671
|
+
(i(!0), x(W, null, R(re(["add", "download", "setting"]), (N, ae) => (i(), x(W, null, [
|
|
2672
|
+
ae == "default" ? (i(!0), x(W, { key: 0 }, R(N, (w) => (i(), x(W, null, [
|
|
2673
|
+
h(l.$slots, w.name + "-left", {}, void 0, !0),
|
|
2674
|
+
(w.name === "control-add" ? w.attr.auth() && w.attr.inline === !1 : w.attr.auth()) ? h(l.$slots, w.name, { key: 0 }, () => [
|
|
2675
|
+
w.label ? (i(), F(U(ke), q({
|
|
2637
2676
|
key: 0,
|
|
2638
2677
|
title: w.label,
|
|
2639
2678
|
ref_for: !0
|
|
2640
2679
|
}, w.attr, {
|
|
2641
|
-
onClick: (
|
|
2680
|
+
onClick: (z) => w.func(e.value, K.value)
|
|
2642
2681
|
}), {
|
|
2643
2682
|
default: y(() => [
|
|
2644
|
-
|
|
2683
|
+
_e(ve(w.label), 1)
|
|
2645
2684
|
]),
|
|
2646
2685
|
_: 2
|
|
2647
|
-
}, 1040, ["title", "onClick"])) : (
|
|
2686
|
+
}, 1040, ["title", "onClick"])) : (i(), F(U(ke), q({
|
|
2648
2687
|
key: 1,
|
|
2649
2688
|
title: w.label,
|
|
2650
2689
|
ref_for: !0
|
|
2651
2690
|
}, w.attr, {
|
|
2652
|
-
onClick: (
|
|
2691
|
+
onClick: (z) => w.func(e.value, K.value)
|
|
2653
2692
|
}), null, 16, ["title", "onClick"]))
|
|
2654
|
-
], !0) :
|
|
2655
|
-
|
|
2656
|
-
], 64))), 256)) : (
|
|
2693
|
+
], !0) : ce("", !0),
|
|
2694
|
+
h(l.$slots, w.name + "-right", {}, void 0, !0)
|
|
2695
|
+
], 64))), 256)) : (i(), F(f, { key: 1 }, {
|
|
2657
2696
|
default: y(() => [
|
|
2658
|
-
(
|
|
2659
|
-
|
|
2660
|
-
(w.name === "control-add" ? w.attr.auth() && w.attr.inline === !1 : w.attr.auth()) ?
|
|
2661
|
-
w.label ? (
|
|
2697
|
+
(i(!0), x(W, null, R(N, (w) => (i(), x(W, null, [
|
|
2698
|
+
h(l.$slots, w.name + "-left", {}, void 0, !0),
|
|
2699
|
+
(w.name === "control-add" ? w.attr.auth() && w.attr.inline === !1 : w.attr.auth()) ? h(l.$slots, w.name, { key: 0 }, () => [
|
|
2700
|
+
w.label ? (i(), F(U(ke), q({
|
|
2662
2701
|
key: 0,
|
|
2663
2702
|
title: w.label,
|
|
2664
2703
|
ref_for: !0
|
|
2665
2704
|
}, w.attr, {
|
|
2666
|
-
onClick: (
|
|
2705
|
+
onClick: (z) => w.func(e.value, K.value)
|
|
2667
2706
|
}), {
|
|
2668
2707
|
default: y(() => [
|
|
2669
|
-
|
|
2708
|
+
_e(ve(w.label), 1)
|
|
2670
2709
|
]),
|
|
2671
2710
|
_: 2
|
|
2672
|
-
}, 1040, ["title", "onClick"])) : (
|
|
2711
|
+
}, 1040, ["title", "onClick"])) : (i(), F(U(ke), q({
|
|
2673
2712
|
key: 1,
|
|
2674
2713
|
title: w.label,
|
|
2675
2714
|
ref_for: !0
|
|
2676
2715
|
}, w.attr, {
|
|
2677
|
-
onClick: (
|
|
2716
|
+
onClick: (z) => w.func(e.value, K.value)
|
|
2678
2717
|
}), null, 16, ["title", "onClick"]))
|
|
2679
|
-
], !0) :
|
|
2680
|
-
|
|
2718
|
+
], !0) : ce("", !0),
|
|
2719
|
+
h(l.$slots, w.name + "-right", {}, void 0, !0)
|
|
2681
2720
|
], 64))), 256))
|
|
2682
2721
|
]),
|
|
2683
2722
|
_: 2
|
|
@@ -2687,172 +2726,172 @@ const Cl = {
|
|
|
2687
2726
|
]),
|
|
2688
2727
|
_: 2
|
|
2689
2728
|
}, [
|
|
2690
|
-
|
|
2691
|
-
name:
|
|
2692
|
-
fn: y((
|
|
2693
|
-
|
|
2729
|
+
R(l.$slots, (N, ae, w) => ({
|
|
2730
|
+
name: ae,
|
|
2731
|
+
fn: y((z) => [
|
|
2732
|
+
h(l.$slots, ae, { model: e.value }, void 0, !0)
|
|
2694
2733
|
])
|
|
2695
2734
|
}))
|
|
2696
2735
|
]), 1032, ["modelValue", "info"])
|
|
2697
2736
|
], !0)
|
|
2698
|
-
])) :
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
"summary-method": (
|
|
2702
|
-
onSortChange:
|
|
2703
|
-
var
|
|
2704
|
-
e.value.table.onSortChange(
|
|
2737
|
+
])) : ce("", !0),
|
|
2738
|
+
Q("div", Bl, [
|
|
2739
|
+
G(de, q({ ...l.$attrs, ...U(Ce)(e.value.table, (N) => !["dblclickType", "page"].includes(N)) }, {
|
|
2740
|
+
"summary-method": (N) => e.value.table["summary-method"](N, { fields: le.value, sums: oe.value }),
|
|
2741
|
+
onSortChange: r[2] || (r[2] = (N) => {
|
|
2742
|
+
var ae, w;
|
|
2743
|
+
e.value.table.onSortChange(N, k.value), ((ae = N == null ? void 0 : N.column) == null ? void 0 : ae.sortable) === "custom" && ((w = e.value.table) == null || w.load());
|
|
2705
2744
|
})
|
|
2706
2745
|
}), {
|
|
2707
2746
|
append: y(() => [
|
|
2708
|
-
|
|
2747
|
+
h(l.$slots, "append", {}, void 0, !0)
|
|
2709
2748
|
]),
|
|
2710
2749
|
empty: y(() => [
|
|
2711
|
-
|
|
2750
|
+
h(l.$slots, "empty", {}, void 0, !0)
|
|
2712
2751
|
]),
|
|
2713
2752
|
default: y(() => [
|
|
2714
|
-
|
|
2715
|
-
(
|
|
2716
|
-
prop:
|
|
2717
|
-
key:
|
|
2753
|
+
h(l.$slots, "default", {}, () => [
|
|
2754
|
+
(i(!0), x(W, null, R(Ee.value, (N, ae) => (i(), F(B, q({
|
|
2755
|
+
prop: ae,
|
|
2756
|
+
key: ae,
|
|
2718
2757
|
ref_for: !0
|
|
2719
|
-
}, { ...e.value.tableColumns, ...
|
|
2720
|
-
header: y(({ column: w, $index:
|
|
2721
|
-
|
|
2758
|
+
}, { ...e.value.tableColumns, ...U(Ce)(N, (w) => L.includes(w)) }, { "header-align": "center" }), fe({
|
|
2759
|
+
header: y(({ column: w, $index: z }) => [
|
|
2760
|
+
ae == "control" ? h(l.$slots, `${ae}-header`, {
|
|
2722
2761
|
key: 0,
|
|
2723
2762
|
column: w,
|
|
2724
|
-
$index:
|
|
2763
|
+
$index: z
|
|
2725
2764
|
}, () => [
|
|
2726
|
-
|
|
2727
|
-
], !0) :
|
|
2765
|
+
Q("span", null, ve(w.label), 1)
|
|
2766
|
+
], !0) : h(l.$slots, `${ae}-header`, {
|
|
2728
2767
|
key: 1,
|
|
2729
2768
|
column: w,
|
|
2730
|
-
$index:
|
|
2769
|
+
$index: z
|
|
2731
2770
|
}, void 0, !0)
|
|
2732
2771
|
]),
|
|
2733
2772
|
"filter-icon": y((w) => [
|
|
2734
|
-
|
|
2773
|
+
h(l.$slots, `${ae}-filter-icon`, { data: w }, void 0, !0)
|
|
2735
2774
|
]),
|
|
2736
2775
|
_: 2
|
|
2737
2776
|
}, [
|
|
2738
|
-
|
|
2777
|
+
N.type === "expand" ? {
|
|
2739
2778
|
name: "default",
|
|
2740
|
-
fn: y(({ row: w, column:
|
|
2741
|
-
|
|
2779
|
+
fn: y(({ row: w, column: z, $index: J }) => [
|
|
2780
|
+
h(l.$slots, `${ae}`, {
|
|
2742
2781
|
row: w,
|
|
2743
|
-
column:
|
|
2744
|
-
$index:
|
|
2782
|
+
column: z,
|
|
2783
|
+
$index: J
|
|
2745
2784
|
}, void 0, !0)
|
|
2746
2785
|
]),
|
|
2747
2786
|
key: "0"
|
|
2748
|
-
} :
|
|
2787
|
+
} : N.type == "control" ? {
|
|
2749
2788
|
name: "default",
|
|
2750
|
-
fn: y(({ row: w, column:
|
|
2751
|
-
var
|
|
2789
|
+
fn: y(({ row: w, column: z, $index: J }) => {
|
|
2790
|
+
var Ze, Je;
|
|
2752
2791
|
return [
|
|
2753
|
-
|
|
2754
|
-
class:
|
|
2755
|
-
style:
|
|
2792
|
+
Q("div", {
|
|
2793
|
+
class: St(["control", (Ze = e.value.control) == null ? void 0 : Ze.class]),
|
|
2794
|
+
style: Ie((Je = e.value.control) == null ? void 0 : Je.style)
|
|
2756
2795
|
}, [
|
|
2757
|
-
|
|
2758
|
-
|
|
2796
|
+
h(l.$slots, "control", {}, () => [
|
|
2797
|
+
h(l.$slots, "control-left", {
|
|
2759
2798
|
row: w,
|
|
2760
|
-
column:
|
|
2761
|
-
$index:
|
|
2799
|
+
column: z,
|
|
2800
|
+
$index: J
|
|
2762
2801
|
}, void 0, !0),
|
|
2763
|
-
(
|
|
2764
|
-
var
|
|
2765
|
-
return
|
|
2766
|
-
|
|
2767
|
-
|
|
2802
|
+
(i(!0), x(W, null, R(re(["view", "edit", "delete", "save"]), (Pe, He) => {
|
|
2803
|
+
var Et;
|
|
2804
|
+
return i(), x(W, null, [
|
|
2805
|
+
He == "default" ? (i(!0), x(W, { key: 0 }, R(Pe, (P) => (i(), x(W, null, [
|
|
2806
|
+
h(l.$slots, P.name + "-left", {
|
|
2768
2807
|
row: w,
|
|
2769
|
-
column:
|
|
2770
|
-
$index:
|
|
2808
|
+
column: z,
|
|
2809
|
+
$index: J
|
|
2771
2810
|
}, void 0, !0),
|
|
2772
|
-
|
|
2811
|
+
P.attr.auth(w, z, J) ? h(l.$slots, P.name, {
|
|
2773
2812
|
key: 0,
|
|
2774
2813
|
row: w,
|
|
2775
|
-
column:
|
|
2776
|
-
$index:
|
|
2814
|
+
column: z,
|
|
2815
|
+
$index: J
|
|
2777
2816
|
}, () => [
|
|
2778
|
-
|
|
2817
|
+
P.label ? (i(), F(U(ke), q({
|
|
2779
2818
|
key: 0,
|
|
2780
|
-
title:
|
|
2819
|
+
title: P.label,
|
|
2781
2820
|
ref_for: !0
|
|
2782
|
-
},
|
|
2783
|
-
onClick: (
|
|
2821
|
+
}, P.attr, {
|
|
2822
|
+
onClick: (ze) => P.func(w, z, J, e.value)
|
|
2784
2823
|
}), {
|
|
2785
2824
|
default: y(() => [
|
|
2786
|
-
|
|
2825
|
+
_e(ve(Me(P, J)), 1)
|
|
2787
2826
|
]),
|
|
2788
2827
|
_: 2
|
|
2789
|
-
}, 1040, ["title", "onClick"])) : (
|
|
2828
|
+
}, 1040, ["title", "onClick"])) : (i(), F(U(ke), q({
|
|
2790
2829
|
key: 1,
|
|
2791
|
-
title:
|
|
2830
|
+
title: P.label,
|
|
2792
2831
|
ref_for: !0
|
|
2793
|
-
},
|
|
2794
|
-
onClick: (
|
|
2832
|
+
}, P.attr, {
|
|
2833
|
+
onClick: (ze) => P.func(w, z, J, e.value)
|
|
2795
2834
|
}), null, 16, ["title", "onClick"]))
|
|
2796
|
-
], !0) :
|
|
2797
|
-
|
|
2835
|
+
], !0) : ce("", !0),
|
|
2836
|
+
h(l.$slots, P.name + "-right", {
|
|
2798
2837
|
row: w,
|
|
2799
|
-
column:
|
|
2800
|
-
$index:
|
|
2838
|
+
column: z,
|
|
2839
|
+
$index: J
|
|
2801
2840
|
}, void 0, !0)
|
|
2802
|
-
], 64))), 256)) :
|
|
2841
|
+
], 64))), 256)) : He != null && He.startsWith("dropdown") && ((Et = se(w, z, J, e.value)) != null && Et.auth()) ? (i(), F($, q({
|
|
2803
2842
|
key: 1,
|
|
2804
2843
|
ref_for: !0
|
|
2805
|
-
},
|
|
2844
|
+
}, se(w, z, J, e.value)), {
|
|
2806
2845
|
dropdown: y(() => [
|
|
2807
|
-
|
|
2846
|
+
G(n, null, {
|
|
2808
2847
|
default: y(() => [
|
|
2809
|
-
(
|
|
2810
|
-
var
|
|
2811
|
-
return
|
|
2812
|
-
l.$slots[
|
|
2848
|
+
(i(!0), x(W, null, R(Pe, (P) => {
|
|
2849
|
+
var ze, kt, _t;
|
|
2850
|
+
return i(), x(W, null, [
|
|
2851
|
+
l.$slots[P.name + "-left"] ? h(l.$slots, P.name + "-left", {
|
|
2813
2852
|
key: 0,
|
|
2814
2853
|
row: w,
|
|
2815
|
-
column:
|
|
2816
|
-
$index:
|
|
2817
|
-
}, void 0, !0) :
|
|
2818
|
-
|
|
2854
|
+
column: z,
|
|
2855
|
+
$index: J
|
|
2856
|
+
}, void 0, !0) : ce("", !0),
|
|
2857
|
+
P.attr.auth(w, z, J) ? (i(), F(D, q({
|
|
2819
2858
|
key: 1,
|
|
2820
2859
|
ref_for: !0
|
|
2821
|
-
}, { command: (
|
|
2860
|
+
}, { command: (ze = P == null ? void 0 : P.attr) == null ? void 0 : ze.command, divided: (kt = P == null ? void 0 : P.attr) == null ? void 0 : kt.divided, disabled: (_t = P == null ? void 0 : P.attr) == null ? void 0 : _t.disabled }), {
|
|
2822
2861
|
default: y(() => [
|
|
2823
|
-
|
|
2862
|
+
h(l.$slots, P.name, {
|
|
2824
2863
|
row: w,
|
|
2825
|
-
column:
|
|
2826
|
-
$index:
|
|
2864
|
+
column: z,
|
|
2865
|
+
$index: J
|
|
2827
2866
|
}, () => [
|
|
2828
|
-
|
|
2867
|
+
P.label ? (i(), F(U(ke), q({
|
|
2829
2868
|
key: 0,
|
|
2830
|
-
title:
|
|
2869
|
+
title: P.label,
|
|
2831
2870
|
ref_for: !0
|
|
2832
|
-
},
|
|
2833
|
-
onClick: (
|
|
2871
|
+
}, P.attr, {
|
|
2872
|
+
onClick: (Bt) => P.func(w, z, J, e.value)
|
|
2834
2873
|
}), {
|
|
2835
2874
|
default: y(() => [
|
|
2836
|
-
|
|
2875
|
+
_e(ve(Me(P, J)), 1)
|
|
2837
2876
|
]),
|
|
2838
2877
|
_: 2
|
|
2839
|
-
}, 1040, ["title", "onClick"])) : (
|
|
2878
|
+
}, 1040, ["title", "onClick"])) : (i(), F(U(ke), q({
|
|
2840
2879
|
key: 1,
|
|
2841
|
-
title:
|
|
2880
|
+
title: P.label,
|
|
2842
2881
|
ref_for: !0
|
|
2843
|
-
},
|
|
2844
|
-
onClick: (
|
|
2882
|
+
}, P.attr, {
|
|
2883
|
+
onClick: (Bt) => P.func(w, z, J, e.value)
|
|
2845
2884
|
}), null, 16, ["title", "onClick"]))
|
|
2846
2885
|
], !0)
|
|
2847
2886
|
]),
|
|
2848
2887
|
_: 2
|
|
2849
|
-
}, 1040)) :
|
|
2850
|
-
l.$slots[
|
|
2888
|
+
}, 1040)) : ce("", !0),
|
|
2889
|
+
l.$slots[P.name + "-right"] ? h(l.$slots, P.name + "-right", {
|
|
2851
2890
|
key: 2,
|
|
2852
2891
|
row: w,
|
|
2853
|
-
column:
|
|
2854
|
-
$index:
|
|
2855
|
-
}, void 0, !0) :
|
|
2892
|
+
column: z,
|
|
2893
|
+
$index: J
|
|
2894
|
+
}, void 0, !0) : ce("", !0)
|
|
2856
2895
|
], 64);
|
|
2857
2896
|
}), 256))
|
|
2858
2897
|
]),
|
|
@@ -2860,49 +2899,49 @@ const Cl = {
|
|
|
2860
2899
|
}, 1024)
|
|
2861
2900
|
]),
|
|
2862
2901
|
default: y(() => {
|
|
2863
|
-
var
|
|
2902
|
+
var P;
|
|
2864
2903
|
return [
|
|
2865
|
-
|
|
2904
|
+
_e(ve((P = se(w, z, J, e.value)) == null ? void 0 : P.label) + " ", 1)
|
|
2866
2905
|
];
|
|
2867
2906
|
}),
|
|
2868
2907
|
_: 2
|
|
2869
|
-
}, 1040)) : (
|
|
2908
|
+
}, 1040)) : (i(), F(f, { key: 2 }, {
|
|
2870
2909
|
default: y(() => [
|
|
2871
|
-
(
|
|
2872
|
-
|
|
2910
|
+
(i(!0), x(W, null, R(Pe, (P) => (i(), x(W, null, [
|
|
2911
|
+
h(l.$slots, P.name + "-left", {
|
|
2873
2912
|
row: w,
|
|
2874
|
-
column:
|
|
2875
|
-
$index:
|
|
2913
|
+
column: z,
|
|
2914
|
+
$index: J
|
|
2876
2915
|
}, void 0, !0),
|
|
2877
|
-
|
|
2916
|
+
P.attr.auth(w, z, J) ? h(l.$slots, P.name, {
|
|
2878
2917
|
key: 0,
|
|
2879
2918
|
row: w,
|
|
2880
|
-
column:
|
|
2881
|
-
$index:
|
|
2919
|
+
column: z,
|
|
2920
|
+
$index: J
|
|
2882
2921
|
}, () => [
|
|
2883
|
-
|
|
2922
|
+
P.label ? (i(), F(U(ke), q({
|
|
2884
2923
|
key: 0,
|
|
2885
|
-
title:
|
|
2924
|
+
title: P.label,
|
|
2886
2925
|
ref_for: !0
|
|
2887
|
-
},
|
|
2888
|
-
onClick: (
|
|
2926
|
+
}, P.attr, {
|
|
2927
|
+
onClick: (ze) => P.func(w, z, J, e.value)
|
|
2889
2928
|
}), {
|
|
2890
2929
|
default: y(() => [
|
|
2891
|
-
|
|
2930
|
+
_e(ve(Me(P, J)), 1)
|
|
2892
2931
|
]),
|
|
2893
2932
|
_: 2
|
|
2894
|
-
}, 1040, ["title", "onClick"])) : (
|
|
2933
|
+
}, 1040, ["title", "onClick"])) : (i(), F(U(ke), q({
|
|
2895
2934
|
key: 1,
|
|
2896
|
-
title:
|
|
2935
|
+
title: P.label,
|
|
2897
2936
|
ref_for: !0
|
|
2898
|
-
},
|
|
2899
|
-
onClick: (
|
|
2937
|
+
}, P.attr, {
|
|
2938
|
+
onClick: (ze) => P.func(w, z, J, e.value)
|
|
2900
2939
|
}), null, 16, ["title", "onClick"]))
|
|
2901
|
-
], !0) :
|
|
2902
|
-
|
|
2940
|
+
], !0) : ce("", !0),
|
|
2941
|
+
h(l.$slots, P.name + "-right", {
|
|
2903
2942
|
row: w,
|
|
2904
|
-
column:
|
|
2905
|
-
$index:
|
|
2943
|
+
column: z,
|
|
2944
|
+
$index: J
|
|
2906
2945
|
}, void 0, !0)
|
|
2907
2946
|
], 64))), 256))
|
|
2908
2947
|
]),
|
|
@@ -2910,60 +2949,60 @@ const Cl = {
|
|
|
2910
2949
|
}, 1024))
|
|
2911
2950
|
], 64);
|
|
2912
2951
|
}), 256)),
|
|
2913
|
-
|
|
2952
|
+
h(l.$slots, "control-right", {
|
|
2914
2953
|
row: w,
|
|
2915
|
-
column:
|
|
2916
|
-
$index:
|
|
2954
|
+
column: z,
|
|
2955
|
+
$index: J
|
|
2917
2956
|
}, void 0, !0)
|
|
2918
2957
|
], !0)
|
|
2919
2958
|
], 6)
|
|
2920
2959
|
];
|
|
2921
2960
|
}),
|
|
2922
2961
|
key: "1"
|
|
2923
|
-
} :
|
|
2962
|
+
} : N.type != "selection" && N.type != "index" ? {
|
|
2924
2963
|
name: "default",
|
|
2925
|
-
fn: y(({ row: w, column:
|
|
2926
|
-
|
|
2964
|
+
fn: y(({ row: w, column: z, $index: J }) => [
|
|
2965
|
+
$e(N, w, z, J) && J != -1 ? h(l.$slots, `${ae}`, {
|
|
2927
2966
|
key: 0,
|
|
2928
2967
|
row: w,
|
|
2929
|
-
column:
|
|
2930
|
-
$index:
|
|
2968
|
+
column: z,
|
|
2969
|
+
$index: J
|
|
2931
2970
|
}, () => {
|
|
2932
|
-
var
|
|
2971
|
+
var Ze;
|
|
2933
2972
|
return [
|
|
2934
|
-
(
|
|
2935
|
-
modelValue: w[
|
|
2936
|
-
"onUpdate:modelValue": (
|
|
2937
|
-
item:
|
|
2938
|
-
ctrlKey:
|
|
2939
|
-
key: `${
|
|
2940
|
-
ctrlType: (
|
|
2973
|
+
(i(), F(st, {
|
|
2974
|
+
modelValue: w[ae],
|
|
2975
|
+
"onUpdate:modelValue": (Je) => w[ae] = Je,
|
|
2976
|
+
item: N == null ? void 0 : N.table(w, z, J),
|
|
2977
|
+
ctrlKey: ae,
|
|
2978
|
+
key: `${ae}-${J} -${me.value}`,
|
|
2979
|
+
ctrlType: (Ze = N.table(w, z, J)) != null && Ze.type ? N.table(w, z, J).type : N.type,
|
|
2941
2980
|
model: e.value,
|
|
2942
2981
|
class: "g-ctrl-container",
|
|
2943
2982
|
t: "t",
|
|
2944
2983
|
formInfo: w
|
|
2945
|
-
},
|
|
2946
|
-
|
|
2947
|
-
name:
|
|
2948
|
-
fn: y((
|
|
2949
|
-
|
|
2950
|
-
data:
|
|
2951
|
-
item:
|
|
2984
|
+
}, fe({ _: 2 }, [
|
|
2985
|
+
R(l.$slots, (Je, Pe) => ({
|
|
2986
|
+
name: Pe,
|
|
2987
|
+
fn: y((He) => [
|
|
2988
|
+
h(l.$slots, Pe, {
|
|
2989
|
+
data: He,
|
|
2990
|
+
item: N,
|
|
2952
2991
|
model: e.value
|
|
2953
2992
|
}, void 0, !0)
|
|
2954
2993
|
])
|
|
2955
2994
|
}))
|
|
2956
2995
|
]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
|
|
2957
2996
|
];
|
|
2958
|
-
}, !0) :
|
|
2997
|
+
}, !0) : h(l.$slots, `${ae}`, {
|
|
2959
2998
|
key: 1,
|
|
2960
2999
|
row: w,
|
|
2961
|
-
column:
|
|
2962
|
-
$index:
|
|
3000
|
+
column: z,
|
|
3001
|
+
$index: J
|
|
2963
3002
|
}, () => [
|
|
2964
|
-
|
|
2965
|
-
innerHTML:
|
|
2966
|
-
}, null, 8,
|
|
3003
|
+
Q("div", {
|
|
3004
|
+
innerHTML: ne(N, z.formatter(w, z, w[ae], J))
|
|
3005
|
+
}, null, 8, Il)
|
|
2967
3006
|
], !0)
|
|
2968
3007
|
]),
|
|
2969
3008
|
key: "2"
|
|
@@ -2973,82 +3012,85 @@ const Cl = {
|
|
|
2973
3012
|
]),
|
|
2974
3013
|
_: 3
|
|
2975
3014
|
}, 16, ["summary-method"]),
|
|
2976
|
-
(
|
|
2977
|
-
|
|
3015
|
+
(wt = ($t = (bt = e.value) == null ? void 0 : bt.table) == null ? void 0 : $t.page) != null && wt.hidden ? ce("", !0) : h(l.$slots, "page", { key: 0 }, () => [
|
|
3016
|
+
G(ye, q({
|
|
2978
3017
|
"page-size": e.value.table.page.pageSize,
|
|
2979
|
-
"onUpdate:pageSize":
|
|
3018
|
+
"onUpdate:pageSize": r[3] || (r[3] = (N) => e.value.table.page.pageSize = N),
|
|
2980
3019
|
"current-page": e.value.table.page.currentPage,
|
|
2981
|
-
"onUpdate:currentPage":
|
|
3020
|
+
"onUpdate:currentPage": r[4] || (r[4] = (N) => e.value.table.page.currentPage = N)
|
|
2982
3021
|
}, e.value.table.page), {
|
|
2983
3022
|
default: y(() => [
|
|
2984
|
-
|
|
3023
|
+
h(l.$slots, "table-page", {}, void 0, !0)
|
|
2985
3024
|
]),
|
|
2986
3025
|
_: 3
|
|
2987
3026
|
}, 16, ["page-size", "current-page"])
|
|
2988
3027
|
], !0)
|
|
2989
3028
|
])
|
|
2990
3029
|
]),
|
|
2991
|
-
e.value.dialog.mode == "dialog" &&
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
3030
|
+
e.value.dialog.mode == "dialog" && E.value ? (i(), x("div", Yl, [
|
|
3031
|
+
G(xe, q({
|
|
3032
|
+
ref_key: "dialogRef",
|
|
3033
|
+
ref: T,
|
|
3034
|
+
id: "dialogRef",
|
|
3035
|
+
modelValue: E.value,
|
|
3036
|
+
"onUpdate:modelValue": r[8] || (r[8] = (N) => E.value = N),
|
|
2995
3037
|
fullscreen: e.value.dialog.fullScreen
|
|
2996
|
-
},
|
|
2997
|
-
width:
|
|
3038
|
+
}, U(Ce)(e.value.dialog, (N) => !["size"].includes(N)), {
|
|
3039
|
+
width: U(At)(e.value.dialog.width) + 35
|
|
2998
3040
|
}), {
|
|
2999
3041
|
header: y(() => {
|
|
3000
|
-
var
|
|
3042
|
+
var N, ae, w, z;
|
|
3001
3043
|
return [
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3044
|
+
Q("div", Ul, [
|
|
3045
|
+
Q("div", Rl, [
|
|
3046
|
+
h(l.$slots, "f-header", {}, () => [
|
|
3047
|
+
Q("div", null, ve(e.value.dialog.title), 1)
|
|
3006
3048
|
], !0)
|
|
3007
3049
|
]),
|
|
3008
|
-
((
|
|
3050
|
+
((ae = (N = e.value) == null ? void 0 : N.dialog) == null ? void 0 : ae.fullScreen) === !1 ? (i(), x("div", {
|
|
3009
3051
|
key: 0,
|
|
3010
|
-
onClick:
|
|
3052
|
+
onClick: r[5] || (r[5] = (J) => {
|
|
3011
3053
|
e.value.dialog.fullScreen = !0;
|
|
3012
3054
|
}),
|
|
3013
3055
|
class: "max"
|
|
3014
3056
|
}, [
|
|
3015
|
-
|
|
3057
|
+
G(Fe, null, {
|
|
3016
3058
|
default: y(() => [
|
|
3017
|
-
|
|
3059
|
+
G(U(Zt))
|
|
3018
3060
|
]),
|
|
3019
3061
|
_: 1
|
|
3020
3062
|
})
|
|
3021
|
-
])) :
|
|
3022
|
-
((
|
|
3063
|
+
])) : ce("", !0),
|
|
3064
|
+
((z = (w = e.value) == null ? void 0 : w.dialog) == null ? void 0 : z.fullScreen) === !0 ? (i(), x("div", {
|
|
3023
3065
|
key: 1,
|
|
3024
|
-
onClick:
|
|
3066
|
+
onClick: r[6] || (r[6] = (J) => {
|
|
3025
3067
|
e.value.dialog.fullScreen = !1;
|
|
3026
3068
|
}),
|
|
3027
3069
|
class: "max"
|
|
3028
3070
|
}, [
|
|
3029
|
-
|
|
3071
|
+
G(Fe, null, {
|
|
3030
3072
|
default: y(() => [
|
|
3031
|
-
|
|
3073
|
+
G(U(Jt))
|
|
3032
3074
|
]),
|
|
3033
3075
|
_: 1
|
|
3034
3076
|
})
|
|
3035
|
-
])) :
|
|
3077
|
+
])) : ce("", !0)
|
|
3036
3078
|
])
|
|
3037
3079
|
];
|
|
3038
3080
|
}),
|
|
3039
3081
|
default: y(() => [
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3082
|
+
Q("div", jl, [
|
|
3083
|
+
h(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
3084
|
+
G(ct, {
|
|
3043
3085
|
modelValue: e.value,
|
|
3044
|
-
"onUpdate:modelValue":
|
|
3045
|
-
onSubmit:
|
|
3046
|
-
onReset:
|
|
3047
|
-
},
|
|
3048
|
-
|
|
3049
|
-
name:
|
|
3050
|
-
fn: y((
|
|
3051
|
-
|
|
3086
|
+
"onUpdate:modelValue": r[7] || (r[7] = (N) => e.value = N),
|
|
3087
|
+
onSubmit: s,
|
|
3088
|
+
onReset: V
|
|
3089
|
+
}, fe({ _: 2 }, [
|
|
3090
|
+
R(l.$slots, (N, ae, w) => ({
|
|
3091
|
+
name: ae,
|
|
3092
|
+
fn: y((z) => [
|
|
3093
|
+
h(l.$slots, ae, { model: z }, void 0, !0)
|
|
3052
3094
|
])
|
|
3053
3095
|
}))
|
|
3054
3096
|
]), 1032, ["modelValue"])
|
|
@@ -3057,33 +3099,35 @@ const Cl = {
|
|
|
3057
3099
|
]),
|
|
3058
3100
|
_: 3
|
|
3059
3101
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
3060
|
-
])) :
|
|
3061
|
-
e.value.dialog.mode == "drawer" &&
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3102
|
+
])) : ce("", !0),
|
|
3103
|
+
e.value.dialog.mode == "drawer" && E.value ? (i(), x("div", Ll, [
|
|
3104
|
+
G(Ne, q({
|
|
3105
|
+
ref_key: "drawerRef",
|
|
3106
|
+
ref: S,
|
|
3107
|
+
modelValue: E.value,
|
|
3108
|
+
"onUpdate:modelValue": r[10] || (r[10] = (N) => E.value = N)
|
|
3109
|
+
}, U(Ce)(e.value.dialog, (N) => !["width"].includes(N))), {
|
|
3066
3110
|
header: y(() => [
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3111
|
+
Q("div", Nl, [
|
|
3112
|
+
Q("div", Pl, [
|
|
3113
|
+
h(l.$slots, "f-header", {}, () => [
|
|
3114
|
+
Q("div", null, ve(e.value.dialog.title), 1)
|
|
3071
3115
|
], !0)
|
|
3072
3116
|
])
|
|
3073
3117
|
])
|
|
3074
3118
|
]),
|
|
3075
3119
|
default: y(() => [
|
|
3076
|
-
|
|
3077
|
-
|
|
3120
|
+
h(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3121
|
+
G(ct, {
|
|
3078
3122
|
modelValue: e.value,
|
|
3079
|
-
"onUpdate:modelValue":
|
|
3080
|
-
onSubmit:
|
|
3081
|
-
onReset:
|
|
3082
|
-
},
|
|
3083
|
-
|
|
3084
|
-
name:
|
|
3085
|
-
fn: y((
|
|
3086
|
-
|
|
3123
|
+
"onUpdate:modelValue": r[9] || (r[9] = (N) => e.value = N),
|
|
3124
|
+
onSubmit: s,
|
|
3125
|
+
onReset: V
|
|
3126
|
+
}, fe({ _: 2 }, [
|
|
3127
|
+
R(l.$slots, (N, ae, w) => ({
|
|
3128
|
+
name: ae,
|
|
3129
|
+
fn: y((z) => [
|
|
3130
|
+
h(l.$slots, ae, { model: z }, void 0, !0)
|
|
3087
3131
|
])
|
|
3088
3132
|
}))
|
|
3089
3133
|
]), 1032, ["modelValue"])
|
|
@@ -3091,11 +3135,11 @@ const Cl = {
|
|
|
3091
3135
|
]),
|
|
3092
3136
|
_: 3
|
|
3093
3137
|
}, 16, ["modelValue"])
|
|
3094
|
-
])) :
|
|
3138
|
+
])) : ce("", !0)
|
|
3095
3139
|
], 64);
|
|
3096
3140
|
};
|
|
3097
3141
|
}
|
|
3098
|
-
}),
|
|
3142
|
+
}), zl = /* @__PURE__ */ Le(Hl, [["__scopeId", "data-v-24e1891c"]]), Wl = { class: "g-tree-table" }, Xl = { class: "g-tree-container" }, Gl = { class: "g-tree-table-container" }, Ql = /* @__PURE__ */ Object.assign({
|
|
3099
3143
|
name: "g-tree-table",
|
|
3100
3144
|
inheritAttrs: !1
|
|
3101
3145
|
}, {
|
|
@@ -3104,75 +3148,75 @@ const Cl = {
|
|
|
3104
3148
|
modelValue: { required: !0 },
|
|
3105
3149
|
modelModifiers: {}
|
|
3106
3150
|
},
|
|
3107
|
-
emits: /* @__PURE__ */
|
|
3108
|
-
setup(m, { emit:
|
|
3109
|
-
var
|
|
3110
|
-
const
|
|
3111
|
-
typeof ((
|
|
3112
|
-
), k =
|
|
3113
|
-
var
|
|
3114
|
-
if (!
|
|
3115
|
-
const
|
|
3116
|
-
return
|
|
3117
|
-
},
|
|
3118
|
-
|
|
3119
|
-
},
|
|
3120
|
-
T.value =
|
|
3151
|
+
emits: /* @__PURE__ */ Ye(["load"], ["update:modelValue"]),
|
|
3152
|
+
setup(m, { emit: c }) {
|
|
3153
|
+
var I, H, oe, le;
|
|
3154
|
+
const u = c, t = Ue(m, "modelValue"), e = yt(), d = te(
|
|
3155
|
+
typeof ((I = e == null ? void 0 : e.tree) == null ? void 0 : I.width) == "number" ? `${e.tree.width}px` : ((H = e == null ? void 0 : e.tree) == null ? void 0 : H.width) || "180px"
|
|
3156
|
+
), k = te(((oe = e == null ? void 0 : e.tree) == null ? void 0 : oe.search) === void 0 ? !0 : (le = e == null ? void 0 : e.tree) == null ? void 0 : le.search), T = te({}), S = te(""), M = te(null), E = (Z, me) => {
|
|
3157
|
+
var ge, se;
|
|
3158
|
+
if (!Z) return !0;
|
|
3159
|
+
const he = ((se = (ge = e.tree) == null ? void 0 : ge.props) == null ? void 0 : se.label) || "label";
|
|
3160
|
+
return me[he].includes(Z);
|
|
3161
|
+
}, L = (Z, me) => {
|
|
3162
|
+
u("load", T.value, Z, me);
|
|
3163
|
+
}, K = (Z) => {
|
|
3164
|
+
T.value = Z, t.value.table.load();
|
|
3121
3165
|
};
|
|
3122
|
-
return
|
|
3123
|
-
|
|
3124
|
-
}), (
|
|
3125
|
-
const
|
|
3126
|
-
return
|
|
3127
|
-
|
|
3166
|
+
return zt(S, (Z) => {
|
|
3167
|
+
M.value.filter(Z);
|
|
3168
|
+
}), (Z, me) => {
|
|
3169
|
+
const he = Y("el-input"), ge = Y("el-tree"), se = Y("g-table");
|
|
3170
|
+
return i(), x("div", Wl, [
|
|
3171
|
+
Q("div", {
|
|
3128
3172
|
class: "g-tree-left",
|
|
3129
|
-
style:
|
|
3173
|
+
style: Ie({ width: d.value })
|
|
3130
3174
|
}, [
|
|
3131
|
-
k.value ? (
|
|
3175
|
+
k.value ? (i(), F(he, {
|
|
3132
3176
|
key: 0,
|
|
3133
|
-
modelValue:
|
|
3134
|
-
"onUpdate:modelValue":
|
|
3177
|
+
modelValue: S.value,
|
|
3178
|
+
"onUpdate:modelValue": me[0] || (me[0] = (ie) => S.value = ie),
|
|
3135
3179
|
style: { width: "100%", padding: "0 10px", "box-sizing": "border-box" },
|
|
3136
3180
|
placeholder: "输入节点查询",
|
|
3137
3181
|
clearable: ""
|
|
3138
|
-
}, null, 8, ["modelValue"])) :
|
|
3139
|
-
|
|
3140
|
-
|
|
3182
|
+
}, null, 8, ["modelValue"])) : ce("", !0),
|
|
3183
|
+
Q("div", Xl, [
|
|
3184
|
+
G(ge, q({
|
|
3141
3185
|
style: { width: d.value },
|
|
3142
|
-
"filter-node-method":
|
|
3186
|
+
"filter-node-method": E,
|
|
3143
3187
|
"expand-on-click-node": !1,
|
|
3144
3188
|
ref_key: "treeRef",
|
|
3145
|
-
ref:
|
|
3146
|
-
onNodeClick:
|
|
3147
|
-
},
|
|
3148
|
-
default: y(({ node:
|
|
3149
|
-
|
|
3150
|
-
node:
|
|
3151
|
-
data:
|
|
3189
|
+
ref: M,
|
|
3190
|
+
onNodeClick: K
|
|
3191
|
+
}, Z.$attrs.tree), fe({
|
|
3192
|
+
default: y(({ node: ie, data: ue }) => [
|
|
3193
|
+
h(Z.$slots, "tree", {
|
|
3194
|
+
node: ie,
|
|
3195
|
+
data: ue
|
|
3152
3196
|
}, () => [
|
|
3153
|
-
|
|
3197
|
+
Q("span", null, ve(ie.label), 1)
|
|
3154
3198
|
], !0)
|
|
3155
3199
|
]),
|
|
3156
3200
|
_: 2
|
|
3157
3201
|
}, [
|
|
3158
|
-
|
|
3159
|
-
name:
|
|
3202
|
+
R(Z.$slots, (ie, ue, ee) => ({
|
|
3203
|
+
name: ue,
|
|
3160
3204
|
fn: y((be) => [
|
|
3161
|
-
|
|
3205
|
+
h(Z.$slots, ue, { data: be }, void 0, !0)
|
|
3162
3206
|
])
|
|
3163
3207
|
}))
|
|
3164
3208
|
]), 1040, ["style"])
|
|
3165
3209
|
])
|
|
3166
3210
|
], 4),
|
|
3167
|
-
|
|
3168
|
-
|
|
3211
|
+
Q("div", Gl, [
|
|
3212
|
+
G(se, q({
|
|
3169
3213
|
modelValue: t.value,
|
|
3170
|
-
"onUpdate:modelValue":
|
|
3171
|
-
},
|
|
3172
|
-
|
|
3173
|
-
name:
|
|
3214
|
+
"onUpdate:modelValue": me[1] || (me[1] = (ie) => t.value = ie)
|
|
3215
|
+
}, Z.$attrs, { onLoad: L }), fe({ _: 2 }, [
|
|
3216
|
+
R(Z.$slots, (ie, ue, ee) => ({
|
|
3217
|
+
name: ue,
|
|
3174
3218
|
fn: y((be) => [
|
|
3175
|
-
|
|
3219
|
+
h(Z.$slots, ue, { data: be }, void 0, !0)
|
|
3176
3220
|
])
|
|
3177
3221
|
}))
|
|
3178
3222
|
]), 1040, ["modelValue"])
|
|
@@ -3180,14 +3224,14 @@ const Cl = {
|
|
|
3180
3224
|
]);
|
|
3181
3225
|
};
|
|
3182
3226
|
}
|
|
3183
|
-
}),
|
|
3227
|
+
}), Zl = /* @__PURE__ */ Le(Ql, [["__scopeId", "data-v-2d8b16ed"]]), Jl = {
|
|
3184
3228
|
key: 0,
|
|
3185
3229
|
class: "op-group"
|
|
3186
|
-
},
|
|
3230
|
+
}, Kl = {
|
|
3187
3231
|
key: 1,
|
|
3188
3232
|
class: "op-items",
|
|
3189
3233
|
style: { width: "100%", height: "100%" }
|
|
3190
|
-
},
|
|
3234
|
+
}, ea = ["title"], Mt = "100px", ta = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3191
3235
|
__name: "g-select-option",
|
|
3192
3236
|
props: {
|
|
3193
3237
|
columns: {
|
|
@@ -3208,86 +3252,88 @@ const Cl = {
|
|
|
3208
3252
|
}
|
|
3209
3253
|
},
|
|
3210
3254
|
setup(m) {
|
|
3211
|
-
const
|
|
3212
|
-
return (
|
|
3213
|
-
(
|
|
3214
|
-
style:
|
|
3255
|
+
const c = m;
|
|
3256
|
+
return (u, t) => c.title ? (i(), x("div", Jl, [
|
|
3257
|
+
(i(!0), x(W, null, R(c.columns, (e) => (i(), x("span", {
|
|
3258
|
+
style: Ie({ width: (e == null ? void 0 : e.width) || Mt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
|
|
3215
3259
|
key: e.key
|
|
3216
3260
|
}, [
|
|
3217
|
-
|
|
3218
|
-
|
|
3261
|
+
h(u.$slots, `${m.t}-title-${e.key}`, { col: e }, () => [
|
|
3262
|
+
_e(ve(e.label), 1)
|
|
3219
3263
|
], !0)
|
|
3220
3264
|
], 4))), 128))
|
|
3221
|
-
])) : (
|
|
3222
|
-
(
|
|
3223
|
-
style:
|
|
3265
|
+
])) : (i(), x("div", Kl, [
|
|
3266
|
+
(i(!0), x(W, null, R(c.columns, (e) => (i(), x("span", {
|
|
3267
|
+
style: Ie({ width: (e == null ? void 0 : e.width) || Mt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
|
|
3224
3268
|
key: e.key,
|
|
3225
3269
|
title: m.data[e.key]
|
|
3226
3270
|
}, [
|
|
3227
|
-
|
|
3228
|
-
|
|
3271
|
+
h(u.$slots, `${m.t}-option-${e.key}`, { col: e }, () => [
|
|
3272
|
+
_e(ve(m.data[e.key] ?? "-"), 1)
|
|
3229
3273
|
], !0)
|
|
3230
|
-
], 12,
|
|
3274
|
+
], 12, ea))), 128))
|
|
3231
3275
|
]));
|
|
3232
3276
|
}
|
|
3233
|
-
}),
|
|
3234
|
-
let
|
|
3235
|
-
const
|
|
3236
|
-
install: (m,
|
|
3237
|
-
|
|
3238
|
-
m.component(
|
|
3239
|
-
}), m.provide("options",
|
|
3277
|
+
}), la = /* @__PURE__ */ Le(ta, [["__scopeId", "data-v-c0ac6b77"]]), aa = Object.freeze({}), Ot = [zl, ct, Zl, la];
|
|
3278
|
+
let mt = {};
|
|
3279
|
+
const ca = {
|
|
3280
|
+
install: (m, c = {}) => {
|
|
3281
|
+
mt = Object.freeze({ ...aa, ...c }), Ot.forEach((u) => {
|
|
3282
|
+
m.component(u.name, u);
|
|
3283
|
+
}), m.provide("options", mt), m.config.globalProperties.$openModal = pt;
|
|
3240
3284
|
}
|
|
3241
|
-
},
|
|
3285
|
+
}, oa = (m) => ({ dialog: Yt, drawer: Ut })[m] || null, pt = (m = {}, c = "dialog") => {
|
|
3242
3286
|
if (typeof document > "u") return () => {
|
|
3243
3287
|
};
|
|
3244
|
-
const
|
|
3288
|
+
const u = document.createElement("div");
|
|
3245
3289
|
let t = () => {
|
|
3246
3290
|
};
|
|
3247
|
-
const e =
|
|
3291
|
+
const e = oa(c);
|
|
3248
3292
|
if (!e) return () => {
|
|
3249
3293
|
};
|
|
3250
|
-
const d =
|
|
3294
|
+
const d = te(!0), k = Wt({
|
|
3251
3295
|
setup() {
|
|
3252
3296
|
return t = () => {
|
|
3253
3297
|
d.value = !1, setTimeout(() => {
|
|
3254
|
-
k.unmount(),
|
|
3298
|
+
k.unmount(), u.remove();
|
|
3255
3299
|
}, 300);
|
|
3256
3300
|
}, () => {
|
|
3257
|
-
var T,
|
|
3258
|
-
return
|
|
3301
|
+
var T, S, M;
|
|
3302
|
+
return Ae(e, {
|
|
3259
3303
|
modelValue: d.value,
|
|
3260
|
-
"onUpdate:modelValue": (
|
|
3304
|
+
"onUpdate:modelValue": (E) => d.value = E,
|
|
3261
3305
|
appendToBody: !0,
|
|
3306
|
+
draggable: !0,
|
|
3307
|
+
overflow: !0,
|
|
3262
3308
|
destroyOnClose: !0,
|
|
3263
3309
|
"close-on-click-modal": !1,
|
|
3264
3310
|
...m
|
|
3265
3311
|
}, {
|
|
3266
3312
|
default: (T = m.slots) == null ? void 0 : T.default,
|
|
3267
|
-
header: (
|
|
3268
|
-
footer: (
|
|
3313
|
+
header: (S = m.slots) == null ? void 0 : S.header,
|
|
3314
|
+
footer: (M = m.slots) == null ? void 0 : M.footer
|
|
3269
3315
|
});
|
|
3270
3316
|
};
|
|
3271
3317
|
}
|
|
3272
3318
|
});
|
|
3273
|
-
return
|
|
3319
|
+
return Ot.forEach((T) => {
|
|
3274
3320
|
k.component(T.name, T);
|
|
3275
|
-
}), k.provide("options",
|
|
3321
|
+
}), k.provide("options", mt), k.use(It, { locale: el }), document.body.appendChild(u), k.mount(u), t;
|
|
3276
3322
|
};
|
|
3277
|
-
function
|
|
3323
|
+
function At(m, c = window.innerWidth) {
|
|
3278
3324
|
if (typeof m == "number")
|
|
3279
3325
|
return m;
|
|
3280
3326
|
if (m.endsWith("px"))
|
|
3281
3327
|
return parseFloat(m);
|
|
3282
|
-
const
|
|
3328
|
+
const u = window.innerHeight, t = window.innerWidth;
|
|
3283
3329
|
if (m.endsWith("vh"))
|
|
3284
|
-
return
|
|
3330
|
+
return u * parseFloat(m) / 100;
|
|
3285
3331
|
if (m.endsWith("vw"))
|
|
3286
3332
|
return t * parseFloat(m) / 100;
|
|
3287
3333
|
if (m.endsWith("%")) {
|
|
3288
|
-
if (typeof
|
|
3334
|
+
if (typeof c != "number")
|
|
3289
3335
|
throw new Error("Reference size is required to convert % to px");
|
|
3290
|
-
return
|
|
3336
|
+
return c * parseFloat(m) / 100;
|
|
3291
3337
|
}
|
|
3292
3338
|
if (m.startsWith("calc(") && m.endsWith(")")) {
|
|
3293
3339
|
let d = function(T) {
|
|
@@ -3296,60 +3342,60 @@ function St(m, f = window.innerWidth) {
|
|
|
3296
3342
|
throw new Error("Invalid calc expression");
|
|
3297
3343
|
};
|
|
3298
3344
|
const e = m.slice(5, -1).trim();
|
|
3299
|
-
return d(e.replace(/([0-9.]+)([a-z%]+)/g, (T,
|
|
3345
|
+
return d(e.replace(/([0-9.]+)([a-z%]+)/g, (T, S, M) => At(S + M, c)));
|
|
3300
3346
|
}
|
|
3301
3347
|
throw new Error("Unsupported unit in value: " + m);
|
|
3302
3348
|
}
|
|
3303
|
-
const
|
|
3304
|
-
const
|
|
3305
|
-
t[d] = typeof e[d] == "object" && !Array.isArray(e[d]) ?
|
|
3349
|
+
const Te = (...m) => {
|
|
3350
|
+
const c = {}, u = (t, e) => (Object.keys(e).forEach((d) => {
|
|
3351
|
+
t[d] = typeof e[d] == "object" && !Array.isArray(e[d]) ? u(t[d] || {}, e[d]) : e[d];
|
|
3306
3352
|
}), t);
|
|
3307
|
-
return m.forEach((t = {}) =>
|
|
3353
|
+
return m.forEach((t = {}) => u(c, t)), c;
|
|
3308
3354
|
};
|
|
3309
|
-
function
|
|
3310
|
-
const
|
|
3355
|
+
function Ce(m, c = (u, t) => c(u, t)) {
|
|
3356
|
+
const u = {};
|
|
3311
3357
|
for (const t in m)
|
|
3312
|
-
m.hasOwnProperty(t) &&
|
|
3313
|
-
return
|
|
3358
|
+
m.hasOwnProperty(t) && c(t, m[t]) && (u[t] = m[t]);
|
|
3359
|
+
return u;
|
|
3314
3360
|
}
|
|
3315
|
-
function
|
|
3361
|
+
function ra(m, c, u = "value", t = "label", e = "children") {
|
|
3316
3362
|
for (const d of m) {
|
|
3317
|
-
if (d[
|
|
3363
|
+
if (d[u] === c)
|
|
3318
3364
|
return d[t];
|
|
3319
3365
|
if (d[e] && d[e].length > 0) {
|
|
3320
|
-
const k =
|
|
3366
|
+
const k = ra(d[e], c, u, t, e);
|
|
3321
3367
|
if (k)
|
|
3322
3368
|
return k;
|
|
3323
3369
|
}
|
|
3324
3370
|
}
|
|
3325
3371
|
return null;
|
|
3326
3372
|
}
|
|
3327
|
-
function
|
|
3373
|
+
function vt(m) {
|
|
3328
3374
|
if (!m || isNaN(m)) return "零";
|
|
3329
|
-
const
|
|
3375
|
+
const c = ["角", "分"], u = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
|
|
3330
3376
|
["元", "万", "亿"],
|
|
3331
3377
|
["", "拾", "佰", "仟"]
|
|
3332
3378
|
], e = m < 0 ? "欠" : "";
|
|
3333
3379
|
m = Math.abs(m);
|
|
3334
3380
|
let d = "";
|
|
3335
|
-
for (let k = 0; k <
|
|
3336
|
-
d += (
|
|
3381
|
+
for (let k = 0; k < c.length; k++)
|
|
3382
|
+
d += (u[Math.floor(m * 10 * Math.pow(10, k)) % 10] + c[k]).replace(/零./, "");
|
|
3337
3383
|
d = d || "整", m = Math.floor(m);
|
|
3338
3384
|
for (let k = 0; k < t[0].length && m > 0; k++) {
|
|
3339
3385
|
let T = "";
|
|
3340
|
-
for (let
|
|
3341
|
-
T =
|
|
3386
|
+
for (let S = 0; S < t[1].length && m > 0; S++)
|
|
3387
|
+
T = u[m % 10] + t[1][S] + T, m = Math.floor(m / 10);
|
|
3342
3388
|
d = T.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][k] + d;
|
|
3343
3389
|
}
|
|
3344
3390
|
return e + d.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3345
3391
|
}
|
|
3346
|
-
function
|
|
3392
|
+
function ua(m) {
|
|
3347
3393
|
if (typeof m != "number" || isNaN(m) || !isFinite(m))
|
|
3348
3394
|
return "0.00";
|
|
3349
|
-
const
|
|
3350
|
-
return `${
|
|
3395
|
+
const c = m.toFixed(2), [u, t] = c.split(".");
|
|
3396
|
+
return `${u.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${t}`;
|
|
3351
3397
|
}
|
|
3352
|
-
const
|
|
3398
|
+
const pe = {
|
|
3353
3399
|
RADIO: "radio",
|
|
3354
3400
|
RADIOBUTTON: "radio-button",
|
|
3355
3401
|
CHECKBOX: "checkbox",
|
|
@@ -3379,13 +3425,13 @@ const ye = {
|
|
|
3379
3425
|
TEL: "tel"
|
|
3380
3426
|
};
|
|
3381
3427
|
export {
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3428
|
+
pe as CT,
|
|
3429
|
+
At as convertToPx,
|
|
3430
|
+
ca as default,
|
|
3431
|
+
Ce as filterObject,
|
|
3432
|
+
ra as findTreeLabelByValue,
|
|
3433
|
+
ua as formatAmount,
|
|
3434
|
+
Te as mergeObjects,
|
|
3435
|
+
vt as moneyToChinese,
|
|
3436
|
+
pt as openModal
|
|
3391
3437
|
};
|