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