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