vue-2024-ui 0.2.9 → 0.2.11
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 +1318 -1306
- 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 { h as
|
|
3
|
-
import { CircleCheck as
|
|
4
|
-
import
|
|
5
|
-
import { Dexie as
|
|
6
|
-
var
|
|
1
|
+
import Qt, { ElForm as pt, ElButtonGroup as mt, ElButton as Be, ElPopover as $t, ElMessage as Ge, ElMessageBox as qt, ElDialog as Zt, ElDrawer as Jt } from "element-plus";
|
|
2
|
+
import { h as ke, mergeModels as Xe, useModel as Qe, ref as oe, nextTick as at, onMounted as ut, computed as Je, resolveComponent as H, openBlock as p, createElementBlock as I, Fragment as J, createElementVNode as Q, createBlock as B, createCommentVNode as ge, unref as P, mergeProps as O, withCtx as D, renderSlot as M, renderList as N, createTextVNode as Ie, toDisplayString as De, createSlots as ye, createVNode as K, normalizeStyle as qe, normalizeProps as Et, useSlots as At, inject as Mt, useAttrs as Tt, onUnmounted as Kt, withModifiers as yt, resolveDynamicComponent as We, guardReactiveProps as el, Transition as tl, withDirectives as ll, vShow as rl, onBeforeUnmount as al, normalizeClass as Bt, watchEffect as ol, onBeforeMount as nl, watch as ul, createApp as sl } from "vue";
|
|
3
|
+
import { CircleCheck as Ot, Refresh as It, Plus as il, ZoomIn as dl, Delete as Ut, More as cl, Search as fl, Download as Yt, DocumentCopy as vl, View as pl, Edit as ml, CirclePlus as hl, Setting as yl, FullScreen as gl, CopyDocument as bl } from "@element-plus/icons-vue";
|
|
4
|
+
import Rt from "sortablejs";
|
|
5
|
+
import { Dexie as $l } from "dexie";
|
|
6
|
+
var wl = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
9
9
|
breadcrumb: {
|
|
@@ -180,265 +180,265 @@ var El = {
|
|
|
180
180
|
indicator: "幻灯片切换至索引 {index}"
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
},
|
|
184
|
-
function
|
|
183
|
+
}, El = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
184
|
+
function Lt(a) {
|
|
185
185
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
186
186
|
}
|
|
187
187
|
var Ht = { exports: {} };
|
|
188
|
-
(function(a,
|
|
188
|
+
(function(a, n) {
|
|
189
189
|
(function(r, t) {
|
|
190
190
|
a.exports = t();
|
|
191
|
-
})(
|
|
192
|
-
var r = 1e3, t = 6e4, e = 36e5, o = "millisecond",
|
|
193
|
-
var g = ["th", "st", "nd", "rd"],
|
|
194
|
-
return "[" +
|
|
195
|
-
} },
|
|
196
|
-
var q = String(
|
|
197
|
-
return !q || q.length >= g ?
|
|
198
|
-
}, ie = { s:
|
|
199
|
-
var g =
|
|
200
|
-
return (g <= 0 ? "+" : "-") +
|
|
201
|
-
}, m: function
|
|
202
|
-
if (g.date() <
|
|
203
|
-
var q = 12 * (
|
|
204
|
-
return +(-(q + (
|
|
205
|
-
}, a: function(
|
|
206
|
-
return
|
|
207
|
-
}, p: function(
|
|
208
|
-
return { M:
|
|
209
|
-
}, u: function(
|
|
210
|
-
return
|
|
191
|
+
})(El, function() {
|
|
192
|
+
var r = 1e3, t = 6e4, e = 36e5, o = "millisecond", E = "second", v = "minute", F = "hour", f = "day", i = "week", s = "month", c = "quarter", _ = "year", V = "date", j = "Invalid Date", R = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|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, te = { 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($) {
|
|
193
|
+
var g = ["th", "st", "nd", "rd"], u = $ % 100;
|
|
194
|
+
return "[" + $ + (g[(u - 20) % 10] || g[u] || g[0]) + "]";
|
|
195
|
+
} }, me = function($, g, u) {
|
|
196
|
+
var q = String($);
|
|
197
|
+
return !q || q.length >= g ? $ : "" + Array(g + 1 - q.length).join(u) + $;
|
|
198
|
+
}, ie = { s: me, z: function($) {
|
|
199
|
+
var g = -$.utcOffset(), u = Math.abs(g), q = Math.floor(u / 60), C = u % 60;
|
|
200
|
+
return (g <= 0 ? "+" : "-") + me(q, 2, "0") + ":" + me(C, 2, "0");
|
|
201
|
+
}, m: function $(g, u) {
|
|
202
|
+
if (g.date() < u.date()) return -$(u, g);
|
|
203
|
+
var q = 12 * (u.year() - g.year()) + (u.month() - g.month()), C = g.clone().add(q, s), k = u - C < 0, U = g.clone().add(q + (k ? -1 : 1), s);
|
|
204
|
+
return +(-(q + (u - C) / (k ? C - U : U - C)) || 0);
|
|
205
|
+
}, a: function($) {
|
|
206
|
+
return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
|
|
207
|
+
}, p: function($) {
|
|
208
|
+
return { M: s, y: _, w: i, d: f, D: V, h: F, m: v, s: E, ms: o, Q: c }[$] || String($ || "").toLowerCase().replace(/s$/, "");
|
|
209
|
+
}, u: function($) {
|
|
210
|
+
return $ === void 0;
|
|
211
211
|
} }, ce = "en", de = {};
|
|
212
|
-
de[ce] =
|
|
213
|
-
var
|
|
214
|
-
return
|
|
215
|
-
},
|
|
212
|
+
de[ce] = te;
|
|
213
|
+
var Ce = "$isDayjsObject", Te = function($) {
|
|
214
|
+
return $ instanceof Oe || !(!$ || !$[Ce]);
|
|
215
|
+
}, le = function $(g, u, q) {
|
|
216
216
|
var C;
|
|
217
217
|
if (!g) return ce;
|
|
218
218
|
if (typeof g == "string") {
|
|
219
219
|
var k = g.toLowerCase();
|
|
220
|
-
de[k] && (C = k),
|
|
220
|
+
de[k] && (C = k), u && (de[k] = u, C = k);
|
|
221
221
|
var U = g.split("-");
|
|
222
|
-
if (!C && U.length > 1) return
|
|
222
|
+
if (!C && U.length > 1) return $(U[0]);
|
|
223
223
|
} else {
|
|
224
224
|
var Z = g.name;
|
|
225
225
|
de[Z] = g, C = Z;
|
|
226
226
|
}
|
|
227
227
|
return !q && C && (ce = C), C || !q && ce;
|
|
228
|
-
}, ne = function(
|
|
229
|
-
if (
|
|
230
|
-
var
|
|
231
|
-
return
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
return ne(
|
|
228
|
+
}, ne = function($, g) {
|
|
229
|
+
if (Te($)) return $.clone();
|
|
230
|
+
var u = typeof g == "object" ? g : {};
|
|
231
|
+
return u.date = $, u.args = arguments, new Oe(u);
|
|
232
|
+
}, re = ie;
|
|
233
|
+
re.l = le, re.i = Te, re.w = function($, g) {
|
|
234
|
+
return ne($, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
235
235
|
};
|
|
236
236
|
var Oe = function() {
|
|
237
|
-
function
|
|
238
|
-
this.$L =
|
|
237
|
+
function $(u) {
|
|
238
|
+
this.$L = le(u.locale, null, !0), this.parse(u), this.$x = this.$x || u.x || {}, this[Ce] = !0;
|
|
239
239
|
}
|
|
240
|
-
var g =
|
|
241
|
-
return g.parse = function(
|
|
240
|
+
var g = $.prototype;
|
|
241
|
+
return g.parse = function(u) {
|
|
242
242
|
this.$d = function(q) {
|
|
243
243
|
var C = q.date, k = q.utc;
|
|
244
244
|
if (C === null) return /* @__PURE__ */ new Date(NaN);
|
|
245
|
-
if (
|
|
245
|
+
if (re.u(C)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (C instanceof Date) return new Date(C);
|
|
247
247
|
if (typeof C == "string" && !/Z$/i.test(C)) {
|
|
248
|
-
var U = C.match(
|
|
248
|
+
var U = C.match(R);
|
|
249
249
|
if (U) {
|
|
250
250
|
var Z = U[2] - 1 || 0, G = (U[7] || "0").substring(0, 3);
|
|
251
251
|
return k ? new Date(Date.UTC(U[1], Z, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, G)) : new Date(U[1], Z, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, G);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(C);
|
|
255
|
-
}(
|
|
255
|
+
}(u), this.init();
|
|
256
256
|
}, g.init = function() {
|
|
257
|
-
var
|
|
258
|
-
this.$y =
|
|
257
|
+
var u = this.$d;
|
|
258
|
+
this.$y = u.getFullYear(), this.$M = u.getMonth(), this.$D = u.getDate(), this.$W = u.getDay(), this.$H = u.getHours(), this.$m = u.getMinutes(), this.$s = u.getSeconds(), this.$ms = u.getMilliseconds();
|
|
259
259
|
}, g.$utils = function() {
|
|
260
|
-
return
|
|
260
|
+
return re;
|
|
261
261
|
}, g.isValid = function() {
|
|
262
|
-
return this.$d.toString() !==
|
|
263
|
-
}, g.isSame = function(
|
|
264
|
-
var C = ne(
|
|
262
|
+
return this.$d.toString() !== j;
|
|
263
|
+
}, g.isSame = function(u, q) {
|
|
264
|
+
var C = ne(u);
|
|
265
265
|
return this.startOf(q) <= C && C <= this.endOf(q);
|
|
266
|
-
}, g.isAfter = function(
|
|
267
|
-
return ne(
|
|
268
|
-
}, g.isBefore = function(
|
|
269
|
-
return this.endOf(q) < ne(
|
|
270
|
-
}, g.$g = function(
|
|
271
|
-
return
|
|
266
|
+
}, g.isAfter = function(u, q) {
|
|
267
|
+
return ne(u) < this.startOf(q);
|
|
268
|
+
}, g.isBefore = function(u, q) {
|
|
269
|
+
return this.endOf(q) < ne(u);
|
|
270
|
+
}, g.$g = function(u, q, C) {
|
|
271
|
+
return re.u(u) ? this[q] : this.set(C, u);
|
|
272
272
|
}, g.unix = function() {
|
|
273
273
|
return Math.floor(this.valueOf() / 1e3);
|
|
274
274
|
}, g.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
|
-
}, g.startOf = function(
|
|
277
|
-
var C = this, k = !!
|
|
278
|
-
var
|
|
279
|
-
return k ?
|
|
280
|
-
}, G = function(
|
|
281
|
-
return
|
|
282
|
-
}, pe = this.$W,
|
|
276
|
+
}, g.startOf = function(u, q) {
|
|
277
|
+
var C = this, k = !!re.u(q) || q, U = re.p(u), Z = function($e, we) {
|
|
278
|
+
var Ee = re.w(C.$u ? Date.UTC(C.$y, we, $e) : new Date(C.$y, we, $e), C);
|
|
279
|
+
return k ? Ee : Ee.endOf(f);
|
|
280
|
+
}, G = function($e, we) {
|
|
281
|
+
return re.w(C.toDate()[$e].apply(C.toDate("s"), (k ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(we)), C);
|
|
282
|
+
}, pe = this.$W, w = this.$M, y = this.$D, ae = "set" + (this.$u ? "UTC" : "");
|
|
283
283
|
switch (U) {
|
|
284
|
-
case
|
|
284
|
+
case _:
|
|
285
285
|
return k ? Z(1, 0) : Z(31, 11);
|
|
286
|
-
case
|
|
287
|
-
return k ? Z(1,
|
|
286
|
+
case s:
|
|
287
|
+
return k ? Z(1, w) : Z(0, w + 1);
|
|
288
288
|
case i:
|
|
289
|
-
var
|
|
290
|
-
return Z(k ? y -
|
|
289
|
+
var he = this.$locale().weekStart || 0, be = (pe < he ? pe + 7 : pe) - he;
|
|
290
|
+
return Z(k ? y - be : y + (6 - be), w);
|
|
291
291
|
case f:
|
|
292
292
|
case V:
|
|
293
|
-
return G(
|
|
293
|
+
return G(ae + "Hours", 0);
|
|
294
294
|
case F:
|
|
295
|
-
return G(
|
|
295
|
+
return G(ae + "Minutes", 1);
|
|
296
296
|
case v:
|
|
297
|
-
return G(
|
|
298
|
-
case
|
|
299
|
-
return G(
|
|
297
|
+
return G(ae + "Seconds", 2);
|
|
298
|
+
case E:
|
|
299
|
+
return G(ae + "Milliseconds", 3);
|
|
300
300
|
default:
|
|
301
301
|
return this.clone();
|
|
302
302
|
}
|
|
303
|
-
}, g.endOf = function(
|
|
304
|
-
return this.startOf(
|
|
305
|
-
}, g.$set = function(
|
|
306
|
-
var C, k =
|
|
307
|
-
if (k ===
|
|
303
|
+
}, g.endOf = function(u) {
|
|
304
|
+
return this.startOf(u, !1);
|
|
305
|
+
}, g.$set = function(u, q) {
|
|
306
|
+
var C, k = re.p(u), U = "set" + (this.$u ? "UTC" : ""), Z = (C = {}, C[f] = U + "Date", C[V] = U + "Date", C[s] = U + "Month", C[_] = U + "FullYear", C[F] = U + "Hours", C[v] = U + "Minutes", C[E] = U + "Seconds", C[o] = U + "Milliseconds", C)[k], G = k === f ? this.$D + (q - this.$W) : q;
|
|
307
|
+
if (k === s || k === _) {
|
|
308
308
|
var pe = this.clone().set(V, 1);
|
|
309
309
|
pe.$d[Z](G), pe.init(), this.$d = pe.set(V, Math.min(this.$D, pe.daysInMonth())).$d;
|
|
310
310
|
} else Z && this.$d[Z](G);
|
|
311
311
|
return this.init(), this;
|
|
312
|
-
}, g.set = function(
|
|
313
|
-
return this.clone().$set(
|
|
314
|
-
}, g.get = function(
|
|
315
|
-
return this[
|
|
316
|
-
}, g.add = function(
|
|
312
|
+
}, g.set = function(u, q) {
|
|
313
|
+
return this.clone().$set(u, q);
|
|
314
|
+
}, g.get = function(u) {
|
|
315
|
+
return this[re.p(u)]();
|
|
316
|
+
}, g.add = function(u, q) {
|
|
317
317
|
var C, k = this;
|
|
318
|
-
|
|
319
|
-
var U =
|
|
318
|
+
u = Number(u);
|
|
319
|
+
var U = re.p(q), Z = function(w) {
|
|
320
320
|
var y = ne(k);
|
|
321
|
-
return
|
|
321
|
+
return re.w(y.date(y.date() + Math.round(w * u)), k);
|
|
322
322
|
};
|
|
323
|
-
if (U ===
|
|
324
|
-
if (U ===
|
|
323
|
+
if (U === s) return this.set(s, this.$M + u);
|
|
324
|
+
if (U === _) return this.set(_, this.$y + u);
|
|
325
325
|
if (U === f) return Z(1);
|
|
326
326
|
if (U === i) return Z(7);
|
|
327
|
-
var G = (C = {}, C[v] = t, C[F] = e, C[
|
|
328
|
-
return
|
|
329
|
-
}, g.subtract = function(
|
|
330
|
-
return this.add(-1 *
|
|
331
|
-
}, g.format = function(
|
|
327
|
+
var G = (C = {}, C[v] = t, C[F] = e, C[E] = r, C)[U] || 1, pe = this.$d.getTime() + u * G;
|
|
328
|
+
return re.w(pe, this);
|
|
329
|
+
}, g.subtract = function(u, q) {
|
|
330
|
+
return this.add(-1 * u, q);
|
|
331
|
+
}, g.format = function(u) {
|
|
332
332
|
var q = this, C = this.$locale();
|
|
333
|
-
if (!this.isValid()) return C.invalidDate ||
|
|
334
|
-
var k =
|
|
335
|
-
return
|
|
336
|
-
},
|
|
337
|
-
return
|
|
338
|
-
},
|
|
339
|
-
var xe =
|
|
333
|
+
if (!this.isValid()) return C.invalidDate || j;
|
|
334
|
+
var k = u || "YYYY-MM-DDTHH:mm:ssZ", U = re.z(this), Z = this.$H, G = this.$m, pe = this.$M, w = C.weekdays, y = C.months, ae = C.meridiem, he = function(we, Ee, Me, xe) {
|
|
335
|
+
return we && (we[Ee] || we(q, k)) || Me[Ee].slice(0, xe);
|
|
336
|
+
}, be = function(we) {
|
|
337
|
+
return re.s(Z % 12 || 12, we, "0");
|
|
338
|
+
}, $e = ae || function(we, Ee, Me) {
|
|
339
|
+
var xe = we < 12 ? "AM" : "PM";
|
|
340
340
|
return Me ? xe.toLowerCase() : xe;
|
|
341
341
|
};
|
|
342
|
-
return k.replace(L, function(
|
|
343
|
-
return
|
|
342
|
+
return k.replace(L, function(we, Ee) {
|
|
343
|
+
return Ee || function(Me) {
|
|
344
344
|
switch (Me) {
|
|
345
345
|
case "YY":
|
|
346
346
|
return String(q.$y).slice(-2);
|
|
347
347
|
case "YYYY":
|
|
348
|
-
return
|
|
348
|
+
return re.s(q.$y, 4, "0");
|
|
349
349
|
case "M":
|
|
350
350
|
return pe + 1;
|
|
351
351
|
case "MM":
|
|
352
|
-
return
|
|
352
|
+
return re.s(pe + 1, 2, "0");
|
|
353
353
|
case "MMM":
|
|
354
|
-
return
|
|
354
|
+
return he(C.monthsShort, pe, y, 3);
|
|
355
355
|
case "MMMM":
|
|
356
|
-
return
|
|
356
|
+
return he(y, pe);
|
|
357
357
|
case "D":
|
|
358
358
|
return q.$D;
|
|
359
359
|
case "DD":
|
|
360
|
-
return
|
|
360
|
+
return re.s(q.$D, 2, "0");
|
|
361
361
|
case "d":
|
|
362
362
|
return String(q.$W);
|
|
363
363
|
case "dd":
|
|
364
|
-
return
|
|
364
|
+
return he(C.weekdaysMin, q.$W, w, 2);
|
|
365
365
|
case "ddd":
|
|
366
|
-
return
|
|
366
|
+
return he(C.weekdaysShort, q.$W, w, 3);
|
|
367
367
|
case "dddd":
|
|
368
|
-
return
|
|
368
|
+
return w[q.$W];
|
|
369
369
|
case "H":
|
|
370
370
|
return String(Z);
|
|
371
371
|
case "HH":
|
|
372
|
-
return
|
|
372
|
+
return re.s(Z, 2, "0");
|
|
373
373
|
case "h":
|
|
374
|
-
return
|
|
374
|
+
return be(1);
|
|
375
375
|
case "hh":
|
|
376
|
-
return
|
|
376
|
+
return be(2);
|
|
377
377
|
case "a":
|
|
378
|
-
return
|
|
378
|
+
return $e(Z, G, !0);
|
|
379
379
|
case "A":
|
|
380
|
-
return
|
|
380
|
+
return $e(Z, G, !1);
|
|
381
381
|
case "m":
|
|
382
382
|
return String(G);
|
|
383
383
|
case "mm":
|
|
384
|
-
return
|
|
384
|
+
return re.s(G, 2, "0");
|
|
385
385
|
case "s":
|
|
386
386
|
return String(q.$s);
|
|
387
387
|
case "ss":
|
|
388
|
-
return
|
|
388
|
+
return re.s(q.$s, 2, "0");
|
|
389
389
|
case "SSS":
|
|
390
|
-
return
|
|
390
|
+
return re.s(q.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
392
|
return U;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}(
|
|
395
|
+
}(we) || U.replace(":", "");
|
|
396
396
|
});
|
|
397
397
|
}, g.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
|
-
}, g.diff = function(
|
|
400
|
-
var k, U = this, Z =
|
|
401
|
-
return
|
|
399
|
+
}, g.diff = function(u, q, C) {
|
|
400
|
+
var k, U = this, Z = re.p(q), G = ne(u), pe = (G.utcOffset() - this.utcOffset()) * t, w = this - G, y = function() {
|
|
401
|
+
return re.m(U, G);
|
|
402
402
|
};
|
|
403
403
|
switch (Z) {
|
|
404
|
-
case
|
|
404
|
+
case _:
|
|
405
405
|
k = y() / 12;
|
|
406
406
|
break;
|
|
407
|
-
case
|
|
407
|
+
case s:
|
|
408
408
|
k = y();
|
|
409
409
|
break;
|
|
410
410
|
case c:
|
|
411
411
|
k = y() / 3;
|
|
412
412
|
break;
|
|
413
413
|
case i:
|
|
414
|
-
k = (
|
|
414
|
+
k = (w - pe) / 6048e5;
|
|
415
415
|
break;
|
|
416
416
|
case f:
|
|
417
|
-
k = (
|
|
417
|
+
k = (w - pe) / 864e5;
|
|
418
418
|
break;
|
|
419
419
|
case F:
|
|
420
|
-
k =
|
|
420
|
+
k = w / e;
|
|
421
421
|
break;
|
|
422
422
|
case v:
|
|
423
|
-
k =
|
|
423
|
+
k = w / t;
|
|
424
424
|
break;
|
|
425
|
-
case
|
|
426
|
-
k =
|
|
425
|
+
case E:
|
|
426
|
+
k = w / r;
|
|
427
427
|
break;
|
|
428
428
|
default:
|
|
429
|
-
k =
|
|
429
|
+
k = w;
|
|
430
430
|
}
|
|
431
|
-
return C ? k :
|
|
431
|
+
return C ? k : re.a(k);
|
|
432
432
|
}, g.daysInMonth = function() {
|
|
433
|
-
return this.endOf(
|
|
433
|
+
return this.endOf(s).$D;
|
|
434
434
|
}, g.$locale = function() {
|
|
435
435
|
return de[this.$L];
|
|
436
|
-
}, g.locale = function(
|
|
437
|
-
if (!
|
|
438
|
-
var C = this.clone(), k =
|
|
436
|
+
}, g.locale = function(u, q) {
|
|
437
|
+
if (!u) return this.$L;
|
|
438
|
+
var C = this.clone(), k = le(u, q, !0);
|
|
439
439
|
return k && (C.$L = k), C;
|
|
440
440
|
}, g.clone = function() {
|
|
441
|
-
return
|
|
441
|
+
return re.w(this.$d, this);
|
|
442
442
|
}, g.toDate = function() {
|
|
443
443
|
return new Date(this.valueOf());
|
|
444
444
|
}, g.toJSON = function() {
|
|
@@ -447,21 +447,21 @@ var Ht = { exports: {} };
|
|
|
447
447
|
return this.$d.toISOString();
|
|
448
448
|
}, g.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
|
-
},
|
|
451
|
-
}(),
|
|
452
|
-
return ne.prototype =
|
|
453
|
-
|
|
454
|
-
return this.$g(g,
|
|
450
|
+
}, $;
|
|
451
|
+
}(), T = Oe.prototype;
|
|
452
|
+
return ne.prototype = T, [["$ms", o], ["$s", E], ["$m", v], ["$H", F], ["$W", f], ["$M", s], ["$y", _], ["$D", V]].forEach(function($) {
|
|
453
|
+
T[$[1]] = function(g) {
|
|
454
|
+
return this.$g(g, $[0], $[1]);
|
|
455
455
|
};
|
|
456
|
-
}), ne.extend = function(
|
|
457
|
-
return
|
|
458
|
-
}, ne.locale =
|
|
459
|
-
return ne(1e3 *
|
|
456
|
+
}), ne.extend = function($, g) {
|
|
457
|
+
return $.$i || ($(g, Oe, ne), $.$i = !0), ne;
|
|
458
|
+
}, ne.locale = le, ne.isDayjs = Te, ne.unix = function($) {
|
|
459
|
+
return ne(1e3 * $);
|
|
460
460
|
}, ne.en = de[ce], ne.Ls = de, ne.p = {}, ne;
|
|
461
461
|
});
|
|
462
462
|
})(Ht);
|
|
463
|
-
var
|
|
464
|
-
const
|
|
463
|
+
var _l = Ht.exports;
|
|
464
|
+
const wt = /* @__PURE__ */ Lt(_l), zt = {
|
|
465
465
|
inline: !0,
|
|
466
466
|
type: "hidden",
|
|
467
467
|
"scroll-to-error": !0,
|
|
@@ -490,7 +490,7 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
490
490
|
label: "提交",
|
|
491
491
|
plain: !0,
|
|
492
492
|
hidden: !1,
|
|
493
|
-
icon: () =>
|
|
493
|
+
icon: () => ke(Ot)
|
|
494
494
|
},
|
|
495
495
|
//表单重置按钮属性
|
|
496
496
|
reset: {
|
|
@@ -498,22 +498,22 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
498
498
|
label: "重置",
|
|
499
499
|
hidden: !1,
|
|
500
500
|
plain: !0,
|
|
501
|
-
icon: () =>
|
|
501
|
+
icon: () => ke(It)
|
|
502
502
|
},
|
|
503
503
|
slots: {},
|
|
504
504
|
tabs: {
|
|
505
505
|
type: "card",
|
|
506
506
|
editable: !1
|
|
507
507
|
}
|
|
508
|
-
}, Ze = (a,
|
|
508
|
+
}, Ze = (a, n) => {
|
|
509
509
|
const r = a.__vccOpts || a;
|
|
510
|
-
for (const [t, e] of
|
|
510
|
+
for (const [t, e] of n)
|
|
511
511
|
r[t] = e;
|
|
512
512
|
return r;
|
|
513
|
-
},
|
|
513
|
+
}, kl = {
|
|
514
514
|
style: { display: "flex", width: "100%" },
|
|
515
515
|
class: "g-ctrl-container"
|
|
516
|
-
},
|
|
516
|
+
}, Cl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Dl = ["title"], Sl = ["innerHTML"], Ml = ["innerHTML"], Tl = ["innerHTML"], Fl = ["innerHTML"], xl = ["innerHTML"], Vl = ["innerHTML"], ql = ["innerHTML"], Al = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
517
517
|
__name: "g-ctrl",
|
|
518
518
|
props: /* @__PURE__ */ Xe(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
519
519
|
modelValue: { required: !0 },
|
|
@@ -521,20 +521,20 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
521
521
|
}),
|
|
522
522
|
emits: ["update:modelValue"],
|
|
523
523
|
setup(a) {
|
|
524
|
-
var Oe,
|
|
525
|
-
const
|
|
526
|
-
!((Oe = o.value) != null && Oe.startsWith("text")) && !((
|
|
527
|
-
const
|
|
528
|
-
|
|
524
|
+
var Oe, T, $, g, u, q, C, k, U, Z, G, pe;
|
|
525
|
+
const n = Qe(a, "modelValue"), r = a, t = oe(r.item || {}), e = oe(r.ctrlKey), o = oe(r.ctrlType), E = oe(r.model), v = oe([]), F = oe([]), f = oe(!1), i = oe(!1);
|
|
526
|
+
!((Oe = o.value) != null && Oe.startsWith("text")) && !((T = o.value) != null && T.startsWith("link")) && !(($ = o.value) != null && $.startsWith("tag")) && !((g = o.value) != null && g.startsWith("div")) && !((u = o.value) != null && u.startsWith("span")) && !((q = o.value) != null && q.startsWith("avatar")) && ((C = t.value) != null && C.style || (t.value.style = { width: ((U = (k = t.value) == null ? void 0 : k.style) == null ? void 0 : U.width) || "100%" }));
|
|
527
|
+
const s = oe({ display: "flex", flex: 1 }), c = r.t === "t" ? "center" : "flex-start", _ = ((Z = t.value) == null ? void 0 : Z.style) || {};
|
|
528
|
+
s.value = { ...s.value, justifyContent: c, ..._ };
|
|
529
529
|
const V = () => {
|
|
530
|
-
const
|
|
531
|
-
return y.filter((
|
|
532
|
-
},
|
|
530
|
+
const w = At(), y = Object.keys(w), ae = `${r.t}-${e.value}-`;
|
|
531
|
+
return y.filter(($e) => $e.startsWith(ae)).map(($e) => $e.replace(ae, ""));
|
|
532
|
+
}, j = oe({
|
|
533
533
|
multiple: !1,
|
|
534
534
|
"show-file-list": !1,
|
|
535
535
|
"file-list": [],
|
|
536
536
|
showDel: (G = t.value) != null && G.showDel ? (pe = t.value) == null ? void 0 : pe.showDel : r.t !== "t"
|
|
537
|
-
}),
|
|
537
|
+
}), R = oe(t.value.innerHtml), L = (w) => [
|
|
538
538
|
"year",
|
|
539
539
|
"years",
|
|
540
540
|
"month",
|
|
@@ -547,7 +547,7 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
547
547
|
"daterange",
|
|
548
548
|
"monthrange",
|
|
549
549
|
"yearrange"
|
|
550
|
-
].includes(
|
|
550
|
+
].includes(w), te = (w) => ({
|
|
551
551
|
year: "YYYY",
|
|
552
552
|
years: "YYYY",
|
|
553
553
|
month: "YYYY-MM",
|
|
@@ -561,62 +561,62 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
561
561
|
daterange: "YYYY-MM-DD",
|
|
562
562
|
monthrange: "YYYY-MM",
|
|
563
563
|
yearrange: "YYYY"
|
|
564
|
-
})[
|
|
564
|
+
})[w] || "YYYY-MM-DD", me = oe({
|
|
565
565
|
filterable: !0,
|
|
566
566
|
remote: !!(t.value && t.value["remote-method"]),
|
|
567
567
|
...t.value
|
|
568
|
-
}), ie =
|
|
569
|
-
t.value["remote-method"](
|
|
568
|
+
}), ie = oe((w) => {
|
|
569
|
+
t.value["remote-method"](w, (y) => {
|
|
570
570
|
at(() => {
|
|
571
571
|
F.value = y;
|
|
572
572
|
});
|
|
573
573
|
});
|
|
574
|
-
}), ce = async (
|
|
574
|
+
}), ce = async (w = "options") => {
|
|
575
575
|
var y;
|
|
576
576
|
try {
|
|
577
|
-
const
|
|
578
|
-
if (typeof
|
|
579
|
-
F.value = [{ label:
|
|
577
|
+
const ae = await ((y = t.value) == null ? void 0 : y.getDicts(r.formInfo));
|
|
578
|
+
if (typeof ae == "string")
|
|
579
|
+
F.value = [{ label: ae, value: n.value }];
|
|
580
580
|
else {
|
|
581
|
-
const
|
|
582
|
-
...
|
|
583
|
-
value:
|
|
584
|
-
label:
|
|
581
|
+
const he = ae == null ? void 0 : ae.map((be, $e) => ({
|
|
582
|
+
...be,
|
|
583
|
+
value: be.value ?? be.label ?? $e,
|
|
584
|
+
label: be.label || "未知选项"
|
|
585
585
|
}));
|
|
586
|
-
F.value =
|
|
586
|
+
F.value = he || [];
|
|
587
587
|
}
|
|
588
|
-
} catch (
|
|
589
|
-
throw console.error("获取选项失败:",
|
|
588
|
+
} catch (ae) {
|
|
589
|
+
throw console.error("获取选项失败:", ae), ae;
|
|
590
590
|
}
|
|
591
591
|
}, de = () => {
|
|
592
|
-
var
|
|
593
|
-
t.value.noSearch !== !0 && r.t === "q" && ((y = (
|
|
594
|
-
},
|
|
595
|
-
|
|
596
|
-
},
|
|
592
|
+
var w, y;
|
|
593
|
+
t.value.noSearch !== !0 && r.t === "q" && ((y = (w = E.value) == null ? void 0 : w.table) == null || y.load());
|
|
594
|
+
}, Ce = (w) => {
|
|
595
|
+
w.preventDefault(), w.stopPropagation(), n.value = "";
|
|
596
|
+
}, Te = (w) => {
|
|
597
597
|
f.value = !0;
|
|
598
|
-
},
|
|
599
|
-
|
|
600
|
-
}, ne =
|
|
598
|
+
}, le = (w) => {
|
|
599
|
+
w.preventDefault(), w.stopPropagation(), f.value = !0;
|
|
600
|
+
}, ne = oe(null);
|
|
601
601
|
ut(async () => {
|
|
602
|
-
var
|
|
603
|
-
t.value && t.value["remote-method"] && (
|
|
604
|
-
const
|
|
602
|
+
var ae, he, be, $e, we;
|
|
603
|
+
t.value && t.value["remote-method"] && (me.value["remote-method"] = ie), (he = (ae = E.value[e.value]) == null ? void 0 : ae.options) != null && he.length && (F.value = E.value[e.value].options);
|
|
604
|
+
const w = (Ee, Me = "options", xe = E.value[e.value]) => {
|
|
605
605
|
typeof t.value.getDicts == "function" && ce(Me).catch((Ye) => {
|
|
606
|
-
console.error(`Failed to load ${Me} for ${
|
|
606
|
+
console.error(`Failed to load ${Me} for ${Ee}:`, Ye);
|
|
607
607
|
});
|
|
608
608
|
};
|
|
609
|
-
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(o.value) &&
|
|
609
|
+
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(o.value) && w(o.value), o.value === Se.TREESELECT && await (async () => {
|
|
610
610
|
try {
|
|
611
611
|
typeof t.value.getDicts == "function" ? v.value = await t.value.getDicts(r.formInfo) : v.value = F.value;
|
|
612
612
|
} catch (Me) {
|
|
613
613
|
console.error("Failed to load data for tree-select:", Me);
|
|
614
614
|
}
|
|
615
615
|
})(), r.t == "q") {
|
|
616
|
-
let
|
|
617
|
-
(
|
|
616
|
+
let Ee = t.value.type || o.value;
|
|
617
|
+
(Ee === void 0 || o.value === "input" || Ee == Se.NUMBER || Ee == Se.EMAIL || Ee == "url" || Ee == "text") && t.value.onKeyup == null && (t.value.onKeyup = (Me) => {
|
|
618
618
|
var xe, Ye;
|
|
619
|
-
(Me.keyCode === 13 || Me.key === "Enter") && ((Ye = (xe =
|
|
619
|
+
(Me.keyCode === 13 || Me.key === "Enter") && ((Ye = (xe = E.value) == null ? void 0 : xe.table) == null || Ye.load());
|
|
620
620
|
}), [
|
|
621
621
|
"radio",
|
|
622
622
|
"switch",
|
|
@@ -633,84 +633,84 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
633
633
|
"datetime",
|
|
634
634
|
"datetimerange",
|
|
635
635
|
"week"
|
|
636
|
-
].includes(
|
|
636
|
+
].includes(Ee) && t.value.onChange === void 0 && (t.value.onChange = (Me) => {
|
|
637
637
|
var xe, Ye;
|
|
638
|
-
(Ye = (xe =
|
|
638
|
+
(Ye = (xe = E.value) == null ? void 0 : xe.table) == null || Ye.load();
|
|
639
639
|
});
|
|
640
640
|
}
|
|
641
|
-
o.value == "image" && (t.value.width && ((
|
|
641
|
+
o.value == "image" && (t.value.width && ((be = ne.value) != null && be.$el) && ne.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && (($e = ne.value) != null && $e.$el) && ne.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((we = ne.value) != null && we.$el) && ne.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
642
642
|
});
|
|
643
|
-
const
|
|
644
|
-
var
|
|
645
|
-
return t.value["file-list"] && t.value["file-list"].length ? (
|
|
643
|
+
const re = Je(() => {
|
|
644
|
+
var w;
|
|
645
|
+
return t.value["file-list"] && t.value["file-list"].length ? (w = t.value["file-list"]) == null ? void 0 : w.map((y) => y == null ? void 0 : y.url) : [n.value];
|
|
646
646
|
});
|
|
647
|
-
return (
|
|
648
|
-
var nt,
|
|
649
|
-
const
|
|
647
|
+
return (w, y) => {
|
|
648
|
+
var nt, z, se, x, X, ee, je, Ne, ze, Pe;
|
|
649
|
+
const ae = H("el-image-viewer"), he = H("el-radio"), be = H("el-radio-group"), $e = H("el-radio-button"), we = H("el-checkbox"), Ee = H("el-checkbox-group"), Me = H("el-checkbox-button"), xe = H("g-select-option"), Ye = H("el-option"), st = H("el-select"), it = H("el-tree-select"), dt = H("el-time-picker"), ct = H("el-time-select"), ft = H("el-date-picker"), vt = H("el-color-picker"), l = H("el-rate"), d = H("el-slider"), m = H("el-switch"), b = H("el-transfer"), A = H("el-cascader"), Y = H("el-icon"), W = H("el-image"), fe = H("el-tooltip"), _e = H("el-upload"), Fe = H("el-autocomplete"), Re = H("el-input-number"), Le = H("el-input"), He = H("el-link"), et = H("el-text"), ot = H("el-avatar"), tt = H("el-tag");
|
|
650
650
|
return p(), I(J, null, [
|
|
651
651
|
Q("div", null, [
|
|
652
|
-
f.value ? (p(),
|
|
652
|
+
f.value ? (p(), B(ae, {
|
|
653
653
|
key: 0,
|
|
654
654
|
teleported: !0,
|
|
655
|
-
"url-list":
|
|
655
|
+
"url-list": re.value,
|
|
656
656
|
onClose: y[0] || (y[0] = (h) => f.value = !1)
|
|
657
|
-
}, null, 8, ["url-list"])) :
|
|
657
|
+
}, null, 8, ["url-list"])) : ge("", !0)
|
|
658
658
|
]),
|
|
659
|
-
Q("div",
|
|
660
|
-
o.value == P(
|
|
659
|
+
Q("div", kl, [
|
|
660
|
+
o.value == P(Se).RADIO ? (p(), B(be, O({
|
|
661
661
|
key: 0,
|
|
662
|
-
modelValue:
|
|
663
|
-
"onUpdate:modelValue": y[1] || (y[1] = (h) =>
|
|
662
|
+
modelValue: n.value,
|
|
663
|
+
"onUpdate:modelValue": y[1] || (y[1] = (h) => n.value = h)
|
|
664
664
|
}, t.value), {
|
|
665
665
|
default: D(() => [
|
|
666
|
-
M(
|
|
667
|
-
(p(!0), I(J, null,
|
|
666
|
+
M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
|
|
667
|
+
(p(!0), I(J, null, N(F.value, (h) => (p(), B(he, O({ ref_for: !0 }, h), {
|
|
668
668
|
default: D(() => [
|
|
669
|
-
M(
|
|
669
|
+
M(w.$slots, `${r.t}-${e.value}-options`, { option: h }, void 0, !0)
|
|
670
670
|
]),
|
|
671
671
|
_: 2
|
|
672
672
|
}, 1040))), 256))
|
|
673
673
|
], !0)
|
|
674
674
|
]),
|
|
675
675
|
_: 3
|
|
676
|
-
}, 16, ["modelValue"])) : o.value == P(
|
|
676
|
+
}, 16, ["modelValue"])) : o.value == P(Se).RADIOBUTTON ? (p(), B(be, O({
|
|
677
677
|
key: 1,
|
|
678
|
-
modelValue:
|
|
679
|
-
"onUpdate:modelValue": y[2] || (y[2] = (h) =>
|
|
678
|
+
modelValue: n.value,
|
|
679
|
+
"onUpdate:modelValue": y[2] || (y[2] = (h) => n.value = h)
|
|
680
680
|
}, t.value), {
|
|
681
681
|
default: D(() => [
|
|
682
|
-
M(
|
|
683
|
-
(p(!0), I(J, null,
|
|
682
|
+
M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
|
|
683
|
+
(p(!0), I(J, null, N(F.value, (h) => (p(), B($e, O({ ref_for: !0 }, h), {
|
|
684
684
|
default: D(() => [
|
|
685
|
-
M(
|
|
685
|
+
M(w.$slots, `${r.t}-${e.value}-options`, { option: h }, void 0, !0)
|
|
686
686
|
]),
|
|
687
687
|
_: 2
|
|
688
688
|
}, 1040))), 256))
|
|
689
689
|
], !0)
|
|
690
690
|
]),
|
|
691
691
|
_: 3
|
|
692
|
-
}, 16, ["modelValue"])) : o.value == P(
|
|
692
|
+
}, 16, ["modelValue"])) : o.value == P(Se).CHECKBOX ? (p(), B(we, O({
|
|
693
693
|
key: 2,
|
|
694
|
-
modelValue:
|
|
695
|
-
"onUpdate:modelValue": y[3] || (y[3] = (h) =>
|
|
694
|
+
modelValue: n.value,
|
|
695
|
+
"onUpdate:modelValue": y[3] || (y[3] = (h) => n.value = h)
|
|
696
696
|
}, t.value), {
|
|
697
697
|
default: D(() => [
|
|
698
|
-
M(
|
|
699
|
-
y[27] || (y[27] = Ie(
|
|
698
|
+
M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
|
|
699
|
+
y[27] || (y[27] = Ie(De(" ")))
|
|
700
700
|
], !0)
|
|
701
701
|
]),
|
|
702
702
|
_: 3
|
|
703
|
-
}, 16, ["modelValue"])) : o.value == P(
|
|
703
|
+
}, 16, ["modelValue"])) : o.value == P(Se).CHECKBOXGROUP ? (p(), B(Ee, O({
|
|
704
704
|
key: 3,
|
|
705
|
-
modelValue:
|
|
706
|
-
"onUpdate:modelValue": y[4] || (y[4] = (h) =>
|
|
705
|
+
modelValue: n.value,
|
|
706
|
+
"onUpdate:modelValue": y[4] || (y[4] = (h) => n.value = h)
|
|
707
707
|
}, t.value), {
|
|
708
708
|
default: D(() => [
|
|
709
|
-
M(
|
|
710
|
-
(p(!0), I(J, null,
|
|
709
|
+
M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
|
|
710
|
+
(p(!0), I(J, null, N(F.value, (h) => (p(), B(we, O({ ref_for: !0 }, h), {
|
|
711
711
|
default: D(() => [
|
|
712
|
-
M(
|
|
713
|
-
Ie(
|
|
712
|
+
M(w.$slots, `${r.t}-${e.value}-options`, { option: h }, () => [
|
|
713
|
+
Ie(De(h.label), 1)
|
|
714
714
|
], !0)
|
|
715
715
|
]),
|
|
716
716
|
_: 2
|
|
@@ -718,46 +718,46 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
718
718
|
], !0)
|
|
719
719
|
]),
|
|
720
720
|
_: 3
|
|
721
|
-
}, 16, ["modelValue"])) : o.value == P(
|
|
721
|
+
}, 16, ["modelValue"])) : o.value == P(Se).CHECKBOXGROUPBUTTON ? (p(), B(Ee, O({
|
|
722
722
|
key: 4,
|
|
723
|
-
modelValue:
|
|
724
|
-
"onUpdate:modelValue": y[5] || (y[5] = (h) =>
|
|
723
|
+
modelValue: n.value,
|
|
724
|
+
"onUpdate:modelValue": y[5] || (y[5] = (h) => n.value = h)
|
|
725
725
|
}, t.value), {
|
|
726
726
|
default: D(() => [
|
|
727
|
-
M(
|
|
728
|
-
(p(!0), I(J, null,
|
|
727
|
+
M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
|
|
728
|
+
(p(!0), I(J, null, N(F.value, (h) => (p(), B(Me, O({ ref_for: !0 }, h), {
|
|
729
729
|
default: D(() => [
|
|
730
|
-
M(
|
|
730
|
+
M(w.$slots, `${r.t}-${e.value}-options`, { option: h }, void 0, !0)
|
|
731
731
|
]),
|
|
732
732
|
_: 2
|
|
733
733
|
}, 1040))), 256))
|
|
734
734
|
], !0)
|
|
735
735
|
]),
|
|
736
736
|
_: 3
|
|
737
|
-
}, 16, ["modelValue"])) : o.value === P(
|
|
737
|
+
}, 16, ["modelValue"])) : o.value === P(Se).SELECT ? (p(), B(st, O({
|
|
738
738
|
key: 5,
|
|
739
|
-
modelValue:
|
|
740
|
-
"onUpdate:modelValue": y[6] || (y[6] = (h) =>
|
|
741
|
-
placeholder:
|
|
739
|
+
modelValue: n.value,
|
|
740
|
+
"onUpdate:modelValue": y[6] || (y[6] = (h) => n.value = h),
|
|
741
|
+
placeholder: E.value[e.value].label,
|
|
742
742
|
clearable: !0,
|
|
743
743
|
onClear: y[7] || (y[7] = () => {
|
|
744
|
-
r.t == "q" &&
|
|
744
|
+
r.t == "q" && E.value.table.load();
|
|
745
745
|
})
|
|
746
|
-
},
|
|
746
|
+
}, me.value), ye({
|
|
747
747
|
default: D(() => [
|
|
748
|
-
M(
|
|
749
|
-
(p(!0), I(J, null,
|
|
748
|
+
M(w.$slots, `${r.t}-${e.value}`, { options: F.value }, () => [
|
|
749
|
+
(p(!0), I(J, null, N(F.value, (h) => (p(), I(J, {
|
|
750
750
|
key: h.value
|
|
751
751
|
}, [
|
|
752
|
-
K(Ye, O({ ref_for: !0 }, P(Ue)(h, (
|
|
753
|
-
onClick: (
|
|
754
|
-
|
|
752
|
+
K(Ye, O({ ref_for: !0 }, P(Ue)(h, (S) => S != "children"), {
|
|
753
|
+
onClick: (S) => {
|
|
754
|
+
me.value.change && me.value.change(h), de();
|
|
755
755
|
}
|
|
756
756
|
}), {
|
|
757
757
|
default: D(() => {
|
|
758
|
-
var
|
|
758
|
+
var S;
|
|
759
759
|
return [
|
|
760
|
-
(
|
|
760
|
+
(S = t.value) != null && S.columns ? M(w.$slots, `${r.t}-${e.value}-options`, {
|
|
761
761
|
key: 0,
|
|
762
762
|
option: h
|
|
763
763
|
}, () => {
|
|
@@ -767,62 +767,64 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
767
767
|
columns: (ue = t.value) == null ? void 0 : ue.columns,
|
|
768
768
|
data: h,
|
|
769
769
|
t: r.t
|
|
770
|
-
},
|
|
771
|
-
|
|
770
|
+
}, ye({ _: 2 }, [
|
|
771
|
+
N(w.$slots, (Ae, lt) => ({
|
|
772
772
|
name: lt,
|
|
773
773
|
fn: D((rt) => [
|
|
774
|
-
M(
|
|
774
|
+
M(w.$slots, lt, {
|
|
775
775
|
option: h,
|
|
776
|
-
data: rt
|
|
776
|
+
data: rt,
|
|
777
|
+
form: a.formInfo
|
|
777
778
|
}, void 0, !0)
|
|
778
779
|
])
|
|
779
780
|
}))
|
|
780
781
|
]), 1032, ["columns", "data", "t"])
|
|
781
782
|
];
|
|
782
|
-
}, !0) :
|
|
783
|
+
}, !0) : ge("", !0)
|
|
783
784
|
];
|
|
784
785
|
}),
|
|
785
786
|
_: 2
|
|
786
787
|
}, 1040, ["onClick"]),
|
|
787
|
-
h.children && h.children.length ? (p(!0), I(J, { key: 0 },
|
|
788
|
+
h.children && h.children.length ? (p(!0), I(J, { key: 0 }, N(h.children, (S) => (p(), B(Ye, O({
|
|
788
789
|
style: { "margin-left": "20px" },
|
|
789
|
-
key:
|
|
790
|
+
key: S.value,
|
|
790
791
|
ref_for: !0
|
|
791
|
-
}, P(Ue)(
|
|
792
|
+
}, P(Ue)(S, (ue) => ue != "children"), {
|
|
792
793
|
onClick: (ue) => {
|
|
793
|
-
|
|
794
|
+
me.value.change && me.value.change(S), de();
|
|
794
795
|
}
|
|
795
796
|
}), {
|
|
796
797
|
default: D(() => {
|
|
797
798
|
var ue;
|
|
798
799
|
return [
|
|
799
|
-
(ue = t.value) != null && ue.columns ? M(
|
|
800
|
+
(ue = t.value) != null && ue.columns ? M(w.$slots, `${r.t}-${e.value}-options`, {
|
|
800
801
|
key: 0,
|
|
801
|
-
option:
|
|
802
|
+
option: S
|
|
802
803
|
}, () => {
|
|
803
804
|
var Ae;
|
|
804
805
|
return [
|
|
805
806
|
K(xe, {
|
|
806
807
|
columns: (Ae = t.value) == null ? void 0 : Ae.columns,
|
|
807
|
-
data:
|
|
808
|
+
data: S,
|
|
808
809
|
t: r.t
|
|
809
|
-
},
|
|
810
|
-
|
|
810
|
+
}, ye({ _: 2 }, [
|
|
811
|
+
N(w.$slots, (lt, rt) => ({
|
|
811
812
|
name: rt,
|
|
812
|
-
fn: D((
|
|
813
|
-
M(
|
|
814
|
-
option:
|
|
815
|
-
data:
|
|
813
|
+
fn: D((Xt) => [
|
|
814
|
+
M(w.$slots, rt, {
|
|
815
|
+
option: S,
|
|
816
|
+
data: Xt,
|
|
817
|
+
form: a.formInfo
|
|
816
818
|
}, void 0, !0)
|
|
817
819
|
])
|
|
818
820
|
}))
|
|
819
821
|
]), 1032, ["columns", "data", "t"])
|
|
820
822
|
];
|
|
821
|
-
}, !0) :
|
|
823
|
+
}, !0) : ge("", !0)
|
|
822
824
|
];
|
|
823
825
|
}),
|
|
824
826
|
_: 2
|
|
825
|
-
}, 1040, ["onClick"]))), 128)) :
|
|
827
|
+
}, 1040, ["onClick"]))), 128)) : ge("", !0)
|
|
826
828
|
], 64))), 128))
|
|
827
829
|
], !0)
|
|
828
830
|
]),
|
|
@@ -837,11 +839,11 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
837
839
|
columns: (h = t.value) == null ? void 0 : h.columns,
|
|
838
840
|
title: !0,
|
|
839
841
|
t: r.t
|
|
840
|
-
},
|
|
841
|
-
|
|
842
|
+
}, ye({ _: 2 }, [
|
|
843
|
+
N(w.$slots, (S, ue) => ({
|
|
842
844
|
name: ue,
|
|
843
845
|
fn: D((Ae) => [
|
|
844
|
-
M(
|
|
846
|
+
M(w.$slots, ue, { data: Ae }, void 0, !0)
|
|
845
847
|
])
|
|
846
848
|
}))
|
|
847
849
|
]), 1032, ["columns", "t"])
|
|
@@ -849,169 +851,169 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
849
851
|
}),
|
|
850
852
|
key: "0"
|
|
851
853
|
} : void 0,
|
|
852
|
-
|
|
854
|
+
N(V(), (h) => ({
|
|
853
855
|
name: h,
|
|
854
|
-
fn: D((
|
|
855
|
-
M(
|
|
856
|
+
fn: D((S) => [
|
|
857
|
+
M(w.$slots, `${r.t}-${e.value}-${h}`, { form: a.formInfo }, void 0, !0)
|
|
856
858
|
])
|
|
857
859
|
}))
|
|
858
|
-
]), 1040, ["modelValue", "placeholder"])) : o.value == P(
|
|
860
|
+
]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).TREESELECT ? (p(), B(it, O({
|
|
859
861
|
key: 6,
|
|
860
|
-
modelValue:
|
|
861
|
-
"onUpdate:modelValue": y[8] || (y[8] = (h) =>
|
|
862
|
-
placeholder:
|
|
863
|
-
}, t.value, { data: v.value }),
|
|
864
|
-
|
|
862
|
+
modelValue: n.value,
|
|
863
|
+
"onUpdate:modelValue": y[8] || (y[8] = (h) => n.value = h),
|
|
864
|
+
placeholder: E.value[e.value].label
|
|
865
|
+
}, t.value, { data: v.value }), ye({ _: 2 }, [
|
|
866
|
+
N(V(), (h) => ({
|
|
865
867
|
name: h,
|
|
866
|
-
fn: D((
|
|
867
|
-
M(
|
|
868
|
+
fn: D((S) => [
|
|
869
|
+
M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
|
|
868
870
|
])
|
|
869
871
|
}))
|
|
870
|
-
]), 1040, ["modelValue", "placeholder", "data"])) : o.value == P(
|
|
872
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : o.value == P(Se).TIME ? (p(), B(dt, O({
|
|
871
873
|
key: 7,
|
|
872
|
-
modelValue:
|
|
873
|
-
"onUpdate:modelValue": y[9] || (y[9] = (h) =>
|
|
874
|
+
modelValue: n.value,
|
|
875
|
+
"onUpdate:modelValue": y[9] || (y[9] = (h) => n.value = h),
|
|
874
876
|
"arrow-control": ""
|
|
875
877
|
}, t.value, {
|
|
876
|
-
placeholder:
|
|
877
|
-
}), null, 16, ["modelValue", "placeholder"])) : o.value == P(
|
|
878
|
+
placeholder: E.value[e.value].label
|
|
879
|
+
}), null, 16, ["modelValue", "placeholder"])) : o.value == P(Se).TIMESELECT ? (p(), B(ct, O({
|
|
878
880
|
key: 8,
|
|
879
|
-
modelValue:
|
|
880
|
-
"onUpdate:modelValue": y[10] || (y[10] = (h) =>
|
|
881
|
+
modelValue: n.value,
|
|
882
|
+
"onUpdate:modelValue": y[10] || (y[10] = (h) => n.value = h),
|
|
881
883
|
start: "06:30",
|
|
882
884
|
step: "00:15",
|
|
883
885
|
end: "23:30",
|
|
884
|
-
placeholder:
|
|
885
|
-
}, t.value), null, 16, ["modelValue", "placeholder"])) : L(o.value) ? (p(),
|
|
886
|
+
placeholder: E.value[e.value].label
|
|
887
|
+
}, t.value), null, 16, ["modelValue", "placeholder"])) : L(o.value) ? (p(), B(ft, O({
|
|
886
888
|
key: 9,
|
|
887
|
-
modelValue:
|
|
888
|
-
"onUpdate:modelValue": y[11] || (y[11] = (h) =>
|
|
889
|
+
modelValue: n.value,
|
|
890
|
+
"onUpdate:modelValue": y[11] || (y[11] = (h) => n.value = h),
|
|
889
891
|
type: o.value,
|
|
890
|
-
placeholder:
|
|
891
|
-
"value-format":
|
|
892
|
-
}, t.value),
|
|
893
|
-
|
|
892
|
+
placeholder: E.value[e.value].label,
|
|
893
|
+
"value-format": te(o.value)
|
|
894
|
+
}, t.value), ye({ _: 2 }, [
|
|
895
|
+
N(V(), (h) => ({
|
|
894
896
|
name: h,
|
|
895
|
-
fn: D((
|
|
896
|
-
M(
|
|
897
|
+
fn: D((S) => [
|
|
898
|
+
M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
|
|
897
899
|
])
|
|
898
900
|
}))
|
|
899
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : o.value == P(
|
|
901
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : o.value == P(Se).COLOR ? (p(), B(vt, O({
|
|
900
902
|
key: 10,
|
|
901
|
-
modelValue:
|
|
902
|
-
"onUpdate:modelValue": y[12] || (y[12] = (h) =>
|
|
903
|
-
}, t.value), null, 16, ["modelValue"])) : o.value == P(
|
|
903
|
+
modelValue: n.value,
|
|
904
|
+
"onUpdate:modelValue": y[12] || (y[12] = (h) => n.value = h)
|
|
905
|
+
}, t.value), null, 16, ["modelValue"])) : o.value == P(Se).RATE ? (p(), B(l, O({
|
|
904
906
|
key: 11,
|
|
905
|
-
modelValue:
|
|
906
|
-
"onUpdate:modelValue": y[13] || (y[13] = (h) =>
|
|
907
|
-
}, t.value), null, 16, ["modelValue"])) : o.value == P(
|
|
907
|
+
modelValue: n.value,
|
|
908
|
+
"onUpdate:modelValue": y[13] || (y[13] = (h) => n.value = h)
|
|
909
|
+
}, t.value), null, 16, ["modelValue"])) : o.value == P(Se).SLIDER ? (p(), B(d, O({
|
|
908
910
|
key: 12,
|
|
909
|
-
modelValue:
|
|
910
|
-
"onUpdate:modelValue": y[14] || (y[14] = (h) =>
|
|
911
|
-
}, t.value), null, 16, ["modelValue"])) : o.value == P(
|
|
911
|
+
modelValue: n.value,
|
|
912
|
+
"onUpdate:modelValue": y[14] || (y[14] = (h) => n.value = h)
|
|
913
|
+
}, t.value), null, 16, ["modelValue"])) : o.value == P(Se).SWITCH ? (p(), B(m, O({
|
|
912
914
|
key: 13,
|
|
913
|
-
modelValue:
|
|
914
|
-
"onUpdate:modelValue": y[15] || (y[15] = (h) =>
|
|
915
|
+
modelValue: n.value,
|
|
916
|
+
"onUpdate:modelValue": y[15] || (y[15] = (h) => n.value = h),
|
|
915
917
|
inlinePrompt: !0
|
|
916
|
-
}, t.value),
|
|
917
|
-
|
|
918
|
+
}, t.value), ye({ _: 2 }, [
|
|
919
|
+
N(V(), (h) => ({
|
|
918
920
|
name: h,
|
|
919
|
-
fn: D((
|
|
920
|
-
M(
|
|
921
|
+
fn: D((S) => [
|
|
922
|
+
M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
|
|
921
923
|
])
|
|
922
924
|
}))
|
|
923
|
-
]), 1040, ["modelValue"])) : o.value == P(
|
|
925
|
+
]), 1040, ["modelValue"])) : o.value == P(Se).TRANSFER ? (p(), B(b, O({
|
|
924
926
|
key: 14,
|
|
925
|
-
modelValue:
|
|
926
|
-
"onUpdate:modelValue": y[16] || (y[16] = (h) =>
|
|
927
|
-
}, t.value),
|
|
928
|
-
|
|
927
|
+
modelValue: n.value,
|
|
928
|
+
"onUpdate:modelValue": y[16] || (y[16] = (h) => n.value = h)
|
|
929
|
+
}, t.value), ye({ _: 2 }, [
|
|
930
|
+
N(V(), (h) => ({
|
|
929
931
|
name: h,
|
|
930
|
-
fn: D((
|
|
931
|
-
M(
|
|
932
|
+
fn: D((S) => [
|
|
933
|
+
M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
|
|
932
934
|
])
|
|
933
935
|
}))
|
|
934
|
-
]), 1040, ["modelValue"])) : o.value == P(
|
|
936
|
+
]), 1040, ["modelValue"])) : o.value == P(Se).CASCADER ? (p(), B(A, O({
|
|
935
937
|
key: 15,
|
|
936
|
-
modelValue:
|
|
937
|
-
"onUpdate:modelValue": y[17] || (y[17] = (h) =>
|
|
938
|
-
}, t.value, { options: F.value }),
|
|
939
|
-
|
|
938
|
+
modelValue: n.value,
|
|
939
|
+
"onUpdate:modelValue": y[17] || (y[17] = (h) => n.value = h)
|
|
940
|
+
}, t.value, { options: F.value }), ye({ _: 2 }, [
|
|
941
|
+
N(V(), (h) => ({
|
|
940
942
|
name: h,
|
|
941
|
-
fn: D((
|
|
942
|
-
M(
|
|
943
|
+
fn: D((S) => [
|
|
944
|
+
M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
|
|
943
945
|
])
|
|
944
946
|
}))
|
|
945
|
-
]), 1040, ["modelValue", "options"])) : o.value == P(
|
|
947
|
+
]), 1040, ["modelValue", "options"])) : o.value == P(Se).IMAGE ? (p(), B(_e, O({
|
|
946
948
|
key: 16,
|
|
947
949
|
"file-list": t.value["file-list"],
|
|
948
950
|
"onUpdate:fileList": y[21] || (y[21] = (h) => t.value["file-list"] = h),
|
|
949
951
|
"list-type": "picture-card",
|
|
950
952
|
class: "custom-upload",
|
|
951
|
-
"on-preview":
|
|
952
|
-
}, { ...
|
|
953
|
+
"on-preview": Te
|
|
954
|
+
}, { ...j.value, ...t.value }, {
|
|
953
955
|
ref_key: "uploadRef",
|
|
954
956
|
ref: ne
|
|
955
|
-
}),
|
|
957
|
+
}), ye({
|
|
956
958
|
default: D(() => {
|
|
957
959
|
var h;
|
|
958
960
|
return [
|
|
959
|
-
|
|
961
|
+
n.value ? (p(), I("div", {
|
|
960
962
|
key: 1,
|
|
961
|
-
onClick: y[20] || (y[20] = (
|
|
963
|
+
onClick: y[20] || (y[20] = (S) => S.stopPropagation()),
|
|
962
964
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
963
965
|
}, [
|
|
964
|
-
Q("div",
|
|
966
|
+
Q("div", Cl, [
|
|
965
967
|
K(W, O({
|
|
966
968
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
967
|
-
src:
|
|
968
|
-
}, { fit: "cover", lazy: !0, ...(h = t.value) == null ? void 0 : h.img }),
|
|
969
|
-
|
|
970
|
-
name:
|
|
969
|
+
src: n.value
|
|
970
|
+
}, { fit: "cover", lazy: !0, ...(h = t.value) == null ? void 0 : h.img }), ye({ _: 2 }, [
|
|
971
|
+
N(V(), (S, ue) => ({
|
|
972
|
+
name: S,
|
|
971
973
|
fn: D((Ae) => [
|
|
972
|
-
M(
|
|
974
|
+
M(w.$slots, `${r.t}-${e.value}-${S}`, { data: Ae }, void 0, !0)
|
|
973
975
|
])
|
|
974
976
|
}))
|
|
975
977
|
]), 1040, ["src"])
|
|
976
978
|
]),
|
|
977
979
|
Q("div", {
|
|
978
980
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "absolute", "align-items": "center", "justify-content": "center" },
|
|
979
|
-
onMouseenter: y[18] || (y[18] = (
|
|
980
|
-
onMouseleave: y[19] || (y[19] = (
|
|
981
|
+
onMouseenter: y[18] || (y[18] = (S) => i.value = !0),
|
|
982
|
+
onMouseleave: y[19] || (y[19] = (S) => i.value = !1),
|
|
981
983
|
class: "up-view"
|
|
982
984
|
}, [
|
|
983
|
-
i.value ? (p(),
|
|
985
|
+
i.value ? (p(), B(fe, {
|
|
984
986
|
key: 0,
|
|
985
987
|
content: "查看大图",
|
|
986
988
|
placement: "top"
|
|
987
989
|
}, {
|
|
988
990
|
default: D(() => [
|
|
989
|
-
K(P(
|
|
991
|
+
K(P(dl), {
|
|
990
992
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
991
993
|
color: "white",
|
|
992
|
-
onClick:
|
|
994
|
+
onClick: le
|
|
993
995
|
})
|
|
994
996
|
]),
|
|
995
997
|
_: 1
|
|
996
|
-
})) :
|
|
997
|
-
|
|
998
|
+
})) : ge("", !0),
|
|
999
|
+
j.value.showDel && i.value ? (p(), B(fe, {
|
|
998
1000
|
key: 1,
|
|
999
1001
|
content: "删除",
|
|
1000
1002
|
placement: "top"
|
|
1001
1003
|
}, {
|
|
1002
1004
|
default: D(() => [
|
|
1003
|
-
K(P(
|
|
1005
|
+
K(P(Ut), {
|
|
1004
1006
|
style: { width: "1.5em", height: "1.5em" },
|
|
1005
1007
|
color: "white",
|
|
1006
|
-
onClick:
|
|
1008
|
+
onClick: Ce
|
|
1007
1009
|
})
|
|
1008
1010
|
]),
|
|
1009
1011
|
_: 1
|
|
1010
|
-
})) :
|
|
1012
|
+
})) : ge("", !0)
|
|
1011
1013
|
], 32)
|
|
1012
|
-
])) : (p(),
|
|
1014
|
+
])) : (p(), B(Y, { key: 0 }, {
|
|
1013
1015
|
default: D(() => [
|
|
1014
|
-
K(P(
|
|
1016
|
+
K(P(il))
|
|
1015
1017
|
]),
|
|
1016
1018
|
_: 1
|
|
1017
1019
|
}))
|
|
@@ -1019,103 +1021,103 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1019
1021
|
}),
|
|
1020
1022
|
_: 2
|
|
1021
1023
|
}, [
|
|
1022
|
-
|
|
1024
|
+
N(V(), (h, S) => ({
|
|
1023
1025
|
name: h,
|
|
1024
1026
|
fn: D((ue) => [
|
|
1025
|
-
M(
|
|
1027
|
+
M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
|
|
1026
1028
|
])
|
|
1027
1029
|
}))
|
|
1028
|
-
]), 1040, ["file-list"])) : o.value == P(
|
|
1030
|
+
]), 1040, ["file-list"])) : o.value == P(Se).AUTOCOMPLETE ? (p(), B(Fe, O({
|
|
1029
1031
|
key: 17,
|
|
1030
|
-
modelValue:
|
|
1031
|
-
"onUpdate:modelValue": y[22] || (y[22] = (h) =>
|
|
1032
|
+
modelValue: n.value,
|
|
1033
|
+
"onUpdate:modelValue": y[22] || (y[22] = (h) => n.value = h)
|
|
1032
1034
|
}, t.value, {
|
|
1033
|
-
placeholder:
|
|
1034
|
-
}),
|
|
1035
|
-
|
|
1035
|
+
placeholder: E.value[e.value].label
|
|
1036
|
+
}), ye({ _: 2 }, [
|
|
1037
|
+
N(V(), (h, S) => ({
|
|
1036
1038
|
name: h,
|
|
1037
1039
|
fn: D((ue) => [
|
|
1038
|
-
M(
|
|
1040
|
+
M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
|
|
1039
1041
|
])
|
|
1040
1042
|
}))
|
|
1041
|
-
]), 1040, ["modelValue", "placeholder"])) : o.value == P(
|
|
1043
|
+
]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).INPUTNUMBER ? (p(), B(Re, O({
|
|
1042
1044
|
key: 18,
|
|
1043
|
-
modelValue:
|
|
1044
|
-
"onUpdate:modelValue": y[23] || (y[23] = (h) =>
|
|
1045
|
+
modelValue: n.value,
|
|
1046
|
+
"onUpdate:modelValue": y[23] || (y[23] = (h) => n.value = h),
|
|
1045
1047
|
min: 0,
|
|
1046
1048
|
max: 1e8,
|
|
1047
|
-
placeholder:
|
|
1048
|
-
}, t.value),
|
|
1049
|
-
|
|
1049
|
+
placeholder: E.value[e.value].label
|
|
1050
|
+
}, t.value), ye({ _: 2 }, [
|
|
1051
|
+
N(V(), (h, S) => ({
|
|
1050
1052
|
name: h,
|
|
1051
1053
|
fn: D((ue) => [
|
|
1052
|
-
M(
|
|
1054
|
+
M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
|
|
1053
1055
|
])
|
|
1054
1056
|
}))
|
|
1055
|
-
]), 1040, ["modelValue", "placeholder"])) : o.value == P(
|
|
1057
|
+
]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).MONEY ? (p(), I("div", {
|
|
1056
1058
|
key: 19,
|
|
1057
|
-
style: qe([{ position: "relative" },
|
|
1059
|
+
style: qe([{ position: "relative" }, s.value])
|
|
1058
1060
|
}, [
|
|
1059
1061
|
K(Le, O({
|
|
1060
|
-
modelValue:
|
|
1061
|
-
"onUpdate:modelValue": y[24] || (y[24] = (h) =>
|
|
1062
|
-
placeholder:
|
|
1062
|
+
modelValue: n.value,
|
|
1063
|
+
"onUpdate:modelValue": y[24] || (y[24] = (h) => n.value = h),
|
|
1064
|
+
placeholder: E.value[e.value].label,
|
|
1063
1065
|
type: "number",
|
|
1064
|
-
maxlength: ((
|
|
1065
|
-
}, { ...t.value, type: o.value }),
|
|
1066
|
+
maxlength: ((z = t.value) == null ? void 0 : z.max) || 25
|
|
1067
|
+
}, { ...t.value, type: o.value }), ye({
|
|
1066
1068
|
suffix: D(() => [
|
|
1067
1069
|
Q("div", {
|
|
1068
|
-
title: P(
|
|
1070
|
+
title: P(St)(n.value),
|
|
1069
1071
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1070
|
-
},
|
|
1072
|
+
}, De(P(St)(n.value)), 9, Dl)
|
|
1071
1073
|
]),
|
|
1072
1074
|
_: 2
|
|
1073
1075
|
}, [
|
|
1074
|
-
|
|
1076
|
+
N(V(), (h, S) => ({
|
|
1075
1077
|
name: h,
|
|
1076
1078
|
fn: D((ue) => [
|
|
1077
|
-
M(
|
|
1079
|
+
M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
|
|
1078
1080
|
])
|
|
1079
1081
|
}))
|
|
1080
1082
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1081
1083
|
], 4)) : (se = o.value) != null && se.startsWith("link") ? (p(), I("div", {
|
|
1082
1084
|
key: 20,
|
|
1083
|
-
style: qe(
|
|
1085
|
+
style: qe(s.value)
|
|
1084
1086
|
}, [
|
|
1085
|
-
K(
|
|
1087
|
+
K(He, O(t.value, {
|
|
1086
1088
|
type: o.value.replace("link-", ""),
|
|
1087
|
-
innerHTML:
|
|
1089
|
+
innerHTML: R.value || n.value
|
|
1088
1090
|
}), null, 16, ["type", "innerHTML"])
|
|
1089
1091
|
], 4)) : o.value != "textarea" && ((x = o.value) != null && x.startsWith("text")) ? (p(), I("div", {
|
|
1090
1092
|
key: 21,
|
|
1091
|
-
style: qe(
|
|
1093
|
+
style: qe(s.value)
|
|
1092
1094
|
}, [
|
|
1093
1095
|
K(et, O(t.value, {
|
|
1094
1096
|
type: o.value.replace("text-", ""),
|
|
1095
|
-
innerHTML:
|
|
1097
|
+
innerHTML: R.value || n.value
|
|
1096
1098
|
}), null, 16, ["type", "innerHTML"])
|
|
1097
1099
|
], 4)) : o.value == "avatar" ? (p(), I("div", {
|
|
1098
1100
|
key: 22,
|
|
1099
|
-
style: qe(
|
|
1101
|
+
style: qe(s.value)
|
|
1100
1102
|
}, [
|
|
1101
|
-
|
|
1103
|
+
R.value ? (p(), B(ot, Et(O({ key: 0 }, t.value)), {
|
|
1102
1104
|
default: D(() => [
|
|
1103
|
-
Q("div", { innerHTML:
|
|
1105
|
+
Q("div", { innerHTML: R.value }, null, 8, Sl)
|
|
1104
1106
|
]),
|
|
1105
1107
|
_: 1
|
|
1106
|
-
}, 16)) : (p(),
|
|
1108
|
+
}, 16)) : (p(), B(ot, Et(O({ key: 1 }, t.value)), null, 16))
|
|
1107
1109
|
], 4)) : (X = o.value) != null && X.startsWith("tag") ? (p(), I("div", {
|
|
1108
1110
|
key: 23,
|
|
1109
|
-
style: qe(
|
|
1111
|
+
style: qe(s.value)
|
|
1110
1112
|
}, [
|
|
1111
|
-
Array.isArray(
|
|
1112
|
-
typeof h == "object" ? (p(),
|
|
1113
|
+
Array.isArray(R.value) && R.value.length > 0 ? (p(!0), I(J, { key: 0 }, N(R.value, (h, S) => (p(), I(J, { key: S }, [
|
|
1114
|
+
typeof h == "object" ? (p(), B(tt, O({
|
|
1113
1115
|
key: 0,
|
|
1114
1116
|
ref_for: !0
|
|
1115
1117
|
}, h, {
|
|
1116
1118
|
innerHTML: h == null ? void 0 : h.value,
|
|
1117
1119
|
style: { "margin-right": "3px" }
|
|
1118
|
-
}), null, 16, ["innerHTML"])) : (p(),
|
|
1120
|
+
}), null, 16, ["innerHTML"])) : (p(), B(tt, O({
|
|
1119
1121
|
key: 1,
|
|
1120
1122
|
ref_for: !0
|
|
1121
1123
|
}, t.value, {
|
|
@@ -1123,59 +1125,59 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1123
1125
|
innerHTML: h,
|
|
1124
1126
|
style: { "margin-right": "3px" }
|
|
1125
1127
|
}), null, 16, ["type", "innerHTML"]))
|
|
1126
|
-
], 64))), 128)) : (p(),
|
|
1128
|
+
], 64))), 128)) : (p(), B(tt, O({ key: 1 }, t.value, {
|
|
1127
1129
|
type: o.value.replace("tag-", ""),
|
|
1128
|
-
innerHTML:
|
|
1130
|
+
innerHTML: R.value || n.value
|
|
1129
1131
|
}), null, 16, ["type", "innerHTML"]))
|
|
1130
1132
|
], 4)) : o.value == "div" ? (p(), I("div", O({ key: 24 }, t.value, {
|
|
1131
|
-
innerHTML:
|
|
1132
|
-
style:
|
|
1133
|
-
}), null, 16,
|
|
1134
|
-
innerHTML:
|
|
1135
|
-
style:
|
|
1136
|
-
}), null, 16,
|
|
1133
|
+
innerHTML: R.value || n.value,
|
|
1134
|
+
style: s.value
|
|
1135
|
+
}), null, 16, Ml)) : o.value == "span" ? (p(), I("span", O({ key: 25 }, t.value, {
|
|
1136
|
+
innerHTML: R.value || n.value,
|
|
1137
|
+
style: s.value
|
|
1138
|
+
}), null, 16, Tl)) : (p(), B(Le, O({
|
|
1137
1139
|
key: 26,
|
|
1138
|
-
modelValue:
|
|
1139
|
-
"onUpdate:modelValue": y[25] || (y[25] = (h) =>
|
|
1140
|
-
placeholder:
|
|
1140
|
+
modelValue: n.value,
|
|
1141
|
+
"onUpdate:modelValue": y[25] || (y[25] = (h) => n.value = h),
|
|
1142
|
+
placeholder: E.value[e.value].label,
|
|
1141
1143
|
maxlength: ((ee = t.value) == null ? void 0 : ee.max) || 25,
|
|
1142
1144
|
clearable: !0,
|
|
1143
1145
|
onClear: y[26] || (y[26] = () => {
|
|
1144
|
-
r.t == "q" &&
|
|
1146
|
+
r.t == "q" && E.value.table.load();
|
|
1145
1147
|
})
|
|
1146
|
-
}, { ...P(Ue)(t.value, (h) => !["suffix", "prefix", "append", "prepend"].includes(h)), type: o.value }),
|
|
1147
|
-
(
|
|
1148
|
+
}, { ...P(Ue)(t.value, (h) => !["suffix", "prefix", "append", "prepend"].includes(h)), type: o.value }), ye({ _: 2 }, [
|
|
1149
|
+
(je = t.value) != null && je.suffix ? {
|
|
1148
1150
|
name: "suffix",
|
|
1149
1151
|
fn: D(() => {
|
|
1150
1152
|
var h;
|
|
1151
1153
|
return [
|
|
1152
1154
|
Q("div", {
|
|
1153
1155
|
innerHTML: ((h = t.value) == null ? void 0 : h.suffix) || ""
|
|
1154
|
-
}, null, 8,
|
|
1156
|
+
}, null, 8, Fl)
|
|
1155
1157
|
];
|
|
1156
1158
|
}),
|
|
1157
1159
|
key: "0"
|
|
1158
1160
|
} : void 0,
|
|
1159
|
-
(
|
|
1161
|
+
(Ne = t.value) != null && Ne.prefix ? {
|
|
1160
1162
|
name: "prefix",
|
|
1161
1163
|
fn: D(() => {
|
|
1162
1164
|
var h;
|
|
1163
1165
|
return [
|
|
1164
1166
|
Q("div", {
|
|
1165
1167
|
innerHTML: ((h = t.value) == null ? void 0 : h.prefix) || ""
|
|
1166
|
-
}, null, 8,
|
|
1168
|
+
}, null, 8, xl)
|
|
1167
1169
|
];
|
|
1168
1170
|
}),
|
|
1169
1171
|
key: "1"
|
|
1170
1172
|
} : void 0,
|
|
1171
|
-
(
|
|
1173
|
+
(ze = t.value) != null && ze.append ? {
|
|
1172
1174
|
name: "append",
|
|
1173
1175
|
fn: D(() => {
|
|
1174
1176
|
var h;
|
|
1175
1177
|
return [
|
|
1176
1178
|
Q("div", {
|
|
1177
1179
|
innerHTML: ((h = t.value) == null ? void 0 : h.append) || ""
|
|
1178
|
-
}, null, 8,
|
|
1180
|
+
}, null, 8, Vl)
|
|
1179
1181
|
];
|
|
1180
1182
|
}),
|
|
1181
1183
|
key: "2"
|
|
@@ -1187,15 +1189,18 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1187
1189
|
return [
|
|
1188
1190
|
Q("div", {
|
|
1189
1191
|
innerHTML: ((h = t.value) == null ? void 0 : h.prepend) || ""
|
|
1190
|
-
}, null, 8,
|
|
1192
|
+
}, null, 8, ql)
|
|
1191
1193
|
];
|
|
1192
1194
|
}),
|
|
1193
1195
|
key: "3"
|
|
1194
1196
|
} : void 0,
|
|
1195
|
-
|
|
1197
|
+
N(V(), (h, S) => ({
|
|
1196
1198
|
name: h,
|
|
1197
1199
|
fn: D((ue) => [
|
|
1198
|
-
M(
|
|
1200
|
+
M(w.$slots, `${r.t}-${e.value}-${h}`, {
|
|
1201
|
+
data: ue,
|
|
1202
|
+
form: a.formInfo
|
|
1203
|
+
}, void 0, !0)
|
|
1199
1204
|
])
|
|
1200
1205
|
}))
|
|
1201
1206
|
]), 1040, ["modelValue", "placeholder", "maxlength"]))
|
|
@@ -1203,7 +1208,7 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1203
1208
|
], 64);
|
|
1204
1209
|
};
|
|
1205
1210
|
}
|
|
1206
|
-
}),
|
|
1211
|
+
}), bt = /* @__PURE__ */ Ze(Al, [["__scopeId", "data-v-5ca81db3"]]), Bl = { class: "g-form-container" }, Ol = /* @__PURE__ */ Object.assign({
|
|
1207
1212
|
name: "g-form",
|
|
1208
1213
|
inheritAttrs: !1
|
|
1209
1214
|
}, {
|
|
@@ -1213,48 +1218,48 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1213
1218
|
modelModifiers: {}
|
|
1214
1219
|
}),
|
|
1215
1220
|
emits: /* @__PURE__ */ Xe(["submit", "reset"], ["update:modelValue"]),
|
|
1216
|
-
setup(a, { expose:
|
|
1217
|
-
var
|
|
1218
|
-
const t = Qe(a, "modelValue"), e = r, o =
|
|
1221
|
+
setup(a, { expose: n, emit: r }) {
|
|
1222
|
+
var Ce, Te, le, ne, re, Oe;
|
|
1223
|
+
const t = Qe(a, "modelValue"), e = r, o = oe(null), E = Mt("options"), v = oe({}), F = oe(""), f = a;
|
|
1219
1224
|
t.value.form = Ve(
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
(
|
|
1225
|
+
zt,
|
|
1226
|
+
E == null ? void 0 : E.form,
|
|
1227
|
+
(Ce = t.value) == null ? void 0 : Ce.form
|
|
1223
1228
|
), t.value.form.style = Ve(
|
|
1224
|
-
(
|
|
1225
|
-
{ ...(ne =
|
|
1229
|
+
(le = (Te = t.value) == null ? void 0 : Te.form) == null ? void 0 : le.style,
|
|
1230
|
+
{ ...(ne = Tt()) == null ? void 0 : ne.style }
|
|
1226
1231
|
);
|
|
1227
|
-
const i = async (
|
|
1232
|
+
const i = async (T, $) => {
|
|
1228
1233
|
let g = 5;
|
|
1229
1234
|
for (; g > 0; ) {
|
|
1230
1235
|
if (await at(), o.value) {
|
|
1231
|
-
o.value.validate((
|
|
1232
|
-
|
|
1236
|
+
o.value.validate((u, q) => {
|
|
1237
|
+
u ? e("submit", T, $) : console.error("表单验证不通过!", q);
|
|
1233
1238
|
});
|
|
1234
1239
|
return;
|
|
1235
1240
|
}
|
|
1236
|
-
g--, await new Promise((
|
|
1241
|
+
g--, await new Promise((u) => setTimeout(u, 50));
|
|
1237
1242
|
}
|
|
1238
1243
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1239
|
-
},
|
|
1240
|
-
let
|
|
1241
|
-
for (;
|
|
1244
|
+
}, s = async () => {
|
|
1245
|
+
let T = 5;
|
|
1246
|
+
for (; T > 0; ) {
|
|
1242
1247
|
if (await at(), !o.value) {
|
|
1243
|
-
|
|
1248
|
+
T--, await new Promise((g) => setTimeout(g, 50));
|
|
1244
1249
|
continue;
|
|
1245
1250
|
}
|
|
1246
|
-
let
|
|
1251
|
+
let $ = !0;
|
|
1247
1252
|
if (e("reset", (g) => {
|
|
1248
|
-
|
|
1249
|
-
}),
|
|
1253
|
+
$ = g;
|
|
1254
|
+
}), $) {
|
|
1250
1255
|
o.value.resetFields();
|
|
1251
1256
|
return;
|
|
1252
1257
|
}
|
|
1253
|
-
|
|
1258
|
+
T--, await new Promise((g) => setTimeout(g, 50));
|
|
1254
1259
|
}
|
|
1255
1260
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1256
1261
|
};
|
|
1257
|
-
t.value.form.submit.click = i, t.value.form.reset.click =
|
|
1262
|
+
t.value.form.submit.click = i, t.value.form.reset.click = s;
|
|
1258
1263
|
const c = {
|
|
1259
1264
|
type: "hidden",
|
|
1260
1265
|
labelPosition: "right",
|
|
@@ -1264,24 +1269,24 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1264
1269
|
};
|
|
1265
1270
|
t.value.formItems = Ve(
|
|
1266
1271
|
c,
|
|
1267
|
-
|
|
1268
|
-
(
|
|
1272
|
+
E == null ? void 0 : E.formItems,
|
|
1273
|
+
(re = t == null ? void 0 : t.value) == null ? void 0 : re.formItems
|
|
1269
1274
|
);
|
|
1270
|
-
const
|
|
1275
|
+
const _ = {
|
|
1271
1276
|
span: 12,
|
|
1272
1277
|
offset: 0
|
|
1273
1278
|
};
|
|
1274
1279
|
t.value.form.cols = Ve(
|
|
1275
|
-
|
|
1276
|
-
(Oe =
|
|
1280
|
+
_,
|
|
1281
|
+
(Oe = E == null ? void 0 : E.form) == null ? void 0 : Oe.cols,
|
|
1277
1282
|
t.value.form.cols
|
|
1278
1283
|
);
|
|
1279
|
-
const V = (
|
|
1280
|
-
let
|
|
1281
|
-
if (
|
|
1282
|
-
|
|
1284
|
+
const V = (T) => {
|
|
1285
|
+
let $ = [];
|
|
1286
|
+
if (T.rules)
|
|
1287
|
+
$ = T.rules;
|
|
1283
1288
|
else {
|
|
1284
|
-
const
|
|
1289
|
+
const u = { ...{
|
|
1285
1290
|
required: void 0,
|
|
1286
1291
|
max: void 0,
|
|
1287
1292
|
min: void 0,
|
|
@@ -1289,119 +1294,119 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1289
1294
|
url: void 0,
|
|
1290
1295
|
pattern: void 0,
|
|
1291
1296
|
validate: void 0
|
|
1292
|
-
}, ...
|
|
1293
|
-
|
|
1297
|
+
}, ...T };
|
|
1298
|
+
u.required && $.push({
|
|
1294
1299
|
required: !0,
|
|
1295
|
-
message: `${
|
|
1300
|
+
message: `${u.label}不能为空!`,
|
|
1296
1301
|
trigger: "blur"
|
|
1297
|
-
}),
|
|
1302
|
+
}), u.max !== void 0 && u.max !== null && u.max !== "" && (u.min === void 0 || u.min === null || u.min === "") && $.push({
|
|
1298
1303
|
validator: (q, C, k) => {
|
|
1299
1304
|
if (C == null || C === "") return k();
|
|
1300
|
-
|
|
1301
|
-
new Error(`${
|
|
1302
|
-
) : k() : Number(C) > Number(
|
|
1305
|
+
u.type !== "number" && u.type !== "input-number" ? ((C == null ? void 0 : C.toString()) || "").length > Number(u.max) ? k(
|
|
1306
|
+
new Error(`${u.label}长度不能超过${u.max}个字符!`)
|
|
1307
|
+
) : k() : Number(C) > Number(u.max) ? k(new Error(`${u.label}不能大于${u.max}!`)) : k();
|
|
1303
1308
|
}
|
|
1304
|
-
}),
|
|
1309
|
+
}), u.min !== void 0 && u.min !== null && u.min !== "" && (u.max === void 0 || u.max === null || u.max === "") && $.push({
|
|
1305
1310
|
validator: (q, C, k) => {
|
|
1306
1311
|
if (C == null || C === "") return k();
|
|
1307
|
-
|
|
1312
|
+
u.type !== "number" && u.type !== "input-number" ? Number(u.min) < 1 ? k(
|
|
1308
1313
|
new Error(
|
|
1309
|
-
`${
|
|
1314
|
+
`${u.label}长度最小值${u.min}设置错误!`
|
|
1310
1315
|
)
|
|
1311
|
-
) : C.toString().length < Number(
|
|
1316
|
+
) : C.toString().length < Number(u.min) ? k(
|
|
1312
1317
|
new Error(
|
|
1313
|
-
`${
|
|
1318
|
+
`${u.label}长度不能少于${u.min}个字符!`
|
|
1314
1319
|
)
|
|
1315
|
-
) : k() : Number(C) < Number(
|
|
1320
|
+
) : k() : Number(C) < Number(u.min) ? k(new Error(`${u.label}不能小于${u.min}!`)) : k();
|
|
1316
1321
|
}
|
|
1317
|
-
}),
|
|
1322
|
+
}), u.min !== void 0 && u.min !== null && u.min !== "" && u.max !== void 0 && u.max !== null && u.max !== "" && $.push({
|
|
1318
1323
|
validator: (q, C, k) => {
|
|
1319
1324
|
if (C == null || C === "") return k();
|
|
1320
|
-
const U = Number(
|
|
1321
|
-
|
|
1325
|
+
const U = Number(u.min), Z = Number(u.max);
|
|
1326
|
+
u.type !== "number" && u.type !== "input-number" ? Number(u.min) < 1 ? k(
|
|
1322
1327
|
new Error(
|
|
1323
|
-
`${
|
|
1328
|
+
`${u.label}长度最小值${u.min}设置错误!`
|
|
1324
1329
|
)
|
|
1325
1330
|
) : C.toString().length < U || C.toString().length > Z ? k(
|
|
1326
1331
|
new Error(
|
|
1327
|
-
`${
|
|
1332
|
+
`${u.label}长度必须在${U}-${Z}个字符之间!`
|
|
1328
1333
|
)
|
|
1329
|
-
) : k() : Number(C) < U || C > Z ? k(new Error(`${
|
|
1334
|
+
) : k() : Number(C) < U || C > Z ? k(new Error(`${u.label}必须在${U}-${Z}之间!`)) : k();
|
|
1330
1335
|
}
|
|
1331
|
-
}),
|
|
1332
|
-
pattern:
|
|
1333
|
-
message: (
|
|
1334
|
-
}),
|
|
1335
|
-
validator: (q, C, k) =>
|
|
1336
|
+
}), u.type == "email" && $.push({ type: "email", message: "不是一个正确的邮箱地址!" }), u.type == "url" && $.push({ type: "url", message: "不是一个合正确的URL!" }), u.pattern && $.push({
|
|
1337
|
+
pattern: u == null ? void 0 : u.pattern,
|
|
1338
|
+
message: (u == null ? void 0 : u.message) || "格式不正确!"
|
|
1339
|
+
}), u.validate && $.push({
|
|
1340
|
+
validator: (q, C, k) => u.validate(q, C, k)
|
|
1336
1341
|
});
|
|
1337
1342
|
}
|
|
1338
|
-
return
|
|
1339
|
-
},
|
|
1343
|
+
return $;
|
|
1344
|
+
}, j = (T, $ = !1) => {
|
|
1340
1345
|
var q, C, k, U, Z;
|
|
1341
|
-
const g =
|
|
1346
|
+
const g = $ ? T : T == null ? void 0 : T.item, u = typeof (g == null ? void 0 : g.editor) == "function" ? g.editor(v.value, (q = t.value.form) == null ? void 0 : q.modalState) : (g == null ? void 0 : g.editor) || {};
|
|
1342
1347
|
if (((C = t.value.form) == null ? void 0 : C.modalState) === "edit") {
|
|
1343
|
-
const G = typeof (g == null ? void 0 : g.editor) == "object" ? (k = g.editor) == null ? void 0 : k.ep : typeof (g == null ? void 0 : g.editor) == "function" ?
|
|
1344
|
-
return { ...
|
|
1348
|
+
const G = typeof (g == null ? void 0 : g.editor) == "object" ? (k = g.editor) == null ? void 0 : k.ep : typeof (g == null ? void 0 : g.editor) == "function" ? u == null ? void 0 : u.ep : {};
|
|
1349
|
+
return { ...u, ...G };
|
|
1345
1350
|
}
|
|
1346
1351
|
if (((U = t.value.form) == null ? void 0 : U.modalState) === "add") {
|
|
1347
|
-
const G = typeof (g == null ? void 0 : g.editor) == "object" ? (Z = g.editor) == null ? void 0 : Z.ap : typeof (g == null ? void 0 : g.editor) == "function" ?
|
|
1348
|
-
return { ...
|
|
1352
|
+
const G = typeof (g == null ? void 0 : g.editor) == "object" ? (Z = g.editor) == null ? void 0 : Z.ap : typeof (g == null ? void 0 : g.editor) == "function" ? u == null ? void 0 : u.ap : {};
|
|
1353
|
+
return { ...u, ...G };
|
|
1349
1354
|
}
|
|
1350
|
-
return
|
|
1351
|
-
},
|
|
1352
|
-
var g,
|
|
1353
|
-
const
|
|
1354
|
-
return ((
|
|
1355
|
+
return u;
|
|
1356
|
+
}, R = (T) => {
|
|
1357
|
+
var g, u, q, C, k;
|
|
1358
|
+
const $ = typeof T.editor == "function" ? T.editor(v.value, (g = t.value.form) == null ? void 0 : g.modalState) : T.editor;
|
|
1359
|
+
return ((u = t.value.form) == null ? void 0 : u.modalState) === "edit" ? ((q = $ == null ? void 0 : $.ep) == null ? void 0 : q.type) ?? ($ == null ? void 0 : $.type) ?? T.type : ((C = t.value.form) == null ? void 0 : C.modalState) === "add" ? ((k = $ == null ? void 0 : $.ap) == null ? void 0 : k.type) ?? ($ == null ? void 0 : $.type) ?? T.type : ($ == null ? void 0 : $.type) ?? T.type;
|
|
1355
1360
|
};
|
|
1356
1361
|
ut(() => {
|
|
1357
|
-
L(), f != null && f.editForm ? v.value = f.editForm : v.value =
|
|
1358
|
-
}),
|
|
1362
|
+
L(), f != null && f.editForm ? v.value = f.editForm : v.value = me.value;
|
|
1363
|
+
}), Kt(() => {
|
|
1359
1364
|
o.value = null;
|
|
1360
1365
|
});
|
|
1361
1366
|
const L = () => {
|
|
1362
1367
|
F.value = Math.random().toString(36).substring(2);
|
|
1363
|
-
for (const [
|
|
1364
|
-
t.value[
|
|
1365
|
-
...t.value[
|
|
1366
|
-
|
|
1367
|
-
}, t.value[
|
|
1368
|
-
...t.value[
|
|
1369
|
-
|
|
1368
|
+
for (const [T, $] of Object.entries(te.value))
|
|
1369
|
+
t.value[T].formItem = {
|
|
1370
|
+
...t.value[T].formItem,
|
|
1371
|
+
...$.formItem
|
|
1372
|
+
}, t.value[T].formItem.style = {
|
|
1373
|
+
...t.value[T].formItem.style,
|
|
1374
|
+
...$.formItem.style
|
|
1370
1375
|
};
|
|
1371
|
-
},
|
|
1376
|
+
}, te = Je(
|
|
1372
1377
|
() => Object.fromEntries(
|
|
1373
|
-
Object.entries(t.value).filter((
|
|
1374
|
-
var g,
|
|
1375
|
-
const
|
|
1376
|
-
return t.value.form.modalState === "edit" ? ((
|
|
1377
|
-
}).map((
|
|
1378
|
+
Object.entries(t.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].hidden !== !0).filter((T) => T[1].edit !== !1).filter((T) => T[1].editor !== !1).filter((T) => T[1].type !== "control").filter((T) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(T[0])).filter((T) => {
|
|
1379
|
+
var g, u, q;
|
|
1380
|
+
const $ = typeof T[1].editor == "function" ? T[1].editor(v.value, (g = t.value.form) == null ? void 0 : g.modalState) : T[1].editor;
|
|
1381
|
+
return t.value.form.modalState === "edit" ? ((u = $ == null ? void 0 : $.ep) == null ? void 0 : u.editor) !== !1 : t.value.form.modalState === "add" ? ((q = $ == null ? void 0 : $.ap) == null ? void 0 : q.editor) !== !1 : !0;
|
|
1382
|
+
}).map((T) => [T[0], T[1]])
|
|
1378
1383
|
)
|
|
1379
|
-
),
|
|
1384
|
+
), me = Je(
|
|
1380
1385
|
() => Object.fromEntries(
|
|
1381
|
-
Object.entries(t.value).filter((
|
|
1386
|
+
Object.entries(t.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].type != "control").map((T) => [T[0], T[1].value])
|
|
1382
1387
|
)
|
|
1383
1388
|
), ie = Je(() => {
|
|
1384
|
-
const
|
|
1385
|
-
return Object.entries(
|
|
1389
|
+
const T = /* @__PURE__ */ new Map();
|
|
1390
|
+
return Object.entries(te.value).forEach(([$, g]) => {
|
|
1386
1391
|
if (g.groupName) {
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1389
|
-
groupName:
|
|
1392
|
+
const u = g.groupName;
|
|
1393
|
+
T.has(u) || T.set(u, {
|
|
1394
|
+
groupName: u,
|
|
1390
1395
|
items: []
|
|
1391
|
-
}),
|
|
1396
|
+
}), T.get(u).items.push({ key: $, item: g });
|
|
1392
1397
|
}
|
|
1393
|
-
}),
|
|
1394
|
-
|
|
1395
|
-
|
|
1398
|
+
}), T.forEach(($) => {
|
|
1399
|
+
$.tabPane = Ve(
|
|
1400
|
+
...$.items.map(({ item: g }) => g.tabPane || {})
|
|
1396
1401
|
);
|
|
1397
|
-
}), Array.from(
|
|
1402
|
+
}), Array.from(T.values());
|
|
1398
1403
|
}), ce = [
|
|
1399
1404
|
{
|
|
1400
1405
|
name: "f-submit",
|
|
1401
1406
|
label: t.value.form.submit.label,
|
|
1402
1407
|
click: t.value.form.submit.click,
|
|
1403
1408
|
hidden: t.value.form.submit.hidden,
|
|
1404
|
-
info: Ue(t.value.form.submit, (
|
|
1409
|
+
info: Ue(t.value.form.submit, (T) => !["click"].includes(T)),
|
|
1405
1410
|
sort: t.value.form.submit.sort ?? 1,
|
|
1406
1411
|
// 使用空值合并运算符
|
|
1407
1412
|
originalOrder: 0
|
|
@@ -1411,22 +1416,22 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1411
1416
|
name: "f-reset",
|
|
1412
1417
|
label: t.value.form.reset.label,
|
|
1413
1418
|
click: t.value.form.reset.click,
|
|
1414
|
-
info: Ue(t.value.form.reset, (
|
|
1419
|
+
info: Ue(t.value.form.reset, (T) => !["click"].includes(T)),
|
|
1415
1420
|
hidden: t.value.form.reset.hidden,
|
|
1416
1421
|
sort: t.value.form.reset.sort ?? 2,
|
|
1417
1422
|
// 使用空值合并运算符
|
|
1418
1423
|
originalOrder: 1
|
|
1419
1424
|
// 添加原始顺序标识
|
|
1420
1425
|
}
|
|
1421
|
-
], de = Je(() => ce.filter((
|
|
1422
|
-
return
|
|
1426
|
+
], de = Je(() => ce.filter((T) => !T.hidden).sort((T, $) => T.sort - $.sort || T.originalOrder - $.originalOrder));
|
|
1427
|
+
return n({
|
|
1423
1428
|
submit: i,
|
|
1424
|
-
reset:
|
|
1429
|
+
reset: s,
|
|
1425
1430
|
formData: v
|
|
1426
|
-
}), (
|
|
1431
|
+
}), (T, $) => {
|
|
1427
1432
|
var Z, G, pe;
|
|
1428
|
-
const g =
|
|
1429
|
-
return p(), I("div",
|
|
1433
|
+
const g = H("el-form-item"), u = H("el-col"), q = H("el-tab-pane"), C = H("el-tabs"), k = H("el-form"), U = H("el-button");
|
|
1434
|
+
return p(), I("div", Bl, [
|
|
1430
1435
|
K(k, O(
|
|
1431
1436
|
{
|
|
1432
1437
|
ref_key: "gform",
|
|
@@ -1441,62 +1446,63 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1441
1446
|
},
|
|
1442
1447
|
P(Ue)(
|
|
1443
1448
|
t.value.form,
|
|
1444
|
-
(
|
|
1449
|
+
(w) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(w)
|
|
1445
1450
|
)
|
|
1446
1451
|
), {
|
|
1447
1452
|
default: D(() => [
|
|
1448
|
-
ie.value.length > 0 ? M(
|
|
1453
|
+
ie.value.length > 0 ? M(T.$slots, "default", { key: 0 }, () => [
|
|
1449
1454
|
K(C, O({
|
|
1450
1455
|
class: "demo-tabs",
|
|
1451
1456
|
modelValue: ie.value[0].groupName,
|
|
1452
|
-
"onUpdate:modelValue":
|
|
1457
|
+
"onUpdate:modelValue": $[0] || ($[0] = (w) => ie.value[0].groupName = w),
|
|
1453
1458
|
style: { width: "100%" }
|
|
1454
1459
|
}, t.value.form.tabs), {
|
|
1455
1460
|
default: D(() => [
|
|
1456
|
-
(p(!0), I(J, null,
|
|
1457
|
-
key:
|
|
1458
|
-
label:
|
|
1459
|
-
name:
|
|
1461
|
+
(p(!0), I(J, null, N(ie.value, (w) => (p(), B(q, O({
|
|
1462
|
+
key: w.groupName,
|
|
1463
|
+
label: w.groupName,
|
|
1464
|
+
name: w.groupName,
|
|
1460
1465
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" },
|
|
1461
1466
|
ref_for: !0
|
|
1462
|
-
},
|
|
1467
|
+
}, w.tabPane), {
|
|
1463
1468
|
default: D(() => [
|
|
1464
|
-
(p(!0), I(J, null,
|
|
1469
|
+
(p(!0), I(J, null, N(w.items, (y, ae) => (p(), B(u, O({ ref_for: !0 }, { ...t.value.form.cols, ...y == null ? void 0 : y.item.col }, {
|
|
1465
1470
|
key: y.key,
|
|
1466
1471
|
style: { width: "100%" }
|
|
1467
1472
|
}), {
|
|
1468
1473
|
default: D(() => {
|
|
1469
|
-
var
|
|
1474
|
+
var he, be;
|
|
1470
1475
|
return [
|
|
1471
1476
|
K(g, O({
|
|
1472
1477
|
label: y == null ? void 0 : y.item.label,
|
|
1473
1478
|
prop: y.key,
|
|
1474
1479
|
rules: V(y == null ? void 0 : y.item),
|
|
1475
1480
|
ref_for: !0
|
|
1476
|
-
}, { ...(
|
|
1481
|
+
}, { ...(he = t.value) == null ? void 0 : he.formItems, ...(be = y == null ? void 0 : y.item) == null ? void 0 : be.formItem }, { style: { width: "100%" } }), {
|
|
1477
1482
|
default: D(() => [
|
|
1478
|
-
M(
|
|
1483
|
+
M(T.$slots, "f-" + y.key, {
|
|
1479
1484
|
item: y == null ? void 0 : y.item,
|
|
1480
1485
|
formInfo: v.value,
|
|
1481
|
-
model: t.value
|
|
1486
|
+
model: t.value,
|
|
1487
|
+
form: v.value
|
|
1482
1488
|
}, () => [
|
|
1483
|
-
(p(),
|
|
1489
|
+
(p(), B(bt, {
|
|
1484
1490
|
modelValue: v.value[y.key],
|
|
1485
|
-
"onUpdate:modelValue": (
|
|
1486
|
-
item:
|
|
1491
|
+
"onUpdate:modelValue": ($e) => v.value[y.key] = $e,
|
|
1492
|
+
item: j(y),
|
|
1487
1493
|
ctrlKey: y.key,
|
|
1488
|
-
ctrlType:
|
|
1494
|
+
ctrlType: R(y == null ? void 0 : y.item),
|
|
1489
1495
|
model: t.value,
|
|
1490
1496
|
key: `${y.key}-${F.value}`,
|
|
1491
1497
|
class: "g-ctrl-container",
|
|
1492
1498
|
t: "f",
|
|
1493
1499
|
formInfo: v.value
|
|
1494
|
-
},
|
|
1495
|
-
|
|
1496
|
-
name:
|
|
1497
|
-
fn: D((
|
|
1498
|
-
M(
|
|
1499
|
-
data:
|
|
1500
|
+
}, ye({ _: 2 }, [
|
|
1501
|
+
N(T.$slots, ($e, we) => ({
|
|
1502
|
+
name: we,
|
|
1503
|
+
fn: D((Ee) => [
|
|
1504
|
+
M(T.$slots, we, {
|
|
1505
|
+
data: Ee,
|
|
1500
1506
|
item: y.item,
|
|
1501
1507
|
model: t.value
|
|
1502
1508
|
}, void 0, !0)
|
|
@@ -1517,53 +1523,54 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1517
1523
|
]),
|
|
1518
1524
|
_: 3
|
|
1519
1525
|
}, 16, ["modelValue"])
|
|
1520
|
-
], !0) : M(
|
|
1521
|
-
(p(!0), I(J, null,
|
|
1526
|
+
], !0) : M(T.$slots, "default", { key: 1 }, () => [
|
|
1527
|
+
(p(!0), I(J, null, N(te.value, (w, y) => (p(), B(u, O({ ref_for: !0 }, { ...t.value.form.cols, ...w.col }, {
|
|
1522
1528
|
key: y,
|
|
1523
1529
|
style: { width: "100%" }
|
|
1524
1530
|
}), {
|
|
1525
1531
|
default: D(() => {
|
|
1526
|
-
var
|
|
1532
|
+
var ae;
|
|
1527
1533
|
return [
|
|
1528
1534
|
K(g, O({
|
|
1529
|
-
label:
|
|
1535
|
+
label: w.label,
|
|
1530
1536
|
prop: y,
|
|
1531
|
-
rules: V(
|
|
1537
|
+
rules: V(w),
|
|
1532
1538
|
ref_for: !0
|
|
1533
|
-
}, { ...(
|
|
1534
|
-
label: D((
|
|
1535
|
-
M(
|
|
1536
|
-
data:
|
|
1537
|
-
item:
|
|
1539
|
+
}, { ...(ae = t.value) == null ? void 0 : ae.formItems, ...w == null ? void 0 : w.formItem }, { style: { width: "100%" } }), {
|
|
1540
|
+
label: D((he) => [
|
|
1541
|
+
M(T.$slots, `f-${y}-label`, {
|
|
1542
|
+
data: he,
|
|
1543
|
+
item: w,
|
|
1538
1544
|
model: t.value
|
|
1539
1545
|
}, () => [
|
|
1540
|
-
Ie(
|
|
1546
|
+
Ie(De(w.label), 1)
|
|
1541
1547
|
], !0)
|
|
1542
1548
|
]),
|
|
1543
1549
|
default: D(() => [
|
|
1544
|
-
M(
|
|
1545
|
-
item:
|
|
1550
|
+
M(T.$slots, "f-" + y, {
|
|
1551
|
+
item: w,
|
|
1546
1552
|
formInfo: v.value,
|
|
1547
|
-
model: t.value
|
|
1553
|
+
model: t.value,
|
|
1554
|
+
form: v.value
|
|
1548
1555
|
}, () => [
|
|
1549
|
-
(p(),
|
|
1556
|
+
(p(), B(bt, {
|
|
1550
1557
|
modelValue: v.value[y],
|
|
1551
|
-
"onUpdate:modelValue": (
|
|
1552
|
-
item:
|
|
1558
|
+
"onUpdate:modelValue": (he) => v.value[y] = he,
|
|
1559
|
+
item: j(w, !0),
|
|
1553
1560
|
ctrlKey: y,
|
|
1554
|
-
ctrlType:
|
|
1561
|
+
ctrlType: R(w),
|
|
1555
1562
|
key: `${y}-${F.value}`,
|
|
1556
1563
|
model: t.value,
|
|
1557
1564
|
class: "g-ctrl-container",
|
|
1558
1565
|
t: "f",
|
|
1559
1566
|
formInfo: v.value
|
|
1560
|
-
},
|
|
1561
|
-
|
|
1562
|
-
name:
|
|
1563
|
-
fn: D((
|
|
1564
|
-
M(
|
|
1565
|
-
data:
|
|
1566
|
-
item:
|
|
1567
|
+
}, ye({ _: 2 }, [
|
|
1568
|
+
N(T.$slots, (he, be) => ({
|
|
1569
|
+
name: be,
|
|
1570
|
+
fn: D(($e) => [
|
|
1571
|
+
M(T.$slots, be, {
|
|
1572
|
+
data: $e,
|
|
1573
|
+
item: w,
|
|
1567
1574
|
model: t.value
|
|
1568
1575
|
}, void 0, !0)
|
|
1569
1576
|
])
|
|
@@ -1581,32 +1588,32 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1581
1588
|
]),
|
|
1582
1589
|
_: 3
|
|
1583
1590
|
}, 16, ["model"]),
|
|
1584
|
-
(pe = (G = (Z = t.value) == null ? void 0 : Z.form) == null ? void 0 : G.footer) != null && pe.hidden ?
|
|
1591
|
+
(pe = (G = (Z = t.value) == null ? void 0 : Z.form) == null ? void 0 : G.footer) != null && pe.hidden ? ge("", !0) : M(T.$slots, "f-footer", { key: 0 }, () => [
|
|
1585
1592
|
Q("div", {
|
|
1586
1593
|
style: qe(t.value.form.footer.style)
|
|
1587
1594
|
}, [
|
|
1588
|
-
M(
|
|
1589
|
-
(p(!0), I(J, null,
|
|
1590
|
-
M(
|
|
1591
|
-
M(
|
|
1592
|
-
K(U, O({ ref_for: !0 },
|
|
1593
|
-
onClick:
|
|
1595
|
+
M(T.$slots, "f-footer-left", {}, void 0, !0),
|
|
1596
|
+
(p(!0), I(J, null, N(de.value, (w) => (p(), I(J, null, [
|
|
1597
|
+
M(T.$slots, w.name + "-left", {}, void 0, !0),
|
|
1598
|
+
M(T.$slots, w.name, {}, () => [
|
|
1599
|
+
K(U, O({ ref_for: !0 }, w.info, {
|
|
1600
|
+
onClick: yt((y) => w.click(v.value, t.value), ["stop"])
|
|
1594
1601
|
}), {
|
|
1595
1602
|
default: D(() => [
|
|
1596
|
-
Ie(
|
|
1603
|
+
Ie(De(w == null ? void 0 : w.label), 1)
|
|
1597
1604
|
]),
|
|
1598
1605
|
_: 2
|
|
1599
1606
|
}, 1040, ["onClick"])
|
|
1600
1607
|
], !0),
|
|
1601
|
-
M(
|
|
1608
|
+
M(T.$slots, w.name + "-right", {}, void 0, !0)
|
|
1602
1609
|
], 64))), 256)),
|
|
1603
|
-
M(
|
|
1610
|
+
M(T.$slots, "f-footer-right", {}, void 0, !0)
|
|
1604
1611
|
], 4)
|
|
1605
1612
|
], !0)
|
|
1606
1613
|
]);
|
|
1607
1614
|
};
|
|
1608
1615
|
}
|
|
1609
|
-
}),
|
|
1616
|
+
}), _t = /* @__PURE__ */ Ze(Ol, [["__scopeId", "data-v-d68f3861"]]), Ft = {
|
|
1610
1617
|
__name: "g-query-item",
|
|
1611
1618
|
props: /* @__PURE__ */ Xe(["more"], {
|
|
1612
1619
|
modelValue: { required: !0 },
|
|
@@ -1616,55 +1623,55 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1616
1623
|
}),
|
|
1617
1624
|
emits: ["update:modelValue", "update:info"],
|
|
1618
1625
|
setup(a) {
|
|
1619
|
-
const
|
|
1626
|
+
const n = Qe(a, "modelValue"), r = a, t = Qe(a, "info"), e = (F) => Je(() => Object.fromEntries(Object.entries(n.value).filter((f) => {
|
|
1620
1627
|
var i;
|
|
1621
|
-
return typeof f[1].search == "function" ? f[1].search && ((i = f[1].search(t.value,
|
|
1622
|
-
}).map((f) => [f[0], f[1]]))).value, o = (F) => typeof F.search == "function" ? F.search(t.value,
|
|
1628
|
+
return typeof f[1].search == "function" ? f[1].search && ((i = f[1].search(t.value, n.value.table)) == null ? void 0 : i.more) === F : f[1].search && f[1].search.more === F;
|
|
1629
|
+
}).map((f) => [f[0], f[1]]))).value, o = (F) => typeof F.search == "function" ? F.search(t.value, n.value.table) : F.search || {}, E = (F) => {
|
|
1623
1630
|
const f = o(F);
|
|
1624
1631
|
return (f == null ? void 0 : f.type) || F.type;
|
|
1625
1632
|
}, v = (F) => {
|
|
1626
|
-
var
|
|
1633
|
+
var s;
|
|
1627
1634
|
const f = o(F);
|
|
1628
|
-
let i = (f == null ? void 0 : f.width) || ((
|
|
1635
|
+
let i = (f == null ? void 0 : f.width) || ((s = n.value.queryItems) == null ? void 0 : s.width) || "100%";
|
|
1629
1636
|
return isNaN(i) || (i += "px"), i;
|
|
1630
1637
|
};
|
|
1631
1638
|
return (F, f) => {
|
|
1632
|
-
const i =
|
|
1633
|
-
return p(!0), I(J, null,
|
|
1639
|
+
const i = H("el-form-item");
|
|
1640
|
+
return p(!0), I(J, null, N(e(r.more), (s, c) => M(F.$slots, `q-${c}`, {
|
|
1634
1641
|
key: c,
|
|
1635
|
-
item:
|
|
1642
|
+
item: s,
|
|
1636
1643
|
queryModel: t.value,
|
|
1637
|
-
model:
|
|
1644
|
+
model: n.value
|
|
1638
1645
|
}, () => [
|
|
1639
1646
|
K(i, O({
|
|
1640
|
-
label:
|
|
1641
|
-
style: { width: v(
|
|
1647
|
+
label: s.label,
|
|
1648
|
+
style: { width: v(s) },
|
|
1642
1649
|
ref_for: !0
|
|
1643
|
-
}, { ...
|
|
1650
|
+
}, { ...n.value.queryItems, ...o(s) }), {
|
|
1644
1651
|
label: D(() => [
|
|
1645
1652
|
M(F.$slots, `q-${c}-label`, {
|
|
1646
|
-
item:
|
|
1647
|
-
model:
|
|
1653
|
+
item: s,
|
|
1654
|
+
model: n.value
|
|
1648
1655
|
})
|
|
1649
1656
|
]),
|
|
1650
1657
|
default: D(() => [
|
|
1651
|
-
K(
|
|
1658
|
+
K(bt, {
|
|
1652
1659
|
modelValue: t.value[c],
|
|
1653
|
-
"onUpdate:modelValue": (
|
|
1654
|
-
item: { ...
|
|
1660
|
+
"onUpdate:modelValue": (_) => t.value[c] = _,
|
|
1661
|
+
item: { ...s == null ? void 0 : s.editor, ...o(s) },
|
|
1655
1662
|
ctrlKey: c,
|
|
1656
|
-
ctrlType:
|
|
1657
|
-
model:
|
|
1663
|
+
ctrlType: E(s),
|
|
1664
|
+
model: n.value,
|
|
1658
1665
|
t: "q",
|
|
1659
1666
|
formInfo: t.value
|
|
1660
|
-
},
|
|
1661
|
-
|
|
1662
|
-
name:
|
|
1667
|
+
}, ye({ _: 2 }, [
|
|
1668
|
+
N(Object.keys(F.$slots), (_) => ({
|
|
1669
|
+
name: _,
|
|
1663
1670
|
fn: D((V) => [
|
|
1664
|
-
M(F.$slots,
|
|
1671
|
+
M(F.$slots, _, {
|
|
1665
1672
|
data: V,
|
|
1666
|
-
item:
|
|
1667
|
-
model:
|
|
1673
|
+
item: s,
|
|
1674
|
+
model: n.value
|
|
1668
1675
|
})
|
|
1669
1676
|
])
|
|
1670
1677
|
}))
|
|
@@ -1675,10 +1682,10 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1675
1682
|
])), 128);
|
|
1676
1683
|
};
|
|
1677
1684
|
}
|
|
1678
|
-
},
|
|
1685
|
+
}, Il = {
|
|
1679
1686
|
key: 0,
|
|
1680
1687
|
class: "outer"
|
|
1681
|
-
},
|
|
1688
|
+
}, Ul = { class: "inner" }, Yl = {
|
|
1682
1689
|
__name: "g-query",
|
|
1683
1690
|
props: {
|
|
1684
1691
|
modelValue: { required: !0 },
|
|
@@ -1687,8 +1694,8 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1687
1694
|
infoModifiers: {}
|
|
1688
1695
|
},
|
|
1689
1696
|
emits: /* @__PURE__ */ Xe(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1690
|
-
setup(a, { emit:
|
|
1691
|
-
const r = Qe(a, "modelValue"), t =
|
|
1697
|
+
setup(a, { emit: n }) {
|
|
1698
|
+
const r = Qe(a, "modelValue"), t = n, e = Mt("options"), o = oe(!1), E = Qe(a, "info"), v = {
|
|
1692
1699
|
hidden: !1,
|
|
1693
1700
|
type: "hidden",
|
|
1694
1701
|
labelWidth: 100,
|
|
@@ -1705,7 +1712,7 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1705
1712
|
hidden: !0,
|
|
1706
1713
|
type: "primary",
|
|
1707
1714
|
label: "更多",
|
|
1708
|
-
icon: () =>
|
|
1715
|
+
icon: () => ke(cl),
|
|
1709
1716
|
click: () => {
|
|
1710
1717
|
o.value = !o.value;
|
|
1711
1718
|
}
|
|
@@ -1715,18 +1722,18 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1715
1722
|
type: "primary",
|
|
1716
1723
|
hidden: !1,
|
|
1717
1724
|
plain: !1,
|
|
1718
|
-
icon: () =>
|
|
1725
|
+
icon: () => ke(It),
|
|
1719
1726
|
click: () => {
|
|
1720
|
-
t("reset",
|
|
1727
|
+
t("reset", E.value);
|
|
1721
1728
|
}
|
|
1722
1729
|
},
|
|
1723
1730
|
query: {
|
|
1724
1731
|
hidden: !1,
|
|
1725
1732
|
type: "primary",
|
|
1726
1733
|
label: "查询",
|
|
1727
|
-
icon: () =>
|
|
1734
|
+
icon: () => ke(fl),
|
|
1728
1735
|
click: () => {
|
|
1729
|
-
t("query",
|
|
1736
|
+
t("query", E.value), o.value = !1;
|
|
1730
1737
|
}
|
|
1731
1738
|
},
|
|
1732
1739
|
btns: {
|
|
@@ -1772,24 +1779,24 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1772
1779
|
}
|
|
1773
1780
|
};
|
|
1774
1781
|
r.value.queryItems = Ve(f, e == null ? void 0 : e.queryItems, r.value.queryItems);
|
|
1775
|
-
const i = (V,
|
|
1776
|
-
const
|
|
1782
|
+
const i = (V, j) => {
|
|
1783
|
+
const R = Object.keys(V.slots).filter((L) => L !== "default").reduce((L, te) => (L[te] = (me) => V.slots[te]({
|
|
1777
1784
|
model: r.value
|
|
1778
1785
|
// 传递当前模型数据
|
|
1779
1786
|
}), L), {});
|
|
1780
|
-
return
|
|
1787
|
+
return ke(Ft, {
|
|
1781
1788
|
modelValue: r.value,
|
|
1782
1789
|
"onUpdate:modelValue": (L) => r.value = L,
|
|
1783
|
-
info:
|
|
1784
|
-
"onUpdate:info": (L) =>
|
|
1785
|
-
more:
|
|
1786
|
-
},
|
|
1787
|
-
},
|
|
1788
|
-
var
|
|
1790
|
+
info: E.value,
|
|
1791
|
+
"onUpdate:info": (L) => E.value = L,
|
|
1792
|
+
more: j
|
|
1793
|
+
}, R);
|
|
1794
|
+
}, s = At(), c = () => {
|
|
1795
|
+
var R, L, te, me, ie, ce, de, Ce, Te;
|
|
1789
1796
|
const V = [
|
|
1790
1797
|
{
|
|
1791
1798
|
key: "query",
|
|
1792
|
-
hidden: (
|
|
1799
|
+
hidden: (te = (L = (R = r.value) == null ? void 0 : R.query) == null ? void 0 : L.query) == null ? void 0 : te.hidden,
|
|
1793
1800
|
component: Be,
|
|
1794
1801
|
props: {
|
|
1795
1802
|
...r.value.query.query,
|
|
@@ -1800,7 +1807,7 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1800
1807
|
},
|
|
1801
1808
|
{
|
|
1802
1809
|
key: "reset",
|
|
1803
|
-
hidden: (ce = (ie = (
|
|
1810
|
+
hidden: (ce = (ie = (me = r.value) == null ? void 0 : me.query) == null ? void 0 : ie.reset) == null ? void 0 : ce.hidden,
|
|
1804
1811
|
component: Be,
|
|
1805
1812
|
props: {
|
|
1806
1813
|
...r.value.query.reset,
|
|
@@ -1811,69 +1818,69 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1811
1818
|
},
|
|
1812
1819
|
{
|
|
1813
1820
|
key: "more",
|
|
1814
|
-
hidden: (
|
|
1815
|
-
component: r.value.query.more.mode === 3 ?
|
|
1821
|
+
hidden: (Te = (Ce = (de = r.value) == null ? void 0 : de.query) == null ? void 0 : Ce.more) == null ? void 0 : Te.hidden,
|
|
1822
|
+
component: r.value.query.more.mode === 3 ? $t : Be,
|
|
1816
1823
|
props: r.value.query.more.mode === 3 ? { ...r.value.query.more.dialog } : {
|
|
1817
1824
|
...r.value.query.more,
|
|
1818
1825
|
onClick: r.value.query.more.click
|
|
1819
1826
|
},
|
|
1820
1827
|
label: r.value.query.more.label,
|
|
1821
1828
|
sort: r.value.query.more.sort || 0,
|
|
1822
|
-
content: r.value.query.more.mode === 3 ? () =>
|
|
1829
|
+
content: r.value.query.more.mode === 3 ? () => ke(pt, {
|
|
1823
1830
|
class: "query-form",
|
|
1824
|
-
...Ue(r.value.query, (
|
|
1825
|
-
}, () => i({ slots:
|
|
1831
|
+
...Ue(r.value.query, (le) => !["query", "more", "reset"].includes(le))
|
|
1832
|
+
}, () => i({ slots: s }, !0)) : null
|
|
1826
1833
|
}
|
|
1827
1834
|
];
|
|
1828
|
-
return V.sort((
|
|
1829
|
-
reference: () =>
|
|
1830
|
-
default:
|
|
1831
|
-
}) : (
|
|
1832
|
-
},
|
|
1835
|
+
return V.sort((le, ne) => le.sort - ne.sort), V.filter((le) => !le.hidden).map((le) => le.key === "more" && le.component === $t ? ke($t, le.props, {
|
|
1836
|
+
reference: () => ke(Be, r.value.query.more, () => le.label),
|
|
1837
|
+
default: le.content
|
|
1838
|
+
}) : (le.props.slot = "query-" + le.key, le.label ? ke(le.component, le.props, () => le.label) : ke(le.component, le.props)));
|
|
1839
|
+
}, _ = Je(() => ({
|
|
1833
1840
|
diplay: "flex",
|
|
1834
1841
|
flexDirection: r.value.query.container.mode === "row" ? "row" : "column"
|
|
1835
1842
|
}));
|
|
1836
|
-
return (V,
|
|
1837
|
-
var
|
|
1838
|
-
const
|
|
1843
|
+
return (V, j) => {
|
|
1844
|
+
var te, me, ie, ce, de, Ce, Te, le, ne, re, Oe, T, $, g, u, q, C;
|
|
1845
|
+
const R = H("el-form-item"), L = H("el-drawer");
|
|
1839
1846
|
return p(), I(J, null, [
|
|
1840
1847
|
Q("div", {
|
|
1841
1848
|
class: "g-query-container",
|
|
1842
|
-
style: qe({
|
|
1849
|
+
style: qe({ ..._.value, ...((me = (te = r.value.query) == null ? void 0 : te.container) == null ? void 0 : me.style) || {} })
|
|
1843
1850
|
}, [
|
|
1844
|
-
K(P(
|
|
1845
|
-
onSubmit:
|
|
1851
|
+
K(P(pt), O({
|
|
1852
|
+
onSubmit: j[0] || (j[0] = yt(() => {
|
|
1846
1853
|
}, ["prevent"]))
|
|
1847
1854
|
}, P(Ue)(r.value.query, (k) => !["query", "more", "reset", "btns"].includes(k))), {
|
|
1848
1855
|
default: D(() => {
|
|
1849
1856
|
var k, U;
|
|
1850
1857
|
return [
|
|
1851
|
-
(p(),
|
|
1852
|
-
((U = (k = r.value.query) == null ? void 0 : k.container) == null ? void 0 : U.inline) === !0 ? (p(),
|
|
1858
|
+
(p(), B(We(i({ slots: V.$slots }, void 0)))),
|
|
1859
|
+
((U = (k = r.value.query) == null ? void 0 : k.container) == null ? void 0 : U.inline) === !0 ? (p(), B(R, { key: 0 }, {
|
|
1853
1860
|
default: D(() => {
|
|
1854
|
-
var Z, G, pe,
|
|
1861
|
+
var Z, G, pe, w, y;
|
|
1855
1862
|
return [
|
|
1856
1863
|
Q("div", {
|
|
1857
1864
|
style: qe((G = (Z = r.value.query) == null ? void 0 : Z.btns) == null ? void 0 : G.style)
|
|
1858
1865
|
}, [
|
|
1859
|
-
r.value.query.group ? (p(),
|
|
1866
|
+
r.value.query.group ? (p(), B(P(mt), { key: 0 }, {
|
|
1860
1867
|
default: D(() => [
|
|
1861
|
-
(p(!0), I(J, null,
|
|
1862
|
-
(p(),
|
|
1868
|
+
(p(!0), I(J, null, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
|
|
1869
|
+
(p(), B(We(ae)))
|
|
1863
1870
|
], !0)), 256)),
|
|
1864
1871
|
M(V.$slots, "q-btns", {}, void 0, !0)
|
|
1865
1872
|
]),
|
|
1866
1873
|
_: 3
|
|
1867
1874
|
})) : (p(), I(J, { key: 1 }, [
|
|
1868
|
-
(y = (
|
|
1875
|
+
(y = (w = (pe = r.value) == null ? void 0 : pe.query) == null ? void 0 : w.btns) != null && y.group ? (p(), B(P(mt), { key: 0 }, {
|
|
1869
1876
|
default: D(() => [
|
|
1870
|
-
(p(!0), I(J, null,
|
|
1871
|
-
(p(),
|
|
1877
|
+
(p(!0), I(J, null, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
|
|
1878
|
+
(p(), B(We(ae)))
|
|
1872
1879
|
], !0)), 256))
|
|
1873
1880
|
]),
|
|
1874
1881
|
_: 3
|
|
1875
|
-
})) : (p(!0), I(J, { key: 1 },
|
|
1876
|
-
(p(),
|
|
1882
|
+
})) : (p(!0), I(J, { key: 1 }, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
|
|
1883
|
+
(p(), B(We(ae)))
|
|
1877
1884
|
], !0)), 256)),
|
|
1878
1885
|
M(V.$slots, "q-btns", {}, void 0, !0)
|
|
1879
1886
|
], 64))
|
|
@@ -1881,59 +1888,59 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1881
1888
|
];
|
|
1882
1889
|
}),
|
|
1883
1890
|
_: 3
|
|
1884
|
-
})) :
|
|
1891
|
+
})) : ge("", !0)
|
|
1885
1892
|
];
|
|
1886
1893
|
}),
|
|
1887
1894
|
_: 3
|
|
1888
1895
|
}, 16),
|
|
1889
1896
|
((de = (ce = (ie = r.value) == null ? void 0 : ie.query) == null ? void 0 : ce.container) == null ? void 0 : de.inline) === !1 ? (p(), I("div", {
|
|
1890
1897
|
key: 0,
|
|
1891
|
-
style: qe((
|
|
1898
|
+
style: qe((Te = (Ce = r.value.query) == null ? void 0 : Ce.btns) == null ? void 0 : Te.style)
|
|
1892
1899
|
}, [
|
|
1893
|
-
r.value.query.group ? (p(),
|
|
1900
|
+
r.value.query.group ? (p(), B(P(mt), { key: 0 }, {
|
|
1894
1901
|
default: D(() => [
|
|
1895
|
-
(p(!0), I(J, null,
|
|
1896
|
-
(p(),
|
|
1902
|
+
(p(!0), I(J, null, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
|
|
1903
|
+
(p(), B(We(k)))
|
|
1897
1904
|
], !0)), 256)),
|
|
1898
1905
|
M(V.$slots, "q-btns", {}, void 0, !0)
|
|
1899
1906
|
]),
|
|
1900
1907
|
_: 3
|
|
1901
1908
|
})) : (p(), I(J, { key: 1 }, [
|
|
1902
|
-
(ne = (
|
|
1909
|
+
(ne = (le = r.value.query) == null ? void 0 : le.btns) != null && ne.group ? (p(), B(P(mt), { key: 0 }, {
|
|
1903
1910
|
default: D(() => [
|
|
1904
|
-
(p(!0), I(J, null,
|
|
1905
|
-
(p(),
|
|
1911
|
+
(p(!0), I(J, null, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
|
|
1912
|
+
(p(), B(We(k)))
|
|
1906
1913
|
], !0)), 256))
|
|
1907
1914
|
]),
|
|
1908
1915
|
_: 3
|
|
1909
|
-
})) : (p(!0), I(J, { key: 1 },
|
|
1910
|
-
(p(),
|
|
1916
|
+
})) : (p(!0), I(J, { key: 1 }, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
|
|
1917
|
+
(p(), B(We(k)))
|
|
1911
1918
|
], !0)), 256)),
|
|
1912
1919
|
M(V.$slots, "q-btns", {}, void 0, !0)
|
|
1913
1920
|
], 64))
|
|
1914
|
-
], 4)) :
|
|
1921
|
+
], 4)) : ge("", !0)
|
|
1915
1922
|
], 4),
|
|
1916
|
-
o.value && !((
|
|
1923
|
+
o.value && !((T = (Oe = (re = r.value) == null ? void 0 : re.query) == null ? void 0 : Oe.more) != null && T.hidden) && r.value.query.more.mode == 2 ? (p(), B(L, O({
|
|
1917
1924
|
key: 0,
|
|
1918
1925
|
modelValue: o.value,
|
|
1919
|
-
"onUpdate:modelValue":
|
|
1926
|
+
"onUpdate:modelValue": j[6] || (j[6] = (k) => o.value = k),
|
|
1920
1927
|
title: "更多查询",
|
|
1921
1928
|
"show-close": !1
|
|
1922
|
-
}, r.value.query.more.dialog),
|
|
1929
|
+
}, r.value.query.more.dialog), ye({
|
|
1923
1930
|
default: D(() => [
|
|
1924
|
-
K(P(
|
|
1925
|
-
onSubmit:
|
|
1931
|
+
K(P(pt), O({
|
|
1932
|
+
onSubmit: j[3] || (j[3] = yt(() => {
|
|
1926
1933
|
}, ["prevent"]))
|
|
1927
1934
|
}, P(Ue)(r.value.query, (k) => !["query", "more", "reset"].includes(k)), { style: { width: "98%" } }), {
|
|
1928
1935
|
default: D(() => [
|
|
1929
1936
|
K(Ft, {
|
|
1930
1937
|
modelValue: r.value,
|
|
1931
|
-
"onUpdate:modelValue":
|
|
1932
|
-
info:
|
|
1933
|
-
"onUpdate:info":
|
|
1938
|
+
"onUpdate:modelValue": j[1] || (j[1] = (k) => r.value = k),
|
|
1939
|
+
info: E.value,
|
|
1940
|
+
"onUpdate:info": j[2] || (j[2] = (k) => E.value = k),
|
|
1934
1941
|
more: !0
|
|
1935
|
-
},
|
|
1936
|
-
|
|
1942
|
+
}, ye({ _: 2 }, [
|
|
1943
|
+
N(V.$slots, (k, U, Z) => ({
|
|
1937
1944
|
name: U,
|
|
1938
1945
|
fn: D((G) => [
|
|
1939
1946
|
M(V.$slots, U, { model: r.value }, void 0, !0)
|
|
@@ -1946,23 +1953,23 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1946
1953
|
]),
|
|
1947
1954
|
_: 2
|
|
1948
1955
|
}, [
|
|
1949
|
-
(C = (q = (
|
|
1956
|
+
(C = (q = (u = (g = ($ = r.value) == null ? void 0 : $.query) == null ? void 0 : g.more) == null ? void 0 : u.dialog) == null ? void 0 : q.footer) != null && C.hidden ? void 0 : {
|
|
1950
1957
|
name: "footer",
|
|
1951
1958
|
fn: D(() => [
|
|
1952
|
-
Q("div",
|
|
1959
|
+
Q("div", Et(el(r.value.query.more.dialog.footer)), [
|
|
1953
1960
|
K(P(Be), O(r.value.query.query, {
|
|
1954
|
-
onClick:
|
|
1961
|
+
onClick: j[4] || (j[4] = (k) => r.value.query.query.click())
|
|
1955
1962
|
}), {
|
|
1956
1963
|
default: D(() => [
|
|
1957
|
-
Ie(
|
|
1964
|
+
Ie(De(r.value.query.query.label), 1)
|
|
1958
1965
|
]),
|
|
1959
1966
|
_: 1
|
|
1960
1967
|
}, 16),
|
|
1961
1968
|
K(P(Be), O(r.value.query.reset, {
|
|
1962
|
-
onClick:
|
|
1969
|
+
onClick: j[5] || (j[5] = (k) => r.value.query.reset.click())
|
|
1963
1970
|
}), {
|
|
1964
1971
|
default: D(() => [
|
|
1965
|
-
Ie(
|
|
1972
|
+
Ie(De(r.value.query.reset.label), 1)
|
|
1966
1973
|
]),
|
|
1967
1974
|
_: 1
|
|
1968
1975
|
}, 16)
|
|
@@ -1970,8 +1977,8 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1970
1977
|
]),
|
|
1971
1978
|
key: "0"
|
|
1972
1979
|
}
|
|
1973
|
-
]), 1040, ["modelValue"])) :
|
|
1974
|
-
K(
|
|
1980
|
+
]), 1040, ["modelValue"])) : ge("", !0),
|
|
1981
|
+
K(tl, {
|
|
1975
1982
|
duration: 300,
|
|
1976
1983
|
name: "nested",
|
|
1977
1984
|
style: { padding: "10px" }
|
|
@@ -1979,22 +1986,22 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
1979
1986
|
default: D(() => {
|
|
1980
1987
|
var k, U, Z;
|
|
1981
1988
|
return [
|
|
1982
|
-
o.value && !((Z = (U = (k = r.value) == null ? void 0 : k.query) == null ? void 0 : U.more) != null && Z.hidden) && r.value.query.more.mode == 1 ? (p(), I("div",
|
|
1983
|
-
Q("div",
|
|
1984
|
-
r.value.query.more.mode == 1 ?
|
|
1989
|
+
o.value && !((Z = (U = (k = r.value) == null ? void 0 : k.query) == null ? void 0 : U.more) != null && Z.hidden) && r.value.query.more.mode == 1 ? (p(), I("div", Il, [
|
|
1990
|
+
Q("div", Ul, [
|
|
1991
|
+
r.value.query.more.mode == 1 ? ll((p(), B(P(pt), O({
|
|
1985
1992
|
key: 0,
|
|
1986
|
-
onSubmit:
|
|
1993
|
+
onSubmit: j[7] || (j[7] = yt(() => {
|
|
1987
1994
|
}, ["prevent"]))
|
|
1988
1995
|
}, P(Ue)(r.value.query, (G) => !["query", "more", "reset"].includes(G))), {
|
|
1989
1996
|
default: D(() => [
|
|
1990
|
-
(p(),
|
|
1997
|
+
(p(), B(We(i({ slots: V.$slots }, !0))))
|
|
1991
1998
|
]),
|
|
1992
1999
|
_: 1
|
|
1993
2000
|
}, 16)), [
|
|
1994
|
-
[
|
|
1995
|
-
]) :
|
|
2001
|
+
[rl, o.value]
|
|
2002
|
+
]) : ge("", !0)
|
|
1996
2003
|
])
|
|
1997
|
-
])) :
|
|
2004
|
+
])) : ge("", !0)
|
|
1998
2005
|
];
|
|
1999
2006
|
}),
|
|
2000
2007
|
_: 1
|
|
@@ -2002,22 +2009,22 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
2002
2009
|
], 64);
|
|
2003
2010
|
};
|
|
2004
2011
|
}
|
|
2005
|
-
},
|
|
2012
|
+
}, Rl = /* @__PURE__ */ Ze(Yl, [["__scopeId", "data-v-3f2b77d6"]]), Ll = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Hl = { style: { padding: "10px", "box-sizing": "border-box" } }, zl = { style: { margin: "10px" } }, Pl = {
|
|
2006
2013
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2007
2014
|
id: "excelSortEl"
|
|
2008
|
-
}, jl = ["textContent"],
|
|
2015
|
+
}, jl = ["textContent"], Nl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Wl = {
|
|
2009
2016
|
__name: "check-excel-item",
|
|
2010
2017
|
props: {
|
|
2011
2018
|
items: Array,
|
|
2012
2019
|
commitText: String
|
|
2013
2020
|
},
|
|
2014
2021
|
emits: ["excel"],
|
|
2015
|
-
setup(a, { emit:
|
|
2016
|
-
const r = a, t =
|
|
2022
|
+
setup(a, { emit: n }) {
|
|
2023
|
+
const r = a, t = n, e = oe(r.items), o = () => {
|
|
2017
2024
|
e.value.forEach((F) => {
|
|
2018
2025
|
F.value = !0;
|
|
2019
2026
|
});
|
|
2020
|
-
},
|
|
2027
|
+
}, E = () => {
|
|
2021
2028
|
e.value.forEach((F) => {
|
|
2022
2029
|
F.value = !1;
|
|
2023
2030
|
});
|
|
@@ -2036,31 +2043,31 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
2036
2043
|
});
|
|
2037
2044
|
};
|
|
2038
2045
|
return ut(() => {
|
|
2039
|
-
const F = new
|
|
2046
|
+
const F = new Rt(document.getElementById("excelSortEl"), {
|
|
2040
2047
|
animation: 150,
|
|
2041
2048
|
onEnd: () => {
|
|
2042
2049
|
F.toArray();
|
|
2043
2050
|
}
|
|
2044
2051
|
}), f = F;
|
|
2045
|
-
|
|
2052
|
+
al(() => {
|
|
2046
2053
|
f && f.destroy();
|
|
2047
2054
|
});
|
|
2048
2055
|
}), (F, f) => {
|
|
2049
|
-
const i =
|
|
2050
|
-
return p(), I("div",
|
|
2056
|
+
const i = H("el-divider"), s = H("el-alert"), c = H("el-checkbox"), _ = H("el-button");
|
|
2057
|
+
return p(), I("div", Ll, [
|
|
2051
2058
|
Q("div", Hl, [
|
|
2052
|
-
Q("div",
|
|
2059
|
+
Q("div", zl, [
|
|
2053
2060
|
Q("a", {
|
|
2054
2061
|
onClick: o,
|
|
2055
2062
|
style: { cursor: "pointer" }
|
|
2056
2063
|
}, "全选"),
|
|
2057
2064
|
K(i, { direction: "vertical" }),
|
|
2058
2065
|
Q("a", {
|
|
2059
|
-
onClick:
|
|
2066
|
+
onClick: E,
|
|
2060
2067
|
style: { cursor: "pointer" }
|
|
2061
2068
|
}, "全不选")
|
|
2062
2069
|
]),
|
|
2063
|
-
K(
|
|
2070
|
+
K(s, {
|
|
2064
2071
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
2065
2072
|
type: "warning",
|
|
2066
2073
|
"show-icon": "",
|
|
@@ -2068,19 +2075,19 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
2068
2075
|
style: { "margin-bottom": "10px" }
|
|
2069
2076
|
}),
|
|
2070
2077
|
f[0] || (f[0] = Q("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2071
|
-
Q("div",
|
|
2072
|
-
(p(!0), I(J, null,
|
|
2078
|
+
Q("div", Pl, [
|
|
2079
|
+
(p(!0), I(J, null, N(e.value, (V) => (p(), B(c, {
|
|
2073
2080
|
class: "check-box-hover",
|
|
2074
2081
|
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" },
|
|
2075
2082
|
"data-id": V.key,
|
|
2076
2083
|
modelValue: V.value,
|
|
2077
|
-
"onUpdate:modelValue": (
|
|
2084
|
+
"onUpdate:modelValue": (j) => V.value = j,
|
|
2078
2085
|
key: V.key,
|
|
2079
2086
|
title: V.label
|
|
2080
2087
|
}, {
|
|
2081
2088
|
default: D(() => [
|
|
2082
2089
|
Q("span", {
|
|
2083
|
-
textContent:
|
|
2090
|
+
textContent: De(V.label),
|
|
2084
2091
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2085
2092
|
}, null, 8, jl)
|
|
2086
2093
|
]),
|
|
@@ -2088,15 +2095,15 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
2088
2095
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2089
2096
|
])
|
|
2090
2097
|
]),
|
|
2091
|
-
Q("div",
|
|
2092
|
-
K(
|
|
2098
|
+
Q("div", Nl, [
|
|
2099
|
+
K(_, {
|
|
2093
2100
|
type: "primary",
|
|
2094
2101
|
onClick: v,
|
|
2095
|
-
icon: P(
|
|
2102
|
+
icon: P(Yt),
|
|
2096
2103
|
disabled: e.value.filter((V) => V.value).length < 1
|
|
2097
2104
|
}, {
|
|
2098
2105
|
default: D(() => [
|
|
2099
|
-
Ie(
|
|
2106
|
+
Ie(De(r.commitText), 1)
|
|
2100
2107
|
]),
|
|
2101
2108
|
_: 1
|
|
2102
2109
|
}, 8, ["icon", "disabled"])
|
|
@@ -2104,120 +2111,113 @@ const $t = /* @__PURE__ */ zt(kl), Pt = {
|
|
|
2104
2111
|
]);
|
|
2105
2112
|
};
|
|
2106
2113
|
}
|
|
2107
|
-
},
|
|
2108
|
-
|
|
2114
|
+
}, Gl = /* @__PURE__ */ Ze(Wl, [["__scopeId", "data-v-630c4ced"]]), Xl = "vue-gyc-ui", Ql = 1, ve = new $l(Xl);
|
|
2115
|
+
ve.version(Ql).stores({
|
|
2109
2116
|
// 记录表格项设置信息
|
|
2110
|
-
|
|
2117
|
+
tableWidths: "++id, [page+key], page, key,width",
|
|
2111
2118
|
// 记录表格分页条数
|
|
2112
|
-
|
|
2119
|
+
pageInfo: "++id, page, size",
|
|
2113
2120
|
// 记录表格字段顺序
|
|
2114
|
-
sorts: "++id, page, keys"
|
|
2121
|
+
sorts: "++id, page, keys",
|
|
2122
|
+
// 记录表格列显示状态
|
|
2123
|
+
tableColsState: "++id,[page+key], page, key"
|
|
2115
2124
|
});
|
|
2116
|
-
const
|
|
2117
|
-
showCol: !0,
|
|
2118
|
-
sort: 0
|
|
2119
|
-
}, Kl = 20, er = [], Ke = (a, s) => {
|
|
2125
|
+
const Ke = (a, n) => {
|
|
2120
2126
|
if (!a || typeof a != "string")
|
|
2121
2127
|
throw new Error("page参数必须是非空字符串");
|
|
2122
|
-
if (s && typeof s != "string")
|
|
2123
|
-
throw new Error("key参数必须是字符串");
|
|
2124
2128
|
};
|
|
2125
|
-
async function
|
|
2126
|
-
Ke(a, s);
|
|
2129
|
+
async function ht(a, n, r) {
|
|
2127
2130
|
try {
|
|
2128
|
-
const t = await
|
|
2129
|
-
|
|
2130
|
-
return await Te.tableInfo.put({ ...t, ...r }), "update success";
|
|
2131
|
-
{
|
|
2132
|
-
const e = { ...Jl, ...r };
|
|
2133
|
-
return await Te.tableInfo.add({ page: a, key: s, ...e }), "add success";
|
|
2134
|
-
}
|
|
2131
|
+
const t = await ve.tableColsState.where({ page: a }).first();
|
|
2132
|
+
t ? r === "add" ? t.keys.includes(n) || (t.keys.push(n), await ve.tableColsState.put(t)) : r === "del" ? (t.keys = t.keys.filter((e) => e !== n), await ve.tableColsState.put(t)) : r === "delAll" ? (t.keys = n, await ve.tableColsState.put(t)) : r === "selectAll" && await ve.tableColsState.where({ page: a }).delete() : r === "add" ? await ve.tableColsState.add({ page: a, keys: [n] }) : r === "delAll" && await ve.tableColsState.add({ page: a, keys: n });
|
|
2135
2133
|
} catch (t) {
|
|
2136
|
-
throw console.error(
|
|
2134
|
+
throw console.error(`处理表格列状态时出错 (page: ${a}, key: ${n}, state: ${r}):`, t), t;
|
|
2137
2135
|
}
|
|
2138
2136
|
}
|
|
2139
|
-
async function
|
|
2137
|
+
async function Zl(a, n, r) {
|
|
2140
2138
|
Ke(a);
|
|
2141
2139
|
try {
|
|
2142
|
-
const t =
|
|
2143
|
-
|
|
2144
|
-
);
|
|
2145
|
-
return await Promise.all(t), "batch update success";
|
|
2140
|
+
const t = await ve.tableWidths.where({ page: a, key: n }).first();
|
|
2141
|
+
return t ? (await ve.tableWidths.put({ ...t, width: r }), "update success") : (await ve.tableWidths.add({ page: a, key: n, width: r }), "add success");
|
|
2146
2142
|
} catch (t) {
|
|
2147
|
-
throw console.error(
|
|
2143
|
+
throw console.error(`保存表格项设置信息时出错 (page: ${a}, key: ${n}):`, t), t;
|
|
2148
2144
|
}
|
|
2149
2145
|
}
|
|
2150
|
-
async function
|
|
2146
|
+
async function Jl(a) {
|
|
2151
2147
|
Ke(a);
|
|
2152
2148
|
try {
|
|
2153
|
-
return await
|
|
2154
|
-
} catch (
|
|
2155
|
-
throw console.error(`获取表格项设置信息时出错 (page: ${a}):`,
|
|
2149
|
+
return await ve.tableWidths.where({ page: a }).toArray();
|
|
2150
|
+
} catch (n) {
|
|
2151
|
+
throw console.error(`获取表格项设置信息时出错 (page: ${a}):`, n), n;
|
|
2156
2152
|
}
|
|
2157
2153
|
}
|
|
2158
|
-
async function
|
|
2154
|
+
async function Kl(a) {
|
|
2159
2155
|
Ke(a);
|
|
2160
2156
|
try {
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2157
|
+
const n = await ve.tableColsState.where({ page: a }).toArray();
|
|
2158
|
+
return !n || n.length === 0 ? [] : n[0].keys;
|
|
2159
|
+
} catch (n) {
|
|
2160
|
+
throw console.error(`获取表格列状态时出错 (page: ${a}):`, n), n;
|
|
2161
|
+
}
|
|
2162
|
+
}
|
|
2163
|
+
async function er(a) {
|
|
2164
|
+
Ke(a);
|
|
2165
|
+
try {
|
|
2166
|
+
return await ve.transaction("rw", ve.tableWidths, ve.pageInfo, ve.sorts, ve.tableColsState, async () => {
|
|
2167
|
+
await Promise.all([
|
|
2168
|
+
ve.tableWidths.where({ page: a }).delete(),
|
|
2169
|
+
ve.pageInfo.where({ page: a }).delete(),
|
|
2170
|
+
ve.sorts.where({ page: a }).delete(),
|
|
2171
|
+
ve.tableColsState.where({ page: a }).delete()
|
|
2172
|
+
]);
|
|
2173
2173
|
});
|
|
2174
|
-
} catch (
|
|
2175
|
-
throw console.error(`删除页面"${a}"的表格设置信息时出错:`,
|
|
2174
|
+
} catch (n) {
|
|
2175
|
+
throw console.error(`删除页面"${a}"的表格设置信息时出错:`, n), n;
|
|
2176
2176
|
}
|
|
2177
2177
|
}
|
|
2178
|
-
async function
|
|
2178
|
+
async function tr({ page: a, size: n }) {
|
|
2179
2179
|
Ke(a);
|
|
2180
2180
|
try {
|
|
2181
|
-
const r = await
|
|
2182
|
-
return r ? (await
|
|
2181
|
+
const r = await ve.pageInfo.where({ page: a }).first();
|
|
2182
|
+
return r ? (await ve.pageInfo.put({ ...r, size: n }), "update success") : (await ve.pageInfo.add({ page: a, size: n }), "add success");
|
|
2183
2183
|
} catch (r) {
|
|
2184
|
-
throw console.error(`保存分页条数时出错 (page: ${a}
|
|
2184
|
+
throw console.error(`保存分页条数时出错 (page: ${a}):`, r), r;
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
|
-
async function
|
|
2187
|
+
async function lr(a) {
|
|
2188
2188
|
Ke(a);
|
|
2189
2189
|
try {
|
|
2190
|
-
const
|
|
2191
|
-
return (
|
|
2192
|
-
} catch (
|
|
2193
|
-
throw console.error(`获取分页条数时出错 (page: ${a}):`,
|
|
2190
|
+
const n = await ve.pageInfo.where({ page: a }).first();
|
|
2191
|
+
return (n == null ? void 0 : n.size) || 20;
|
|
2192
|
+
} catch (n) {
|
|
2193
|
+
throw console.error(`获取分页条数时出错 (page: ${a}):`, n), n;
|
|
2194
2194
|
}
|
|
2195
2195
|
}
|
|
2196
|
-
async function
|
|
2196
|
+
async function rr(a, n) {
|
|
2197
2197
|
Ke(a);
|
|
2198
2198
|
try {
|
|
2199
|
-
const r = await
|
|
2200
|
-
return r ? (await
|
|
2199
|
+
const r = await ve.sorts.where({ page: a }).first();
|
|
2200
|
+
return r ? (await ve.sorts.put({ ...r, keys: n }), "update success") : (await ve.sorts.add({ page: a, keys: n }), "add success");
|
|
2201
2201
|
} catch (r) {
|
|
2202
2202
|
throw console.error(`保存表格字段顺序时出错 (page: ${a}):`, r), r;
|
|
2203
2203
|
}
|
|
2204
2204
|
}
|
|
2205
|
-
async function
|
|
2205
|
+
async function ar(a) {
|
|
2206
2206
|
Ke(a);
|
|
2207
2207
|
try {
|
|
2208
|
-
const
|
|
2209
|
-
return (
|
|
2210
|
-
} catch (
|
|
2211
|
-
throw console.error(`获取表格字段顺序时出错 (page: ${a}):`,
|
|
2208
|
+
const n = await ve.sorts.where({ page: a }).first();
|
|
2209
|
+
return (n == null ? void 0 : n.keys) || [];
|
|
2210
|
+
} catch (n) {
|
|
2211
|
+
throw console.error(`获取表格字段顺序时出错 (page: ${a}):`, n), n;
|
|
2212
2212
|
}
|
|
2213
2213
|
}
|
|
2214
|
-
const
|
|
2214
|
+
const or = {
|
|
2215
2215
|
style: { margin: "10px" },
|
|
2216
2216
|
class: "allcheck"
|
|
2217
|
-
},
|
|
2217
|
+
}, nr = {
|
|
2218
2218
|
id: "cols",
|
|
2219
2219
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2220
|
-
},
|
|
2220
|
+
}, ur = ["textContent"], sr = {
|
|
2221
2221
|
__name: "columns-setting",
|
|
2222
2222
|
props: /* @__PURE__ */ Xe({
|
|
2223
2223
|
tuid: {
|
|
@@ -2228,30 +2228,23 @@ const ur = {
|
|
|
2228
2228
|
modelValue: { required: !0 },
|
|
2229
2229
|
modelModifiers: {}
|
|
2230
2230
|
}),
|
|
2231
|
-
emits: /* @__PURE__ */ Xe(["setting-drag-end"], ["update:modelValue"]),
|
|
2232
|
-
setup(a, { emit:
|
|
2233
|
-
const r = a, t =
|
|
2234
|
-
|
|
2235
|
-
try {
|
|
2236
|
-
await St(r.tuid, c, { showCol: u });
|
|
2237
|
-
} catch ($) {
|
|
2238
|
-
console.error("列显示状态保存信息时出错:", $), Ge({
|
|
2239
|
-
type: "error",
|
|
2240
|
-
message: "列显示状态保存信息失败!"
|
|
2241
|
-
});
|
|
2242
|
-
}
|
|
2231
|
+
emits: /* @__PURE__ */ Xe(["setting-drag-end", "select-all"], ["update:modelValue"]),
|
|
2232
|
+
setup(a, { emit: n }) {
|
|
2233
|
+
const r = a, t = n, e = oe([]), o = Qe(a, "modelValue"), E = async (s, c) => {
|
|
2234
|
+
s ? (o.value[c].showCol = !0, await ht(r.tuid, c, "del")) : (o.value[c].showCol = !1, await ht(r.tuid, c, "add"));
|
|
2243
2235
|
}, v = () => {
|
|
2244
|
-
const
|
|
2245
|
-
if (
|
|
2246
|
-
let c =
|
|
2236
|
+
const s = document.getElementById("cols");
|
|
2237
|
+
if (s) {
|
|
2238
|
+
let c = Rt.create(s, {
|
|
2247
2239
|
animation: 150,
|
|
2248
2240
|
filter: ".filtered",
|
|
2249
2241
|
sort: !0,
|
|
2250
2242
|
onEnd: async () => {
|
|
2251
|
-
let
|
|
2252
|
-
console.log($);
|
|
2243
|
+
let _ = c.toArray();
|
|
2253
2244
|
try {
|
|
2254
|
-
|
|
2245
|
+
rr(r.tuid, _).then((V) => {
|
|
2246
|
+
t("setting-drag-end");
|
|
2247
|
+
});
|
|
2255
2248
|
} catch (V) {
|
|
2256
2249
|
console.error("列排序保存信息时出错:", V), Ge({
|
|
2257
2250
|
type: "error",
|
|
@@ -2263,36 +2256,41 @@ const ur = {
|
|
|
2263
2256
|
}
|
|
2264
2257
|
}, F = async () => {
|
|
2265
2258
|
try {
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2259
|
+
e.value.forEach((s) => {
|
|
2260
|
+
s.showCol = !0;
|
|
2261
|
+
}), ht(r.tuid, [], "selectAll").then((s) => {
|
|
2262
|
+
t("select-all");
|
|
2263
|
+
});
|
|
2264
|
+
} catch (s) {
|
|
2265
|
+
console.error("全选列保存信息时出错:", s), Ge({
|
|
2270
2266
|
type: "error",
|
|
2271
2267
|
message: "全选列保存信息失败!"
|
|
2272
2268
|
});
|
|
2273
2269
|
}
|
|
2274
2270
|
}, f = async () => {
|
|
2275
2271
|
try {
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
c.showCol = !1
|
|
2279
|
-
}),
|
|
2280
|
-
|
|
2281
|
-
|
|
2272
|
+
let s = e.value.filter((c) => !c.alwaysShow && c.value != "control" && c.value != "hidden");
|
|
2273
|
+
s.forEach((c) => {
|
|
2274
|
+
c.showCol = !1;
|
|
2275
|
+
}), ht(r.tuid, s.map((c) => c.value), "delAll").then((c) => {
|
|
2276
|
+
t("select-all");
|
|
2277
|
+
});
|
|
2278
|
+
} catch (s) {
|
|
2279
|
+
console.error("清除列保存信息时出错:", s), Ge({
|
|
2282
2280
|
type: "error",
|
|
2283
2281
|
message: "清除列保存信息失败!"
|
|
2284
2282
|
});
|
|
2285
2283
|
}
|
|
2286
2284
|
}, i = () => {
|
|
2287
|
-
|
|
2285
|
+
qt.confirm("确定要复位吗?", "提示", {
|
|
2288
2286
|
confirmButtonText: "确定",
|
|
2289
2287
|
cancelButtonText: "取消",
|
|
2290
2288
|
type: "warning"
|
|
2291
2289
|
}).then(() => {
|
|
2292
|
-
|
|
2290
|
+
er(r.tuid).then((s) => {
|
|
2293
2291
|
window.location.reload();
|
|
2294
|
-
}).catch((
|
|
2295
|
-
console.error("复位操作出错:",
|
|
2292
|
+
}).catch((s) => {
|
|
2293
|
+
console.error("复位操作出错:", s), Ge({
|
|
2296
2294
|
type: "info",
|
|
2297
2295
|
message: "复位失败!"
|
|
2298
2296
|
});
|
|
@@ -2300,22 +2298,22 @@ const ur = {
|
|
|
2300
2298
|
});
|
|
2301
2299
|
};
|
|
2302
2300
|
return ut(async () => {
|
|
2303
|
-
e.value = Object.entries(o.value).filter(([,
|
|
2301
|
+
e.value = Object.entries(o.value).filter(([, s]) => s.visible !== !1).filter(([, s]) => s.type != "hidden").map(([s, c]) => ({
|
|
2304
2302
|
label: c.label,
|
|
2305
|
-
value:
|
|
2303
|
+
value: s,
|
|
2306
2304
|
alwaysShow: c.alwaysShow,
|
|
2307
2305
|
showCol: c.showCol !== !1,
|
|
2308
2306
|
sort: c.sort || 0,
|
|
2309
2307
|
width: c == null ? void 0 : c.width
|
|
2310
|
-
})).sort((
|
|
2311
|
-
}), (
|
|
2312
|
-
const
|
|
2308
|
+
})).sort((s, c) => s.sort - c.sort), v();
|
|
2309
|
+
}), (s, c) => {
|
|
2310
|
+
const _ = H("el-divider"), V = H("el-alert"), j = H("el-checkbox");
|
|
2313
2311
|
return p(), I("div", null, [
|
|
2314
|
-
Q("div",
|
|
2312
|
+
Q("div", or, [
|
|
2315
2313
|
Q("a", { onClick: F }, "全选"),
|
|
2316
|
-
K(
|
|
2314
|
+
K(_, { direction: "vertical" }),
|
|
2317
2315
|
Q("a", { onClick: f }, "全不选"),
|
|
2318
|
-
K(
|
|
2316
|
+
K(_, { direction: "vertical" }),
|
|
2319
2317
|
Q("a", { onClick: i }, "复位")
|
|
2320
2318
|
]),
|
|
2321
2319
|
K(V, {
|
|
@@ -2326,24 +2324,24 @@ const ur = {
|
|
|
2326
2324
|
style: { "margin-bottom": "10px" }
|
|
2327
2325
|
}),
|
|
2328
2326
|
Q("div", null, [
|
|
2329
|
-
Q("div",
|
|
2330
|
-
(p(!0), I(J, null,
|
|
2331
|
-
modelValue:
|
|
2332
|
-
"onUpdate:modelValue": (L) =>
|
|
2333
|
-
"data-id":
|
|
2334
|
-
class:
|
|
2335
|
-
onChange: (L) =>
|
|
2327
|
+
Q("div", nr, [
|
|
2328
|
+
(p(!0), I(J, null, N(e.value, (R) => (p(), B(j, {
|
|
2329
|
+
modelValue: R.showCol,
|
|
2330
|
+
"onUpdate:modelValue": (L) => R.showCol = L,
|
|
2331
|
+
"data-id": R.value,
|
|
2332
|
+
class: Bt(["check-box-hover", R.value == "control" ? "filtered" : ""]),
|
|
2333
|
+
onChange: (L) => E(L, R.value),
|
|
2336
2334
|
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" },
|
|
2337
|
-
value:
|
|
2338
|
-
title:
|
|
2339
|
-
disabled:
|
|
2340
|
-
key:
|
|
2335
|
+
value: R.value,
|
|
2336
|
+
title: R.label,
|
|
2337
|
+
disabled: R.alwaysShow,
|
|
2338
|
+
key: R.value
|
|
2341
2339
|
}, {
|
|
2342
2340
|
default: D(() => [
|
|
2343
2341
|
Q("span", {
|
|
2344
|
-
textContent:
|
|
2342
|
+
textContent: De(R.label),
|
|
2345
2343
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2346
|
-
}, null, 8,
|
|
2344
|
+
}, null, 8, ur)
|
|
2347
2345
|
]),
|
|
2348
2346
|
_: 2
|
|
2349
2347
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2352,7 +2350,7 @@ const ur = {
|
|
|
2352
2350
|
]);
|
|
2353
2351
|
};
|
|
2354
2352
|
}
|
|
2355
|
-
},
|
|
2353
|
+
}, ir = /* @__PURE__ */ Ze(sr, [["__scopeId", "data-v-adb08f30"]]), dr = { class: "title" }, cr = { class: "content" }, fr = {
|
|
2356
2354
|
__name: "g-cell-toopTip",
|
|
2357
2355
|
props: {
|
|
2358
2356
|
content: {
|
|
@@ -2365,14 +2363,14 @@ const ur = {
|
|
|
2365
2363
|
}
|
|
2366
2364
|
},
|
|
2367
2365
|
setup(a) {
|
|
2368
|
-
const
|
|
2369
|
-
|
|
2366
|
+
const n = a, r = () => {
|
|
2367
|
+
n.content ? (navigator.clipboard.writeText(n.content), Ge.success("复制成功")) : Ge.warning("没有内容可复制");
|
|
2370
2368
|
};
|
|
2371
2369
|
return (t, e) => (p(), I("div", {
|
|
2372
2370
|
class: "g-cell-toopTip",
|
|
2373
|
-
style: qe({ width:
|
|
2371
|
+
style: qe({ width: n.column.width + "px" })
|
|
2374
2372
|
}, [
|
|
2375
|
-
Q("div",
|
|
2373
|
+
Q("div", dr, [
|
|
2376
2374
|
e[0] || (e[0] = Q("span", { class: "title-text" }, "内容", -1)),
|
|
2377
2375
|
Q("span", {
|
|
2378
2376
|
class: "copy-btn",
|
|
@@ -2382,13 +2380,13 @@ const ur = {
|
|
|
2382
2380
|
K(P(vl))
|
|
2383
2381
|
])
|
|
2384
2382
|
]),
|
|
2385
|
-
Q("div",
|
|
2383
|
+
Q("div", cr, De(n.content), 1)
|
|
2386
2384
|
], 4));
|
|
2387
2385
|
}
|
|
2388
|
-
},
|
|
2389
|
-
var
|
|
2386
|
+
}, vr = /* @__PURE__ */ Ze(fr, [["__scopeId", "data-v-f28912da"]]);
|
|
2387
|
+
var Pt = { exports: {} }, jt = { exports: {} };
|
|
2390
2388
|
(function() {
|
|
2391
|
-
var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
2389
|
+
var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = {
|
|
2392
2390
|
// Bit-wise rotation left
|
|
2393
2391
|
rotl: function(r, t) {
|
|
2394
2392
|
return r << t | r >>> 32 - t;
|
|
@@ -2400,9 +2398,9 @@ var Nt = { exports: {} }, jt = { exports: {} };
|
|
|
2400
2398
|
// Swap big-endian to little-endian and vice versa
|
|
2401
2399
|
endian: function(r) {
|
|
2402
2400
|
if (r.constructor == Number)
|
|
2403
|
-
return
|
|
2401
|
+
return n.rotl(r, 8) & 16711935 | n.rotl(r, 24) & 4278255360;
|
|
2404
2402
|
for (var t = 0; t < r.length; t++)
|
|
2405
|
-
r[t] =
|
|
2403
|
+
r[t] = n.endian(r[t]);
|
|
2406
2404
|
return r;
|
|
2407
2405
|
},
|
|
2408
2406
|
// Generate an array of any length of random bytes
|
|
@@ -2438,8 +2436,8 @@ var Nt = { exports: {} }, jt = { exports: {} };
|
|
|
2438
2436
|
// Convert a byte array to a base-64 string
|
|
2439
2437
|
bytesToBase64: function(r) {
|
|
2440
2438
|
for (var t = [], e = 0; e < r.length; e += 3)
|
|
2441
|
-
for (var o = r[e] << 16 | r[e + 1] << 8 | r[e + 2],
|
|
2442
|
-
e * 8 +
|
|
2439
|
+
for (var o = r[e] << 16 | r[e + 1] << 8 | r[e + 2], E = 0; E < 4; E++)
|
|
2440
|
+
e * 8 + E * 6 <= r.length * 8 ? t.push(a.charAt(o >>> 6 * (3 - E) & 63)) : t.push("=");
|
|
2443
2441
|
return t.join("");
|
|
2444
2442
|
},
|
|
2445
2443
|
// Convert a base-64 string to a byte array
|
|
@@ -2450,90 +2448,90 @@ var Nt = { exports: {} }, jt = { exports: {} };
|
|
|
2450
2448
|
return t;
|
|
2451
2449
|
}
|
|
2452
2450
|
};
|
|
2453
|
-
jt.exports =
|
|
2451
|
+
jt.exports = n;
|
|
2454
2452
|
})();
|
|
2455
|
-
var
|
|
2453
|
+
var pr = jt.exports, kt = {
|
|
2456
2454
|
// UTF-8 encoding
|
|
2457
2455
|
utf8: {
|
|
2458
2456
|
// Convert a string to a byte array
|
|
2459
2457
|
stringToBytes: function(a) {
|
|
2460
|
-
return
|
|
2458
|
+
return kt.bin.stringToBytes(unescape(encodeURIComponent(a)));
|
|
2461
2459
|
},
|
|
2462
2460
|
// Convert a byte array to a string
|
|
2463
2461
|
bytesToString: function(a) {
|
|
2464
|
-
return decodeURIComponent(escape(
|
|
2462
|
+
return decodeURIComponent(escape(kt.bin.bytesToString(a)));
|
|
2465
2463
|
}
|
|
2466
2464
|
},
|
|
2467
2465
|
// Binary encoding
|
|
2468
2466
|
bin: {
|
|
2469
2467
|
// Convert a string to a byte array
|
|
2470
2468
|
stringToBytes: function(a) {
|
|
2471
|
-
for (var
|
|
2472
|
-
|
|
2473
|
-
return
|
|
2469
|
+
for (var n = [], r = 0; r < a.length; r++)
|
|
2470
|
+
n.push(a.charCodeAt(r) & 255);
|
|
2471
|
+
return n;
|
|
2474
2472
|
},
|
|
2475
2473
|
// Convert a byte array to a string
|
|
2476
2474
|
bytesToString: function(a) {
|
|
2477
|
-
for (var
|
|
2478
|
-
|
|
2479
|
-
return
|
|
2475
|
+
for (var n = [], r = 0; r < a.length; r++)
|
|
2476
|
+
n.push(String.fromCharCode(a[r]));
|
|
2477
|
+
return n.join("");
|
|
2480
2478
|
}
|
|
2481
2479
|
}
|
|
2482
|
-
},
|
|
2480
|
+
}, xt = kt;
|
|
2483
2481
|
/*!
|
|
2484
2482
|
* Determine if an object is a Buffer
|
|
2485
2483
|
*
|
|
2486
2484
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
2487
2485
|
* @license MIT
|
|
2488
2486
|
*/
|
|
2489
|
-
var
|
|
2490
|
-
return a != null && (
|
|
2487
|
+
var mr = function(a) {
|
|
2488
|
+
return a != null && (Nt(a) || hr(a) || !!a._isBuffer);
|
|
2491
2489
|
};
|
|
2492
|
-
function
|
|
2490
|
+
function Nt(a) {
|
|
2493
2491
|
return !!a.constructor && typeof a.constructor.isBuffer == "function" && a.constructor.isBuffer(a);
|
|
2494
2492
|
}
|
|
2495
|
-
function
|
|
2496
|
-
return typeof a.readFloatLE == "function" && typeof a.slice == "function" &&
|
|
2493
|
+
function hr(a) {
|
|
2494
|
+
return typeof a.readFloatLE == "function" && typeof a.slice == "function" && Nt(a.slice(0, 0));
|
|
2497
2495
|
}
|
|
2498
2496
|
(function() {
|
|
2499
|
-
var a =
|
|
2500
|
-
o.constructor == String ?
|
|
2501
|
-
for (var v = a.bytesToWords(o), F = o.length * 8, f = 1732584193, i = -271733879,
|
|
2502
|
-
v[
|
|
2497
|
+
var a = pr, n = xt.utf8, r = mr, t = xt.bin, e = function(o, E) {
|
|
2498
|
+
o.constructor == String ? E && E.encoding === "binary" ? o = t.stringToBytes(o) : o = n.stringToBytes(o) : r(o) ? o = Array.prototype.slice.call(o, 0) : !Array.isArray(o) && o.constructor !== Uint8Array && (o = o.toString());
|
|
2499
|
+
for (var v = a.bytesToWords(o), F = o.length * 8, f = 1732584193, i = -271733879, s = -1732584194, c = 271733878, _ = 0; _ < v.length; _++)
|
|
2500
|
+
v[_] = (v[_] << 8 | v[_] >>> 24) & 16711935 | (v[_] << 24 | v[_] >>> 8) & 4278255360;
|
|
2503
2501
|
v[F >>> 5] |= 128 << F % 32, v[(F + 64 >>> 9 << 4) + 14] = F;
|
|
2504
|
-
for (var V = e._ff,
|
|
2505
|
-
var
|
|
2506
|
-
f = V(f, i,
|
|
2502
|
+
for (var V = e._ff, j = e._gg, R = e._hh, L = e._ii, _ = 0; _ < v.length; _ += 16) {
|
|
2503
|
+
var te = f, me = i, ie = s, ce = c;
|
|
2504
|
+
f = V(f, i, s, c, v[_ + 0], 7, -680876936), c = V(c, f, i, s, v[_ + 1], 12, -389564586), s = V(s, c, f, i, v[_ + 2], 17, 606105819), i = V(i, s, c, f, v[_ + 3], 22, -1044525330), f = V(f, i, s, c, v[_ + 4], 7, -176418897), c = V(c, f, i, s, v[_ + 5], 12, 1200080426), s = V(s, c, f, i, v[_ + 6], 17, -1473231341), i = V(i, s, c, f, v[_ + 7], 22, -45705983), f = V(f, i, s, c, v[_ + 8], 7, 1770035416), c = V(c, f, i, s, v[_ + 9], 12, -1958414417), s = V(s, c, f, i, v[_ + 10], 17, -42063), i = V(i, s, c, f, v[_ + 11], 22, -1990404162), f = V(f, i, s, c, v[_ + 12], 7, 1804603682), c = V(c, f, i, s, v[_ + 13], 12, -40341101), s = V(s, c, f, i, v[_ + 14], 17, -1502002290), i = V(i, s, c, f, v[_ + 15], 22, 1236535329), f = j(f, i, s, c, v[_ + 1], 5, -165796510), c = j(c, f, i, s, v[_ + 6], 9, -1069501632), s = j(s, c, f, i, v[_ + 11], 14, 643717713), i = j(i, s, c, f, v[_ + 0], 20, -373897302), f = j(f, i, s, c, v[_ + 5], 5, -701558691), c = j(c, f, i, s, v[_ + 10], 9, 38016083), s = j(s, c, f, i, v[_ + 15], 14, -660478335), i = j(i, s, c, f, v[_ + 4], 20, -405537848), f = j(f, i, s, c, v[_ + 9], 5, 568446438), c = j(c, f, i, s, v[_ + 14], 9, -1019803690), s = j(s, c, f, i, v[_ + 3], 14, -187363961), i = j(i, s, c, f, v[_ + 8], 20, 1163531501), f = j(f, i, s, c, v[_ + 13], 5, -1444681467), c = j(c, f, i, s, v[_ + 2], 9, -51403784), s = j(s, c, f, i, v[_ + 7], 14, 1735328473), i = j(i, s, c, f, v[_ + 12], 20, -1926607734), f = R(f, i, s, c, v[_ + 5], 4, -378558), c = R(c, f, i, s, v[_ + 8], 11, -2022574463), s = R(s, c, f, i, v[_ + 11], 16, 1839030562), i = R(i, s, c, f, v[_ + 14], 23, -35309556), f = R(f, i, s, c, v[_ + 1], 4, -1530992060), c = R(c, f, i, s, v[_ + 4], 11, 1272893353), s = R(s, c, f, i, v[_ + 7], 16, -155497632), i = R(i, s, c, f, v[_ + 10], 23, -1094730640), f = R(f, i, s, c, v[_ + 13], 4, 681279174), c = R(c, f, i, s, v[_ + 0], 11, -358537222), s = R(s, c, f, i, v[_ + 3], 16, -722521979), i = R(i, s, c, f, v[_ + 6], 23, 76029189), f = R(f, i, s, c, v[_ + 9], 4, -640364487), c = R(c, f, i, s, v[_ + 12], 11, -421815835), s = R(s, c, f, i, v[_ + 15], 16, 530742520), i = R(i, s, c, f, v[_ + 2], 23, -995338651), f = L(f, i, s, c, v[_ + 0], 6, -198630844), c = L(c, f, i, s, v[_ + 7], 10, 1126891415), s = L(s, c, f, i, v[_ + 14], 15, -1416354905), i = L(i, s, c, f, v[_ + 5], 21, -57434055), f = L(f, i, s, c, v[_ + 12], 6, 1700485571), c = L(c, f, i, s, v[_ + 3], 10, -1894986606), s = L(s, c, f, i, v[_ + 10], 15, -1051523), i = L(i, s, c, f, v[_ + 1], 21, -2054922799), f = L(f, i, s, c, v[_ + 8], 6, 1873313359), c = L(c, f, i, s, v[_ + 15], 10, -30611744), s = L(s, c, f, i, v[_ + 6], 15, -1560198380), i = L(i, s, c, f, v[_ + 13], 21, 1309151649), f = L(f, i, s, c, v[_ + 4], 6, -145523070), c = L(c, f, i, s, v[_ + 11], 10, -1120210379), s = L(s, c, f, i, v[_ + 2], 15, 718787259), i = L(i, s, c, f, v[_ + 9], 21, -343485551), f = f + te >>> 0, i = i + me >>> 0, s = s + ie >>> 0, c = c + ce >>> 0;
|
|
2507
2505
|
}
|
|
2508
|
-
return a.endian([f, i,
|
|
2506
|
+
return a.endian([f, i, s, c]);
|
|
2509
2507
|
};
|
|
2510
|
-
e._ff = function(o,
|
|
2511
|
-
var c = o + (
|
|
2512
|
-
return (c << i | c >>> 32 - i) +
|
|
2513
|
-
}, e._gg = function(o,
|
|
2514
|
-
var c = o + (
|
|
2515
|
-
return (c << i | c >>> 32 - i) +
|
|
2516
|
-
}, e._hh = function(o,
|
|
2517
|
-
var c = o + (
|
|
2518
|
-
return (c << i | c >>> 32 - i) +
|
|
2519
|
-
}, e._ii = function(o,
|
|
2520
|
-
var c = o + (v ^ (
|
|
2521
|
-
return (c << i | c >>> 32 - i) +
|
|
2522
|
-
}, e._blocksize = 16, e._digestsize = 16,
|
|
2508
|
+
e._ff = function(o, E, v, F, f, i, s) {
|
|
2509
|
+
var c = o + (E & v | ~E & F) + (f >>> 0) + s;
|
|
2510
|
+
return (c << i | c >>> 32 - i) + E;
|
|
2511
|
+
}, e._gg = function(o, E, v, F, f, i, s) {
|
|
2512
|
+
var c = o + (E & F | v & ~F) + (f >>> 0) + s;
|
|
2513
|
+
return (c << i | c >>> 32 - i) + E;
|
|
2514
|
+
}, e._hh = function(o, E, v, F, f, i, s) {
|
|
2515
|
+
var c = o + (E ^ v ^ F) + (f >>> 0) + s;
|
|
2516
|
+
return (c << i | c >>> 32 - i) + E;
|
|
2517
|
+
}, e._ii = function(o, E, v, F, f, i, s) {
|
|
2518
|
+
var c = o + (v ^ (E | ~F)) + (f >>> 0) + s;
|
|
2519
|
+
return (c << i | c >>> 32 - i) + E;
|
|
2520
|
+
}, e._blocksize = 16, e._digestsize = 16, Pt.exports = function(o, E) {
|
|
2523
2521
|
if (o == null)
|
|
2524
2522
|
throw new Error("Illegal argument " + o);
|
|
2525
|
-
var v = a.wordsToBytes(e(o,
|
|
2526
|
-
return
|
|
2523
|
+
var v = a.wordsToBytes(e(o, E));
|
|
2524
|
+
return E && E.asBytes ? v : E && E.asString ? t.bytesToString(v) : a.bytesToHex(v);
|
|
2527
2525
|
};
|
|
2528
2526
|
})();
|
|
2529
|
-
var
|
|
2530
|
-
const
|
|
2527
|
+
var yr = Pt.exports;
|
|
2528
|
+
const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "flex", "margin-top": "-2px" } }, wr = { style: { display: "flex", flex: "1" } }, Er = {
|
|
2531
2529
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
2532
2530
|
id: "table-form"
|
|
2533
|
-
},
|
|
2531
|
+
}, _r = { key: 1 }, kr = { style: { display: "flex" } }, Cr = { style: { display: "flex", flex: "1" } }, Dr = { class: "g-table-container" }, Sr = {
|
|
2534
2532
|
key: 0,
|
|
2535
2533
|
class: "table-query-container"
|
|
2536
|
-
},
|
|
2534
|
+
}, Mr = { class: "table-container" }, Tr = ["innerHTML"], Fr = /* @__PURE__ */ Object.assign({
|
|
2537
2535
|
name: "g-table",
|
|
2538
2536
|
inheritAttrs: !1
|
|
2539
2537
|
}, {
|
|
@@ -2551,11 +2549,11 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2551
2549
|
"download",
|
|
2552
2550
|
"row-save"
|
|
2553
2551
|
], ["update:modelValue"]),
|
|
2554
|
-
setup(a, { expose:
|
|
2555
|
-
var Ye, st, it, dt, ct, ft,
|
|
2556
|
-
const t = r, e = Qe(a, "modelValue"), o =
|
|
2557
|
-
|
|
2558
|
-
const i =
|
|
2552
|
+
setup(a, { expose: n, emit: r }) {
|
|
2553
|
+
var Ye, st, it, dt, ct, ft, vt;
|
|
2554
|
+
const t = r, e = Qe(a, "modelValue"), o = Mt("options"), E = oe({}), v = oe(null), F = oe(null), f = Object.entries(e.value).filter(([l, d]) => (d == null ? void 0 : d.search) !== void 0).map(([l, d]) => [l, d.value]);
|
|
2555
|
+
E.value = Object.fromEntries(f);
|
|
2556
|
+
const i = oe(!1), s = [
|
|
2559
2557
|
"type",
|
|
2560
2558
|
"index",
|
|
2561
2559
|
"label",
|
|
@@ -2584,7 +2582,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2584
2582
|
"filter-multiple",
|
|
2585
2583
|
"filter-method",
|
|
2586
2584
|
"filtered-value"
|
|
2587
|
-
], c =
|
|
2585
|
+
], c = oe([]), _ = Tt(), V = oe({}), j = oe([]), R = oe(null), L = oe(""), te = oe("/"), me = oe({
|
|
2588
2586
|
autoWatch: !1,
|
|
2589
2587
|
data: [],
|
|
2590
2588
|
border: !0,
|
|
@@ -2593,37 +2591,35 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2593
2591
|
fit: !1,
|
|
2594
2592
|
type: "hidden",
|
|
2595
2593
|
load: async () => {
|
|
2596
|
-
e.value.table.page.pageSize = await
|
|
2594
|
+
e.value.table.page.pageSize = await lr(te.value);
|
|
2597
2595
|
let { currentPage: l, pageSize: d } = e.value.table.page;
|
|
2598
2596
|
try {
|
|
2599
2597
|
t(
|
|
2600
2598
|
"load",
|
|
2601
|
-
{ currentPage: l, pageSize: d, ...
|
|
2602
|
-
(m = [],
|
|
2599
|
+
{ currentPage: l, pageSize: d, ...E.value },
|
|
2600
|
+
(m = [], b = 0, { fields: A = [], sums: Y = {} } = {}) => {
|
|
2603
2601
|
var W;
|
|
2604
2602
|
if (!Array.isArray(m)) {
|
|
2605
2603
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ge.error("数据加载失败,请检查数据格式。");
|
|
2606
2604
|
return;
|
|
2607
2605
|
}
|
|
2608
|
-
if (typeof
|
|
2606
|
+
if (typeof b != "number") {
|
|
2609
2607
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ge.error("数据加载失败,请检查数据格式。");
|
|
2610
2608
|
return;
|
|
2611
2609
|
}
|
|
2612
|
-
e.value.table.data = m, ((W = e.value.control) == null ? void 0 : W.add(e).inline) === !0 && e.value.table.data.unshift(
|
|
2610
|
+
e.value.table.data = m, ((W = e.value.control) == null ? void 0 : W.add(e).inline) === !0 && e.value.table.data.unshift(R.value), e.value.table.page.total = b, j.value = A, V.value = Y, $e(), L.value = Math.random().toString(36).substring(2);
|
|
2613
2611
|
},
|
|
2614
|
-
|
|
2612
|
+
R.value
|
|
2615
2613
|
);
|
|
2616
2614
|
} catch (m) {
|
|
2617
2615
|
console.error("触发 load 事件时出现错误:", m), Ge.error("数据加载时出现错误,请稍后重试。");
|
|
2618
2616
|
}
|
|
2619
2617
|
},
|
|
2620
2618
|
onHeaderDragend: (l, d, m) => {
|
|
2621
|
-
|
|
2622
|
-
width: l
|
|
2623
|
-
});
|
|
2619
|
+
Zl(te.value, m.property, l);
|
|
2624
2620
|
},
|
|
2625
2621
|
onRowDblclick: (l, d, m) => {
|
|
2626
|
-
e.value.table.dblclickType == "edit" ?
|
|
2622
|
+
e.value.table.dblclickType == "edit" ? $(l, d, m, e) : e.value.table.dblclickType == "view" ? u(l, d, m, e) : e.value.table.dblclickType == "delete" ? g(l, d, m, e) : e.value.table.dblclickType(l, d, m, e);
|
|
2627
2623
|
},
|
|
2628
2624
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2629
2625
|
page: {
|
|
@@ -2643,21 +2639,21 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2643
2639
|
e.value.table.page.currentPage = l, e.value.table.load();
|
|
2644
2640
|
},
|
|
2645
2641
|
onSizeChange: (l) => {
|
|
2646
|
-
|
|
2642
|
+
tr({ page: te.value, size: l }).then(() => {
|
|
2647
2643
|
e.value.table.page.pageSize = l, e.value.table.load();
|
|
2648
2644
|
});
|
|
2649
2645
|
}
|
|
2650
2646
|
},
|
|
2651
2647
|
dblclickType: "edit",
|
|
2652
2648
|
"summary-method": ({ columns: l, data: d }, m) => m,
|
|
2653
|
-
onSortChange: ({ column: l, prop: d, order: m },
|
|
2649
|
+
onSortChange: ({ column: l, prop: d, order: m }, b) => {
|
|
2654
2650
|
}
|
|
2655
2651
|
});
|
|
2656
2652
|
e.value.table = Ve(
|
|
2657
|
-
|
|
2653
|
+
me.value,
|
|
2658
2654
|
o == null ? void 0 : o.table,
|
|
2659
2655
|
e.value.table,
|
|
2660
|
-
|
|
2656
|
+
_
|
|
2661
2657
|
// 继承父组件的属性
|
|
2662
2658
|
);
|
|
2663
2659
|
const ie = {
|
|
@@ -2669,36 +2665,36 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2669
2665
|
fixed: "right",
|
|
2670
2666
|
style: { ...(st = (Ye = e.value) == null ? void 0 : Ye.control) == null ? void 0 : st.style },
|
|
2671
2667
|
validate: async (l) => await !0,
|
|
2672
|
-
view: (l, d, m,
|
|
2668
|
+
view: (l, d, m, b) => ({
|
|
2673
2669
|
label: "查看",
|
|
2674
2670
|
text: !0,
|
|
2675
2671
|
type: "success",
|
|
2676
2672
|
mode: "dialog",
|
|
2677
|
-
icon: () =>
|
|
2673
|
+
icon: () => ke(pl),
|
|
2678
2674
|
auth: () => {
|
|
2679
|
-
var
|
|
2680
|
-
return !(((
|
|
2675
|
+
var A;
|
|
2676
|
+
return !(((A = b == null ? void 0 : b.control) == null ? void 0 : A.add(b).inline) === !0 && m === 0);
|
|
2681
2677
|
}
|
|
2682
2678
|
}),
|
|
2683
|
-
edit: (l, d, m,
|
|
2679
|
+
edit: (l, d, m, b) => ({
|
|
2684
2680
|
label: "编辑",
|
|
2685
2681
|
text: !0,
|
|
2686
2682
|
type: "primary",
|
|
2687
2683
|
mode: "dialog",
|
|
2688
|
-
icon: () =>
|
|
2684
|
+
icon: () => ke(ml),
|
|
2689
2685
|
auth: () => {
|
|
2690
|
-
var
|
|
2691
|
-
return ((
|
|
2686
|
+
var A;
|
|
2687
|
+
return ((A = b == null ? void 0 : b.control) == null ? void 0 : A.add(b).inline) !== !0;
|
|
2692
2688
|
}
|
|
2693
2689
|
}),
|
|
2694
|
-
delete: (l, d, m,
|
|
2690
|
+
delete: (l, d, m, b) => ({
|
|
2695
2691
|
text: !0,
|
|
2696
2692
|
label: "删除",
|
|
2697
2693
|
type: "danger",
|
|
2698
|
-
icon: () =>
|
|
2694
|
+
icon: () => ke(Ut),
|
|
2699
2695
|
auth: () => {
|
|
2700
|
-
var
|
|
2701
|
-
return !(((
|
|
2696
|
+
var A;
|
|
2697
|
+
return !(((A = b.control) == null ? void 0 : A.add(b).inline) === !0 && m === 0);
|
|
2702
2698
|
},
|
|
2703
2699
|
dialog: {
|
|
2704
2700
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2710,15 +2706,15 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2710
2706
|
}
|
|
2711
2707
|
}
|
|
2712
2708
|
}),
|
|
2713
|
-
save: (l, d, m,
|
|
2714
|
-
label:
|
|
2709
|
+
save: (l, d, m, b) => ({
|
|
2710
|
+
label: b.control.add(b).inline !== !0 ? "保存" : m === 0 ? "新增" : "保存",
|
|
2715
2711
|
text: !0,
|
|
2716
|
-
icon: () =>
|
|
2717
|
-
type:
|
|
2712
|
+
icon: () => ke(Ot),
|
|
2713
|
+
type: b.control.add(b).inline !== !0 || m === 0 ? "primary" : "success",
|
|
2718
2714
|
sort: -1,
|
|
2719
2715
|
auth: () => {
|
|
2720
|
-
var
|
|
2721
|
-
return ((
|
|
2716
|
+
var A;
|
|
2717
|
+
return ((A = b.control) == null ? void 0 : A.add(b).inline) === !0;
|
|
2722
2718
|
}
|
|
2723
2719
|
}),
|
|
2724
2720
|
add: (l) => ({
|
|
@@ -2727,7 +2723,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2727
2723
|
type: "primary",
|
|
2728
2724
|
mode: "dialog",
|
|
2729
2725
|
inline: !1,
|
|
2730
|
-
icon: () =>
|
|
2726
|
+
icon: () => ke(hl),
|
|
2731
2727
|
auth: () => !0
|
|
2732
2728
|
}),
|
|
2733
2729
|
download: (l) => ({
|
|
@@ -2735,7 +2731,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2735
2731
|
text: !1,
|
|
2736
2732
|
type: "primary",
|
|
2737
2733
|
mode: "dialog",
|
|
2738
|
-
icon: () =>
|
|
2734
|
+
icon: () => ke(Yt),
|
|
2739
2735
|
excelLabel: "下载EXCEL",
|
|
2740
2736
|
auth: () => !0
|
|
2741
2737
|
}),
|
|
@@ -2744,20 +2740,20 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2744
2740
|
text: !1,
|
|
2745
2741
|
type: "primary",
|
|
2746
2742
|
mode: "dialog",
|
|
2747
|
-
icon: () =>
|
|
2743
|
+
icon: () => ke(yl),
|
|
2748
2744
|
auth: () => !0
|
|
2749
2745
|
}),
|
|
2750
|
-
dropdown: (l, d, m,
|
|
2746
|
+
dropdown: (l, d, m, b) => ({
|
|
2751
2747
|
label: "编辑",
|
|
2752
2748
|
operate: "edit",
|
|
2753
2749
|
"split-button": !0,
|
|
2754
2750
|
type: "primary",
|
|
2755
2751
|
size: "small",
|
|
2756
|
-
auth: () => !(
|
|
2752
|
+
auth: () => !(b.control.add(b).inline === !0 && m == 0),
|
|
2757
2753
|
onClick: () => {
|
|
2758
|
-
var
|
|
2759
|
-
let
|
|
2760
|
-
|
|
2754
|
+
var Y;
|
|
2755
|
+
let A = (Y = de(l, d, m, b)) == null ? void 0 : Y.operate;
|
|
2756
|
+
A === "edit" ? $(l, d, m, b) : A === "delete" ? g(l, d, m, b) : A === "view" && u(l, d, m, b);
|
|
2761
2757
|
},
|
|
2762
2758
|
"button-props": { round: !0, plain: !0 }
|
|
2763
2759
|
})
|
|
@@ -2768,43 +2764,43 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2768
2764
|
(it = e.value) == null ? void 0 : it.control
|
|
2769
2765
|
);
|
|
2770
2766
|
const ce = (l, d = !0) => {
|
|
2771
|
-
const m = e.value.control[l],
|
|
2772
|
-
var Le,
|
|
2773
|
-
if (!
|
|
2767
|
+
const m = e.value.control[l], b = d ? (A, Y, W, fe) => {
|
|
2768
|
+
var Le, He, et;
|
|
2769
|
+
if (!A || !Y || W == null)
|
|
2774
2770
|
return console.warn(`merge${l.charAt(0).toUpperCase() + l.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
2775
|
-
const
|
|
2776
|
-
return Ve(
|
|
2777
|
-
} : (
|
|
2778
|
-
var
|
|
2779
|
-
const
|
|
2780
|
-
return Ve(
|
|
2771
|
+
const _e = ((Le = ie[l]) == null ? void 0 : Le.call(ie, A, Y, W, fe)) || {}, Fe = ((et = (He = o == null ? void 0 : o.control) == null ? void 0 : He[l]) == null ? void 0 : et.call(He, A, Y, W, fe)) || {}, Re = (m == null ? void 0 : m(A, Y, W, fe)) || {};
|
|
2772
|
+
return Ve(_e, Fe, Re) || {};
|
|
2773
|
+
} : (A) => {
|
|
2774
|
+
var _e, Fe, Re;
|
|
2775
|
+
const Y = ((_e = ie[l]) == null ? void 0 : _e.call(ie, A)) || {}, W = ((Re = (Fe = o == null ? void 0 : o.control) == null ? void 0 : Fe[l]) == null ? void 0 : Re.call(Fe, A)) || {}, fe = (m == null ? void 0 : m(A)) || {};
|
|
2776
|
+
return Ve(Y, W, fe) || {};
|
|
2781
2777
|
};
|
|
2782
|
-
e.value.control[l] =
|
|
2778
|
+
e.value.control[l] = b;
|
|
2783
2779
|
};
|
|
2784
2780
|
ce("edit"), ce("delete"), ce("view"), ce("save"), ce("add", !1), ce("download", !1), ce("setting", !1);
|
|
2785
|
-
const de = (l, d, m,
|
|
2786
|
-
var fe,
|
|
2781
|
+
const de = (l, d, m, b) => {
|
|
2782
|
+
var fe, _e, Fe, Re, Le, He;
|
|
2787
2783
|
if (!l || !d || m == null)
|
|
2788
2784
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2789
|
-
const
|
|
2790
|
-
return Ve(
|
|
2791
|
-
},
|
|
2785
|
+
const A = ((fe = ie.dropdown) == null ? void 0 : fe.call(ie, l, d, m, b)) || {}, Y = ((Fe = (_e = o == null ? void 0 : o.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Fe.call(_e, l, d, m, b)) || {}, W = ((He = (Le = (Re = e.value) == null ? void 0 : Re.control) == null ? void 0 : Le.dropdown) == null ? void 0 : He.call(Le, l, d, m, b)) || {};
|
|
2786
|
+
return Ve(A, Y, W) || {};
|
|
2787
|
+
}, Ce = {
|
|
2792
2788
|
type: "hidden",
|
|
2793
2789
|
"min-width": 100,
|
|
2794
2790
|
align: "center",
|
|
2795
|
-
formatter: (l, d, m,
|
|
2796
|
-
"tooltip-formatter": ({ row: l, column: d, cellValue: m }) =>
|
|
2791
|
+
formatter: (l, d, m, b) => m,
|
|
2792
|
+
"tooltip-formatter": ({ row: l, column: d, cellValue: m }) => ke(vr, { content: m, column: d })
|
|
2797
2793
|
};
|
|
2798
2794
|
e.value.tableColumns = Ve(
|
|
2799
|
-
|
|
2795
|
+
Ce,
|
|
2800
2796
|
o == null ? void 0 : o.tableColumns,
|
|
2801
2797
|
(dt = e.value) == null ? void 0 : dt.tableColumns
|
|
2802
2798
|
), e.value.form = Ve(
|
|
2803
|
-
|
|
2799
|
+
zt,
|
|
2804
2800
|
o == null ? void 0 : o.form,
|
|
2805
2801
|
(ct = e.value) == null ? void 0 : ct.form
|
|
2806
2802
|
);
|
|
2807
|
-
const
|
|
2803
|
+
const Te = {
|
|
2808
2804
|
type: "hidden",
|
|
2809
2805
|
labelPosition: "right",
|
|
2810
2806
|
style: {
|
|
@@ -2812,11 +2808,11 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2812
2808
|
}
|
|
2813
2809
|
};
|
|
2814
2810
|
e.value.formItems = Ve(
|
|
2815
|
-
|
|
2811
|
+
Te,
|
|
2816
2812
|
o == null ? void 0 : o.formItems,
|
|
2817
2813
|
(ft = e == null ? void 0 : e.value) == null ? void 0 : ft.formItems
|
|
2818
2814
|
);
|
|
2819
|
-
const
|
|
2815
|
+
const le = {
|
|
2820
2816
|
title: "编辑",
|
|
2821
2817
|
mode: "drawer",
|
|
2822
2818
|
type: "hidden",
|
|
@@ -2829,78 +2825,78 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2829
2825
|
overflow: !0,
|
|
2830
2826
|
max: {
|
|
2831
2827
|
style: {},
|
|
2832
|
-
icon: () =>
|
|
2828
|
+
icon: () => ke(gl)
|
|
2833
2829
|
},
|
|
2834
2830
|
min: {
|
|
2835
2831
|
style: {},
|
|
2836
|
-
icon: () =>
|
|
2832
|
+
icon: () => ke(bl)
|
|
2837
2833
|
// 最小化图标
|
|
2838
2834
|
}
|
|
2839
2835
|
};
|
|
2840
2836
|
e.value.dialog = Ve(
|
|
2841
|
-
|
|
2837
|
+
le,
|
|
2842
2838
|
o == null ? void 0 : o.dialog,
|
|
2843
|
-
(
|
|
2839
|
+
(vt = e.value) == null ? void 0 : vt.dialog
|
|
2844
2840
|
);
|
|
2845
2841
|
const ne = (l, d) => {
|
|
2846
2842
|
let m = d;
|
|
2847
2843
|
if (l.decimals && !isNaN(parseFloat(d)) && (typeof l.decimals == "number" ? m = parseFloat(m).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? m = parseFloat(m).toFixed(l.decimals.num) : m = parseFloat(
|
|
2848
2844
|
parseFloat(m).toFixed(l.decimals.num)
|
|
2849
|
-
).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) &&
|
|
2850
|
-
const
|
|
2845
|
+
).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && wt(d).isValid()) {
|
|
2846
|
+
const A = {
|
|
2851
2847
|
date: "YYYY-MM-DD",
|
|
2852
2848
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2853
2849
|
time: "HH:mm:ss"
|
|
2854
2850
|
};
|
|
2855
|
-
m = l.format ?
|
|
2851
|
+
m = l.format ? wt(m).format(l.format) : wt(m).format(A[l.type]);
|
|
2856
2852
|
}
|
|
2857
|
-
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, m = `<span title="${
|
|
2853
|
+
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, m = `<span title="${St(
|
|
2858
2854
|
parseFloat(m)
|
|
2859
|
-
)}">${
|
|
2860
|
-
},
|
|
2861
|
-
|
|
2855
|
+
)}">${jr(parseFloat(m))}</span>`), l.prefix && m && (m = `<span>${l.prefix}${m}</span>`), l.suffix && m && (m = `${m}<span>${l.suffix}</span>`), m;
|
|
2856
|
+
}, re = (l) => {
|
|
2857
|
+
E.value = Object.fromEntries(f), e.value.table.load();
|
|
2862
2858
|
}, Oe = (l) => {
|
|
2863
|
-
|
|
2864
|
-
},
|
|
2859
|
+
E.value = l, e.value.table.load();
|
|
2860
|
+
}, T = async (l) => {
|
|
2865
2861
|
var d, m;
|
|
2866
2862
|
e.value.form.modalState = "add";
|
|
2867
2863
|
try {
|
|
2868
2864
|
if (!await ((d = e.value.control) == null ? void 0 : d.validate("add", { m: l }))) return;
|
|
2869
|
-
} catch (
|
|
2870
|
-
console.error("验证失败:",
|
|
2865
|
+
} catch (b) {
|
|
2866
|
+
console.error("验证失败:", b);
|
|
2871
2867
|
return;
|
|
2872
2868
|
}
|
|
2873
|
-
(m = e.value.control.add(l)) != null && m.click ? e.value.control.add(l).click(l) : e.value.control.add(l).inline === !0 ? (e.value.table.data.unshift(
|
|
2874
|
-
e.value[
|
|
2875
|
-
}), i.value = !0, t("open", "add", { m: l }),
|
|
2876
|
-
},
|
|
2877
|
-
var
|
|
2869
|
+
(m = e.value.control.add(l)) != null && m.click ? e.value.control.add(l).click(l) : e.value.control.add(l).inline === !0 ? (e.value.table.data.unshift(R.value), t("open", "row-add", { initFormData: R.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add(l).mode, e.value.dialog.title = e.value.control.add(l).title || e.value.control.add(l).label || "新增", Object.keys(R.value).forEach((b) => {
|
|
2870
|
+
e.value[b] && (e.value[b].value = R.value[b]);
|
|
2871
|
+
}), i.value = !0, t("open", "add", { m: l }), gt());
|
|
2872
|
+
}, $ = async (l, d, m, b) => {
|
|
2873
|
+
var A, Y;
|
|
2878
2874
|
e.value.form.modalState = "edit";
|
|
2879
2875
|
try {
|
|
2880
|
-
if (!await ((
|
|
2876
|
+
if (!await ((A = e.value.control) == null ? void 0 : A.validate("edit", { row: l, column: d, index: m, m: b }))) return;
|
|
2881
2877
|
} catch (W) {
|
|
2882
2878
|
console.error("验证失败:", W);
|
|
2883
2879
|
return;
|
|
2884
2880
|
}
|
|
2885
|
-
(
|
|
2881
|
+
(Y = e.value.control.edit(l, d, m, b)) != null && Y.click ? e.value.control.edit(l, d, m, b).click(l, d, m, b) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(l, d, m, b).mode, e.value.dialog.title = e.value.control.edit(l, d, m, b).title || e.value.control.edit(l, d, m, b).label || "编辑", Object.keys(l).forEach((W) => {
|
|
2886
2882
|
e.value[W] && (e.value[W].value = l[W]);
|
|
2887
|
-
}), i.value = !0, t("open", "edit", { m:
|
|
2888
|
-
}, g = async (l, d, m,
|
|
2889
|
-
var
|
|
2883
|
+
}), i.value = !0, t("open", "edit", { m: b, row: l, column: d, index: m }), gt());
|
|
2884
|
+
}, g = async (l, d, m, b) => {
|
|
2885
|
+
var A, Y;
|
|
2890
2886
|
try {
|
|
2891
|
-
if (!await ((
|
|
2887
|
+
if (!await ((A = e.value.control) == null ? void 0 : A.validate("delete", { row: l, column: d, index: m, m: b }))) return;
|
|
2892
2888
|
} catch (W) {
|
|
2893
2889
|
console.error("验证失败:", W);
|
|
2894
2890
|
return;
|
|
2895
2891
|
}
|
|
2896
|
-
if ((
|
|
2897
|
-
e.value.control.delete(l, d, m,
|
|
2892
|
+
if ((Y = e.value.control.delete(l, d, m, b)) != null && Y.click)
|
|
2893
|
+
e.value.control.delete(l, d, m, b).click(l, d, m, b);
|
|
2898
2894
|
else {
|
|
2899
|
-
let { message: W, title: fe, options:
|
|
2900
|
-
|
|
2895
|
+
let { message: W, title: fe, options: _e } = e.value.control.delete(l, d, m, b).dialog;
|
|
2896
|
+
qt.confirm(W, fe, _e).then(() => {
|
|
2901
2897
|
t(
|
|
2902
2898
|
"delete",
|
|
2903
|
-
{ row: l, column: d, index: m, m:
|
|
2899
|
+
{ row: l, column: d, index: m, m: b },
|
|
2904
2900
|
(Fe = !0, Re = !1) => {
|
|
2905
2901
|
Fe && (e.value.table.data.splice(m, 1), e.value.table.page.total--), Re && e.value.table.load();
|
|
2906
2902
|
}
|
|
@@ -2908,31 +2904,31 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2908
2904
|
}).catch(() => {
|
|
2909
2905
|
});
|
|
2910
2906
|
}
|
|
2911
|
-
},
|
|
2912
|
-
var
|
|
2907
|
+
}, u = async (l, d, m, b) => {
|
|
2908
|
+
var A, Y;
|
|
2913
2909
|
e.value.form.modalState = void 0;
|
|
2914
2910
|
try {
|
|
2915
|
-
if (!await ((
|
|
2911
|
+
if (!await ((A = e.value.control) == null ? void 0 : A.validate("view", { row: l, column: d, index: m, m: b }))) return;
|
|
2916
2912
|
} catch (W) {
|
|
2917
2913
|
console.error("验证失败:", W);
|
|
2918
2914
|
return;
|
|
2919
2915
|
}
|
|
2920
|
-
(
|
|
2916
|
+
(Y = e.value.control.view(l, d, m, b)) != null && Y.click ? e.value.control.view(l, d, m, b).click(l, d, m, b) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(l, d, m, b).mode, e.value.dialog.title = e.value.control.view(l, d, m, b).title || e.value.control.view(l, d, m, b).label || "查看", Object.keys(l).forEach((W) => {
|
|
2921
2917
|
e.value[W] && (e.value[W].value = l[W]);
|
|
2922
|
-
}), i.value = !0, t("open", "view", { m:
|
|
2923
|
-
}, q = (l, d, m,
|
|
2924
|
-
var
|
|
2925
|
-
(
|
|
2918
|
+
}), i.value = !0, t("open", "view", { m: b, row: l, column: d, index: m }), gt());
|
|
2919
|
+
}, q = (l, d, m, b) => {
|
|
2920
|
+
var A;
|
|
2921
|
+
(A = e.value.control.save(l, d, m, b)) != null && A.click ? e.value.control.save(l, d, m, b).click(l, d, m, b) : t(
|
|
2926
2922
|
"row-save",
|
|
2927
2923
|
{ row: l, column: d, index: m, data: e.value.table.data },
|
|
2928
|
-
(
|
|
2929
|
-
|
|
2930
|
-
|
|
2924
|
+
(Y = !0, W = !0) => {
|
|
2925
|
+
Y && e.value.table.load(), W && at(() => {
|
|
2926
|
+
R.value = Object.assign(
|
|
2931
2927
|
{},
|
|
2932
2928
|
Object.fromEntries(
|
|
2933
2929
|
Object.entries(
|
|
2934
|
-
Ue(e.value, (fe,
|
|
2935
|
-
).map(([fe,
|
|
2930
|
+
Ue(e.value, (fe, _e) => _e.type != "control" && _e.editor !== !1 && _e.type != "hidden")
|
|
2931
|
+
).map(([fe, _e]) => [fe, _e.value])
|
|
2936
2932
|
)
|
|
2937
2933
|
);
|
|
2938
2934
|
});
|
|
@@ -2949,17 +2945,17 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2949
2945
|
if ((m = l.control.download(l)) != null && m.click)
|
|
2950
2946
|
l.control.download(l).click(l, d);
|
|
2951
2947
|
else {
|
|
2952
|
-
let
|
|
2948
|
+
let b = Dt(
|
|
2953
2949
|
{
|
|
2954
2950
|
title: l.control.download(l).title || l.control.download(l).label || "下载",
|
|
2955
2951
|
size: l.control.download(l).size || 480,
|
|
2956
2952
|
width: l.control.download(l).width || 600,
|
|
2957
2953
|
slots: {
|
|
2958
|
-
default: () =>
|
|
2954
|
+
default: () => ke(Gl, {
|
|
2959
2955
|
items: d,
|
|
2960
2956
|
commitText: l.control.download(l).excelLabel,
|
|
2961
|
-
onExcel: (
|
|
2962
|
-
t("download",
|
|
2957
|
+
onExcel: (A, Y) => {
|
|
2958
|
+
t("download", A, E.value, Y), b();
|
|
2963
2959
|
}
|
|
2964
2960
|
})
|
|
2965
2961
|
}
|
|
@@ -2969,17 +2965,20 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2969
2965
|
}
|
|
2970
2966
|
}, Z = (l) => {
|
|
2971
2967
|
var d;
|
|
2972
|
-
(d = l.control.setting(l)) != null && d.click ? l.control.setting(l).click(l) :
|
|
2968
|
+
(d = l.control.setting(l)) != null && d.click ? l.control.setting(l).click(l) : Dt(
|
|
2973
2969
|
{
|
|
2974
2970
|
title: l.control.setting(l).title || l.control.setting(l).label || "设置",
|
|
2975
2971
|
size: l.control.setting(l).size || 470,
|
|
2976
2972
|
width: l.control.setting(l).width || 600,
|
|
2977
2973
|
slots: {
|
|
2978
|
-
default: () =>
|
|
2974
|
+
default: () => ke(ir, {
|
|
2979
2975
|
modelValue: l,
|
|
2980
|
-
tuid:
|
|
2976
|
+
tuid: te.value,
|
|
2981
2977
|
onSettingDragEnd: async () => {
|
|
2982
|
-
await Me(
|
|
2978
|
+
await Me(te.value);
|
|
2979
|
+
},
|
|
2980
|
+
onSelectAll: async (m) => {
|
|
2981
|
+
await Me(te.value);
|
|
2983
2982
|
}
|
|
2984
2983
|
})
|
|
2985
2984
|
}
|
|
@@ -2987,72 +2986,72 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
2987
2986
|
l.control.setting(l).mode
|
|
2988
2987
|
);
|
|
2989
2988
|
}, G = e.value.control, pe = [
|
|
2990
|
-
{ type: "add", func:
|
|
2989
|
+
{ type: "add", func: T },
|
|
2991
2990
|
{ type: "download", func: U },
|
|
2992
2991
|
{ type: "setting", func: Z },
|
|
2993
|
-
{ type: "view", func:
|
|
2994
|
-
{ type: "edit", func:
|
|
2992
|
+
{ type: "view", func: u },
|
|
2993
|
+
{ type: "edit", func: $ },
|
|
2995
2994
|
{ type: "delete", func: g },
|
|
2996
2995
|
{ type: "save", func: q }
|
|
2997
|
-
],
|
|
2998
|
-
var fe,
|
|
2996
|
+
], w = (l, d, m, b, A) => pe.filter((Y) => l.includes(Y.type)).map(({ type: Y, func: W }) => {
|
|
2997
|
+
var fe, _e, Fe;
|
|
2999
2998
|
return {
|
|
3000
|
-
name: `control-${
|
|
3001
|
-
attr: G == null ? void 0 : G[
|
|
2999
|
+
name: `control-${Y}`,
|
|
3000
|
+
attr: G == null ? void 0 : G[Y](d, m, b, A),
|
|
3002
3001
|
func: W,
|
|
3003
|
-
label: (fe = G == null ? void 0 : G[
|
|
3004
|
-
sort: ((
|
|
3005
|
-
groupName: ((Fe = G == null ? void 0 : G[
|
|
3002
|
+
label: (fe = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : fe.label,
|
|
3003
|
+
sort: ((_e = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : _e.sort) || 0,
|
|
3004
|
+
groupName: ((Fe = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : Fe.groupName) || "default"
|
|
3006
3005
|
};
|
|
3007
|
-
}).sort((
|
|
3006
|
+
}).sort((Y, W) => Y.sort - W.sort), y = (l, d, m, b, A) => w(l, d, m, b, A).reduce((Y, W) => {
|
|
3008
3007
|
const fe = W.groupName || "default";
|
|
3009
|
-
return
|
|
3010
|
-
}, {}),
|
|
3008
|
+
return Y[fe] || (Y[fe] = []), Y[fe].push(W), Y;
|
|
3009
|
+
}, {}), ae = Je(
|
|
3011
3010
|
() => Object.fromEntries(
|
|
3012
3011
|
Object.entries(e.value).filter(([l, d]) => d.type !== "hidden").filter(([l, d]) => d.hidden !== !0).filter(([l, d]) => d.visible !== !1).filter(([l, d]) => d.showCol !== !1).map(([l, d]) => (d.sort = typeof d.sort == "number" ? d.sort : 0, [l, d])).sort((l, d) => l[1].sort - d[1].sort)
|
|
3013
3012
|
)
|
|
3014
|
-
),
|
|
3015
|
-
const m = (
|
|
3016
|
-
for (const
|
|
3017
|
-
if (
|
|
3018
|
-
if (
|
|
3019
|
-
const W = m(
|
|
3013
|
+
), he = oe({}), be = (l, d) => {
|
|
3014
|
+
const m = (b, A) => {
|
|
3015
|
+
for (const Y of b) {
|
|
3016
|
+
if (Y.value == A) return Y.label;
|
|
3017
|
+
if (Y.children) {
|
|
3018
|
+
const W = m(Y.children, A);
|
|
3020
3019
|
if (W) return W;
|
|
3021
3020
|
}
|
|
3022
3021
|
}
|
|
3023
3022
|
return null;
|
|
3024
3023
|
};
|
|
3025
3024
|
if (l.getDicts) {
|
|
3026
|
-
const
|
|
3027
|
-
return
|
|
3028
|
-
|
|
3025
|
+
const b = d.toString();
|
|
3026
|
+
return he.value[b] ? (l.options = he.value[b], l.formatter || (l.formatter = (A, Y, W, fe) => l.options && m(l.options, W) || W), Promise.resolve()) : l.getDicts(e.value.table.data).then((A) => {
|
|
3027
|
+
he.value[b] = A, l.options = A, l.formatter || (l.formatter = (Y, W, fe, _e) => l.options && m(l.options, fe) || fe);
|
|
3029
3028
|
});
|
|
3030
3029
|
}
|
|
3031
3030
|
return Promise.resolve();
|
|
3032
|
-
},
|
|
3031
|
+
}, $e = () => {
|
|
3033
3032
|
const l = [];
|
|
3034
3033
|
Object.keys(e.value).forEach((d) => {
|
|
3035
3034
|
if (e.value[d].getDicts) {
|
|
3036
|
-
const m =
|
|
3037
|
-
e.value.table.data.forEach((
|
|
3038
|
-
var
|
|
3039
|
-
if (e.value[d].getDicts && ((
|
|
3040
|
-
const
|
|
3041
|
-
|
|
3035
|
+
const m = be(e.value[d], d).then(() => {
|
|
3036
|
+
e.value.table.data.forEach((b) => {
|
|
3037
|
+
var A;
|
|
3038
|
+
if (e.value[d].getDicts && ((A = e.value[d]) == null ? void 0 : A.forceString) !== !1) {
|
|
3039
|
+
const Y = b[d];
|
|
3040
|
+
b[d] = Y != null ? Y.toString() : Y;
|
|
3042
3041
|
}
|
|
3043
3042
|
});
|
|
3044
|
-
}).catch((
|
|
3045
|
-
console.error(`加载字典${d}出错:`,
|
|
3043
|
+
}).catch((b) => {
|
|
3044
|
+
console.error(`加载字典${d}出错:`, b);
|
|
3046
3045
|
});
|
|
3047
3046
|
l.push(m);
|
|
3048
3047
|
}
|
|
3049
3048
|
}), Promise.all(l).catch((d) => {
|
|
3050
3049
|
console.error("字典加载过程中发生错误:", d);
|
|
3051
3050
|
});
|
|
3052
|
-
},
|
|
3053
|
-
var
|
|
3054
|
-
return l.table ? (
|
|
3055
|
-
},
|
|
3051
|
+
}, we = (l, d, m, b) => {
|
|
3052
|
+
var A, Y;
|
|
3053
|
+
return l.table ? (A = l.table(d, m, b)) != null && A.auth ? (Y = l.table(d, m, b)) == null ? void 0 : Y.auth(d, m, b) : !0 : !1;
|
|
3054
|
+
}, Ee = () => {
|
|
3056
3055
|
if (e.value.dialog.mode == "drawer")
|
|
3057
3056
|
F.value.handleClose();
|
|
3058
3057
|
else if (e.value.dialog.mode == "dialog")
|
|
@@ -3064,21 +3063,34 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3064
3063
|
else
|
|
3065
3064
|
i.value = !1;
|
|
3066
3065
|
};
|
|
3067
|
-
|
|
3066
|
+
ol(() => {
|
|
3068
3067
|
e.value.table.autoWatch && e.value.table.load();
|
|
3069
3068
|
});
|
|
3070
3069
|
const Me = async () => {
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3070
|
+
try {
|
|
3071
|
+
const [l, d, m] = await Promise.all([
|
|
3072
|
+
Jl(te.value),
|
|
3073
|
+
ar(te.value),
|
|
3074
|
+
Kl(te.value)
|
|
3075
|
+
]);
|
|
3076
|
+
l && Array.isArray(l) && l.forEach((b) => {
|
|
3077
|
+
const A = e.value[b.key];
|
|
3078
|
+
A && (A.width = b.width);
|
|
3079
|
+
}), d && Array.isArray(d) && d.forEach((b, A) => {
|
|
3080
|
+
const Y = e.value[b];
|
|
3081
|
+
Y && (Y.sort = A);
|
|
3082
|
+
}), m && Array.isArray(m) && m.length > 0 ? m.forEach((b) => {
|
|
3083
|
+
const A = e.value[b];
|
|
3084
|
+
A && (A.showCol = !1);
|
|
3085
|
+
}) : Object.keys(e.value).filter((b) => e.value[b].type !== "control").forEach((b) => {
|
|
3086
|
+
e.value[b].showCol = !0;
|
|
3087
|
+
});
|
|
3088
|
+
} catch (l) {
|
|
3089
|
+
console.error("加载表格信息时出错:", l);
|
|
3090
|
+
}
|
|
3091
|
+
}, xe = () => gr(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
|
|
3092
|
+
return nl(() => {
|
|
3093
|
+
te.value = xe();
|
|
3082
3094
|
}), ut(async () => {
|
|
3083
3095
|
c.value = Object.entries(e.value).filter(
|
|
3084
3096
|
([l, d]) => d.type !== "hidden" && d.type !== "control" && d.visible !== !1
|
|
@@ -3092,86 +3104,86 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3092
3104
|
const l = Object.entries(e.value).filter(
|
|
3093
3105
|
([d, m]) => m.type !== "control" && m.editor !== !1 && m.type !== "hidden"
|
|
3094
3106
|
);
|
|
3095
|
-
|
|
3107
|
+
R.value = Object.fromEntries(
|
|
3096
3108
|
l.map(([d, m]) => [d, m.value])
|
|
3097
3109
|
), await Me();
|
|
3098
3110
|
} catch (l) {
|
|
3099
3111
|
console.error("Error during component initialization:", l);
|
|
3100
3112
|
}
|
|
3101
3113
|
e.value.table.autoWatch || e.value.table.load();
|
|
3102
|
-
}),
|
|
3103
|
-
var
|
|
3104
|
-
const m =
|
|
3114
|
+
}), n({ addRow: T, editRow: $, deleteRow: g, readForm: u, saveRowData: q, closeDialog: Ee }), (l, d) => {
|
|
3115
|
+
var He, et, ot, tt, nt;
|
|
3116
|
+
const m = H("el-icon"), b = H("el-dialog"), A = H("el-drawer"), Y = H("el-button-group"), W = H("el-dropdown-item"), fe = H("el-dropdown-menu"), _e = H("el-dropdown"), Fe = H("el-table-column"), Re = H("el-table"), Le = H("el-pagination");
|
|
3105
3117
|
return p(), I(J, null, [
|
|
3106
|
-
e.value.dialog.mode == "dialog" && i.value ? (p(), I("div",
|
|
3107
|
-
K(
|
|
3118
|
+
e.value.dialog.mode == "dialog" && i.value ? (p(), I("div", br, [
|
|
3119
|
+
K(b, O(
|
|
3108
3120
|
{
|
|
3109
3121
|
ref_key: "dialogRef",
|
|
3110
3122
|
ref: v,
|
|
3111
3123
|
id: "dialogRef",
|
|
3112
3124
|
modelValue: i.value,
|
|
3113
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
3125
|
+
"onUpdate:modelValue": d[3] || (d[3] = (z) => i.value = z),
|
|
3114
3126
|
fullscreen: e.value.dialog.fullScreen
|
|
3115
3127
|
},
|
|
3116
|
-
P(Ue)(e.value.dialog, (
|
|
3128
|
+
P(Ue)(e.value.dialog, (z) => !["size", "max", "min"].includes(z)),
|
|
3117
3129
|
{
|
|
3118
|
-
width: P(
|
|
3130
|
+
width: P(Gt)(e.value.dialog.width) + 35
|
|
3119
3131
|
}
|
|
3120
3132
|
), {
|
|
3121
3133
|
header: D(() => {
|
|
3122
|
-
var
|
|
3134
|
+
var z, se, x, X, ee, je, Ne, ze, Pe, h;
|
|
3123
3135
|
return [
|
|
3124
|
-
Q("div",
|
|
3125
|
-
Q("div",
|
|
3136
|
+
Q("div", $r, [
|
|
3137
|
+
Q("div", wr, [
|
|
3126
3138
|
M(l.$slots, "f-header", {}, () => [
|
|
3127
|
-
Q("div", null,
|
|
3139
|
+
Q("div", null, De(e.value.dialog.title), 1)
|
|
3128
3140
|
], !0)
|
|
3129
3141
|
]),
|
|
3130
|
-
((se = (
|
|
3142
|
+
((se = (z = e.value) == null ? void 0 : z.dialog) == null ? void 0 : se.fullScreen) === !1 ? (p(), I("div", {
|
|
3131
3143
|
key: 0,
|
|
3132
3144
|
style: qe((ee = (X = (x = e.value) == null ? void 0 : x.dialog) == null ? void 0 : X.max) == null ? void 0 : ee.style),
|
|
3133
|
-
onClick: d[0] || (d[0] = (
|
|
3145
|
+
onClick: d[0] || (d[0] = (S) => e.value.dialog.fullScreen = !0),
|
|
3134
3146
|
class: "max"
|
|
3135
3147
|
}, [
|
|
3136
3148
|
K(m, null, {
|
|
3137
3149
|
default: D(() => {
|
|
3138
|
-
var
|
|
3150
|
+
var S, ue, Ae;
|
|
3139
3151
|
return [
|
|
3140
|
-
(p(),
|
|
3152
|
+
(p(), B(We((Ae = (ue = (S = e.value) == null ? void 0 : S.dialog) == null ? void 0 : ue.max) == null ? void 0 : Ae.icon)))
|
|
3141
3153
|
];
|
|
3142
3154
|
}),
|
|
3143
3155
|
_: 1
|
|
3144
3156
|
})
|
|
3145
|
-
], 4)) :
|
|
3146
|
-
((
|
|
3157
|
+
], 4)) : ge("", !0),
|
|
3158
|
+
((Ne = (je = e.value) == null ? void 0 : je.dialog) == null ? void 0 : Ne.fullScreen) === !0 ? (p(), I("div", {
|
|
3147
3159
|
key: 1,
|
|
3148
|
-
style: qe((h = (Pe = (
|
|
3149
|
-
onClick: d[1] || (d[1] = (
|
|
3160
|
+
style: qe((h = (Pe = (ze = e.value) == null ? void 0 : ze.dialog) == null ? void 0 : Pe.min) == null ? void 0 : h.style),
|
|
3161
|
+
onClick: d[1] || (d[1] = (S) => e.value.dialog.fullScreen = !1),
|
|
3150
3162
|
class: "max"
|
|
3151
3163
|
}, [
|
|
3152
3164
|
K(m, null, {
|
|
3153
3165
|
default: D(() => {
|
|
3154
|
-
var
|
|
3166
|
+
var S, ue, Ae;
|
|
3155
3167
|
return [
|
|
3156
|
-
(p(),
|
|
3168
|
+
(p(), B(We((Ae = (ue = (S = e.value) == null ? void 0 : S.dialog) == null ? void 0 : ue.min) == null ? void 0 : Ae.icon)))
|
|
3157
3169
|
];
|
|
3158
3170
|
}),
|
|
3159
3171
|
_: 1
|
|
3160
3172
|
})
|
|
3161
|
-
], 4)) :
|
|
3173
|
+
], 4)) : ge("", !0)
|
|
3162
3174
|
])
|
|
3163
3175
|
];
|
|
3164
3176
|
}),
|
|
3165
3177
|
default: D(() => [
|
|
3166
|
-
Q("div",
|
|
3178
|
+
Q("div", Er, [
|
|
3167
3179
|
M(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
3168
|
-
K(
|
|
3180
|
+
K(_t, {
|
|
3169
3181
|
modelValue: e.value,
|
|
3170
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
3182
|
+
"onUpdate:modelValue": d[2] || (d[2] = (z) => e.value = z),
|
|
3171
3183
|
onSubmit: C,
|
|
3172
3184
|
onReset: k
|
|
3173
|
-
},
|
|
3174
|
-
|
|
3185
|
+
}, ye({ _: 2 }, [
|
|
3186
|
+
N(l.$slots, (z, se, x) => ({
|
|
3175
3187
|
name: se,
|
|
3176
3188
|
fn: D((X) => [
|
|
3177
3189
|
M(l.$slots, se, { model: X }, void 0, !0)
|
|
@@ -3183,32 +3195,32 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3183
3195
|
]),
|
|
3184
3196
|
_: 3
|
|
3185
3197
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
3186
|
-
])) :
|
|
3187
|
-
e.value.dialog.mode == "drawer" && i.value ? (p(), I("div",
|
|
3188
|
-
K(
|
|
3198
|
+
])) : ge("", !0),
|
|
3199
|
+
e.value.dialog.mode == "drawer" && i.value ? (p(), I("div", _r, [
|
|
3200
|
+
K(A, O({
|
|
3189
3201
|
ref_key: "drawerRef",
|
|
3190
3202
|
ref: F,
|
|
3191
3203
|
modelValue: i.value,
|
|
3192
|
-
"onUpdate:modelValue": d[5] || (d[5] = (
|
|
3193
|
-
}, P(Ue)(e.value.dialog, (
|
|
3204
|
+
"onUpdate:modelValue": d[5] || (d[5] = (z) => i.value = z)
|
|
3205
|
+
}, P(Ue)(e.value.dialog, (z) => !["width"].includes(z))), {
|
|
3194
3206
|
header: D(() => [
|
|
3195
|
-
Q("div",
|
|
3196
|
-
Q("div",
|
|
3207
|
+
Q("div", kr, [
|
|
3208
|
+
Q("div", Cr, [
|
|
3197
3209
|
M(l.$slots, "f-header", {}, () => [
|
|
3198
|
-
Q("div", null,
|
|
3210
|
+
Q("div", null, De(e.value.dialog.title), 1)
|
|
3199
3211
|
], !0)
|
|
3200
3212
|
])
|
|
3201
3213
|
])
|
|
3202
3214
|
]),
|
|
3203
3215
|
default: D(() => [
|
|
3204
3216
|
M(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3205
|
-
K(
|
|
3217
|
+
K(_t, {
|
|
3206
3218
|
modelValue: e.value,
|
|
3207
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
3219
|
+
"onUpdate:modelValue": d[4] || (d[4] = (z) => e.value = z),
|
|
3208
3220
|
onSubmit: C,
|
|
3209
3221
|
onReset: k
|
|
3210
|
-
},
|
|
3211
|
-
|
|
3222
|
+
}, ye({ _: 2 }, [
|
|
3223
|
+
N(l.$slots, (z, se, x) => ({
|
|
3212
3224
|
name: se,
|
|
3213
3225
|
fn: D((X) => [
|
|
3214
3226
|
M(l.$slots, se, { model: X }, void 0, !0)
|
|
@@ -3219,25 +3231,25 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3219
3231
|
]),
|
|
3220
3232
|
_: 3
|
|
3221
3233
|
}, 16, ["modelValue"])
|
|
3222
|
-
])) :
|
|
3223
|
-
Q("div",
|
|
3224
|
-
((et = (
|
|
3234
|
+
])) : ge("", !0),
|
|
3235
|
+
Q("div", Dr, [
|
|
3236
|
+
((et = (He = e.value) == null ? void 0 : He.query) == null ? void 0 : et.hidden) != !0 ? (p(), I("div", Sr, [
|
|
3225
3237
|
M(l.$slots, "query", {}, () => [
|
|
3226
|
-
K(
|
|
3238
|
+
K(Rl, {
|
|
3227
3239
|
modelValue: e.value,
|
|
3228
|
-
"onUpdate:modelValue": d[6] || (d[6] = (
|
|
3229
|
-
info:
|
|
3230
|
-
"onUpdate:info": d[7] || (d[7] = (
|
|
3240
|
+
"onUpdate:modelValue": d[6] || (d[6] = (z) => e.value = z),
|
|
3241
|
+
info: E.value,
|
|
3242
|
+
"onUpdate:info": d[7] || (d[7] = (z) => E.value = z),
|
|
3231
3243
|
onQuery: Oe,
|
|
3232
|
-
onReset:
|
|
3233
|
-
},
|
|
3244
|
+
onReset: re
|
|
3245
|
+
}, ye({
|
|
3234
3246
|
"q-btns": D(() => [
|
|
3235
3247
|
M(l.$slots, "q-btns", {}, () => [
|
|
3236
|
-
(p(!0), I(J, null,
|
|
3237
|
-
se == "default" ? (p(!0), I(J, { key: 0 },
|
|
3248
|
+
(p(!0), I(J, null, N(y(["add", "download", "setting"], e.value), (z, se) => (p(), I(J, null, [
|
|
3249
|
+
se == "default" ? (p(!0), I(J, { key: 0 }, N(z, (x) => (p(), I(J, null, [
|
|
3238
3250
|
M(l.$slots, x.name + "-left", {}, void 0, !0),
|
|
3239
3251
|
(x.name === "control-add" ? x.attr.auth() && x.attr.inline === !1 : x.attr.auth()) ? M(l.$slots, x.name, { key: 0 }, () => [
|
|
3240
|
-
x.label ? (p(),
|
|
3252
|
+
x.label ? (p(), B(P(Be), O({
|
|
3241
3253
|
key: 0,
|
|
3242
3254
|
title: x.label,
|
|
3243
3255
|
ref_for: !0
|
|
@@ -3245,24 +3257,24 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3245
3257
|
onClick: (X) => x.func(e.value, c.value)
|
|
3246
3258
|
}), {
|
|
3247
3259
|
default: D(() => [
|
|
3248
|
-
Ie(
|
|
3260
|
+
Ie(De(x.label), 1)
|
|
3249
3261
|
]),
|
|
3250
3262
|
_: 2
|
|
3251
|
-
}, 1040, ["title", "onClick"])) : (p(),
|
|
3263
|
+
}, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
|
|
3252
3264
|
key: 1,
|
|
3253
3265
|
title: x.label,
|
|
3254
3266
|
ref_for: !0
|
|
3255
3267
|
}, x.attr, {
|
|
3256
3268
|
onClick: (X) => x.func(e.value, c.value)
|
|
3257
3269
|
}), null, 16, ["title", "onClick"]))
|
|
3258
|
-
], !0) :
|
|
3270
|
+
], !0) : ge("", !0),
|
|
3259
3271
|
M(l.$slots, x.name + "-right", {}, void 0, !0)
|
|
3260
|
-
], 64))), 256)) : (p(),
|
|
3272
|
+
], 64))), 256)) : (p(), B(Y, { key: 1 }, {
|
|
3261
3273
|
default: D(() => [
|
|
3262
|
-
(p(!0), I(J, null,
|
|
3274
|
+
(p(!0), I(J, null, N(z, (x) => (p(), I(J, null, [
|
|
3263
3275
|
M(l.$slots, x.name + "-left", {}, void 0, !0),
|
|
3264
3276
|
(x.name === "control-add" ? x.attr.auth() && x.attr.inline === !1 : x.attr.auth()) ? M(l.$slots, x.name, { key: 0 }, () => [
|
|
3265
|
-
x.label ? (p(),
|
|
3277
|
+
x.label ? (p(), B(P(Be), O({
|
|
3266
3278
|
key: 0,
|
|
3267
3279
|
title: x.label,
|
|
3268
3280
|
ref_for: !0
|
|
@@ -3270,17 +3282,17 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3270
3282
|
onClick: (X) => x.func(e.value, c.value)
|
|
3271
3283
|
}), {
|
|
3272
3284
|
default: D(() => [
|
|
3273
|
-
Ie(
|
|
3285
|
+
Ie(De(x.label), 1)
|
|
3274
3286
|
]),
|
|
3275
3287
|
_: 2
|
|
3276
|
-
}, 1040, ["title", "onClick"])) : (p(),
|
|
3288
|
+
}, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
|
|
3277
3289
|
key: 1,
|
|
3278
3290
|
title: x.label,
|
|
3279
3291
|
ref_for: !0
|
|
3280
3292
|
}, x.attr, {
|
|
3281
3293
|
onClick: (X) => x.func(e.value, c.value)
|
|
3282
3294
|
}), null, 16, ["title", "onClick"]))
|
|
3283
|
-
], !0) :
|
|
3295
|
+
], !0) : ge("", !0),
|
|
3284
3296
|
M(l.$slots, x.name + "-right", {}, void 0, !0)
|
|
3285
3297
|
], 64))), 256))
|
|
3286
3298
|
]),
|
|
@@ -3291,7 +3303,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3291
3303
|
]),
|
|
3292
3304
|
_: 2
|
|
3293
3305
|
}, [
|
|
3294
|
-
|
|
3306
|
+
N(l.$slots, (z, se, x) => ({
|
|
3295
3307
|
name: se,
|
|
3296
3308
|
fn: D((X) => [
|
|
3297
3309
|
M(l.$slots, se, { model: e.value }, void 0, !0)
|
|
@@ -3299,19 +3311,19 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3299
3311
|
}))
|
|
3300
3312
|
]), 1032, ["modelValue", "info"])
|
|
3301
3313
|
], !0)
|
|
3302
|
-
])) :
|
|
3303
|
-
Q("div",
|
|
3314
|
+
])) : ge("", !0),
|
|
3315
|
+
Q("div", Mr, [
|
|
3304
3316
|
K(Re, O({
|
|
3305
3317
|
...l.$attrs,
|
|
3306
3318
|
...P(Ue)(
|
|
3307
3319
|
e.value.table,
|
|
3308
|
-
(
|
|
3320
|
+
(z) => !["dblclickType", "page"].includes(z)
|
|
3309
3321
|
)
|
|
3310
3322
|
}, {
|
|
3311
|
-
"summary-method": (
|
|
3312
|
-
onSortChange: d[8] || (d[8] = (
|
|
3323
|
+
"summary-method": (z) => e.value.table["summary-method"](z, { fields: j.value, sums: V.value }),
|
|
3324
|
+
onSortChange: d[8] || (d[8] = (z) => {
|
|
3313
3325
|
var se, x;
|
|
3314
|
-
e.value.table.onSortChange(
|
|
3326
|
+
e.value.table.onSortChange(z, E.value), ((se = z == null ? void 0 : z.column) == null ? void 0 : se.sortable) === "custom" && ((x = e.value.table) == null || x.load());
|
|
3315
3327
|
})
|
|
3316
3328
|
}), {
|
|
3317
3329
|
append: D(() => [
|
|
@@ -3322,21 +3334,21 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3322
3334
|
]),
|
|
3323
3335
|
default: D(() => [
|
|
3324
3336
|
M(l.$slots, "default", {}, () => [
|
|
3325
|
-
(p(!0), I(J, null,
|
|
3337
|
+
(p(!0), I(J, null, N(ae.value, (z, se) => (p(), B(Fe, O({
|
|
3326
3338
|
prop: se,
|
|
3327
3339
|
key: se,
|
|
3328
3340
|
ref_for: !0
|
|
3329
3341
|
}, {
|
|
3330
3342
|
...e.value.tableColumns,
|
|
3331
|
-
...P(Ue)(
|
|
3332
|
-
}),
|
|
3343
|
+
...P(Ue)(z, (x) => s.includes(x))
|
|
3344
|
+
}), ye({
|
|
3333
3345
|
header: D(({ column: x, $index: X }) => [
|
|
3334
3346
|
se == "control" ? M(l.$slots, `${se}-header`, {
|
|
3335
3347
|
key: 0,
|
|
3336
3348
|
column: x,
|
|
3337
3349
|
index: X
|
|
3338
3350
|
}, () => [
|
|
3339
|
-
Q("span", null,
|
|
3351
|
+
Q("span", null, De(x.label), 1)
|
|
3340
3352
|
], !0) : M(l.$slots, `${se}-header`, {
|
|
3341
3353
|
key: 1,
|
|
3342
3354
|
column: x,
|
|
@@ -3348,7 +3360,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3348
3360
|
]),
|
|
3349
3361
|
_: 2
|
|
3350
3362
|
}, [
|
|
3351
|
-
|
|
3363
|
+
z.type === "expand" ? {
|
|
3352
3364
|
name: "default",
|
|
3353
3365
|
fn: D(({ row: x, column: X, $index: ee }) => [
|
|
3354
3366
|
M(l.$slots, `${se}`, {
|
|
@@ -3358,14 +3370,14 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3358
3370
|
}, void 0, !0)
|
|
3359
3371
|
]),
|
|
3360
3372
|
key: "0"
|
|
3361
|
-
} :
|
|
3373
|
+
} : z.type == "control" ? {
|
|
3362
3374
|
name: "default",
|
|
3363
3375
|
fn: D(({ row: x, column: X, $index: ee }) => {
|
|
3364
|
-
var
|
|
3376
|
+
var je, Ne;
|
|
3365
3377
|
return [
|
|
3366
3378
|
Q("div", {
|
|
3367
|
-
class:
|
|
3368
|
-
style: qe((
|
|
3379
|
+
class: Bt(["control", (je = e.value.control) == null ? void 0 : je.class]),
|
|
3380
|
+
style: qe((Ne = e.value.control) == null ? void 0 : Ne.style)
|
|
3369
3381
|
}, [
|
|
3370
3382
|
M(l.$slots, "control", {}, () => [
|
|
3371
3383
|
M(l.$slots, "control-left", {
|
|
@@ -3373,103 +3385,103 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3373
3385
|
column: X,
|
|
3374
3386
|
index: ee
|
|
3375
3387
|
}, void 0, !0),
|
|
3376
|
-
(p(!0), I(J, null,
|
|
3388
|
+
(p(!0), I(J, null, N(y(["view", "edit", "delete", "save"], x, X, ee, e.value), (ze, Pe) => {
|
|
3377
3389
|
var h;
|
|
3378
3390
|
return p(), I(J, null, [
|
|
3379
|
-
Pe == "default" ? (p(!0), I(J, { key: 0 },
|
|
3380
|
-
M(l.$slots,
|
|
3391
|
+
Pe == "default" ? (p(!0), I(J, { key: 0 }, N(ze, (S) => (p(), I(J, null, [
|
|
3392
|
+
M(l.$slots, S.name + "-left", {
|
|
3381
3393
|
row: x,
|
|
3382
3394
|
column: X,
|
|
3383
3395
|
index: ee
|
|
3384
3396
|
}, void 0, !0),
|
|
3385
|
-
|
|
3397
|
+
S.attr.auth() ? M(l.$slots, S.name, {
|
|
3386
3398
|
key: 0,
|
|
3387
3399
|
row: x,
|
|
3388
3400
|
column: X,
|
|
3389
3401
|
index: ee
|
|
3390
3402
|
}, () => [
|
|
3391
|
-
|
|
3403
|
+
S.label ? (p(), B(P(Be), O({
|
|
3392
3404
|
key: 0,
|
|
3393
|
-
title:
|
|
3405
|
+
title: S.label,
|
|
3394
3406
|
ref_for: !0
|
|
3395
|
-
},
|
|
3396
|
-
onClick: (ue) =>
|
|
3407
|
+
}, S.attr, {
|
|
3408
|
+
onClick: (ue) => S.func(x, X, ee, e.value)
|
|
3397
3409
|
}), {
|
|
3398
3410
|
default: D(() => [
|
|
3399
|
-
Ie(
|
|
3411
|
+
Ie(De(S.label), 1)
|
|
3400
3412
|
]),
|
|
3401
3413
|
_: 2
|
|
3402
|
-
}, 1040, ["title", "onClick"])) : (p(),
|
|
3414
|
+
}, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
|
|
3403
3415
|
key: 1,
|
|
3404
|
-
title:
|
|
3416
|
+
title: S.label,
|
|
3405
3417
|
ref_for: !0
|
|
3406
|
-
},
|
|
3407
|
-
onClick: (ue) =>
|
|
3418
|
+
}, S.attr, {
|
|
3419
|
+
onClick: (ue) => S.func(x, X, ee, e.value)
|
|
3408
3420
|
}), null, 16, ["title", "onClick"]))
|
|
3409
|
-
], !0) :
|
|
3410
|
-
M(l.$slots,
|
|
3421
|
+
], !0) : ge("", !0),
|
|
3422
|
+
M(l.$slots, S.name + "-right", {
|
|
3411
3423
|
row: x,
|
|
3412
3424
|
column: X,
|
|
3413
3425
|
index: ee
|
|
3414
3426
|
}, void 0, !0)
|
|
3415
|
-
], 64))), 256)) : Pe != null && Pe.startsWith("dropdown") && ((h = de(x, X, ee, e.value)) != null && h.auth()) ? (p(),
|
|
3427
|
+
], 64))), 256)) : Pe != null && Pe.startsWith("dropdown") && ((h = de(x, X, ee, e.value)) != null && h.auth()) ? (p(), B(_e, O({
|
|
3416
3428
|
key: 1,
|
|
3417
3429
|
ref_for: !0
|
|
3418
3430
|
}, de(x, X, ee, e.value)), {
|
|
3419
3431
|
dropdown: D(() => [
|
|
3420
3432
|
K(fe, null, {
|
|
3421
3433
|
default: D(() => [
|
|
3422
|
-
(p(!0), I(J, null,
|
|
3434
|
+
(p(!0), I(J, null, N(ze, (S) => {
|
|
3423
3435
|
var ue, Ae, lt;
|
|
3424
3436
|
return p(), I(J, null, [
|
|
3425
|
-
l.$slots[
|
|
3437
|
+
l.$slots[S.name + "-left"] ? M(l.$slots, S.name + "-left", {
|
|
3426
3438
|
key: 0,
|
|
3427
3439
|
row: x,
|
|
3428
3440
|
column: X,
|
|
3429
3441
|
index: ee
|
|
3430
|
-
}, void 0, !0) :
|
|
3431
|
-
|
|
3442
|
+
}, void 0, !0) : ge("", !0),
|
|
3443
|
+
S.attr.auth() ? (p(), B(W, O({
|
|
3432
3444
|
key: 1,
|
|
3433
3445
|
ref_for: !0
|
|
3434
3446
|
}, {
|
|
3435
|
-
command: (ue =
|
|
3436
|
-
divided: (Ae =
|
|
3437
|
-
disabled: (lt =
|
|
3447
|
+
command: (ue = S == null ? void 0 : S.attr) == null ? void 0 : ue.command,
|
|
3448
|
+
divided: (Ae = S == null ? void 0 : S.attr) == null ? void 0 : Ae.divided,
|
|
3449
|
+
disabled: (lt = S == null ? void 0 : S.attr) == null ? void 0 : lt.disabled
|
|
3438
3450
|
}), {
|
|
3439
3451
|
default: D(() => [
|
|
3440
|
-
M(l.$slots,
|
|
3452
|
+
M(l.$slots, S.name, {
|
|
3441
3453
|
row: x,
|
|
3442
3454
|
column: X,
|
|
3443
3455
|
index: ee
|
|
3444
3456
|
}, () => [
|
|
3445
|
-
|
|
3457
|
+
S.label ? (p(), B(P(Be), O({
|
|
3446
3458
|
key: 0,
|
|
3447
|
-
title:
|
|
3459
|
+
title: S.label,
|
|
3448
3460
|
ref_for: !0
|
|
3449
|
-
},
|
|
3450
|
-
onClick: (rt) =>
|
|
3461
|
+
}, S.attr, {
|
|
3462
|
+
onClick: (rt) => S.func(x, X, ee, e.value)
|
|
3451
3463
|
}), {
|
|
3452
3464
|
default: D(() => [
|
|
3453
|
-
Ie(
|
|
3465
|
+
Ie(De(S.label), 1)
|
|
3454
3466
|
]),
|
|
3455
3467
|
_: 2
|
|
3456
|
-
}, 1040, ["title", "onClick"])) : (p(),
|
|
3468
|
+
}, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
|
|
3457
3469
|
key: 1,
|
|
3458
|
-
title:
|
|
3470
|
+
title: S.label,
|
|
3459
3471
|
ref_for: !0
|
|
3460
|
-
},
|
|
3461
|
-
onClick: (rt) =>
|
|
3472
|
+
}, S.attr, {
|
|
3473
|
+
onClick: (rt) => S.func(x, X, ee, e.value)
|
|
3462
3474
|
}), null, 16, ["title", "onClick"]))
|
|
3463
3475
|
], !0)
|
|
3464
3476
|
]),
|
|
3465
3477
|
_: 2
|
|
3466
|
-
}, 1040)) :
|
|
3467
|
-
l.$slots[
|
|
3478
|
+
}, 1040)) : ge("", !0),
|
|
3479
|
+
l.$slots[S.name + "-right"] ? M(l.$slots, S.name + "-right", {
|
|
3468
3480
|
key: 2,
|
|
3469
3481
|
row: x,
|
|
3470
3482
|
column: X,
|
|
3471
3483
|
index: ee
|
|
3472
|
-
}, void 0, !0) :
|
|
3484
|
+
}, void 0, !0) : ge("", !0)
|
|
3473
3485
|
], 64);
|
|
3474
3486
|
}), 256))
|
|
3475
3487
|
]),
|
|
@@ -3477,46 +3489,46 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3477
3489
|
}, 1024)
|
|
3478
3490
|
]),
|
|
3479
3491
|
default: D(() => {
|
|
3480
|
-
var
|
|
3492
|
+
var S;
|
|
3481
3493
|
return [
|
|
3482
|
-
Ie(
|
|
3494
|
+
Ie(De((S = de(x, X, ee, e.value)) == null ? void 0 : S.label) + " ", 1)
|
|
3483
3495
|
];
|
|
3484
3496
|
}),
|
|
3485
3497
|
_: 2
|
|
3486
|
-
}, 1040)) : (p(),
|
|
3498
|
+
}, 1040)) : (p(), B(Y, { key: 2 }, {
|
|
3487
3499
|
default: D(() => [
|
|
3488
|
-
(p(!0), I(J, null,
|
|
3489
|
-
M(l.$slots,
|
|
3500
|
+
(p(!0), I(J, null, N(ze, (S) => (p(), I(J, null, [
|
|
3501
|
+
M(l.$slots, S.name + "-left", {
|
|
3490
3502
|
row: x,
|
|
3491
3503
|
column: X,
|
|
3492
3504
|
index: ee
|
|
3493
3505
|
}, void 0, !0),
|
|
3494
|
-
|
|
3506
|
+
S.attr.auth() ? M(l.$slots, S.name, {
|
|
3495
3507
|
key: 0,
|
|
3496
3508
|
row: x,
|
|
3497
3509
|
column: X,
|
|
3498
3510
|
index: ee
|
|
3499
3511
|
}, () => [
|
|
3500
|
-
|
|
3512
|
+
S.label ? (p(), B(P(Be), O({
|
|
3501
3513
|
key: 0,
|
|
3502
|
-
title:
|
|
3514
|
+
title: S.label,
|
|
3503
3515
|
ref_for: !0
|
|
3504
|
-
},
|
|
3505
|
-
onClick: (ue) =>
|
|
3516
|
+
}, S.attr, {
|
|
3517
|
+
onClick: (ue) => S.func(x, X, ee, e.value)
|
|
3506
3518
|
}), {
|
|
3507
3519
|
default: D(() => [
|
|
3508
|
-
Ie(
|
|
3520
|
+
Ie(De(S.label), 1)
|
|
3509
3521
|
]),
|
|
3510
3522
|
_: 2
|
|
3511
|
-
}, 1040, ["title", "onClick"])) : (p(),
|
|
3523
|
+
}, 1040, ["title", "onClick"])) : (p(), B(P(Be), O({
|
|
3512
3524
|
key: 1,
|
|
3513
|
-
title:
|
|
3525
|
+
title: S.label,
|
|
3514
3526
|
ref_for: !0
|
|
3515
|
-
},
|
|
3516
|
-
onClick: (ue) =>
|
|
3527
|
+
}, S.attr, {
|
|
3528
|
+
onClick: (ue) => S.func(x, X, ee, e.value)
|
|
3517
3529
|
}), null, 16, ["title", "onClick"]))
|
|
3518
|
-
], !0) :
|
|
3519
|
-
M(l.$slots,
|
|
3530
|
+
], !0) : ge("", !0),
|
|
3531
|
+
M(l.$slots, S.name + "-right", {
|
|
3520
3532
|
row: x,
|
|
3521
3533
|
column: X,
|
|
3522
3534
|
index: ee
|
|
@@ -3537,35 +3549,35 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3537
3549
|
];
|
|
3538
3550
|
}),
|
|
3539
3551
|
key: "1"
|
|
3540
|
-
} :
|
|
3552
|
+
} : z.type != "selection" && z.type != "index" ? {
|
|
3541
3553
|
name: "default",
|
|
3542
3554
|
fn: D(({ row: x, column: X, $index: ee }) => [
|
|
3543
|
-
|
|
3555
|
+
we(z, x, X, ee) && ee != -1 ? M(l.$slots, `${se}`, {
|
|
3544
3556
|
key: 0,
|
|
3545
3557
|
row: x,
|
|
3546
3558
|
column: X,
|
|
3547
3559
|
index: ee
|
|
3548
3560
|
}, () => {
|
|
3549
|
-
var
|
|
3561
|
+
var je;
|
|
3550
3562
|
return [
|
|
3551
|
-
(p(),
|
|
3563
|
+
(p(), B(bt, {
|
|
3552
3564
|
modelValue: x[se],
|
|
3553
|
-
"onUpdate:modelValue": (
|
|
3554
|
-
item:
|
|
3565
|
+
"onUpdate:modelValue": (Ne) => x[se] = Ne,
|
|
3566
|
+
item: z == null ? void 0 : z.table(x, X, ee),
|
|
3555
3567
|
ctrlKey: se,
|
|
3556
3568
|
key: `${se}-${ee} -${L.value}`,
|
|
3557
|
-
ctrlType: (
|
|
3569
|
+
ctrlType: (je = z.table(x, X, ee)) != null && je.type ? z.table(x, X, ee).type : z.type,
|
|
3558
3570
|
model: e.value,
|
|
3559
3571
|
class: "g-ctrl-container",
|
|
3560
3572
|
t: "t",
|
|
3561
3573
|
formInfo: x
|
|
3562
|
-
},
|
|
3563
|
-
|
|
3564
|
-
name:
|
|
3574
|
+
}, ye({ _: 2 }, [
|
|
3575
|
+
N(l.$slots, (Ne, ze) => ({
|
|
3576
|
+
name: ze,
|
|
3565
3577
|
fn: D((Pe) => [
|
|
3566
|
-
M(l.$slots,
|
|
3578
|
+
M(l.$slots, ze, {
|
|
3567
3579
|
data: Pe,
|
|
3568
|
-
item:
|
|
3580
|
+
item: z,
|
|
3569
3581
|
model: e.value
|
|
3570
3582
|
}, void 0, !0)
|
|
3571
3583
|
])
|
|
@@ -3579,12 +3591,12 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3579
3591
|
index: ee
|
|
3580
3592
|
}, () => [
|
|
3581
3593
|
Q("div", {
|
|
3582
|
-
style: qe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" },
|
|
3594
|
+
style: qe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, z == null ? void 0 : z.style]),
|
|
3583
3595
|
innerHTML: ne(
|
|
3584
|
-
|
|
3596
|
+
z,
|
|
3585
3597
|
X.formatter(x, X, x[se], ee)
|
|
3586
3598
|
)
|
|
3587
|
-
}, null, 12,
|
|
3599
|
+
}, null, 12, Tr)
|
|
3588
3600
|
], !0)
|
|
3589
3601
|
]),
|
|
3590
3602
|
key: "2"
|
|
@@ -3594,12 +3606,12 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3594
3606
|
]),
|
|
3595
3607
|
_: 3
|
|
3596
3608
|
}, 16, ["summary-method"]),
|
|
3597
|
-
(nt = (tt = (ot = e.value) == null ? void 0 : ot.table) == null ? void 0 : tt.page) != null && nt.hidden ?
|
|
3609
|
+
(nt = (tt = (ot = e.value) == null ? void 0 : ot.table) == null ? void 0 : tt.page) != null && nt.hidden ? ge("", !0) : M(l.$slots, "page", { key: 0 }, () => [
|
|
3598
3610
|
K(Le, O({
|
|
3599
3611
|
"page-size": e.value.table.page.pageSize,
|
|
3600
|
-
"onUpdate:pageSize": d[9] || (d[9] = (
|
|
3612
|
+
"onUpdate:pageSize": d[9] || (d[9] = (z) => e.value.table.page.pageSize = z),
|
|
3601
3613
|
"current-page": e.value.table.page.currentPage,
|
|
3602
|
-
"onUpdate:currentPage": d[10] || (d[10] = (
|
|
3614
|
+
"onUpdate:currentPage": d[10] || (d[10] = (z) => e.value.table.page.currentPage = z)
|
|
3603
3615
|
}, e.value.table.page), {
|
|
3604
3616
|
default: D(() => [
|
|
3605
3617
|
M(l.$slots, "table-page", {}, void 0, !0)
|
|
@@ -3612,7 +3624,7 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3612
3624
|
], 64);
|
|
3613
3625
|
};
|
|
3614
3626
|
}
|
|
3615
|
-
}),
|
|
3627
|
+
}), xr = /* @__PURE__ */ Ze(Fr, [["__scopeId", "data-v-de570478"]]), Vr = { class: "g-tree-table" }, qr = { class: "g-tree-container" }, Ar = { class: "g-tree-table-container" }, Br = /* @__PURE__ */ Object.assign({
|
|
3616
3628
|
name: "g-tree-table",
|
|
3617
3629
|
inheritAttrs: !1
|
|
3618
3630
|
}, {
|
|
@@ -3622,38 +3634,38 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3622
3634
|
modelModifiers: {}
|
|
3623
3635
|
},
|
|
3624
3636
|
emits: /* @__PURE__ */ Xe(["load"], ["update:modelValue"]),
|
|
3625
|
-
setup(a, { emit:
|
|
3626
|
-
var
|
|
3627
|
-
const r =
|
|
3628
|
-
typeof ((
|
|
3629
|
-
),
|
|
3637
|
+
setup(a, { emit: n }) {
|
|
3638
|
+
var _, V, j, R;
|
|
3639
|
+
const r = n, t = Qe(a, "modelValue"), e = Tt(), o = oe(
|
|
3640
|
+
typeof ((_ = e == null ? void 0 : e.tree) == null ? void 0 : _.width) == "number" ? `${e.tree.width}px` : ((V = e == null ? void 0 : e.tree) == null ? void 0 : V.width) || "180px"
|
|
3641
|
+
), E = oe(((j = e == null ? void 0 : e.tree) == null ? void 0 : j.search) === void 0 ? !0 : (R = e == null ? void 0 : e.tree) == null ? void 0 : R.search), v = oe({}), F = oe(""), f = oe(null), i = (L, te) => {
|
|
3630
3642
|
var ie, ce;
|
|
3631
3643
|
if (!L) return !0;
|
|
3632
|
-
const
|
|
3633
|
-
return
|
|
3634
|
-
},
|
|
3635
|
-
r("load", v.value, L,
|
|
3644
|
+
const me = ((ce = (ie = e.tree) == null ? void 0 : ie.props) == null ? void 0 : ce.label) || "label";
|
|
3645
|
+
return te[me].includes(L);
|
|
3646
|
+
}, s = (L, te) => {
|
|
3647
|
+
r("load", v.value, L, te);
|
|
3636
3648
|
}, c = (L) => {
|
|
3637
3649
|
v.value = L, t.value.table.load();
|
|
3638
3650
|
};
|
|
3639
|
-
return
|
|
3651
|
+
return ul(F, (L) => {
|
|
3640
3652
|
f.value.filter(L);
|
|
3641
|
-
}), (L,
|
|
3642
|
-
const
|
|
3643
|
-
return p(), I("div",
|
|
3653
|
+
}), (L, te) => {
|
|
3654
|
+
const me = H("el-input"), ie = H("el-tree"), ce = H("g-table");
|
|
3655
|
+
return p(), I("div", Vr, [
|
|
3644
3656
|
Q("div", {
|
|
3645
3657
|
class: "g-tree-left",
|
|
3646
3658
|
style: qe({ width: o.value })
|
|
3647
3659
|
}, [
|
|
3648
|
-
|
|
3660
|
+
E.value ? (p(), B(me, {
|
|
3649
3661
|
key: 0,
|
|
3650
3662
|
modelValue: F.value,
|
|
3651
|
-
"onUpdate:modelValue":
|
|
3663
|
+
"onUpdate:modelValue": te[0] || (te[0] = (de) => F.value = de),
|
|
3652
3664
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
3653
3665
|
placeholder: "输入节点查询",
|
|
3654
3666
|
clearable: ""
|
|
3655
|
-
}, null, 8, ["modelValue"])) :
|
|
3656
|
-
Q("div",
|
|
3667
|
+
}, null, 8, ["modelValue"])) : ge("", !0),
|
|
3668
|
+
Q("div", qr, [
|
|
3657
3669
|
K(ie, O({
|
|
3658
3670
|
style: { width: o.value },
|
|
3659
3671
|
"filter-node-method": i,
|
|
@@ -3661,35 +3673,35 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3661
3673
|
ref_key: "treeRef",
|
|
3662
3674
|
ref: f,
|
|
3663
3675
|
onNodeClick: c
|
|
3664
|
-
}, L.$attrs.tree),
|
|
3665
|
-
default: D(({ node: de, data:
|
|
3676
|
+
}, L.$attrs.tree), ye({
|
|
3677
|
+
default: D(({ node: de, data: Ce }) => [
|
|
3666
3678
|
M(L.$slots, "tree", {
|
|
3667
3679
|
node: de,
|
|
3668
|
-
data:
|
|
3680
|
+
data: Ce
|
|
3669
3681
|
}, () => [
|
|
3670
|
-
Q("span", null,
|
|
3682
|
+
Q("span", null, De(de.label), 1)
|
|
3671
3683
|
], !0)
|
|
3672
3684
|
]),
|
|
3673
3685
|
_: 2
|
|
3674
3686
|
}, [
|
|
3675
|
-
|
|
3676
|
-
name:
|
|
3677
|
-
fn: D((
|
|
3678
|
-
M(L.$slots,
|
|
3687
|
+
N(L.$slots, (de, Ce, Te) => ({
|
|
3688
|
+
name: Ce,
|
|
3689
|
+
fn: D((le) => [
|
|
3690
|
+
M(L.$slots, Ce, { data: le }, void 0, !0)
|
|
3679
3691
|
])
|
|
3680
3692
|
}))
|
|
3681
3693
|
]), 1040, ["style"])
|
|
3682
3694
|
])
|
|
3683
3695
|
], 4),
|
|
3684
|
-
Q("div",
|
|
3696
|
+
Q("div", Ar, [
|
|
3685
3697
|
K(ce, O({
|
|
3686
3698
|
modelValue: t.value,
|
|
3687
|
-
"onUpdate:modelValue":
|
|
3688
|
-
}, L.$attrs, { onLoad:
|
|
3689
|
-
|
|
3690
|
-
name:
|
|
3691
|
-
fn: D((
|
|
3692
|
-
M(L.$slots,
|
|
3699
|
+
"onUpdate:modelValue": te[1] || (te[1] = (de) => t.value = de)
|
|
3700
|
+
}, L.$attrs, { onLoad: s }), ye({ _: 2 }, [
|
|
3701
|
+
N(L.$slots, (de, Ce, Te) => ({
|
|
3702
|
+
name: Ce,
|
|
3703
|
+
fn: D((le) => [
|
|
3704
|
+
M(L.$slots, Ce, { data: le }, void 0, !0)
|
|
3693
3705
|
])
|
|
3694
3706
|
}))
|
|
3695
3707
|
]), 1040, ["modelValue"])
|
|
@@ -3697,14 +3709,14 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3697
3709
|
]);
|
|
3698
3710
|
};
|
|
3699
3711
|
}
|
|
3700
|
-
}),
|
|
3712
|
+
}), Or = /* @__PURE__ */ Ze(Br, [["__scopeId", "data-v-c888e4fc"]]), Ir = {
|
|
3701
3713
|
key: 0,
|
|
3702
3714
|
class: "op-group"
|
|
3703
|
-
},
|
|
3715
|
+
}, Ur = {
|
|
3704
3716
|
key: 1,
|
|
3705
3717
|
class: "op-items",
|
|
3706
3718
|
style: { width: "100%", height: "100%" }
|
|
3707
|
-
},
|
|
3719
|
+
}, Yr = ["title"], Vt = "100px", Rr = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3708
3720
|
__name: "g-select-option",
|
|
3709
3721
|
props: {
|
|
3710
3722
|
columns: {
|
|
@@ -3725,54 +3737,54 @@ const $r = /* @__PURE__ */ zt(br), wr = { key: 0 }, Er = { style: { display: "fl
|
|
|
3725
3737
|
}
|
|
3726
3738
|
},
|
|
3727
3739
|
setup(a) {
|
|
3728
|
-
const
|
|
3729
|
-
return (r, t) =>
|
|
3730
|
-
(p(!0), I(J, null,
|
|
3731
|
-
style: qe({ width: (e == null ? void 0 : e.width) ||
|
|
3740
|
+
const n = a;
|
|
3741
|
+
return (r, t) => n.title ? (p(), I("div", Ir, [
|
|
3742
|
+
(p(!0), I(J, null, N(n.columns, (e) => (p(), I("span", {
|
|
3743
|
+
style: qe({ width: (e == null ? void 0 : e.width) || Vt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
|
|
3732
3744
|
key: e.key
|
|
3733
3745
|
}, [
|
|
3734
3746
|
M(r.$slots, `${a.t}-title-${e.key}`, { col: e }, () => [
|
|
3735
|
-
Ie(
|
|
3747
|
+
Ie(De(e.label), 1)
|
|
3736
3748
|
], !0)
|
|
3737
3749
|
], 4))), 128))
|
|
3738
|
-
])) : (p(), I("div",
|
|
3739
|
-
(p(!0), I(J, null,
|
|
3740
|
-
style: qe({ width: (e == null ? void 0 : e.width) ||
|
|
3750
|
+
])) : (p(), I("div", Ur, [
|
|
3751
|
+
(p(!0), I(J, null, N(n.columns, (e) => (p(), I("span", {
|
|
3752
|
+
style: qe({ width: (e == null ? void 0 : e.width) || Vt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
|
|
3741
3753
|
key: e.key,
|
|
3742
3754
|
title: a.data[e.key]
|
|
3743
3755
|
}, [
|
|
3744
3756
|
M(r.$slots, `${a.t}-option-${e.key}`, { col: e }, () => [
|
|
3745
|
-
Ie(
|
|
3757
|
+
Ie(De(a.data[e.key] ?? "-"), 1)
|
|
3746
3758
|
], !0)
|
|
3747
|
-
], 12,
|
|
3759
|
+
], 12, Yr))), 128))
|
|
3748
3760
|
]));
|
|
3749
3761
|
}
|
|
3750
|
-
}),
|
|
3751
|
-
let
|
|
3752
|
-
const
|
|
3753
|
-
install: (a,
|
|
3754
|
-
|
|
3762
|
+
}), Lr = /* @__PURE__ */ Ze(Rr, [["__scopeId", "data-v-c0ac6b77"]]), Hr = Object.freeze({}), Wt = [xr, _t, Or, Lr];
|
|
3763
|
+
let Ct = {};
|
|
3764
|
+
const ea = {
|
|
3765
|
+
install: (a, n = {}) => {
|
|
3766
|
+
Ct = Object.freeze({ ...Hr, ...n }), Wt.forEach((r) => {
|
|
3755
3767
|
a.component(r.name, r);
|
|
3756
|
-
}), a.provide("options",
|
|
3768
|
+
}), a.provide("options", Ct), a.config.globalProperties.$openModal = Dt;
|
|
3757
3769
|
}
|
|
3758
|
-
},
|
|
3770
|
+
}, zr = (a) => ({ dialog: Zt, drawer: Jt })[a] || null, Dt = (a = {}, n = "dialog") => {
|
|
3759
3771
|
if (typeof document > "u") return () => {
|
|
3760
3772
|
};
|
|
3761
3773
|
const r = document.createElement("div");
|
|
3762
3774
|
let t = () => {
|
|
3763
3775
|
};
|
|
3764
|
-
const e =
|
|
3776
|
+
const e = zr(n);
|
|
3765
3777
|
if (!e) return () => {
|
|
3766
3778
|
};
|
|
3767
|
-
const o =
|
|
3779
|
+
const o = oe(!0), E = sl({
|
|
3768
3780
|
setup() {
|
|
3769
3781
|
return t = () => {
|
|
3770
3782
|
o.value = !1, setTimeout(() => {
|
|
3771
|
-
|
|
3783
|
+
E.unmount(), r.remove();
|
|
3772
3784
|
}, 300);
|
|
3773
3785
|
}, () => {
|
|
3774
3786
|
var v, F, f;
|
|
3775
|
-
return
|
|
3787
|
+
return ke(e, {
|
|
3776
3788
|
modelValue: o.value,
|
|
3777
3789
|
"onUpdate:modelValue": (i) => o.value = i,
|
|
3778
3790
|
appendToBody: !0,
|
|
@@ -3790,14 +3802,14 @@ const la = {
|
|
|
3790
3802
|
};
|
|
3791
3803
|
},
|
|
3792
3804
|
mounted: () => {
|
|
3793
|
-
|
|
3805
|
+
gt();
|
|
3794
3806
|
}
|
|
3795
3807
|
});
|
|
3796
|
-
return
|
|
3797
|
-
|
|
3798
|
-
}),
|
|
3808
|
+
return Wt.forEach((v) => {
|
|
3809
|
+
E.component(v.name, v);
|
|
3810
|
+
}), E.provide("options", Ct), E.use(Qt, { locale: wl }), document.body.appendChild(r), E.mount(r), t;
|
|
3799
3811
|
};
|
|
3800
|
-
function
|
|
3812
|
+
function Gt(a, n = window.innerWidth) {
|
|
3801
3813
|
if (typeof a == "number")
|
|
3802
3814
|
return a;
|
|
3803
3815
|
if (a.endsWith("px"))
|
|
@@ -3808,9 +3820,9 @@ function Xt(a, s = window.innerWidth) {
|
|
|
3808
3820
|
if (a.endsWith("vw"))
|
|
3809
3821
|
return t * parseFloat(a) / 100;
|
|
3810
3822
|
if (a.endsWith("%")) {
|
|
3811
|
-
if (typeof
|
|
3823
|
+
if (typeof n != "number")
|
|
3812
3824
|
throw new Error("Reference size is required to convert % to px");
|
|
3813
|
-
return
|
|
3825
|
+
return n * parseFloat(a) / 100;
|
|
3814
3826
|
}
|
|
3815
3827
|
if (a.startsWith("calc(") && a.endsWith(")")) {
|
|
3816
3828
|
let o = function(v) {
|
|
@@ -3819,60 +3831,60 @@ function Xt(a, s = window.innerWidth) {
|
|
|
3819
3831
|
throw new Error("Invalid calc expression");
|
|
3820
3832
|
};
|
|
3821
3833
|
const e = a.slice(5, -1).trim();
|
|
3822
|
-
return o(e.replace(/([0-9.]+)([a-z%]+)/g, (v, F, f) =>
|
|
3834
|
+
return o(e.replace(/([0-9.]+)([a-z%]+)/g, (v, F, f) => Gt(F + f, n)));
|
|
3823
3835
|
}
|
|
3824
3836
|
throw new Error("Unsupported unit in value: " + a);
|
|
3825
3837
|
}
|
|
3826
3838
|
const Ve = (...a) => {
|
|
3827
|
-
const
|
|
3839
|
+
const n = {}, r = (t, e) => (Object.keys(e).forEach((o) => {
|
|
3828
3840
|
t[o] = typeof e[o] == "object" && !Array.isArray(e[o]) ? r(t[o] || {}, e[o]) : e[o];
|
|
3829
3841
|
}), t);
|
|
3830
|
-
return a.forEach((t = {}) => r(
|
|
3842
|
+
return a.forEach((t = {}) => r(n, t)), n;
|
|
3831
3843
|
};
|
|
3832
|
-
function Ue(a,
|
|
3844
|
+
function Ue(a, n = (r, t) => n(r, t)) {
|
|
3833
3845
|
const r = {};
|
|
3834
3846
|
for (const t in a)
|
|
3835
|
-
a.hasOwnProperty(t) &&
|
|
3847
|
+
a.hasOwnProperty(t) && n(t, a[t]) && (r[t] = a[t]);
|
|
3836
3848
|
return r;
|
|
3837
3849
|
}
|
|
3838
|
-
function
|
|
3850
|
+
function Pr(a, n, r = "value", t = "label", e = "children") {
|
|
3839
3851
|
for (const o of a) {
|
|
3840
|
-
if (o[r] ===
|
|
3852
|
+
if (o[r] === n)
|
|
3841
3853
|
return o[t];
|
|
3842
3854
|
if (o[e] && o[e].length > 0) {
|
|
3843
|
-
const
|
|
3844
|
-
if (
|
|
3845
|
-
return
|
|
3855
|
+
const E = Pr(o[e], n, r, t, e);
|
|
3856
|
+
if (E)
|
|
3857
|
+
return E;
|
|
3846
3858
|
}
|
|
3847
3859
|
}
|
|
3848
3860
|
return null;
|
|
3849
3861
|
}
|
|
3850
|
-
function
|
|
3862
|
+
function St(a) {
|
|
3851
3863
|
if (!a || isNaN(a)) return "零";
|
|
3852
|
-
const
|
|
3864
|
+
const n = ["角", "分"], r = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
|
|
3853
3865
|
["元", "万", "亿"],
|
|
3854
3866
|
["", "拾", "佰", "仟"]
|
|
3855
3867
|
], e = a < 0 ? "欠" : "";
|
|
3856
3868
|
a = Math.abs(a);
|
|
3857
3869
|
let o = "";
|
|
3858
|
-
for (let
|
|
3859
|
-
o += (r[Math.floor(a * 10 * Math.pow(10,
|
|
3870
|
+
for (let E = 0; E < n.length; E++)
|
|
3871
|
+
o += (r[Math.floor(a * 10 * Math.pow(10, E)) % 10] + n[E]).replace(/零./, "");
|
|
3860
3872
|
o = o || "整", a = Math.floor(a);
|
|
3861
|
-
for (let
|
|
3873
|
+
for (let E = 0; E < t[0].length && a > 0; E++) {
|
|
3862
3874
|
let v = "";
|
|
3863
3875
|
for (let F = 0; F < t[1].length && a > 0; F++)
|
|
3864
3876
|
v = r[a % 10] + t[1][F] + v, a = Math.floor(a / 10);
|
|
3865
|
-
o = v.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][
|
|
3877
|
+
o = v.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][E] + o;
|
|
3866
3878
|
}
|
|
3867
3879
|
return e + o.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3868
3880
|
}
|
|
3869
|
-
function
|
|
3881
|
+
function jr(a) {
|
|
3870
3882
|
if (typeof a != "number" || isNaN(a) || !isFinite(a))
|
|
3871
3883
|
return "0.00";
|
|
3872
|
-
const
|
|
3884
|
+
const n = a.toFixed(2), [r, t] = n.split(".");
|
|
3873
3885
|
return `${r.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${t}`;
|
|
3874
3886
|
}
|
|
3875
|
-
const
|
|
3887
|
+
const Se = {
|
|
3876
3888
|
RADIO: "radio",
|
|
3877
3889
|
RADIOBUTTON: "radio-button",
|
|
3878
3890
|
CHECKBOX: "checkbox",
|
|
@@ -3900,15 +3912,15 @@ const De = {
|
|
|
3900
3912
|
PASSWORD: "password",
|
|
3901
3913
|
TEXTAREA: "textarea",
|
|
3902
3914
|
TEL: "tel"
|
|
3903
|
-
},
|
|
3915
|
+
}, gt = () => {
|
|
3904
3916
|
at(() => {
|
|
3905
3917
|
const a = document.querySelector(".el-dialog");
|
|
3906
3918
|
if (!a || a.querySelector(".dialog-resize-handle"))
|
|
3907
3919
|
return;
|
|
3908
|
-
const
|
|
3909
|
-
a.appendChild(
|
|
3920
|
+
const n = Nr();
|
|
3921
|
+
a.appendChild(n), Wr(a), Gr(a, n);
|
|
3910
3922
|
});
|
|
3911
|
-
},
|
|
3923
|
+
}, Nr = () => {
|
|
3912
3924
|
const a = document.createElement("div");
|
|
3913
3925
|
return Object.assign(a.style, {
|
|
3914
3926
|
position: "absolute",
|
|
@@ -3920,7 +3932,7 @@ const De = {
|
|
|
3920
3932
|
cursor: "nwse-resize",
|
|
3921
3933
|
zIndex: "999999999999"
|
|
3922
3934
|
}), a.className = "dialog-resize-handle", a;
|
|
3923
|
-
},
|
|
3935
|
+
}, Wr = (a) => {
|
|
3924
3936
|
Object.assign(a.style, {
|
|
3925
3937
|
transition: "none",
|
|
3926
3938
|
minWidth: "300px",
|
|
@@ -3928,28 +3940,28 @@ const De = {
|
|
|
3928
3940
|
resize: "none"
|
|
3929
3941
|
// 防止与原生resize冲突
|
|
3930
3942
|
});
|
|
3931
|
-
},
|
|
3932
|
-
let r = !1, t, e, o,
|
|
3943
|
+
}, Gr = (a, n) => {
|
|
3944
|
+
let r = !1, t, e, o, E;
|
|
3933
3945
|
const v = (i) => {
|
|
3934
|
-
i.preventDefault(), r = !0, t = i.clientX, e = i.clientY, o = parseInt(document.defaultView.getComputedStyle(a).width),
|
|
3946
|
+
i.preventDefault(), r = !0, t = i.clientX, e = i.clientY, o = parseInt(document.defaultView.getComputedStyle(a).width), E = parseInt(document.defaultView.getComputedStyle(a).height), document.addEventListener("mousemove", F), document.addEventListener("mouseup", f);
|
|
3935
3947
|
}, F = (i) => {
|
|
3936
3948
|
if (!r) return;
|
|
3937
|
-
const
|
|
3938
|
-
a.style.width = `${
|
|
3949
|
+
const s = Math.max(300, o + i.clientX - t), c = Math.max(200, E + i.clientY - e);
|
|
3950
|
+
a.style.width = `${s}px`, a.style.height = `${c}px`;
|
|
3939
3951
|
}, f = () => {
|
|
3940
3952
|
r = !1, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", f);
|
|
3941
3953
|
};
|
|
3942
|
-
|
|
3954
|
+
n.addEventListener("mousedown", v);
|
|
3943
3955
|
};
|
|
3944
3956
|
export {
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3957
|
+
Se as CT,
|
|
3958
|
+
gt as bindResize,
|
|
3959
|
+
Gt as convertToPx,
|
|
3960
|
+
ea as default,
|
|
3949
3961
|
Ue as filterObject,
|
|
3950
|
-
|
|
3951
|
-
|
|
3962
|
+
Pr as findTreeLabelByValue,
|
|
3963
|
+
jr as formatAmount,
|
|
3952
3964
|
Ve as mergeObjects,
|
|
3953
|
-
|
|
3954
|
-
|
|
3965
|
+
St as moneyToChinese,
|
|
3966
|
+
Dt as openModal
|
|
3955
3967
|
};
|