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