general-basic-form 1.2.7 → 1.2.8
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.js +269 -244
- package/dist/index.umd.cjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -106,7 +106,7 @@ const Se = we.exports, ke = (a = {}) => {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
return a;
|
|
109
|
-
},
|
|
109
|
+
}, te = { paramsToQuery: ke, queryToData: xe }, N = q;
|
|
110
110
|
(function(a, e) {
|
|
111
111
|
const t = q, r = a();
|
|
112
112
|
for (; ; )
|
|
@@ -119,8 +119,8 @@ const Se = we.exports, ke = (a = {}) => {
|
|
|
119
119
|
}
|
|
120
120
|
})(J, 819524);
|
|
121
121
|
const S = {};
|
|
122
|
-
let
|
|
123
|
-
const
|
|
122
|
+
let C = null;
|
|
123
|
+
const ue = async (a, e) => {
|
|
124
124
|
const t = q;
|
|
125
125
|
!window[t(543)] && window[t(498)]("您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.");
|
|
126
126
|
const { DBName: r = "", DBVersion: n = 1 } = a;
|
|
@@ -132,22 +132,22 @@ const ie = async (a, e) => {
|
|
|
132
132
|
s[p(551)] = async function(u) {
|
|
133
133
|
const l = p, y = u.target.result, { stores: _ = [] } = a;
|
|
134
134
|
await Promise.all(_[l(509)](async (f) => {
|
|
135
|
-
const
|
|
135
|
+
const m = l, { DBStoreName: h = "", properties: b = {} } = f;
|
|
136
136
|
try {
|
|
137
137
|
const g = {};
|
|
138
|
-
g[
|
|
139
|
-
const
|
|
140
|
-
if (Object[
|
|
141
|
-
console[
|
|
138
|
+
g[m(536)] = a[m(557)];
|
|
139
|
+
const P = u[m(541)][m(520)][m(554)](h, g);
|
|
140
|
+
if (Object[m(548)](b)[m(500)] === 0) {
|
|
141
|
+
console[m(559)](h + "没有设置默认值");
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
144
|
for (const v in b)
|
|
145
|
-
if (b[
|
|
145
|
+
if (b[m(556)][m(515)](b, v)) {
|
|
146
146
|
const w = b[v], x = { ...w.createIndex };
|
|
147
|
-
|
|
147
|
+
P[m(504)](v, v, x);
|
|
148
148
|
}
|
|
149
149
|
} catch (g) {
|
|
150
|
-
console[
|
|
150
|
+
console[m(559)](g);
|
|
151
151
|
}
|
|
152
152
|
})), o = y, i = !0;
|
|
153
153
|
}, s[p(535)] = async function(u) {
|
|
@@ -155,23 +155,23 @@ const ie = async (a, e) => {
|
|
|
155
155
|
if (o = this[l(520)], i) {
|
|
156
156
|
const { stores: y = [] } = a;
|
|
157
157
|
await Promise[l(528)](y[l(509)](async (_) => {
|
|
158
|
-
const f = l, { DBStoreName:
|
|
158
|
+
const f = l, { DBStoreName: m = "" } = _, h = o[f(552)]([m], f(547)), b = h[f(496)](m), g = {};
|
|
159
159
|
g[a[f(557)]] = e, b[f(502)](g);
|
|
160
160
|
try {
|
|
161
|
-
await new Promise((
|
|
161
|
+
await new Promise((P, v) => {
|
|
162
162
|
const w = f;
|
|
163
|
-
|
|
164
|
-
const
|
|
165
|
-
console[
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
},
|
|
169
|
-
const
|
|
170
|
-
console[
|
|
163
|
+
h[w(525)] = function(x) {
|
|
164
|
+
const B = w;
|
|
165
|
+
console[B(513)](B(512), x), v();
|
|
166
|
+
}, h[w(544)] = function(x) {
|
|
167
|
+
P();
|
|
168
|
+
}, h[w(529)] = function(x) {
|
|
169
|
+
const B = w;
|
|
170
|
+
console[B(513)](B(534), x), v();
|
|
171
171
|
};
|
|
172
172
|
});
|
|
173
|
-
} catch (
|
|
174
|
-
console.warn(f(511),
|
|
173
|
+
} catch (P) {
|
|
174
|
+
console.warn(f(511), P);
|
|
175
175
|
}
|
|
176
176
|
}));
|
|
177
177
|
}
|
|
@@ -197,21 +197,21 @@ function q(a, e) {
|
|
|
197
197
|
return r = r - 496, t[r];
|
|
198
198
|
}, q(a, e);
|
|
199
199
|
}
|
|
200
|
-
let
|
|
201
|
-
S[
|
|
202
|
-
const t =
|
|
203
|
-
return r ? n ? (
|
|
200
|
+
let j = !1;
|
|
201
|
+
S[N(549)] = async (a, e) => {
|
|
202
|
+
const t = N, { mapDB: r, primaryKey: n } = a;
|
|
203
|
+
return r ? n ? (j && await new Promise(async (o, i) => {
|
|
204
204
|
const s = () => {
|
|
205
|
-
|
|
205
|
+
j ? setTimeout(() => {
|
|
206
206
|
s();
|
|
207
207
|
}, 200) : o();
|
|
208
208
|
};
|
|
209
209
|
s();
|
|
210
|
-
}), !
|
|
211
|
-
console.info(t(532)),
|
|
212
|
-
}),
|
|
213
|
-
}, S[
|
|
214
|
-
const t =
|
|
210
|
+
}), !C && (j = !0, C = await ue(r, n), C == null || C.addEventListener(t(555), async () => {
|
|
211
|
+
console.info(t(532)), C = await ue(r, n);
|
|
212
|
+
}), j = !1), e && e(C), C) : (console[t(559)](t(542)), !1) : (console[t(559)]("必须传入数据库配置信息"), !1);
|
|
213
|
+
}, S[N(523)] = async (a, e) => {
|
|
214
|
+
const t = N, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
|
|
215
215
|
i[t(508)] = r, i[t(557)] = o;
|
|
216
216
|
const s = await S.getDB(i);
|
|
217
217
|
if (!s)
|
|
@@ -228,7 +228,7 @@ S[T(549)] = async (a, e) => {
|
|
|
228
228
|
});
|
|
229
229
|
}, S.updateStore = async (a, e) => {
|
|
230
230
|
var t;
|
|
231
|
-
const r =
|
|
231
|
+
const r = N, { mapDB: n, tableName: o, updateData: i } = a;
|
|
232
232
|
!i[n == null ? void 0 : n[r(557)]] && console[r(559)](r(507) + n[r(557)]);
|
|
233
233
|
const s = {};
|
|
234
234
|
s.mapDB = n, s[r(557)] = i[n == null ? void 0 : n[r(557)]];
|
|
@@ -243,11 +243,11 @@ S[T(549)] = async (a, e) => {
|
|
|
243
243
|
}
|
|
244
244
|
let p = null, u = null;
|
|
245
245
|
const l = await new Promise((y, _) => {
|
|
246
|
-
const f = r,
|
|
247
|
-
|
|
248
|
-
y(
|
|
249
|
-
},
|
|
250
|
-
_(
|
|
246
|
+
const f = r, m = d[f(501)](i[n == null ? void 0 : n[f(557)]]);
|
|
247
|
+
m[f(535)] = (h) => {
|
|
248
|
+
y(h);
|
|
249
|
+
}, m.onerror = (h) => {
|
|
250
|
+
_(h);
|
|
251
251
|
};
|
|
252
252
|
});
|
|
253
253
|
u = (t = l == null ? void 0 : l[r(533)]) == null ? void 0 : t[r(520)];
|
|
@@ -258,15 +258,15 @@ S[T(549)] = async (a, e) => {
|
|
|
258
258
|
}
|
|
259
259
|
new Promise((y, _) => {
|
|
260
260
|
const f = r;
|
|
261
|
-
!p && (console[f(513)](o + f(531)), _()), p[f(535)] = function(
|
|
261
|
+
!p && (console[f(513)](o + f(531)), _()), p[f(535)] = function(m) {
|
|
262
262
|
e && e(o + f(537)), y();
|
|
263
|
-
}, p[f(529)] = function(
|
|
264
|
-
const
|
|
265
|
-
console[
|
|
263
|
+
}, p[f(529)] = function(m) {
|
|
264
|
+
const h = f;
|
|
265
|
+
console[h(513)](o + h(497), m), _();
|
|
266
266
|
};
|
|
267
267
|
}), u && u[r(516)]();
|
|
268
|
-
}, S[
|
|
269
|
-
const t =
|
|
268
|
+
}, S[N(518)] = async (a, e) => {
|
|
269
|
+
const t = N, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
|
|
270
270
|
i[t(508)] = r, i[t(557)] = o;
|
|
271
271
|
const s = await S.getDB(i);
|
|
272
272
|
if (!s)
|
|
@@ -281,7 +281,7 @@ S[T(549)] = async (a, e) => {
|
|
|
281
281
|
console[y(513)](n + y(524) + l), p();
|
|
282
282
|
};
|
|
283
283
|
});
|
|
284
|
-
}, S[
|
|
284
|
+
}, S[N(505)] = async (a, e) => {
|
|
285
285
|
const { mapDB: t } = a, r = window.indexedDB.deleteDatabase(t.DBName);
|
|
286
286
|
return new Promise((n, o) => {
|
|
287
287
|
const i = q;
|
|
@@ -293,11 +293,11 @@ S[T(549)] = async (a, e) => {
|
|
|
293
293
|
};
|
|
294
294
|
});
|
|
295
295
|
};
|
|
296
|
-
function
|
|
296
|
+
function K(a, e) {
|
|
297
297
|
const t = Z();
|
|
298
|
-
return
|
|
298
|
+
return K = function(r, n) {
|
|
299
299
|
return r = r - 125, t[r];
|
|
300
|
-
},
|
|
300
|
+
}, K(a, e);
|
|
301
301
|
}
|
|
302
302
|
function Z() {
|
|
303
303
|
const a = ["updateData", "error", "getDataByKey", "531aQoQZo", "primaryKey", "handleData", "2kSsgxs", "777jFjQPc", "1271805RJVSFy", "546pnZEJw", "3522904vvFeGW", "4wGSwDA", "tableName", "780ChApSf", "deleteStore", "655364nEjUrb", "3705144rIEFqv", "updateStore", "getData", "clearData", "mapDB", "3003845nIJAzp"];
|
|
@@ -305,9 +305,9 @@ function Z() {
|
|
|
305
305
|
return a;
|
|
306
306
|
}, Z();
|
|
307
307
|
}
|
|
308
|
-
const G =
|
|
308
|
+
const G = K;
|
|
309
309
|
(function(a, e) {
|
|
310
|
-
const t =
|
|
310
|
+
const t = K, r = a();
|
|
311
311
|
for (; ; )
|
|
312
312
|
try {
|
|
313
313
|
if (-parseInt(t(140)) / 1 * (-parseInt(t(127)) / 2) + parseInt(t(142)) / 3 * (parseInt(t(145)) / 4) + -parseInt(t(133)) / 5 + -parseInt(t(143)) / 6 * (parseInt(t(141)) / 7) + -parseInt(t(128)) / 8 + parseInt(t(137)) / 9 * (parseInt(t(125)) / 10) + parseInt(t(144)) / 11 === e)
|
|
@@ -318,7 +318,7 @@ const G = C;
|
|
|
318
318
|
}
|
|
319
319
|
})(Z, 330152);
|
|
320
320
|
async function De(a, e) {
|
|
321
|
-
const t =
|
|
321
|
+
const t = K, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
|
|
322
322
|
let c = null, d = { [s[t(138)]]: i };
|
|
323
323
|
const p = {};
|
|
324
324
|
p[t(132)] = s, p.tableName = r, p[t(138)] = i;
|
|
@@ -328,15 +328,15 @@ async function De(a, e) {
|
|
|
328
328
|
return l[t(132)] = s, l.tableName = r, l[t(134)] = d, await S[t(129)](l), o && (c = o), e && e(c), c;
|
|
329
329
|
}
|
|
330
330
|
async function Ie(a, e) {
|
|
331
|
-
const t =
|
|
331
|
+
const t = K, { tableName: r, propertiesKey: n, primaryKey: o, mapDB: i } = a;
|
|
332
332
|
let s = null;
|
|
333
333
|
const c = {};
|
|
334
334
|
c[t(132)] = i, c[t(146)] = r, c.primaryKey = o;
|
|
335
335
|
const d = await S[t(136)](c);
|
|
336
336
|
return d && (s = d[n]), e && e(s), s;
|
|
337
337
|
}
|
|
338
|
-
async function
|
|
339
|
-
const t =
|
|
338
|
+
async function Pe(a, e) {
|
|
339
|
+
const t = K, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
|
|
340
340
|
let c = {};
|
|
341
341
|
const d = {};
|
|
342
342
|
d.mapDB = s, d[t(146)] = r, d[t(138)] = i;
|
|
@@ -355,8 +355,8 @@ async function Be(a, e) {
|
|
|
355
355
|
}
|
|
356
356
|
return e && e(c), c;
|
|
357
357
|
}
|
|
358
|
-
async function
|
|
359
|
-
const t =
|
|
358
|
+
async function Be(a, e) {
|
|
359
|
+
const t = K, { tableName: r, primaryKey: n, mapDB: o } = a;
|
|
360
360
|
let i = null;
|
|
361
361
|
try {
|
|
362
362
|
const s = {};
|
|
@@ -367,7 +367,7 @@ async function Pe(a, e) {
|
|
|
367
367
|
return e && e(i), i;
|
|
368
368
|
}
|
|
369
369
|
const E = {};
|
|
370
|
-
E[G(139)] = De, E[G(130)] = Ie, E[G(134)] =
|
|
370
|
+
E[G(139)] = De, E[G(130)] = Ie, E[G(134)] = Pe, E[G(131)] = Be;
|
|
371
371
|
var D = U;
|
|
372
372
|
(function(a, e) {
|
|
373
373
|
for (var t = U, r = a(); ; )
|
|
@@ -380,18 +380,18 @@ var D = U;
|
|
|
380
380
|
r.push(r.shift());
|
|
381
381
|
}
|
|
382
382
|
})(M, 363872);
|
|
383
|
-
var
|
|
384
|
-
|
|
385
|
-
var
|
|
386
|
-
|
|
387
|
-
var
|
|
383
|
+
var de = {};
|
|
384
|
+
de[D(397)] = !1;
|
|
385
|
+
var re = {};
|
|
386
|
+
re[D(384)] = de, re[D(392)] = {};
|
|
387
|
+
var fe = {};
|
|
388
388
|
function M() {
|
|
389
389
|
var a = ["default", "mapDB-indexeddb-form-schema", "663915ecCGKl", "primaryKey", "stores", "unique", "12QKZOdu", "2103521TxMjSC", "1212714qgZAmF", "formParams", "3534618LLAImJ", "DBName", "properties", "createIndex", "464644FTRsMp", "128qSoFyx", "33606razpoB", "DBVersion", "168804drPGaG", "queryParams", "DBStoreName"];
|
|
390
390
|
return M = function() {
|
|
391
391
|
return a;
|
|
392
392
|
}, M();
|
|
393
393
|
}
|
|
394
|
-
|
|
394
|
+
fe[D(390)] = re;
|
|
395
395
|
function U(a, e) {
|
|
396
396
|
var t = M();
|
|
397
397
|
return U = function(r, n) {
|
|
@@ -400,40 +400,94 @@ function U(a, e) {
|
|
|
400
400
|
return o;
|
|
401
401
|
}, U(a, e);
|
|
402
402
|
}
|
|
403
|
-
var
|
|
404
|
-
|
|
405
|
-
var
|
|
406
|
-
|
|
407
|
-
const
|
|
408
|
-
formSchema:
|
|
409
|
-
},
|
|
403
|
+
var ae = {};
|
|
404
|
+
ae[D(391)] = D(401), ae[D(383)] = fe;
|
|
405
|
+
var Q = {};
|
|
406
|
+
Q[D(395)] = "userId", Q[D(382)] = D(393), Q[D(388)] = 1, Q[D(396)] = [ae];
|
|
407
|
+
const Ne = {
|
|
408
|
+
formSchema: Q
|
|
409
|
+
}, Te = E, { handleData: Ke, getData: ye } = Te, { formSchema: oe } = Ne, ie = async (a, e) => {
|
|
410
410
|
var t;
|
|
411
411
|
return e.parametersType === "url" && (a = {
|
|
412
|
-
...
|
|
412
|
+
...te.queryToData((t = e.$route) == null ? void 0 : t.query),
|
|
413
413
|
...a
|
|
414
414
|
}), e.parametersType === "indexDB" && (a = {
|
|
415
|
-
...await
|
|
415
|
+
...await ye({
|
|
416
416
|
tableName: "formParams",
|
|
417
417
|
propertiesKey: e.$route.path || "defQueryParams",
|
|
418
418
|
primaryKey: e.DBPrimaryKey || "default",
|
|
419
|
-
mapDB:
|
|
419
|
+
mapDB: oe
|
|
420
420
|
}),
|
|
421
421
|
...a
|
|
422
422
|
}), a;
|
|
423
|
-
},
|
|
423
|
+
}, ce = async (a, e) => {
|
|
424
424
|
e.parametersType === "url" && await e.$router.push({
|
|
425
|
-
query:
|
|
426
|
-
}), e.parametersType === "indexDB" && await
|
|
425
|
+
query: te.paramsToQuery({ ...a })
|
|
426
|
+
}), e.parametersType === "indexDB" && await Ke({
|
|
427
427
|
tableName: "formParams",
|
|
428
428
|
propertiesKey: e.$route.path || "defQueryParams",
|
|
429
429
|
parameter: { ...a },
|
|
430
430
|
primaryKey: e.DBPrimaryKey || "default",
|
|
431
|
-
mapDB:
|
|
431
|
+
mapDB: oe
|
|
432
|
+
});
|
|
433
|
+
}, Fe = async ({ queryParameter: a = {}, vm: e = {} }) => {
|
|
434
|
+
a.defaultPageFirst ?? (a.defaultPageFirst = !0);
|
|
435
|
+
const t = { [e.currentPageKey]: e.defCurrentPage };
|
|
436
|
+
let r = {
|
|
437
|
+
...t,
|
|
438
|
+
...e.queryParams
|
|
439
|
+
};
|
|
440
|
+
r = await ie(r, e), a.defaultPageFirst && (r = {
|
|
441
|
+
...r,
|
|
442
|
+
...t
|
|
443
|
+
}), await ce(r, e), e.getList({
|
|
444
|
+
...r
|
|
432
445
|
});
|
|
433
|
-
},
|
|
434
|
-
|
|
435
|
-
|
|
446
|
+
}, Ce = async ({ vm: a = {} }) => {
|
|
447
|
+
a.$refs.queryFormRef.resetFields();
|
|
448
|
+
const e = await ie({}, a), t = {
|
|
449
|
+
[a.currentPageKey]: a.defCurrentPage,
|
|
450
|
+
[a.pageSizeKey]: (e == null ? void 0 : e[a.pageSizeKey]) || a.defPageSize
|
|
451
|
+
};
|
|
452
|
+
await ce(t, a), a.queryParams = { ...t }, a.afterReset(), a.handleQuery();
|
|
453
|
+
}, $e = ({ vm: a = {} }) => {
|
|
454
|
+
var e;
|
|
455
|
+
let t = {
|
|
456
|
+
[a.pageSizeKey]: a.defPageSize
|
|
457
|
+
};
|
|
458
|
+
return a.parametersType === "url" && (t = {
|
|
459
|
+
...t,
|
|
460
|
+
...te.queryToData((e = a.$route) == null ? void 0 : e.query)
|
|
461
|
+
}), a.parametersType === "indexDB" && ye(
|
|
462
|
+
{
|
|
463
|
+
tableName: "formParams",
|
|
464
|
+
propertiesKey: a.$route.path || "defQueryParams",
|
|
465
|
+
primaryKey: a.DBPrimaryKey || "default",
|
|
466
|
+
mapDB: oe
|
|
467
|
+
},
|
|
468
|
+
(r) => {
|
|
469
|
+
r && (a.queryParams = { ...t, ...r }), a.queryWhenReady && a.$nextTick(() => {
|
|
470
|
+
a.handleQuery({ defaultPageFirst: !1 });
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
), a.queryWhenReady && a.parametersType !== "indexDB" && a.$nextTick(() => {
|
|
474
|
+
a.handleQuery({ defaultPageFirst: !1 });
|
|
475
|
+
}), t;
|
|
476
|
+
}, qe = ({ item: a = {}, vm: e = {} }) => {
|
|
477
|
+
const { type: t, rules: r = [] } = a, n = [...r];
|
|
478
|
+
return e.noInputBlank && t === "input" && n.push({
|
|
479
|
+
pattern: /\S/,
|
|
480
|
+
message: "请输入(不能仅输入空格)",
|
|
481
|
+
trigger: "blur"
|
|
482
|
+
}), n;
|
|
436
483
|
}, Le = {
|
|
484
|
+
makeParamsByType: ie,
|
|
485
|
+
saveParamsByType: ce,
|
|
486
|
+
handleQuery: Fe,
|
|
487
|
+
resetQuery: Ce,
|
|
488
|
+
initQueryParams: $e,
|
|
489
|
+
getItemRules: qe
|
|
490
|
+
}, Oe = {
|
|
437
491
|
functional: !0,
|
|
438
492
|
props: {
|
|
439
493
|
renderFunction: {
|
|
@@ -451,7 +505,7 @@ const Te = {
|
|
|
451
505
|
const { props: t } = e, { renderFunction: r, item: n } = t;
|
|
452
506
|
return r(n);
|
|
453
507
|
}
|
|
454
|
-
},
|
|
508
|
+
}, ze = te, z = Le, le = Oe, T = L;
|
|
455
509
|
(function(a, e) {
|
|
456
510
|
const t = L, r = a();
|
|
457
511
|
for (; ; )
|
|
@@ -465,7 +519,7 @@ const Te = {
|
|
|
465
519
|
})(H, 819524);
|
|
466
520
|
const k = {};
|
|
467
521
|
let $ = null;
|
|
468
|
-
const
|
|
522
|
+
const pe = async (a, e) => {
|
|
469
523
|
const t = L;
|
|
470
524
|
!window[t(543)] && window[t(498)]("您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.");
|
|
471
525
|
const { DBName: r = "", DBVersion: n = 1 } = a;
|
|
@@ -477,22 +531,22 @@ const ce = async (a, e) => {
|
|
|
477
531
|
s[p(551)] = async function(u) {
|
|
478
532
|
const l = p, y = u.target.result, { stores: _ = [] } = a;
|
|
479
533
|
await Promise.all(_[l(509)](async (f) => {
|
|
480
|
-
const
|
|
534
|
+
const m = l, { DBStoreName: h = "", properties: b = {} } = f;
|
|
481
535
|
try {
|
|
482
536
|
const g = {};
|
|
483
|
-
g[
|
|
484
|
-
const
|
|
485
|
-
if (Object[
|
|
486
|
-
console[
|
|
537
|
+
g[m(536)] = a[m(557)];
|
|
538
|
+
const P = u[m(541)][m(520)][m(554)](h, g);
|
|
539
|
+
if (Object[m(548)](b)[m(500)] === 0) {
|
|
540
|
+
console[m(559)](h + "没有设置默认值");
|
|
487
541
|
return;
|
|
488
542
|
}
|
|
489
543
|
for (const v in b)
|
|
490
|
-
if (b[
|
|
544
|
+
if (b[m(556)][m(515)](b, v)) {
|
|
491
545
|
const w = b[v], x = { ...w.createIndex };
|
|
492
|
-
|
|
546
|
+
P[m(504)](v, v, x);
|
|
493
547
|
}
|
|
494
548
|
} catch (g) {
|
|
495
|
-
console[
|
|
549
|
+
console[m(559)](g);
|
|
496
550
|
}
|
|
497
551
|
})), o = y, i = !0;
|
|
498
552
|
}, s[p(535)] = async function(u) {
|
|
@@ -500,23 +554,23 @@ const ce = async (a, e) => {
|
|
|
500
554
|
if (o = this[l(520)], i) {
|
|
501
555
|
const { stores: y = [] } = a;
|
|
502
556
|
await Promise[l(528)](y[l(509)](async (_) => {
|
|
503
|
-
const f = l, { DBStoreName:
|
|
557
|
+
const f = l, { DBStoreName: m = "" } = _, h = o[f(552)]([m], f(547)), b = h[f(496)](m), g = {};
|
|
504
558
|
g[a[f(557)]] = e, b[f(502)](g);
|
|
505
559
|
try {
|
|
506
|
-
await new Promise((
|
|
560
|
+
await new Promise((P, v) => {
|
|
507
561
|
const w = f;
|
|
508
|
-
|
|
509
|
-
const
|
|
510
|
-
console[
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
},
|
|
514
|
-
const
|
|
515
|
-
console[
|
|
562
|
+
h[w(525)] = function(x) {
|
|
563
|
+
const B = w;
|
|
564
|
+
console[B(513)](B(512), x), v();
|
|
565
|
+
}, h[w(544)] = function(x) {
|
|
566
|
+
P();
|
|
567
|
+
}, h[w(529)] = function(x) {
|
|
568
|
+
const B = w;
|
|
569
|
+
console[B(513)](B(534), x), v();
|
|
516
570
|
};
|
|
517
571
|
});
|
|
518
|
-
} catch (
|
|
519
|
-
console.warn(f(511),
|
|
572
|
+
} catch (P) {
|
|
573
|
+
console.warn(f(511), P);
|
|
520
574
|
}
|
|
521
575
|
}));
|
|
522
576
|
}
|
|
@@ -543,8 +597,8 @@ function L(a, e) {
|
|
|
543
597
|
}, L(a, e);
|
|
544
598
|
}
|
|
545
599
|
let V = !1;
|
|
546
|
-
k[
|
|
547
|
-
const t =
|
|
600
|
+
k[T(549)] = async (a, e) => {
|
|
601
|
+
const t = T, { mapDB: r, primaryKey: n } = a;
|
|
548
602
|
return r ? n ? (V && await new Promise(async (o, i) => {
|
|
549
603
|
const s = () => {
|
|
550
604
|
V ? setTimeout(() => {
|
|
@@ -552,11 +606,11 @@ k[N(549)] = async (a, e) => {
|
|
|
552
606
|
}, 200) : o();
|
|
553
607
|
};
|
|
554
608
|
s();
|
|
555
|
-
}), !$ && (V = !0, $ = await
|
|
556
|
-
console.info(t(532)), $ = await
|
|
609
|
+
}), !$ && (V = !0, $ = await pe(r, n), $ == null || $.addEventListener(t(555), async () => {
|
|
610
|
+
console.info(t(532)), $ = await pe(r, n);
|
|
557
611
|
}), V = !1), e && e($), $) : (console[t(559)](t(542)), !1) : (console[t(559)]("必须传入数据库配置信息"), !1);
|
|
558
|
-
}, k[
|
|
559
|
-
const t =
|
|
612
|
+
}, k[T(523)] = async (a, e) => {
|
|
613
|
+
const t = T, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
|
|
560
614
|
i[t(508)] = r, i[t(557)] = o;
|
|
561
615
|
const s = await k.getDB(i);
|
|
562
616
|
if (!s)
|
|
@@ -573,7 +627,7 @@ k[N(549)] = async (a, e) => {
|
|
|
573
627
|
});
|
|
574
628
|
}, k.updateStore = async (a, e) => {
|
|
575
629
|
var t;
|
|
576
|
-
const r =
|
|
630
|
+
const r = T, { mapDB: n, tableName: o, updateData: i } = a;
|
|
577
631
|
!i[n == null ? void 0 : n[r(557)]] && console[r(559)](r(507) + n[r(557)]);
|
|
578
632
|
const s = {};
|
|
579
633
|
s.mapDB = n, s[r(557)] = i[n == null ? void 0 : n[r(557)]];
|
|
@@ -588,11 +642,11 @@ k[N(549)] = async (a, e) => {
|
|
|
588
642
|
}
|
|
589
643
|
let p = null, u = null;
|
|
590
644
|
const l = await new Promise((y, _) => {
|
|
591
|
-
const f = r,
|
|
592
|
-
|
|
593
|
-
y(
|
|
594
|
-
},
|
|
595
|
-
_(
|
|
645
|
+
const f = r, m = d[f(501)](i[n == null ? void 0 : n[f(557)]]);
|
|
646
|
+
m[f(535)] = (h) => {
|
|
647
|
+
y(h);
|
|
648
|
+
}, m.onerror = (h) => {
|
|
649
|
+
_(h);
|
|
596
650
|
};
|
|
597
651
|
});
|
|
598
652
|
u = (t = l == null ? void 0 : l[r(533)]) == null ? void 0 : t[r(520)];
|
|
@@ -603,15 +657,15 @@ k[N(549)] = async (a, e) => {
|
|
|
603
657
|
}
|
|
604
658
|
new Promise((y, _) => {
|
|
605
659
|
const f = r;
|
|
606
|
-
!p && (console[f(513)](o + f(531)), _()), p[f(535)] = function(
|
|
660
|
+
!p && (console[f(513)](o + f(531)), _()), p[f(535)] = function(m) {
|
|
607
661
|
e && e(o + f(537)), y();
|
|
608
|
-
}, p[f(529)] = function(
|
|
609
|
-
const
|
|
610
|
-
console[
|
|
662
|
+
}, p[f(529)] = function(m) {
|
|
663
|
+
const h = f;
|
|
664
|
+
console[h(513)](o + h(497), m), _();
|
|
611
665
|
};
|
|
612
666
|
}), u && u[r(516)]();
|
|
613
|
-
}, k[
|
|
614
|
-
const t =
|
|
667
|
+
}, k[T(518)] = async (a, e) => {
|
|
668
|
+
const t = T, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
|
|
615
669
|
i[t(508)] = r, i[t(557)] = o;
|
|
616
670
|
const s = await k.getDB(i);
|
|
617
671
|
if (!s)
|
|
@@ -626,7 +680,7 @@ k[N(549)] = async (a, e) => {
|
|
|
626
680
|
console[y(513)](n + y(524) + l), p();
|
|
627
681
|
};
|
|
628
682
|
});
|
|
629
|
-
}, k[
|
|
683
|
+
}, k[T(505)] = async (a, e) => {
|
|
630
684
|
const { mapDB: t } = a, r = window.indexedDB.deleteDatabase(t.DBName);
|
|
631
685
|
return new Promise((n, o) => {
|
|
632
686
|
const i = L;
|
|
@@ -638,11 +692,11 @@ k[N(549)] = async (a, e) => {
|
|
|
638
692
|
};
|
|
639
693
|
});
|
|
640
694
|
};
|
|
641
|
-
function
|
|
695
|
+
function F(a, e) {
|
|
642
696
|
const t = X();
|
|
643
|
-
return
|
|
697
|
+
return F = function(r, n) {
|
|
644
698
|
return r = r - 125, t[r];
|
|
645
|
-
},
|
|
699
|
+
}, F(a, e);
|
|
646
700
|
}
|
|
647
701
|
function X() {
|
|
648
702
|
const a = ["updateData", "error", "getDataByKey", "531aQoQZo", "primaryKey", "handleData", "2kSsgxs", "777jFjQPc", "1271805RJVSFy", "546pnZEJw", "3522904vvFeGW", "4wGSwDA", "tableName", "780ChApSf", "deleteStore", "655364nEjUrb", "3705144rIEFqv", "updateStore", "getData", "clearData", "mapDB", "3003845nIJAzp"];
|
|
@@ -650,9 +704,9 @@ function X() {
|
|
|
650
704
|
return a;
|
|
651
705
|
}, X();
|
|
652
706
|
}
|
|
653
|
-
const W =
|
|
707
|
+
const W = F;
|
|
654
708
|
(function(a, e) {
|
|
655
|
-
const t =
|
|
709
|
+
const t = F, r = a();
|
|
656
710
|
for (; ; )
|
|
657
711
|
try {
|
|
658
712
|
if (-parseInt(t(140)) / 1 * (-parseInt(t(127)) / 2) + parseInt(t(142)) / 3 * (parseInt(t(145)) / 4) + -parseInt(t(133)) / 5 + -parseInt(t(143)) / 6 * (parseInt(t(141)) / 7) + -parseInt(t(128)) / 8 + parseInt(t(137)) / 9 * (parseInt(t(125)) / 10) + parseInt(t(144)) / 11 === e)
|
|
@@ -662,8 +716,8 @@ const W = K;
|
|
|
662
716
|
r.push(r.shift());
|
|
663
717
|
}
|
|
664
718
|
})(X, 330152);
|
|
665
|
-
async function
|
|
666
|
-
const t =
|
|
719
|
+
async function Ee(a, e) {
|
|
720
|
+
const t = F, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
|
|
667
721
|
let c = null, d = { [s[t(138)]]: i };
|
|
668
722
|
const p = {};
|
|
669
723
|
p[t(132)] = s, p.tableName = r, p[t(138)] = i;
|
|
@@ -672,16 +726,16 @@ async function Oe(a, e) {
|
|
|
672
726
|
const l = {};
|
|
673
727
|
return l[t(132)] = s, l.tableName = r, l[t(134)] = d, await k[t(129)](l), o && (c = o), e && e(c), c;
|
|
674
728
|
}
|
|
675
|
-
async function
|
|
676
|
-
const t =
|
|
729
|
+
async function Qe(a, e) {
|
|
730
|
+
const t = F, { tableName: r, propertiesKey: n, primaryKey: o, mapDB: i } = a;
|
|
677
731
|
let s = null;
|
|
678
732
|
const c = {};
|
|
679
733
|
c[t(132)] = i, c[t(146)] = r, c.primaryKey = o;
|
|
680
734
|
const d = await k[t(136)](c);
|
|
681
735
|
return d && (s = d[n]), e && e(s), s;
|
|
682
736
|
}
|
|
683
|
-
async function
|
|
684
|
-
const t =
|
|
737
|
+
async function Re(a, e) {
|
|
738
|
+
const t = F, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
|
|
685
739
|
let c = {};
|
|
686
740
|
const d = {};
|
|
687
741
|
d.mapDB = s, d[t(146)] = r, d[t(138)] = i;
|
|
@@ -700,8 +754,8 @@ async function Ee(a, e) {
|
|
|
700
754
|
}
|
|
701
755
|
return e && e(c), c;
|
|
702
756
|
}
|
|
703
|
-
async function
|
|
704
|
-
const t =
|
|
757
|
+
async function Ae(a, e) {
|
|
758
|
+
const t = F, { tableName: r, primaryKey: n, mapDB: o } = a;
|
|
705
759
|
let i = null;
|
|
706
760
|
try {
|
|
707
761
|
const s = {};
|
|
@@ -711,8 +765,8 @@ async function Re(a, e) {
|
|
|
711
765
|
}
|
|
712
766
|
return e && e(i), i;
|
|
713
767
|
}
|
|
714
|
-
const
|
|
715
|
-
|
|
768
|
+
const R = {};
|
|
769
|
+
R[W(139)] = Ee, R[W(130)] = Qe, R[W(134)] = Re, R[W(131)] = Ae;
|
|
716
770
|
var I = ee;
|
|
717
771
|
(function(a, e) {
|
|
718
772
|
for (var t = ee, r = a(); ; )
|
|
@@ -725,18 +779,18 @@ var I = ee;
|
|
|
725
779
|
r.push(r.shift());
|
|
726
780
|
}
|
|
727
781
|
})(Y, 363872);
|
|
728
|
-
var
|
|
729
|
-
|
|
730
|
-
var
|
|
731
|
-
|
|
732
|
-
var
|
|
782
|
+
var me = {};
|
|
783
|
+
me[I(397)] = !1;
|
|
784
|
+
var ne = {};
|
|
785
|
+
ne[I(384)] = me, ne[I(392)] = {};
|
|
786
|
+
var he = {};
|
|
733
787
|
function Y() {
|
|
734
788
|
var a = ["default", "mapDB-indexeddb-form-schema", "663915ecCGKl", "primaryKey", "stores", "unique", "12QKZOdu", "2103521TxMjSC", "1212714qgZAmF", "formParams", "3534618LLAImJ", "DBName", "properties", "createIndex", "464644FTRsMp", "128qSoFyx", "33606razpoB", "DBVersion", "168804drPGaG", "queryParams", "DBStoreName"];
|
|
735
789
|
return Y = function() {
|
|
736
790
|
return a;
|
|
737
791
|
}, Y();
|
|
738
792
|
}
|
|
739
|
-
|
|
793
|
+
he[I(390)] = ne;
|
|
740
794
|
function ee(a, e) {
|
|
741
795
|
var t = Y();
|
|
742
796
|
return ee = function(r, n) {
|
|
@@ -745,14 +799,14 @@ function ee(a, e) {
|
|
|
745
799
|
return o;
|
|
746
800
|
}, ee(a, e);
|
|
747
801
|
}
|
|
748
|
-
var
|
|
749
|
-
|
|
750
|
-
var
|
|
751
|
-
|
|
752
|
-
const
|
|
753
|
-
formSchema:
|
|
754
|
-
},
|
|
755
|
-
const
|
|
802
|
+
var se = {};
|
|
803
|
+
se[I(391)] = I(401), se[I(383)] = he;
|
|
804
|
+
var A = {};
|
|
805
|
+
A[I(395)] = "userId", A[I(382)] = I(393), A[I(388)] = 1, A[I(396)] = [se];
|
|
806
|
+
const je = {
|
|
807
|
+
formSchema: A
|
|
808
|
+
}, Ge = R;
|
|
809
|
+
const Ve = {
|
|
756
810
|
name: "GeneralBasicForm",
|
|
757
811
|
components: {
|
|
758
812
|
InputArchive: (a) => {
|
|
@@ -848,7 +902,9 @@ const { getData: Ae } = me, { formSchema: je } = he, Qe = {
|
|
|
848
902
|
},
|
|
849
903
|
data() {
|
|
850
904
|
return {
|
|
851
|
-
queryParams:
|
|
905
|
+
queryParams: z.initQueryParams({
|
|
906
|
+
vm: this
|
|
907
|
+
}),
|
|
852
908
|
// form表单数据
|
|
853
909
|
formLoading: this.loading || !1,
|
|
854
910
|
selectSetting: {
|
|
@@ -926,57 +982,26 @@ const { getData: Ae } = me, { formSchema: je } = he, Qe = {
|
|
|
926
982
|
},
|
|
927
983
|
methods: {
|
|
928
984
|
/** 搜索按钮操作 */
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
...e,
|
|
934
|
-
...this.queryParams
|
|
935
|
-
};
|
|
936
|
-
t = await z.makeParamsByType(t, this), a.defaultPageFirst && (t = {
|
|
937
|
-
...t,
|
|
938
|
-
...e
|
|
939
|
-
}), await z.saveParamsByType(t, this), this.getList({
|
|
940
|
-
...t
|
|
985
|
+
handleQuery(a = {}) {
|
|
986
|
+
z.handleQuery({
|
|
987
|
+
queryParameter: a,
|
|
988
|
+
vm: this
|
|
941
989
|
});
|
|
942
990
|
},
|
|
943
991
|
/** 重置按钮操作 */
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
},
|
|
949
|
-
initQueryParams() {
|
|
950
|
-
var e;
|
|
951
|
-
let a = {
|
|
952
|
-
[this.pageSizeKey]: this.defPageSize
|
|
953
|
-
};
|
|
954
|
-
return this.parametersType === "url" && (a = { ...a, ...de.queryToData((e = this.$route) == null ? void 0 : e.query) }), this.parametersType === "indexDB" && Ae(
|
|
955
|
-
{
|
|
956
|
-
tableName: "formParams",
|
|
957
|
-
propertiesKey: this.$route.path || "defQueryParams",
|
|
958
|
-
primaryKey: this.DBPrimaryKey || "default",
|
|
959
|
-
mapDB: je
|
|
960
|
-
},
|
|
961
|
-
(t) => {
|
|
962
|
-
t && (this.queryParams = { ...a, ...t }), this.queryWhenReady && this.$nextTick(() => {
|
|
963
|
-
this.handleQuery({ defaultPageFirst: !1 });
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
|
-
), this.queryWhenReady && this.parametersType !== "indexDB" && this.$nextTick(() => {
|
|
967
|
-
this.handleQuery({ defaultPageFirst: !1 });
|
|
968
|
-
}), a;
|
|
992
|
+
resetQuery() {
|
|
993
|
+
z.resetQuery({
|
|
994
|
+
vm: this
|
|
995
|
+
});
|
|
969
996
|
},
|
|
970
997
|
currentInputComponent() {
|
|
971
998
|
return "input-archive";
|
|
972
999
|
},
|
|
973
1000
|
getItemRules(a) {
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
trigger: "blur"
|
|
979
|
-
}), r;
|
|
1001
|
+
return z.getItemRules({
|
|
1002
|
+
item: a,
|
|
1003
|
+
vm: this
|
|
1004
|
+
});
|
|
980
1005
|
},
|
|
981
1006
|
getInputSetting(a) {
|
|
982
1007
|
const { inputSetting: e, setting: t } = a;
|
|
@@ -1045,11 +1070,11 @@ const { getData: Ae } = me, { formSchema: je } = he, Qe = {
|
|
|
1045
1070
|
}
|
|
1046
1071
|
}
|
|
1047
1072
|
};
|
|
1048
|
-
var
|
|
1073
|
+
var We = function() {
|
|
1049
1074
|
var e = this, t = e._self._c;
|
|
1050
1075
|
return t("el-form", e._b({ directives: [{ name: "show", rawName: "v-show", value: e.showSearch, expression: "showSearch" }], ref: "queryFormRef", attrs: { model: e.queryParams, "label-width": e.labelWidth } }, "el-form", e.attrs, !1), [e._l(e.formItem, function(r) {
|
|
1051
1076
|
return t("el-form-item", e._b({ key: r.prop, attrs: { rules: e.getItemRules(r) } }, "el-form-item", r, !1), [r.type === "input" ? t("el-input", e._g(e._b({ attrs: { size: e.size }, nativeOn: { keydown: function(n) {
|
|
1052
|
-
return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.
|
|
1077
|
+
return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.handleQuery.apply(null, arguments);
|
|
1053
1078
|
} }, scopedSlots: e._u([e._l(r.template, function(n, o) {
|
|
1054
1079
|
return { key: o, fn: function() {
|
|
1055
1080
|
return [n ? t(e.currentInputComponent(), { key: o, tag: "component", attrs: { templateEle: n } }) : e._e()];
|
|
@@ -1057,7 +1082,7 @@ var Ge = function() {
|
|
|
1057
1082
|
})], null, !0), model: { value: e.queryParams[r.prop], callback: function(n) {
|
|
1058
1083
|
e.$set(e.queryParams, r.prop, n);
|
|
1059
1084
|
}, expression: "queryParams[item.prop]" } }, "el-input", e.getInputSetting(r), !1), e.getInputEvents(r))) : r.type === "input-mobile-verification" ? t("el-input", e._g(e._b({ attrs: { size: e.size }, nativeOn: { keydown: function(n) {
|
|
1060
|
-
return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.
|
|
1085
|
+
return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.handleQuery.apply(null, arguments);
|
|
1061
1086
|
} }, scopedSlots: e._u([e._l(r.template, function(n, o) {
|
|
1062
1087
|
return { key: o, fn: function() {
|
|
1063
1088
|
return [n ? t(e.currentInputComponent(), { key: o, tag: "component", attrs: { templateEle: n } }) : e._e()];
|
|
@@ -1080,21 +1105,21 @@ var Ge = function() {
|
|
|
1080
1105
|
return t("el-checkbox", e._b({ key: n.key || n.value || n.label }, "el-checkbox", n, !1));
|
|
1081
1106
|
}), 1) : e._e(), /^form-item-slot$/i.test(r.type) ? e._t(r.name) : e._e()], 2);
|
|
1082
1107
|
}), e._t("default"), e.formOnly ? e._e() : t("el-form-item", [t("el-button", { attrs: { type: "primary", icon: "el-icon-search", size: e.size, loading: e.formLoading }, on: { click: e.handleQuery } }, [e._v("查询")]), t("el-button", { attrs: { icon: "el-icon-refresh", size: e.size }, on: { click: e.resetQuery } }, [e._v("重置")])], 1), e._t("behind-the-button")], 2);
|
|
1083
|
-
},
|
|
1084
|
-
Qe,
|
|
1085
|
-
Ge,
|
|
1108
|
+
}, Je = [], Ze = /* @__PURE__ */ O(
|
|
1086
1109
|
Ve,
|
|
1110
|
+
We,
|
|
1111
|
+
Je,
|
|
1087
1112
|
!1,
|
|
1088
1113
|
null,
|
|
1089
|
-
"
|
|
1114
|
+
"f8e93bba",
|
|
1090
1115
|
null,
|
|
1091
1116
|
null
|
|
1092
1117
|
);
|
|
1093
|
-
const
|
|
1094
|
-
const
|
|
1118
|
+
const Me = Ze.exports;
|
|
1119
|
+
const Ue = {
|
|
1095
1120
|
name: "InfiniteScrollList",
|
|
1096
1121
|
components: {
|
|
1097
|
-
TableColumn:
|
|
1122
|
+
TableColumn: le
|
|
1098
1123
|
},
|
|
1099
1124
|
props: {
|
|
1100
1125
|
search: {
|
|
@@ -1172,7 +1197,7 @@ const Ze = {
|
|
|
1172
1197
|
}
|
|
1173
1198
|
}
|
|
1174
1199
|
};
|
|
1175
|
-
var
|
|
1200
|
+
var He = function() {
|
|
1176
1201
|
var e = this, t = e._self._c;
|
|
1177
1202
|
return e.checkbox ? t("el-checkbox-group", e._b({ directives: [{ name: "loading", rawName: "v-loading", value: e.loading, expression: "loading" }], model: { value: e.checkedList, callback: function(r) {
|
|
1178
1203
|
e.checkedList = r;
|
|
@@ -1181,18 +1206,18 @@ var Me = function() {
|
|
|
1181
1206
|
}), 0)]) : t("ul", e._b({ directives: [{ name: "infinite-scroll", rawName: "v-infinite-scroll", value: e.loadList, expression: "loadList" }], staticClass: "list", style: { height: e.height }, attrs: { "infinite-scroll-disabled": e.ifbottom } }, "ul", e.$attrs, !1), e._l(e.list, function(r) {
|
|
1182
1207
|
return t("li", { key: r[e.id], staticClass: "list-item" }, [t("div", { staticClass: "checkbox" }, [e._v(" " + e._s(r[e.name]) + " "), e.extra ? t("TableColumn", { attrs: { renderFunction: e.extra, item: r } }) : e._e()], 1)]);
|
|
1183
1208
|
}), 0);
|
|
1184
|
-
},
|
|
1185
|
-
Ze,
|
|
1186
|
-
Me,
|
|
1209
|
+
}, Xe = [], Ye = /* @__PURE__ */ O(
|
|
1187
1210
|
Ue,
|
|
1211
|
+
He,
|
|
1212
|
+
Xe,
|
|
1188
1213
|
!1,
|
|
1189
1214
|
null,
|
|
1190
1215
|
"9ac38e10",
|
|
1191
1216
|
null,
|
|
1192
1217
|
null
|
|
1193
1218
|
);
|
|
1194
|
-
const
|
|
1195
|
-
const
|
|
1219
|
+
const et = Ye.exports;
|
|
1220
|
+
const tt = {
|
|
1196
1221
|
components: {},
|
|
1197
1222
|
props: {
|
|
1198
1223
|
query: {
|
|
@@ -1252,27 +1277,27 @@ const Ye = {
|
|
|
1252
1277
|
}
|
|
1253
1278
|
}
|
|
1254
1279
|
};
|
|
1255
|
-
var
|
|
1280
|
+
var rt = function() {
|
|
1256
1281
|
var e = this, t = e._self._c;
|
|
1257
1282
|
return t("div", { staticClass: "search-box" }, [t("el-input", e._b({ style: { ...e.inputstyle }, attrs: { size: e.size }, nativeOn: { keydown: function(r) {
|
|
1258
1283
|
return !r.type.indexOf("key") && e._k(r.keyCode, "enter", 13, r.key, "Enter") ? null : e.search.apply(null, arguments);
|
|
1259
1284
|
} }, model: { value: e.keyWord, callback: function(r) {
|
|
1260
1285
|
e.keyWord = r;
|
|
1261
1286
|
}, expression: "keyWord" } }, "el-input", e.attrs, !1), [t("svg", { staticClass: "el-input__icon", attrs: { slot: "prefix", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, slot: "prefix" }, [t("path", { attrs: { d: "M9.51033 10.2186C8.69189 10.8814 7.64943 11.2784 6.51424 11.2784C3.88302 11.2784 1.75 9.14541 1.75 6.51421C1.75 3.88301 3.88302 1.75 6.51424 1.75C9.14545 1.75 11.2785 3.88301 11.2785 6.51421C11.2785 7.64942 10.8814 8.69189 10.2186 9.51034L13.75 13.0417L13.0417 13.75L9.51033 10.2186ZM10.2768 6.51421C10.2768 4.43623 8.59224 2.75168 6.51424 2.75168C4.43623 2.75168 2.75168 4.43623 2.75168 6.51421C2.75168 8.59219 4.43623 10.2767 6.51424 10.2767C8.59224 10.2767 10.2768 8.59219 10.2768 6.51421Z", fill: "#959A9F" } })])])], 1);
|
|
1262
|
-
},
|
|
1263
|
-
Ye,
|
|
1264
|
-
et,
|
|
1287
|
+
}, at = [], nt = /* @__PURE__ */ O(
|
|
1265
1288
|
tt,
|
|
1289
|
+
rt,
|
|
1290
|
+
at,
|
|
1266
1291
|
!1,
|
|
1267
1292
|
null,
|
|
1268
1293
|
"ef706e31",
|
|
1269
1294
|
null,
|
|
1270
1295
|
null
|
|
1271
1296
|
);
|
|
1272
|
-
const
|
|
1297
|
+
const st = nt.exports, ot = {
|
|
1273
1298
|
name: "Descriptions",
|
|
1274
1299
|
components: {
|
|
1275
|
-
TableColumn:
|
|
1300
|
+
TableColumn: le
|
|
1276
1301
|
},
|
|
1277
1302
|
data() {
|
|
1278
1303
|
return {
|
|
@@ -1308,23 +1333,23 @@ const at = rt.exports, nt = {
|
|
|
1308
1333
|
}
|
|
1309
1334
|
}
|
|
1310
1335
|
};
|
|
1311
|
-
var
|
|
1336
|
+
var it = function() {
|
|
1312
1337
|
var e = this, t = e._self._c;
|
|
1313
1338
|
return t("el-descriptions", e._b({}, "el-descriptions", e.attrs, !1), e._l(e.formItem, function(r, n) {
|
|
1314
1339
|
return t("el-descriptions-item", e._b({ key: r.prop, attrs: { label: r.label } }, "el-descriptions-item", r.descriptionsItemProps, !1), [r.render ? t("TableColumn", { attrs: { renderFunction: r.render, item: e.formData } }) : t("span", [e._v(e._s(e.formData[r.prop]))])], 1);
|
|
1315
1340
|
}), 1);
|
|
1316
|
-
},
|
|
1317
|
-
nt,
|
|
1318
|
-
st,
|
|
1341
|
+
}, ct = [], lt = /* @__PURE__ */ O(
|
|
1319
1342
|
ot,
|
|
1343
|
+
it,
|
|
1344
|
+
ct,
|
|
1320
1345
|
!1,
|
|
1321
1346
|
null,
|
|
1322
1347
|
null,
|
|
1323
1348
|
null,
|
|
1324
1349
|
null
|
|
1325
1350
|
);
|
|
1326
|
-
const
|
|
1327
|
-
const
|
|
1351
|
+
const ut = lt.exports;
|
|
1352
|
+
const pt = {
|
|
1328
1353
|
props: {
|
|
1329
1354
|
nodeKey: {
|
|
1330
1355
|
type: String,
|
|
@@ -1385,28 +1410,28 @@ const lt = {
|
|
|
1385
1410
|
}
|
|
1386
1411
|
}
|
|
1387
1412
|
};
|
|
1388
|
-
var
|
|
1413
|
+
var dt = function() {
|
|
1389
1414
|
var e = this, t = e._self._c;
|
|
1390
1415
|
return t("div", { staticClass: "tree-box" }, [t("div", { staticClass: "left-box" }, [e.filterable ? t("el-input", { attrs: { placeholder: "输入关键字进行过滤" }, model: { value: e.sourceFilterText, callback: function(r) {
|
|
1391
1416
|
e.sourceFilterText = r;
|
|
1392
1417
|
}, expression: "sourceFilterText" } }) : e._e(), t("el-tree", e._b({ ref: "sourceTree", attrs: { data: e.dataSource, "filter-node-method": e.sourceFilterNode, nodeKey: e.nodeKey } }, "el-tree", { ...e.defaultTreeAttributes }, !1))], 1), t("div", { staticClass: "mid-box" }, [t("el-button", { attrs: { icon: "el-icon-arrow-right", circle: "" }, on: { click: e.getSelectedData } }), t("el-button", { attrs: { icon: "el-icon-arrow-left", circle: "" }, on: { click: e.removeSelectedData } })], 1), t("div", { staticClass: "right-box" }, [e.filterable ? t("el-input", { attrs: { placeholder: "输入关键字进行过滤" }, model: { value: e.selectedFilterText, callback: function(r) {
|
|
1393
1418
|
e.selectedFilterText = r;
|
|
1394
1419
|
}, expression: "selectedFilterText" } }) : e._e(), t("el-tree", e._b({ ref: "selectTree", attrs: { data: e.selectedList, "filter-node-method": e.sourceFilterNode, nodeKey: e.nodeKey } }, "el-tree", { ...e.defaultTreeAttributes }, !1))], 1)]);
|
|
1395
|
-
},
|
|
1396
|
-
lt,
|
|
1397
|
-
ut,
|
|
1420
|
+
}, ft = [], yt = /* @__PURE__ */ O(
|
|
1398
1421
|
pt,
|
|
1422
|
+
dt,
|
|
1423
|
+
ft,
|
|
1399
1424
|
!1,
|
|
1400
1425
|
null,
|
|
1401
1426
|
"49dbad2a",
|
|
1402
1427
|
null,
|
|
1403
1428
|
null
|
|
1404
1429
|
);
|
|
1405
|
-
const
|
|
1406
|
-
const { getData:
|
|
1430
|
+
const mt = yt.exports;
|
|
1431
|
+
const { getData: ht } = Ge, { formSchema: _t } = je, bt = {
|
|
1407
1432
|
name: "VTabs",
|
|
1408
1433
|
components: {
|
|
1409
|
-
TableColumn:
|
|
1434
|
+
TableColumn: le
|
|
1410
1435
|
},
|
|
1411
1436
|
data() {
|
|
1412
1437
|
return {
|
|
@@ -1468,13 +1493,13 @@ const { getData: yt } = me, { formSchema: ht } = he, mt = {
|
|
|
1468
1493
|
var t, r, n;
|
|
1469
1494
|
let a = "";
|
|
1470
1495
|
(t = this.tabPanes[0]) != null && t.name && (a = (r = this.tabPanes[0]) == null ? void 0 : r.name);
|
|
1471
|
-
const e =
|
|
1472
|
-
return this.parametersType === "url" && e && (a = e), this.parametersType === "indexDB" &&
|
|
1496
|
+
const e = ze.queryToData(Number((n = this.$route) == null ? void 0 : n.query[this.activeNameKey]));
|
|
1497
|
+
return this.parametersType === "url" && e && (a = e), this.parametersType === "indexDB" && ht(
|
|
1473
1498
|
{
|
|
1474
1499
|
tableName: "formParams",
|
|
1475
1500
|
propertiesKey: this.$route.path || "defQueryParams",
|
|
1476
1501
|
primaryKey: this.DBPrimaryKey || "default",
|
|
1477
|
-
mapDB:
|
|
1502
|
+
mapDB: _t
|
|
1478
1503
|
},
|
|
1479
1504
|
(o) => {
|
|
1480
1505
|
(o == null ? void 0 : o[this.activeNameKey]) && (this.activeName = o == null ? void 0 : o[this.activeNameKey]);
|
|
@@ -1483,29 +1508,29 @@ const { getData: yt } = me, { formSchema: ht } = he, mt = {
|
|
|
1483
1508
|
}
|
|
1484
1509
|
}
|
|
1485
1510
|
};
|
|
1486
|
-
var
|
|
1511
|
+
var gt = function() {
|
|
1487
1512
|
var e = this, t = e._self._c;
|
|
1488
1513
|
return t("el-tabs", e._b({ on: { "tab-click": e.handleClick }, model: { value: e.activeName, callback: function(r) {
|
|
1489
1514
|
e.activeName = r;
|
|
1490
1515
|
}, expression: "activeName" } }, "el-tabs", e.$attrs, !1), [e._l(e.tabPanes, function(r) {
|
|
1491
1516
|
return t("el-tab-pane", e._b({ key: r.name }, "el-tab-pane", r, !1), [r.render ? t("TableColumn", { attrs: { renderFunction: r.render, item: r } }) : e._e()], 1);
|
|
1492
1517
|
}), e._t("default")], 2);
|
|
1493
|
-
},
|
|
1494
|
-
mt,
|
|
1495
|
-
_t,
|
|
1518
|
+
}, vt = [], wt = /* @__PURE__ */ O(
|
|
1496
1519
|
bt,
|
|
1520
|
+
gt,
|
|
1521
|
+
vt,
|
|
1497
1522
|
!1,
|
|
1498
1523
|
null,
|
|
1499
1524
|
"ee818ed7",
|
|
1500
1525
|
null,
|
|
1501
1526
|
null
|
|
1502
1527
|
);
|
|
1503
|
-
const
|
|
1528
|
+
const St = wt.exports, xt = Me, Dt = et, It = st, Pt = ut, Bt = mt, Nt = St;
|
|
1504
1529
|
export {
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1530
|
+
Pt as VDescriptions,
|
|
1531
|
+
xt as VGeneralBasicForm,
|
|
1532
|
+
Dt as VInfiniteScrollList,
|
|
1533
|
+
It as VSearchBox,
|
|
1534
|
+
Nt as VTabs,
|
|
1535
|
+
Bt as VTreeTransfer
|
|
1511
1536
|
};
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(D,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],R):(D=typeof globalThis<"u"?globalThis:D||self,R(D.Index={},D.Vue))})(this,function(D,R){"use strict";const Tt="";function $(a,e,t,r,n,o,i,s){var c=typeof a=="function"?a.options:a;e&&(c.render=e,c.staticRenderFns=t,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o);var d;if(i?(d=function(l){l=l||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!l&&typeof __VUE_SSR_CONTEXT__<"u"&&(l=__VUE_SSR_CONTEXT__),n&&n.call(this,l),l&&l._registeredComponents&&l._registeredComponents.add(i)},c._ssrRegister=d):n&&(d=s?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),d)if(c.functional){c._injectStyles=d;var p=c.render;c.render=function(y,b){return d.call(b),p(y,b)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,d):[d]}return{exports:a,options:c}}const ge={props:{verificationSetting:{type:Object,default:()=>{}},getSmscode:{type:Function,default:()=>{}}},data(){return{defaultText:this.verificationSetting.defaultText||"获取验证码",buttonText:this.verificationSetting.defaultText||"获取验证码",restTime:this.verificationSetting.restTime||60,timer:null}},computed:{buttonType(){return this.buttonText===this.defaultText}},destroyed(){this.reset()},methods:{reset(){this.timer&&(clearInterval(this.timer),this.timer=null,this.buttonText=this.defaultText)},async buttonClick(){if(this.buttonText===this.defaultText)if(this.buttonText=this.restTime,this.timer=setInterval(()=>{if(Number(this.buttonText)<=0||!this.buttonText){this.reset();return}else this.buttonText=Number(this.buttonText)-1},1e3),this.getSmscode)await this.getSmscode()===!1&&this.reset();else return}}};var ve=function(){var e=this,t=e._self._c;return t("el-button",{on:{click:e.buttonClick}},[e._v(e._s(e.buttonType?e.defaultText:e.buttonText+"s"))])},Se=[],we=$(ge,ve,Se,!1,null,null,null,null);const ke=we.exports,xe=(a={})=>{for(const e in a)if(Object.prototype.hasOwnProperty.call(a,e)){const t=a[e];Object.prototype.toString.call(t)==="[object Object]"&&(a[e]=JSON.stringify(t))}return a},De=(a={})=>{for(const e in a)if(Object.prototype.hasOwnProperty.call(a,e)){const t=a[e];try{/[{]+/g.test(t)&&/[}]+/g.test(t)&&(a[e]=JSON.parse(t))}catch{}}return a},ae={paramsToQuery:xe,queryToData:De},N=L;(function(a,e){const t=L,r=a();for(;;)try{if(parseInt(t(561))/1+-parseInt(t(558))/2+parseInt(t(521))/3*(parseInt(t(527))/4)+-parseInt(t(506))/5*(parseInt(t(510))/6)+-parseInt(t(550))/7*(parseInt(t(503))/8)+parseInt(t(540))/9+-parseInt(t(546))/10*(-parseInt(t(562))/11)===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(G,819524);const w={};let q=null;const le=async(a,e)=>{const t=L;!window[t(543)]&&window[t(498)]("您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.");const{DBName:r="",DBVersion:n=1}=a;let o,i=!1;try{const s=window[t(543)][t(519)](r,n);await new Promise((c,d)=>{const p=t;s[p(551)]=async function(u){const l=p,y=u.target.result,{stores:b=[]}=a;await Promise.all(b[l(509)](async f=>{const h=l,{DBStoreName:m="",properties:_={}}=f;try{const g={};g[h(536)]=a[h(557)];const T=u[h(541)][h(520)][h(554)](m,g);if(Object[h(548)](_)[h(500)]===0){console[h(559)](m+"没有设置默认值");return}for(const v in _)if(_[h(556)][h(515)](_,v)){const S=_[v],x={...S.createIndex};T[h(504)](v,v,x)}}catch(g){console[h(559)](g)}})),o=y,i=!0},s[p(535)]=async function(u){const l=p;if(o=this[l(520)],i){const{stores:y=[]}=a;await Promise[l(528)](y[l(509)](async b=>{const f=l,{DBStoreName:h=""}=b,m=o[f(552)]([h],f(547)),_=m[f(496)](h),g={};g[a[f(557)]]=e,_[f(502)](g);try{await new Promise((T,v)=>{const S=f;m[S(525)]=function(x){const P=S;console[P(513)](P(512),x),v()},m[S(544)]=function(x){T()},m[S(529)]=function(x){const P=S;console[P(513)](P(534),x),v()}})}catch(T){console.warn(f(511),T)}}))}c()},s.onerror=function(u){d(u)}})}catch(s){console[t(513)](s,t(526))}return o};function G(){const a=["transaction","DBName","createObjectStore","close","hasOwnProperty","primaryKey","208156ZfrAJr","warn","delete","1575928bFmnZg","154LBDnQZ","objectStore","数据更新失败","alert","store不存在,请更新schema和DBVersion并重启前端服务","length","openCursor","add","15752fkogxb","createIndex","deleteDB","299045NkkBTh","请传入主键","mapDB","map","102uEoUGM","目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理","主键插入中止","error","数据库删除失败","call","continue","update","deleteStore","open","result","66891DVCnfv","get","getDataByKey","数据删除失败","onabort","打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因","52JGzdMb","all","onerror","put","数据更新失败没有request","Database connection closed, reconnecting...","target","主键插入失败","onsuccess","keyPath","数据更新成功","主键查询结果:","传入结构化克隆算法不支持的数据类型可能导致报错","4779333CtWPbr","currentTarget","获取Database缺乏用户信息,请先传入对primaryKey的赋值","indexedDB","oncomplete","事务失败","634540WpNScH","readwrite","keys","getDB","4781SEkDBZ","onupgradeneeded"];return G=function(){return a},G()}function L(a,e){const t=G();return L=function(r,n){return r=r-496,t[r]},L(a,e)}let W=!1;w[N(549)]=async(a,e)=>{const t=N,{mapDB:r,primaryKey:n}=a;return r?n?(W&&await new Promise(async(o,i)=>{const s=()=>{W?setTimeout(()=>{s()},200):o()};s()}),!q&&(W=!0,q=await le(r,n),q==null||q.addEventListener(t(555),async()=>{console.info(t(532)),q=await le(r,n)}),W=!1),e&&e(q),q):(console[t(559)](t(542)),!1):(console[t(559)]("必须传入数据库配置信息"),!1)},w[N(523)]=async(a,e)=>{const t=N,{mapDB:r,tableName:n,primaryKey:o}=a,i={};i[t(508)]=r,i[t(557)]=o;const s=await w.getDB(i);if(!s)return;const c=s.transaction([n]),d=c[t(496)](n),p=d[t(522)](o);return new Promise((u,l)=>{const y=t;p.onsuccess=function(b){const f=L;e&&e(n+f(538)+p[f(520)]),u(p[f(520)])},p[y(529)]=function(b){console.error(n+y(545)+b),l()}})},w.updateStore=async(a,e)=>{var t;const r=N,{mapDB:n,tableName:o,updateData:i}=a;!i[n==null?void 0:n[r(557)]]&&console[r(559)](r(507)+n[r(557)]);const s={};s.mapDB=n,s[r(557)]=i[n==null?void 0:n[r(557)]];const c=await w[r(549)](s);if(!c)return;let d=null;try{d=c[r(552)]([o],r(547)).objectStore(o)}catch(y){console[r(513)](r(499),y)}let p=null,u=null;const l=await new Promise((y,b)=>{const f=r,h=d[f(501)](i[n==null?void 0:n[f(557)]]);h[f(535)]=m=>{y(m)},h.onerror=m=>{b(m)}});u=(t=l==null?void 0:l[r(533)])==null?void 0:t[r(520)];try{u&&(u==null?void 0:u.primaryKey)===i[n==null?void 0:n.primaryKey]?p=u[r(517)](i):p=d[r(530)](i)}catch(y){console[r(513)](r(539),y,i)}new Promise((y,b)=>{const f=r;!p&&(console[f(513)](o+f(531)),b()),p[f(535)]=function(h){e&&e(o+f(537)),y()},p[f(529)]=function(h){const m=f;console[m(513)](o+m(497),h),b()}}),u&&u[r(516)]()},w[N(518)]=async(a,e)=>{const t=N,{mapDB:r,tableName:n,primaryKey:o}=a,i={};i[t(508)]=r,i[t(557)]=o;const s=await w.getDB(i);if(!s)return;const c=s[t(552)]([n],t(547))[t(496)](n)[t(560)](o);return new Promise((d,p)=>{const u=t;c[u(535)]=function(l){e&&e(n+"数据删除成功"),d()},c.onerror=function(l){const y=u;console[y(513)](n+y(524)+l),p()}})},w[N(505)]=async(a,e)=>{const{mapDB:t}=a,r=window.indexedDB.deleteDatabase(t.DBName);return new Promise((n,o)=>{const i=L;r[i(535)]=s=>{e&&e(t[i(553)]+"数据库已删除"),n()},r[i(529)]=s=>{const c=i;console[c(513)](t[c(553)]+c(514)+s),o()}})};function C(a,e){const t=J();return C=function(r,n){return r=r-125,t[r]},C(a,e)}function J(){const a=["updateData","error","getDataByKey","531aQoQZo","primaryKey","handleData","2kSsgxs","777jFjQPc","1271805RJVSFy","546pnZEJw","3522904vvFeGW","4wGSwDA","tableName","780ChApSf","deleteStore","655364nEjUrb","3705144rIEFqv","updateStore","getData","clearData","mapDB","3003845nIJAzp"];return J=function(){return a},J()}const Z=C;(function(a,e){const t=C,r=a();for(;;)try{if(-parseInt(t(140))/1*(-parseInt(t(127))/2)+parseInt(t(142))/3*(parseInt(t(145))/4)+-parseInt(t(133))/5+-parseInt(t(143))/6*(parseInt(t(141))/7)+-parseInt(t(128))/8+parseInt(t(137))/9*(parseInt(t(125))/10)+parseInt(t(144))/11===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(J,330152);async function Ie(a,e){const t=C,{tableName:r,propertiesKey:n,parameter:o,primaryKey:i,mapDB:s}=a;let c=null,d={[s[t(138)]]:i};const p={};p[t(132)]=s,p.tableName=r,p[t(138)]=i;const u=await w[t(136)](p);u&&(d={...u,[s.primaryKey]:i}),d[n]=o;const l={};return l[t(132)]=s,l.tableName=r,l[t(134)]=d,await w[t(129)](l),o&&(c=o),e&&e(c),c}async function Be(a,e){const t=C,{tableName:r,propertiesKey:n,primaryKey:o,mapDB:i}=a;let s=null;const c={};c[t(132)]=i,c[t(146)]=r,c.primaryKey=o;const d=await w[t(136)](c);return d&&(s=d[n]),e&&e(s),s}async function Te(a,e){const t=C,{tableName:r,propertiesKey:n,parameter:o,primaryKey:i,mapDB:s}=a;let c={};const d={};d.mapDB=s,d[t(146)]=r,d[t(138)]=i;const p=await w[t(136)](d);try{if(p){c={...p[n],...o};const u={[s[t(138)]]:i},l=u;l[n]=c;const y={};y[t(132)]=s,y[t(146)]=r,y[t(134)]=l,await w.updateStore(y)}else console.warn(r+"为空,请先调用handleData")}catch(u){console[t(135)](u)}return e&&e(c),c}async function Pe(a,e){const t=C,{tableName:r,primaryKey:n,mapDB:o}=a;let i=null;try{const s={};s.mapDB=o,s[t(146)]=r,s[t(138)]=n,await w[t(126)](s)}catch(s){console.error(s)}return e&&e(i),i}const V={};V[Z(139)]=Ie,V[Z(130)]=Be,V[Z(134)]=Te,V[Z(131)]=Pe;var I=U;(function(a,e){for(var t=U,r=a();;)try{var n=-parseInt(t(385))/1+parseInt(t(387))/2+-parseInt(t(389))/3+-parseInt(t(398))/4*(parseInt(t(394))/5)+-parseInt(t(402))/6+-parseInt(t(399))/7+-parseInt(t(386))/8*(-parseInt(t(400))/9);if(n===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(M,363872);var ue={};ue[I(397)]=!1;var ne={};ne[I(384)]=ue,ne[I(392)]={};var pe={};function M(){var a=["default","mapDB-indexeddb-form-schema","663915ecCGKl","primaryKey","stores","unique","12QKZOdu","2103521TxMjSC","1212714qgZAmF","formParams","3534618LLAImJ","DBName","properties","createIndex","464644FTRsMp","128qSoFyx","33606razpoB","DBVersion","168804drPGaG","queryParams","DBStoreName"];return M=function(){return a},M()}pe[I(390)]=ne;function U(a,e){var t=M();return U=function(r,n){r=r-382;var o=t[r];return o},U(a,e)}var se={};se[I(391)]=I(401),se[I(383)]=pe;var j={};j[I(395)]="userId",j[I(382)]=I(393),j[I(388)]=1,j[I(396)]=[se];const Ne={formSchema:j},Ce=V,{handleData:Fe,getData:Ke}=Ce,{formSchema:de}=Ne,$e=async(a,e)=>{var t;return e.parametersType==="url"&&(a={...ae.queryToData((t=e.$route)==null?void 0:t.query),...a}),e.parametersType==="indexDB"&&(a={...await Ke({tableName:"formParams",propertiesKey:e.$route.path||"defQueryParams",primaryKey:e.DBPrimaryKey||"default",mapDB:de}),...a}),a},qe=async(a,e)=>{e.parametersType==="url"&&await e.$router.push({query:ae.paramsToQuery({...a})}),e.parametersType==="indexDB"&&await Fe({tableName:"formParams",propertiesKey:e.$route.path||"defQueryParams",parameter:{...a},primaryKey:e.DBPrimaryKey||"default",mapDB:de})},Le={makeParamsByType:$e,saveParamsByType:qe},Oe={functional:!0,props:{renderFunction:{default:()=>{},type:Function},item:{default:()=>{},type:Object}},render(a,e){const{props:t}=e,{renderFunction:r,item:n}=t;return r(n)}},fe=ae,E=Le,oe=Oe,F=z;(function(a,e){const t=z,r=a();for(;;)try{if(parseInt(t(561))/1+-parseInt(t(558))/2+parseInt(t(521))/3*(parseInt(t(527))/4)+-parseInt(t(506))/5*(parseInt(t(510))/6)+-parseInt(t(550))/7*(parseInt(t(503))/8)+parseInt(t(540))/9+-parseInt(t(546))/10*(-parseInt(t(562))/11)===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(H,819524);const k={};let O=null;const ye=async(a,e)=>{const t=z;!window[t(543)]&&window[t(498)]("您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.");const{DBName:r="",DBVersion:n=1}=a;let o,i=!1;try{const s=window[t(543)][t(519)](r,n);await new Promise((c,d)=>{const p=t;s[p(551)]=async function(u){const l=p,y=u.target.result,{stores:b=[]}=a;await Promise.all(b[l(509)](async f=>{const h=l,{DBStoreName:m="",properties:_={}}=f;try{const g={};g[h(536)]=a[h(557)];const T=u[h(541)][h(520)][h(554)](m,g);if(Object[h(548)](_)[h(500)]===0){console[h(559)](m+"没有设置默认值");return}for(const v in _)if(_[h(556)][h(515)](_,v)){const S=_[v],x={...S.createIndex};T[h(504)](v,v,x)}}catch(g){console[h(559)](g)}})),o=y,i=!0},s[p(535)]=async function(u){const l=p;if(o=this[l(520)],i){const{stores:y=[]}=a;await Promise[l(528)](y[l(509)](async b=>{const f=l,{DBStoreName:h=""}=b,m=o[f(552)]([h],f(547)),_=m[f(496)](h),g={};g[a[f(557)]]=e,_[f(502)](g);try{await new Promise((T,v)=>{const S=f;m[S(525)]=function(x){const P=S;console[P(513)](P(512),x),v()},m[S(544)]=function(x){T()},m[S(529)]=function(x){const P=S;console[P(513)](P(534),x),v()}})}catch(T){console.warn(f(511),T)}}))}c()},s.onerror=function(u){d(u)}})}catch(s){console[t(513)](s,t(526))}return o};function H(){const a=["transaction","DBName","createObjectStore","close","hasOwnProperty","primaryKey","208156ZfrAJr","warn","delete","1575928bFmnZg","154LBDnQZ","objectStore","数据更新失败","alert","store不存在,请更新schema和DBVersion并重启前端服务","length","openCursor","add","15752fkogxb","createIndex","deleteDB","299045NkkBTh","请传入主键","mapDB","map","102uEoUGM","目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理","主键插入中止","error","数据库删除失败","call","continue","update","deleteStore","open","result","66891DVCnfv","get","getDataByKey","数据删除失败","onabort","打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因","52JGzdMb","all","onerror","put","数据更新失败没有request","Database connection closed, reconnecting...","target","主键插入失败","onsuccess","keyPath","数据更新成功","主键查询结果:","传入结构化克隆算法不支持的数据类型可能导致报错","4779333CtWPbr","currentTarget","获取Database缺乏用户信息,请先传入对primaryKey的赋值","indexedDB","oncomplete","事务失败","634540WpNScH","readwrite","keys","getDB","4781SEkDBZ","onupgradeneeded"];return H=function(){return a},H()}function z(a,e){const t=H();return z=function(r,n){return r=r-496,t[r]},z(a,e)}let X=!1;k[F(549)]=async(a,e)=>{const t=F,{mapDB:r,primaryKey:n}=a;return r?n?(X&&await new Promise(async(o,i)=>{const s=()=>{X?setTimeout(()=>{s()},200):o()};s()}),!O&&(X=!0,O=await ye(r,n),O==null||O.addEventListener(t(555),async()=>{console.info(t(532)),O=await ye(r,n)}),X=!1),e&&e(O),O):(console[t(559)](t(542)),!1):(console[t(559)]("必须传入数据库配置信息"),!1)},k[F(523)]=async(a,e)=>{const t=F,{mapDB:r,tableName:n,primaryKey:o}=a,i={};i[t(508)]=r,i[t(557)]=o;const s=await k.getDB(i);if(!s)return;const c=s.transaction([n]),d=c[t(496)](n),p=d[t(522)](o);return new Promise((u,l)=>{const y=t;p.onsuccess=function(b){const f=z;e&&e(n+f(538)+p[f(520)]),u(p[f(520)])},p[y(529)]=function(b){console.error(n+y(545)+b),l()}})},k.updateStore=async(a,e)=>{var t;const r=F,{mapDB:n,tableName:o,updateData:i}=a;!i[n==null?void 0:n[r(557)]]&&console[r(559)](r(507)+n[r(557)]);const s={};s.mapDB=n,s[r(557)]=i[n==null?void 0:n[r(557)]];const c=await k[r(549)](s);if(!c)return;let d=null;try{d=c[r(552)]([o],r(547)).objectStore(o)}catch(y){console[r(513)](r(499),y)}let p=null,u=null;const l=await new Promise((y,b)=>{const f=r,h=d[f(501)](i[n==null?void 0:n[f(557)]]);h[f(535)]=m=>{y(m)},h.onerror=m=>{b(m)}});u=(t=l==null?void 0:l[r(533)])==null?void 0:t[r(520)];try{u&&(u==null?void 0:u.primaryKey)===i[n==null?void 0:n.primaryKey]?p=u[r(517)](i):p=d[r(530)](i)}catch(y){console[r(513)](r(539),y,i)}new Promise((y,b)=>{const f=r;!p&&(console[f(513)](o+f(531)),b()),p[f(535)]=function(h){e&&e(o+f(537)),y()},p[f(529)]=function(h){const m=f;console[m(513)](o+m(497),h),b()}}),u&&u[r(516)]()},k[F(518)]=async(a,e)=>{const t=F,{mapDB:r,tableName:n,primaryKey:o}=a,i={};i[t(508)]=r,i[t(557)]=o;const s=await k.getDB(i);if(!s)return;const c=s[t(552)]([n],t(547))[t(496)](n)[t(560)](o);return new Promise((d,p)=>{const u=t;c[u(535)]=function(l){e&&e(n+"数据删除成功"),d()},c.onerror=function(l){const y=u;console[y(513)](n+y(524)+l),p()}})},k[F(505)]=async(a,e)=>{const{mapDB:t}=a,r=window.indexedDB.deleteDatabase(t.DBName);return new Promise((n,o)=>{const i=z;r[i(535)]=s=>{e&&e(t[i(553)]+"数据库已删除"),n()},r[i(529)]=s=>{const c=i;console[c(513)](t[c(553)]+c(514)+s),o()}})};function K(a,e){const t=Y();return K=function(r,n){return r=r-125,t[r]},K(a,e)}function Y(){const a=["updateData","error","getDataByKey","531aQoQZo","primaryKey","handleData","2kSsgxs","777jFjQPc","1271805RJVSFy","546pnZEJw","3522904vvFeGW","4wGSwDA","tableName","780ChApSf","deleteStore","655364nEjUrb","3705144rIEFqv","updateStore","getData","clearData","mapDB","3003845nIJAzp"];return Y=function(){return a},Y()}const ee=K;(function(a,e){const t=K,r=a();for(;;)try{if(-parseInt(t(140))/1*(-parseInt(t(127))/2)+parseInt(t(142))/3*(parseInt(t(145))/4)+-parseInt(t(133))/5+-parseInt(t(143))/6*(parseInt(t(141))/7)+-parseInt(t(128))/8+parseInt(t(137))/9*(parseInt(t(125))/10)+parseInt(t(144))/11===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(Y,330152);async function ze(a,e){const t=K,{tableName:r,propertiesKey:n,parameter:o,primaryKey:i,mapDB:s}=a;let c=null,d={[s[t(138)]]:i};const p={};p[t(132)]=s,p.tableName=r,p[t(138)]=i;const u=await k[t(136)](p);u&&(d={...u,[s.primaryKey]:i}),d[n]=o;const l={};return l[t(132)]=s,l.tableName=r,l[t(134)]=d,await k[t(129)](l),o&&(c=o),e&&e(c),c}async function Ee(a,e){const t=K,{tableName:r,propertiesKey:n,primaryKey:o,mapDB:i}=a;let s=null;const c={};c[t(132)]=i,c[t(146)]=r,c.primaryKey=o;const d=await k[t(136)](c);return d&&(s=d[n]),e&&e(s),s}async function Re(a,e){const t=K,{tableName:r,propertiesKey:n,parameter:o,primaryKey:i,mapDB:s}=a;let c={};const d={};d.mapDB=s,d[t(146)]=r,d[t(138)]=i;const p=await k[t(136)](d);try{if(p){c={...p[n],...o};const u={[s[t(138)]]:i},l=u;l[n]=c;const y={};y[t(132)]=s,y[t(146)]=r,y[t(134)]=l,await k.updateStore(y)}else console.warn(r+"为空,请先调用handleData")}catch(u){console[t(135)](u)}return e&&e(c),c}async function Ve(a,e){const t=K,{tableName:r,primaryKey:n,mapDB:o}=a;let i=null;try{const s={};s.mapDB=o,s[t(146)]=r,s[t(138)]=n,await k[t(126)](s)}catch(s){console.error(s)}return e&&e(i),i}const A={};A[ee(139)]=ze,A[ee(130)]=Ee,A[ee(134)]=Re,A[ee(131)]=Ve;var B=re;(function(a,e){for(var t=re,r=a();;)try{var n=-parseInt(t(385))/1+parseInt(t(387))/2+-parseInt(t(389))/3+-parseInt(t(398))/4*(parseInt(t(394))/5)+-parseInt(t(402))/6+-parseInt(t(399))/7+-parseInt(t(386))/8*(-parseInt(t(400))/9);if(n===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(te,363872);var he={};he[B(397)]=!1;var ie={};ie[B(384)]=he,ie[B(392)]={};var me={};function te(){var a=["default","mapDB-indexeddb-form-schema","663915ecCGKl","primaryKey","stores","unique","12QKZOdu","2103521TxMjSC","1212714qgZAmF","formParams","3534618LLAImJ","DBName","properties","createIndex","464644FTRsMp","128qSoFyx","33606razpoB","DBVersion","168804drPGaG","queryParams","DBStoreName"];return te=function(){return a},te()}me[B(390)]=ie;function re(a,e){var t=te();return re=function(r,n){r=r-382;var o=t[r];return o},re(a,e)}var ce={};ce[B(391)]=B(401),ce[B(383)]=me;var Q={};Q[B(395)]="userId",Q[B(382)]=B(393),Q[B(388)]=1,Q[B(396)]=[ce];const be={formSchema:Q},_e=A,Pt="",{getData:je}=_e,{formSchema:Ae}=be,Qe={name:"GeneralBasicForm",components:{InputArchive:a=>{const{templateEle:e}=a;return e()},VerificationButton:ke},props:{showSearch:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},formOnly:{type:Boolean,default:!1},getList:{type:Function,default:()=>{}},afterReset:{type:Function,default:()=>{}},formItem:{type:Array,default:()=>[]},size:{type:String,default:""},labelWidth:{type:String,default:"90px"},parametersType:{type:String,default:"url"},DBPrimaryKey:{type:[String,Number],required:!1},formData:{type:Object,default:()=>{}},noInputBlank:{type:Boolean,default:()=>!1},currentPageKey:{type:String,default:"page"},pageSizeKey:{type:String,default:"limit"},defCurrentPage:{type:Number,default:1},defPageSize:{type:Number,default:10},queryWhenReady:{type:Boolean,default:()=>!1}},data(){return{queryParams:this.initQueryParams(),formLoading:this.loading||!1,selectSetting:{placeholder:"请选择",filterable:!0,clearable:!0,style:"width: 200px"},inputSetting:{placeholder:"请输入",style:"width: 200px",clearable:!0},datePackerSetting:{style:"width: 227px","start-placeholder":"开始日期","end-placeholder":"结束日期",type:"daterange"},attrs:{inline:!0,"label-position":"left"}}},watch:{formData:{handler(a,e){JSON.stringify(a)!==JSON.stringify(this.queryParams)&&(this.queryParams={...this.queryParams,...a})},immediate:!0,deep:!0},queryParams:{handler(a){this.$emit("update:formData",{...a})},deep:!0},$attrs:{handler(a){this.attrs={...this.attrs,...a}},immediate:!0,deep:!0},loading(a){this.formLoading!==a&&(this.formLoading=a)},formLoading(a){this.loading!==a&&this.$emit("update:loading",a)}},methods:{async handleQuery(a={}){a.defaultPageFirst??(a.defaultPageFirst=!0);const e={[this.currentPageKey]:this.defCurrentPage};let t={...e,...this.queryParams};t=await E.makeParamsByType(t,this),a.defaultPageFirst&&(t={...t,...e}),await E.saveParamsByType(t,this),this.getList({...t})},async resetQuery(){this.$refs.queryFormRef.resetFields();const a=await E.makeParamsByType({},this),e={[this.currentPageKey]:this.defCurrentPage,[this.pageSizeKey]:(a==null?void 0:a[this.pageSizeKey])||this.defPageSize};await E.saveParamsByType(e,this),this.queryParams={...e},this.afterReset(),this.handleQuery()},initQueryParams(){var e;let a={[this.pageSizeKey]:this.defPageSize};return this.parametersType==="url"&&(a={...a,...fe.queryToData((e=this.$route)==null?void 0:e.query)}),this.parametersType==="indexDB"&&je({tableName:"formParams",propertiesKey:this.$route.path||"defQueryParams",primaryKey:this.DBPrimaryKey||"default",mapDB:Ae},t=>{t&&(this.queryParams={...a,...t}),this.queryWhenReady&&this.$nextTick(()=>{this.handleQuery({defaultPageFirst:!1})})}),this.queryWhenReady&&this.parametersType!=="indexDB"&&this.$nextTick(()=>{this.handleQuery({defaultPageFirst:!1})}),a},currentInputComponent(){return"input-archive"},getItemRules(a){const{type:e,rules:t=[]}=a,r=[...t];return this.noInputBlank&&e==="input"&&r.push({pattern:this.trimRegex,message:"请输入(不能仅输入空格)",trigger:"blur"}),r},getInputSetting(a){const{inputSetting:e,setting:t}=a;return{...this.inputSetting,...e,...t}},defaultFunction(){},getInputEvents(a){return{blur:a.blur||this.defaultFunction,focus:a.focus||this.defaultFunction,change:a.change||this.defaultFunction,input:a.input||this.defaultFunction,clear:a.clear||this.defaultFunction}},getSelectSetting(a){const{selectSetting:e,setting:t}=a;return{...this.selectSetting,...e,...t}},getSelectEvents(a){return{change:a.change||this.defaultFunction,"visible-change":a["visible-change"]||this.defaultFunction,"remove-tag":a["remove-tag"]||this.defaultFunction,"expand-change":a["expand-change"]||this.defaultFunction,clear:a.clear||this.defaultFunction,blur:a.blur||this.defaultFunction,focus:a.focus||this.defaultFunction}},getDatePackerSetting(a){const{datePackerSetting:e,setting:t}=a;return{...this.datePackerSetting,...e,...t}},getDatePackerEvents(a){return{change:a.change||this.defaultFunction,blur:a.blur||this.defaultFunction,focus:a.focus||this.defaultFunction}},getCheckboxGroupSetting(a){const{checkboxGroupSetting:e,setting:t}=a;return{...e,...t}},getCheckboxGroupEvents(a){return{change:a.change||this.defaultFunction}}}};var Ge=function(){var e=this,t=e._self._c;return t("el-form",e._b({directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryFormRef",attrs:{model:e.queryParams,"label-width":e.labelWidth}},"el-form",e.attrs,!1),[e._l(e.formItem,function(r){return t("el-form-item",e._b({key:r.prop,attrs:{rules:e.getItemRules(r)}},"el-form-item",r,!1),[r.type==="input"?t("el-input",e._g(e._b({attrs:{size:e.size},nativeOn:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.getList.apply(null,arguments)}},scopedSlots:e._u([e._l(r.template,function(n,o){return{key:o,fn:function(){return[n?t(e.currentInputComponent(),{key:o,tag:"component",attrs:{templateEle:n}}):e._e()]},proxy:!0}})],null,!0),model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-input",e.getInputSetting(r),!1),e.getInputEvents(r))):r.type==="input-mobile-verification"?t("el-input",e._g(e._b({attrs:{size:e.size},nativeOn:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.getList.apply(null,arguments)}},scopedSlots:e._u([e._l(r.template,function(n,o){return{key:o,fn:function(){return[n?t(e.currentInputComponent(),{key:o,tag:"component",attrs:{templateEle:n}}):e._e()]},proxy:!0}})],null,!0),model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-input",e.getInputSetting(r),!1),e.getInputEvents(r)),[t("template",{slot:"append"},[t("verification-button",{attrs:{verificationSetting:r.verificationSetting,getSmscode:r.getSmscode}})],1)],2):r.type==="select"?t("el-select",e._g(e._b({attrs:{filterable:"",size:e.size},model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-select",e.getSelectSetting(r),!1),e.getSelectEvents(r)),e._l(r.option||[],function(n){return t("el-option",{key:n.key||n.value,attrs:{label:n.label,value:n.value}})}),1):r.type==="cascader"?t("el-cascader",e._g(e._b({attrs:{filterable:"",size:e.size,options:r.options||[]},model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-cascader",e.getSelectSetting(r),!1),e.getSelectEvents(r))):r.type==="date-picker"?t("el-date-picker",e._g(e._b({attrs:{size:e.size},model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-date-picker",e.getDatePackerSetting(r),!1),e.getDatePackerEvents(r))):e._e(),r.type==="input-number"?t("el-input-number",e._g(e._b({attrs:{size:e.size},model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-input-number",e.getInputSetting(r),!1),e.getInputEvents(r))):r.type==="checkbox"?t("el-checkbox-group",e._g(e._b({attrs:{size:e.size},model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-checkbox-group",e.getCheckboxGroupSetting(r),!1),e.getCheckboxGroupEvents(r)),e._l(r.option||[],function(n){return t("el-checkbox",e._b({key:n.key||n.value||n.label},"el-checkbox",n,!1))}),1):e._e(),/^form-item-slot$/i.test(r.type)?e._t(r.name):e._e()],2)}),e._t("default"),e.formOnly?e._e():t("el-form-item",[t("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:e.size,loading:e.formLoading},on:{click:e.handleQuery}},[e._v("查询")]),t("el-button",{attrs:{icon:"el-icon-refresh",size:e.size},on:{click:e.resetQuery}},[e._v("重置")])],1),e._t("behind-the-button")],2)},We=[],Je=$(Qe,Ge,We,!1,null,"111d2d55",null,null);const Ze=Je.exports,Nt="",Me={name:"InfiniteScrollList",components:{TableColumn:oe},props:{search:{type:Function,required:!0},checkbox:{type:Boolean,required:!1},id:{type:String,required:!0},name:{type:String,required:!1},extra:{type:null,required:!1},defaultSelection:{type:Array,required:!1},height:{type:String,required:!1,default:"272px"}},data(){return{list:[],page:1,ifbottom:!1,checkedList:[],loading:!1}},computed:{selectInfo(){return this.list.filter(a=>this.checkedList.includes(a[this.id]))}},watch:{defaultSelection:{handler(a=[],e=[]){this.updateCheckedList(a)},immediate:!0}},methods:{reset(){this.lowReset(),this.checkedList=[]},updateCheckedList(a){this.checkedList=a.map(e=>typeof e=="object"?e[this.id]:e)},lowReset(){this.page=1,this.list=[],this.ifbottom=!1},async loadList(){if(this.loading||this.ifbottom)return;this.loading=!0;const a=await this.search(this.page);a&&a.length>0?(this.list=[...this.list,...a],this.page+=1):this.ifbottom=!0,this.loading=!1},async refreshList(){this.lowReset(),await this.loadList()}}};var Ue=function(){var e=this,t=e._self._c;return e.checkbox?t("el-checkbox-group",e._b({directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],model:{value:e.checkedList,callback:function(r){e.checkedList=r},expression:"checkedList"}},"el-checkbox-group",e.$attrs,!1),[t("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.loadList,expression:"loadList"}],staticClass:"list",style:{height:e.height},attrs:{"infinite-scroll-disabled":e.ifbottom}},e._l(e.list,function(r){return t("li",{key:r[e.id],staticClass:"list-item"},[t("el-checkbox",{staticClass:"checkbox",attrs:{label:r[e.id]}},[e._v(e._s(r[e.name])+" "),e.extra?t("TableColumn",{attrs:{renderFunction:e.extra,item:r}}):e._e()],1)],1)}),0)]):t("ul",e._b({directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.loadList,expression:"loadList"}],staticClass:"list",style:{height:e.height},attrs:{"infinite-scroll-disabled":e.ifbottom}},"ul",e.$attrs,!1),e._l(e.list,function(r){return t("li",{key:r[e.id],staticClass:"list-item"},[t("div",{staticClass:"checkbox"},[e._v(" "+e._s(r[e.name])+" "),e.extra?t("TableColumn",{attrs:{renderFunction:e.extra,item:r}}):e._e()],1)])}),0)},He=[],Xe=$(Me,Ue,He,!1,null,"9ac38e10",null,null);const Ye=Xe.exports,Ct="",et={components:{},props:{query:{type:Object,default:()=>({prefCode:sessionStorage.getItem("prefCode")})},routePath:{type:String,default:()=>"/search/searchDetail"},inputstyle:{type:Object,default:()=>({width:"1280px"})},openHref:{type:Boolean,default:()=>!1},size:{type:String,default:()=>"medium"}},data(){var a,e;return{keyWord:((e=(a=this.$route)==null?void 0:a.query)==null?void 0:e.keyWord)||"",attrs:{}}},watch:{$attrs:{handler(a){this.attrs={...this.attrs,...a}},immediate:!0,deep:!0}},methods:{search(){const a={path:this.routePath,query:{...this.query,keyWord:this.keyWord}};if(this.openHref){const e=this.$router.resolve(a);window.open(e.href,"_blank")}else this.$router.push(a)}}};var tt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"search-box"},[t("el-input",e._b({style:{...e.inputstyle},attrs:{size:e.size},nativeOn:{keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.search.apply(null,arguments)}},model:{value:e.keyWord,callback:function(r){e.keyWord=r},expression:"keyWord"}},"el-input",e.attrs,!1),[t("svg",{staticClass:"el-input__icon",attrs:{slot:"prefix",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},slot:"prefix"},[t("path",{attrs:{d:"M9.51033 10.2186C8.69189 10.8814 7.64943 11.2784 6.51424 11.2784C3.88302 11.2784 1.75 9.14541 1.75 6.51421C1.75 3.88301 3.88302 1.75 6.51424 1.75C9.14545 1.75 11.2785 3.88301 11.2785 6.51421C11.2785 7.64942 10.8814 8.69189 10.2186 9.51034L13.75 13.0417L13.0417 13.75L9.51033 10.2186ZM10.2768 6.51421C10.2768 4.43623 8.59224 2.75168 6.51424 2.75168C4.43623 2.75168 2.75168 4.43623 2.75168 6.51421C2.75168 8.59219 4.43623 10.2767 6.51424 10.2767C8.59224 10.2767 10.2768 8.59219 10.2768 6.51421Z",fill:"#959A9F"}})])])],1)},rt=[],at=$(et,tt,rt,!1,null,"ef706e31",null,null);const nt=at.exports,st={name:"Descriptions",components:{TableColumn:oe},data(){return{attrs:{border:!0,class:"v-descriptions"}}},props:{formItem:{type:Array,default:()=>[]},formData:{type:Object,default:()=>{}}},watch:{$attrs:{handler(a){this.attrs={...this.attrs,...a}},immediate:!0,deep:!0}}};var ot=function(){var e=this,t=e._self._c;return t("el-descriptions",e._b({},"el-descriptions",e.attrs,!1),e._l(e.formItem,function(r,n){return t("el-descriptions-item",e._b({key:r.prop,attrs:{label:r.label}},"el-descriptions-item",r.descriptionsItemProps,!1),[r.render?t("TableColumn",{attrs:{renderFunction:r.render,item:e.formData}}):t("span",[e._v(e._s(e.formData[r.prop]))])],1)}),1)},it=[],ct=$(st,ot,it,!1,null,null,null,null);const lt=ct.exports,Ft="",ut={props:{nodeKey:{type:String,default:"id"},filterable:{type:Boolean,default:!1},dataSource:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]}},watch:{sourceFilterText(a){this.$refs.sourceTree.filter(a)},selectedFilterText(a){this.$refs.selectTree.filter(a)},checkedKeys(a){this.$refs.sourceTree.setCheckedKeys(a),R.nextTick(()=>{this.getSelectedData(),this.$refs.selectTree.setCheckedKeys(a)})}},data(){return{defaultTreeAttributes:{"default-expand-all":!0,"show-checkbox":!0},selectedList:[],sourceFilterText:"",selectedFilterText:""}},methods:{sourceFilterNode(a,e){return a?e.label.indexOf(a)!==-1:!0},getSelectedData(){let a=!0,e;const t=this.$refs.sourceTree.getCheckedNodes(a,e);this.selectedList=t},removeSelectedData(){let a,e;const t=this.$refs.selectTree.getCheckedNodes(a,e),r={};t.forEach(n=>{r[n[this.nodeKey]]=n}),this.selectedList=this.selectedList.filter(n=>!r[n[this.nodeKey]])}}};var pt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tree-box"},[t("div",{staticClass:"left-box"},[e.filterable?t("el-input",{attrs:{placeholder:"输入关键字进行过滤"},model:{value:e.sourceFilterText,callback:function(r){e.sourceFilterText=r},expression:"sourceFilterText"}}):e._e(),t("el-tree",e._b({ref:"sourceTree",attrs:{data:e.dataSource,"filter-node-method":e.sourceFilterNode,nodeKey:e.nodeKey}},"el-tree",{...e.defaultTreeAttributes},!1))],1),t("div",{staticClass:"mid-box"},[t("el-button",{attrs:{icon:"el-icon-arrow-right",circle:""},on:{click:e.getSelectedData}}),t("el-button",{attrs:{icon:"el-icon-arrow-left",circle:""},on:{click:e.removeSelectedData}})],1),t("div",{staticClass:"right-box"},[e.filterable?t("el-input",{attrs:{placeholder:"输入关键字进行过滤"},model:{value:e.selectedFilterText,callback:function(r){e.selectedFilterText=r},expression:"selectedFilterText"}}):e._e(),t("el-tree",e._b({ref:"selectTree",attrs:{data:e.selectedList,"filter-node-method":e.sourceFilterNode,nodeKey:e.nodeKey}},"el-tree",{...e.defaultTreeAttributes},!1))],1)])},dt=[],ft=$(ut,pt,dt,!1,null,"49dbad2a",null,null);const yt=ft.exports,Kt="",{getData:ht}=_e,{formSchema:mt}=be,bt={name:"VTabs",components:{TableColumn:oe},data(){return{activeName:this.activeNameInit()}},props:{tabPanes:{type:Array,default:()=>[]},parametersType:{type:String,default:"url"},DBPrimaryKey:{type:[String,Number],required:!1},activeNameKey:{type:String,default:"activeName"},defActiveName:{type:String},getList:{type:Function,default:()=>{}}},watch:{defActiveName:{handler(a,e){JSON.stringify(a)!==JSON.stringify(this.activeName)&&(this.activeName=a)},immediate:!0},activeName:{handler(a){this.$emit(`update:${this.activeNameKey}`,a)}}},methods:{async handleClick(a,e){const t=await E.makeParamsByType({[this.activeNameKey]:this.activeName},this);await E.saveParamsByType(t,this),this.getList({...t})},activeNameInit(){var t,r,n;let a="";(t=this.tabPanes[0])!=null&&t.name&&(a=(r=this.tabPanes[0])==null?void 0:r.name);const e=fe.queryToData(Number((n=this.$route)==null?void 0:n.query[this.activeNameKey]));return this.parametersType==="url"&&e&&(a=e),this.parametersType==="indexDB"&&ht({tableName:"formParams",propertiesKey:this.$route.path||"defQueryParams",primaryKey:this.DBPrimaryKey||"default",mapDB:mt},o=>{(o==null?void 0:o[this.activeNameKey])&&(this.activeName=o==null?void 0:o[this.activeNameKey])}),this.defActiveName&&(a=this.defActiveName),`${a}`}}};var _t=function(){var e=this,t=e._self._c;return t("el-tabs",e._b({on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(r){e.activeName=r},expression:"activeName"}},"el-tabs",e.$attrs,!1),[e._l(e.tabPanes,function(r){return t("el-tab-pane",e._b({key:r.name},"el-tab-pane",r,!1),[r.render?t("TableColumn",{attrs:{renderFunction:r.render,item:r}}):e._e()],1)}),e._t("default")],2)},gt=[],vt=$(bt,_t,gt,!1,null,"ee818ed7",null,null);const St=vt.exports,wt=Ze,kt=Ye,xt=nt,Dt=lt,It=yt,Bt=St;D.VDescriptions=Dt,D.VGeneralBasicForm=wt,D.VInfiniteScrollList=kt,D.VSearchBox=xt,D.VTabs=Bt,D.VTreeTransfer=It,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(x,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],Q):(x=typeof globalThis<"u"?globalThis:x||self,Q(x.Index={},x.Vue))})(this,function(x,Q){"use strict";const Nt="";function $(a,e,t,r,n,o,i,s){var c=typeof a=="function"?a.options:a;e&&(c.render=e,c.staticRenderFns=t,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o);var d;if(i?(d=function(l){l=l||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!l&&typeof __VUE_SSR_CONTEXT__<"u"&&(l=__VUE_SSR_CONTEXT__),n&&n.call(this,l),l&&l._registeredComponents&&l._registeredComponents.add(i)},c._ssrRegister=d):n&&(d=s?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),d)if(c.functional){c._injectStyles=d;var p=c.render;c.render=function(y,b){return d.call(b),p(y,b)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,d):[d]}return{exports:a,options:c}}const ge={props:{verificationSetting:{type:Object,default:()=>{}},getSmscode:{type:Function,default:()=>{}}},data(){return{defaultText:this.verificationSetting.defaultText||"获取验证码",buttonText:this.verificationSetting.defaultText||"获取验证码",restTime:this.verificationSetting.restTime||60,timer:null}},computed:{buttonType(){return this.buttonText===this.defaultText}},destroyed(){this.reset()},methods:{reset(){this.timer&&(clearInterval(this.timer),this.timer=null,this.buttonText=this.defaultText)},async buttonClick(){if(this.buttonText===this.defaultText)if(this.buttonText=this.restTime,this.timer=setInterval(()=>{if(Number(this.buttonText)<=0||!this.buttonText){this.reset();return}else this.buttonText=Number(this.buttonText)-1},1e3),this.getSmscode)await this.getSmscode()===!1&&this.reset();else return}}};var ve=function(){var e=this,t=e._self._c;return t("el-button",{on:{click:e.buttonClick}},[e._v(e._s(e.buttonType?e.defaultText:e.buttonText+"s"))])},Se=[],we=$(ge,ve,Se,!1,null,null,null,null);const ke=we.exports,De=(a={})=>{for(const e in a)if(Object.prototype.hasOwnProperty.call(a,e)){const t=a[e];Object.prototype.toString.call(t)==="[object Object]"&&(a[e]=JSON.stringify(t))}return a},xe=(a={})=>{for(const e in a)if(Object.prototype.hasOwnProperty.call(a,e)){const t=a[e];try{/[{]+/g.test(t)&&/[}]+/g.test(t)&&(a[e]=JSON.parse(t))}catch{}}return a},G={paramsToQuery:De,queryToData:xe},N=L;(function(a,e){const t=L,r=a();for(;;)try{if(parseInt(t(561))/1+-parseInt(t(558))/2+parseInt(t(521))/3*(parseInt(t(527))/4)+-parseInt(t(506))/5*(parseInt(t(510))/6)+-parseInt(t(550))/7*(parseInt(t(503))/8)+parseInt(t(540))/9+-parseInt(t(546))/10*(-parseInt(t(562))/11)===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(W,819524);const w={};let q=null;const de=async(a,e)=>{const t=L;!window[t(543)]&&window[t(498)]("您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.");const{DBName:r="",DBVersion:n=1}=a;let o,i=!1;try{const s=window[t(543)][t(519)](r,n);await new Promise((c,d)=>{const p=t;s[p(551)]=async function(u){const l=p,y=u.target.result,{stores:b=[]}=a;await Promise.all(b[l(509)](async f=>{const m=l,{DBStoreName:h="",properties:_={}}=f;try{const g={};g[m(536)]=a[m(557)];const B=u[m(541)][m(520)][m(554)](h,g);if(Object[m(548)](_)[m(500)]===0){console[m(559)](h+"没有设置默认值");return}for(const v in _)if(_[m(556)][m(515)](_,v)){const S=_[v],D={...S.createIndex};B[m(504)](v,v,D)}}catch(g){console[m(559)](g)}})),o=y,i=!0},s[p(535)]=async function(u){const l=p;if(o=this[l(520)],i){const{stores:y=[]}=a;await Promise[l(528)](y[l(509)](async b=>{const f=l,{DBStoreName:m=""}=b,h=o[f(552)]([m],f(547)),_=h[f(496)](m),g={};g[a[f(557)]]=e,_[f(502)](g);try{await new Promise((B,v)=>{const S=f;h[S(525)]=function(D){const T=S;console[T(513)](T(512),D),v()},h[S(544)]=function(D){B()},h[S(529)]=function(D){const T=S;console[T(513)](T(534),D),v()}})}catch(B){console.warn(f(511),B)}}))}c()},s.onerror=function(u){d(u)}})}catch(s){console[t(513)](s,t(526))}return o};function W(){const a=["transaction","DBName","createObjectStore","close","hasOwnProperty","primaryKey","208156ZfrAJr","warn","delete","1575928bFmnZg","154LBDnQZ","objectStore","数据更新失败","alert","store不存在,请更新schema和DBVersion并重启前端服务","length","openCursor","add","15752fkogxb","createIndex","deleteDB","299045NkkBTh","请传入主键","mapDB","map","102uEoUGM","目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理","主键插入中止","error","数据库删除失败","call","continue","update","deleteStore","open","result","66891DVCnfv","get","getDataByKey","数据删除失败","onabort","打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因","52JGzdMb","all","onerror","put","数据更新失败没有request","Database connection closed, reconnecting...","target","主键插入失败","onsuccess","keyPath","数据更新成功","主键查询结果:","传入结构化克隆算法不支持的数据类型可能导致报错","4779333CtWPbr","currentTarget","获取Database缺乏用户信息,请先传入对primaryKey的赋值","indexedDB","oncomplete","事务失败","634540WpNScH","readwrite","keys","getDB","4781SEkDBZ","onupgradeneeded"];return W=function(){return a},W()}function L(a,e){const t=W();return L=function(r,n){return r=r-496,t[r]},L(a,e)}let J=!1;w[N(549)]=async(a,e)=>{const t=N,{mapDB:r,primaryKey:n}=a;return r?n?(J&&await new Promise(async(o,i)=>{const s=()=>{J?setTimeout(()=>{s()},200):o()};s()}),!q&&(J=!0,q=await de(r,n),q==null||q.addEventListener(t(555),async()=>{console.info(t(532)),q=await de(r,n)}),J=!1),e&&e(q),q):(console[t(559)](t(542)),!1):(console[t(559)]("必须传入数据库配置信息"),!1)},w[N(523)]=async(a,e)=>{const t=N,{mapDB:r,tableName:n,primaryKey:o}=a,i={};i[t(508)]=r,i[t(557)]=o;const s=await w.getDB(i);if(!s)return;const c=s.transaction([n]),d=c[t(496)](n),p=d[t(522)](o);return new Promise((u,l)=>{const y=t;p.onsuccess=function(b){const f=L;e&&e(n+f(538)+p[f(520)]),u(p[f(520)])},p[y(529)]=function(b){console.error(n+y(545)+b),l()}})},w.updateStore=async(a,e)=>{var t;const r=N,{mapDB:n,tableName:o,updateData:i}=a;!i[n==null?void 0:n[r(557)]]&&console[r(559)](r(507)+n[r(557)]);const s={};s.mapDB=n,s[r(557)]=i[n==null?void 0:n[r(557)]];const c=await w[r(549)](s);if(!c)return;let d=null;try{d=c[r(552)]([o],r(547)).objectStore(o)}catch(y){console[r(513)](r(499),y)}let p=null,u=null;const l=await new Promise((y,b)=>{const f=r,m=d[f(501)](i[n==null?void 0:n[f(557)]]);m[f(535)]=h=>{y(h)},m.onerror=h=>{b(h)}});u=(t=l==null?void 0:l[r(533)])==null?void 0:t[r(520)];try{u&&(u==null?void 0:u.primaryKey)===i[n==null?void 0:n.primaryKey]?p=u[r(517)](i):p=d[r(530)](i)}catch(y){console[r(513)](r(539),y,i)}new Promise((y,b)=>{const f=r;!p&&(console[f(513)](o+f(531)),b()),p[f(535)]=function(m){e&&e(o+f(537)),y()},p[f(529)]=function(m){const h=f;console[h(513)](o+h(497),m),b()}}),u&&u[r(516)]()},w[N(518)]=async(a,e)=>{const t=N,{mapDB:r,tableName:n,primaryKey:o}=a,i={};i[t(508)]=r,i[t(557)]=o;const s=await w.getDB(i);if(!s)return;const c=s[t(552)]([n],t(547))[t(496)](n)[t(560)](o);return new Promise((d,p)=>{const u=t;c[u(535)]=function(l){e&&e(n+"数据删除成功"),d()},c.onerror=function(l){const y=u;console[y(513)](n+y(524)+l),p()}})},w[N(505)]=async(a,e)=>{const{mapDB:t}=a,r=window.indexedDB.deleteDatabase(t.DBName);return new Promise((n,o)=>{const i=L;r[i(535)]=s=>{e&&e(t[i(553)]+"数据库已删除"),n()},r[i(529)]=s=>{const c=i;console[c(513)](t[c(553)]+c(514)+s),o()}})};function F(a,e){const t=Z();return F=function(r,n){return r=r-125,t[r]},F(a,e)}function Z(){const a=["updateData","error","getDataByKey","531aQoQZo","primaryKey","handleData","2kSsgxs","777jFjQPc","1271805RJVSFy","546pnZEJw","3522904vvFeGW","4wGSwDA","tableName","780ChApSf","deleteStore","655364nEjUrb","3705144rIEFqv","updateStore","getData","clearData","mapDB","3003845nIJAzp"];return Z=function(){return a},Z()}const M=F;(function(a,e){const t=F,r=a();for(;;)try{if(-parseInt(t(140))/1*(-parseInt(t(127))/2)+parseInt(t(142))/3*(parseInt(t(145))/4)+-parseInt(t(133))/5+-parseInt(t(143))/6*(parseInt(t(141))/7)+-parseInt(t(128))/8+parseInt(t(137))/9*(parseInt(t(125))/10)+parseInt(t(144))/11===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(Z,330152);async function Ie(a,e){const t=F,{tableName:r,propertiesKey:n,parameter:o,primaryKey:i,mapDB:s}=a;let c=null,d={[s[t(138)]]:i};const p={};p[t(132)]=s,p.tableName=r,p[t(138)]=i;const u=await w[t(136)](p);u&&(d={...u,[s.primaryKey]:i}),d[n]=o;const l={};return l[t(132)]=s,l.tableName=r,l[t(134)]=d,await w[t(129)](l),o&&(c=o),e&&e(c),c}async function Pe(a,e){const t=F,{tableName:r,propertiesKey:n,primaryKey:o,mapDB:i}=a;let s=null;const c={};c[t(132)]=i,c[t(146)]=r,c.primaryKey=o;const d=await w[t(136)](c);return d&&(s=d[n]),e&&e(s),s}async function Be(a,e){const t=F,{tableName:r,propertiesKey:n,parameter:o,primaryKey:i,mapDB:s}=a;let c={};const d={};d.mapDB=s,d[t(146)]=r,d[t(138)]=i;const p=await w[t(136)](d);try{if(p){c={...p[n],...o};const u={[s[t(138)]]:i},l=u;l[n]=c;const y={};y[t(132)]=s,y[t(146)]=r,y[t(134)]=l,await w.updateStore(y)}else console.warn(r+"为空,请先调用handleData")}catch(u){console[t(135)](u)}return e&&e(c),c}async function Te(a,e){const t=F,{tableName:r,primaryKey:n,mapDB:o}=a;let i=null;try{const s={};s.mapDB=o,s[t(146)]=r,s[t(138)]=n,await w[t(126)](s)}catch(s){console.error(s)}return e&&e(i),i}const R={};R[M(139)]=Ie,R[M(130)]=Pe,R[M(134)]=Be,R[M(131)]=Te;var I=H;(function(a,e){for(var t=H,r=a();;)try{var n=-parseInt(t(385))/1+parseInt(t(387))/2+-parseInt(t(389))/3+-parseInt(t(398))/4*(parseInt(t(394))/5)+-parseInt(t(402))/6+-parseInt(t(399))/7+-parseInt(t(386))/8*(-parseInt(t(400))/9);if(n===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(U,363872);var fe={};fe[I(397)]=!1;var ne={};ne[I(384)]=fe,ne[I(392)]={};var ye={};function U(){var a=["default","mapDB-indexeddb-form-schema","663915ecCGKl","primaryKey","stores","unique","12QKZOdu","2103521TxMjSC","1212714qgZAmF","formParams","3534618LLAImJ","DBName","properties","createIndex","464644FTRsMp","128qSoFyx","33606razpoB","DBVersion","168804drPGaG","queryParams","DBStoreName"];return U=function(){return a},U()}ye[I(390)]=ne;function H(a,e){var t=U();return H=function(r,n){r=r-382;var o=t[r];return o},H(a,e)}var se={};se[I(391)]=I(401),se[I(383)]=ye;var V={};V[I(395)]="userId",V[I(382)]=I(393),V[I(388)]=1,V[I(396)]=[se];const Ne={formSchema:V},Fe=R,{handleData:Ke,getData:me}=Fe,{formSchema:oe}=Ne,ie=async(a,e)=>{var t;return e.parametersType==="url"&&(a={...G.queryToData((t=e.$route)==null?void 0:t.query),...a}),e.parametersType==="indexDB"&&(a={...await me({tableName:"formParams",propertiesKey:e.$route.path||"defQueryParams",primaryKey:e.DBPrimaryKey||"default",mapDB:oe}),...a}),a},ce=async(a,e)=>{e.parametersType==="url"&&await e.$router.push({query:G.paramsToQuery({...a})}),e.parametersType==="indexDB"&&await Ke({tableName:"formParams",propertiesKey:e.$route.path||"defQueryParams",parameter:{...a},primaryKey:e.DBPrimaryKey||"default",mapDB:oe})},Ce=async({queryParameter:a={},vm:e={}})=>{a.defaultPageFirst??(a.defaultPageFirst=!0);const t={[e.currentPageKey]:e.defCurrentPage};let r={...t,...e.queryParams};r=await ie(r,e),a.defaultPageFirst&&(r={...r,...t}),await ce(r,e),e.getList({...r})},$e=async({vm:a={}})=>{a.$refs.queryFormRef.resetFields();const e=await ie({},a),t={[a.currentPageKey]:a.defCurrentPage,[a.pageSizeKey]:(e==null?void 0:e[a.pageSizeKey])||a.defPageSize};await ce(t,a),a.queryParams={...t},a.afterReset(),a.handleQuery()},qe=({vm:a={}})=>{var e;let t={[a.pageSizeKey]:a.defPageSize};return a.parametersType==="url"&&(t={...t,...G.queryToData((e=a.$route)==null?void 0:e.query)}),a.parametersType==="indexDB"&&me({tableName:"formParams",propertiesKey:a.$route.path||"defQueryParams",primaryKey:a.DBPrimaryKey||"default",mapDB:oe},r=>{r&&(a.queryParams={...t,...r}),a.queryWhenReady&&a.$nextTick(()=>{a.handleQuery({defaultPageFirst:!1})})}),a.queryWhenReady&&a.parametersType!=="indexDB"&&a.$nextTick(()=>{a.handleQuery({defaultPageFirst:!1})}),t},Le=({item:a={},vm:e={}})=>{const{type:t,rules:r=[]}=a,n=[...r];return e.noInputBlank&&t==="input"&&n.push({pattern:/\S/,message:"请输入(不能仅输入空格)",trigger:"blur"}),n},Oe={makeParamsByType:ie,saveParamsByType:ce,handleQuery:Ce,resetQuery:$e,initQueryParams:qe,getItemRules:Le},ze={functional:!0,props:{renderFunction:{default:()=>{},type:Function},item:{default:()=>{},type:Object}},render(a,e){const{props:t}=e,{renderFunction:r,item:n}=t;return r(n)}},Ee=G,E=Oe,le=ze,K=z;(function(a,e){const t=z,r=a();for(;;)try{if(parseInt(t(561))/1+-parseInt(t(558))/2+parseInt(t(521))/3*(parseInt(t(527))/4)+-parseInt(t(506))/5*(parseInt(t(510))/6)+-parseInt(t(550))/7*(parseInt(t(503))/8)+parseInt(t(540))/9+-parseInt(t(546))/10*(-parseInt(t(562))/11)===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(X,819524);const k={};let O=null;const he=async(a,e)=>{const t=z;!window[t(543)]&&window[t(498)]("您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.");const{DBName:r="",DBVersion:n=1}=a;let o,i=!1;try{const s=window[t(543)][t(519)](r,n);await new Promise((c,d)=>{const p=t;s[p(551)]=async function(u){const l=p,y=u.target.result,{stores:b=[]}=a;await Promise.all(b[l(509)](async f=>{const m=l,{DBStoreName:h="",properties:_={}}=f;try{const g={};g[m(536)]=a[m(557)];const B=u[m(541)][m(520)][m(554)](h,g);if(Object[m(548)](_)[m(500)]===0){console[m(559)](h+"没有设置默认值");return}for(const v in _)if(_[m(556)][m(515)](_,v)){const S=_[v],D={...S.createIndex};B[m(504)](v,v,D)}}catch(g){console[m(559)](g)}})),o=y,i=!0},s[p(535)]=async function(u){const l=p;if(o=this[l(520)],i){const{stores:y=[]}=a;await Promise[l(528)](y[l(509)](async b=>{const f=l,{DBStoreName:m=""}=b,h=o[f(552)]([m],f(547)),_=h[f(496)](m),g={};g[a[f(557)]]=e,_[f(502)](g);try{await new Promise((B,v)=>{const S=f;h[S(525)]=function(D){const T=S;console[T(513)](T(512),D),v()},h[S(544)]=function(D){B()},h[S(529)]=function(D){const T=S;console[T(513)](T(534),D),v()}})}catch(B){console.warn(f(511),B)}}))}c()},s.onerror=function(u){d(u)}})}catch(s){console[t(513)](s,t(526))}return o};function X(){const a=["transaction","DBName","createObjectStore","close","hasOwnProperty","primaryKey","208156ZfrAJr","warn","delete","1575928bFmnZg","154LBDnQZ","objectStore","数据更新失败","alert","store不存在,请更新schema和DBVersion并重启前端服务","length","openCursor","add","15752fkogxb","createIndex","deleteDB","299045NkkBTh","请传入主键","mapDB","map","102uEoUGM","目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理","主键插入中止","error","数据库删除失败","call","continue","update","deleteStore","open","result","66891DVCnfv","get","getDataByKey","数据删除失败","onabort","打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因","52JGzdMb","all","onerror","put","数据更新失败没有request","Database connection closed, reconnecting...","target","主键插入失败","onsuccess","keyPath","数据更新成功","主键查询结果:","传入结构化克隆算法不支持的数据类型可能导致报错","4779333CtWPbr","currentTarget","获取Database缺乏用户信息,请先传入对primaryKey的赋值","indexedDB","oncomplete","事务失败","634540WpNScH","readwrite","keys","getDB","4781SEkDBZ","onupgradeneeded"];return X=function(){return a},X()}function z(a,e){const t=X();return z=function(r,n){return r=r-496,t[r]},z(a,e)}let Y=!1;k[K(549)]=async(a,e)=>{const t=K,{mapDB:r,primaryKey:n}=a;return r?n?(Y&&await new Promise(async(o,i)=>{const s=()=>{Y?setTimeout(()=>{s()},200):o()};s()}),!O&&(Y=!0,O=await he(r,n),O==null||O.addEventListener(t(555),async()=>{console.info(t(532)),O=await he(r,n)}),Y=!1),e&&e(O),O):(console[t(559)](t(542)),!1):(console[t(559)]("必须传入数据库配置信息"),!1)},k[K(523)]=async(a,e)=>{const t=K,{mapDB:r,tableName:n,primaryKey:o}=a,i={};i[t(508)]=r,i[t(557)]=o;const s=await k.getDB(i);if(!s)return;const c=s.transaction([n]),d=c[t(496)](n),p=d[t(522)](o);return new Promise((u,l)=>{const y=t;p.onsuccess=function(b){const f=z;e&&e(n+f(538)+p[f(520)]),u(p[f(520)])},p[y(529)]=function(b){console.error(n+y(545)+b),l()}})},k.updateStore=async(a,e)=>{var t;const r=K,{mapDB:n,tableName:o,updateData:i}=a;!i[n==null?void 0:n[r(557)]]&&console[r(559)](r(507)+n[r(557)]);const s={};s.mapDB=n,s[r(557)]=i[n==null?void 0:n[r(557)]];const c=await k[r(549)](s);if(!c)return;let d=null;try{d=c[r(552)]([o],r(547)).objectStore(o)}catch(y){console[r(513)](r(499),y)}let p=null,u=null;const l=await new Promise((y,b)=>{const f=r,m=d[f(501)](i[n==null?void 0:n[f(557)]]);m[f(535)]=h=>{y(h)},m.onerror=h=>{b(h)}});u=(t=l==null?void 0:l[r(533)])==null?void 0:t[r(520)];try{u&&(u==null?void 0:u.primaryKey)===i[n==null?void 0:n.primaryKey]?p=u[r(517)](i):p=d[r(530)](i)}catch(y){console[r(513)](r(539),y,i)}new Promise((y,b)=>{const f=r;!p&&(console[f(513)](o+f(531)),b()),p[f(535)]=function(m){e&&e(o+f(537)),y()},p[f(529)]=function(m){const h=f;console[h(513)](o+h(497),m),b()}}),u&&u[r(516)]()},k[K(518)]=async(a,e)=>{const t=K,{mapDB:r,tableName:n,primaryKey:o}=a,i={};i[t(508)]=r,i[t(557)]=o;const s=await k.getDB(i);if(!s)return;const c=s[t(552)]([n],t(547))[t(496)](n)[t(560)](o);return new Promise((d,p)=>{const u=t;c[u(535)]=function(l){e&&e(n+"数据删除成功"),d()},c.onerror=function(l){const y=u;console[y(513)](n+y(524)+l),p()}})},k[K(505)]=async(a,e)=>{const{mapDB:t}=a,r=window.indexedDB.deleteDatabase(t.DBName);return new Promise((n,o)=>{const i=z;r[i(535)]=s=>{e&&e(t[i(553)]+"数据库已删除"),n()},r[i(529)]=s=>{const c=i;console[c(513)](t[c(553)]+c(514)+s),o()}})};function C(a,e){const t=ee();return C=function(r,n){return r=r-125,t[r]},C(a,e)}function ee(){const a=["updateData","error","getDataByKey","531aQoQZo","primaryKey","handleData","2kSsgxs","777jFjQPc","1271805RJVSFy","546pnZEJw","3522904vvFeGW","4wGSwDA","tableName","780ChApSf","deleteStore","655364nEjUrb","3705144rIEFqv","updateStore","getData","clearData","mapDB","3003845nIJAzp"];return ee=function(){return a},ee()}const te=C;(function(a,e){const t=C,r=a();for(;;)try{if(-parseInt(t(140))/1*(-parseInt(t(127))/2)+parseInt(t(142))/3*(parseInt(t(145))/4)+-parseInt(t(133))/5+-parseInt(t(143))/6*(parseInt(t(141))/7)+-parseInt(t(128))/8+parseInt(t(137))/9*(parseInt(t(125))/10)+parseInt(t(144))/11===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(ee,330152);async function Qe(a,e){const t=C,{tableName:r,propertiesKey:n,parameter:o,primaryKey:i,mapDB:s}=a;let c=null,d={[s[t(138)]]:i};const p={};p[t(132)]=s,p.tableName=r,p[t(138)]=i;const u=await k[t(136)](p);u&&(d={...u,[s.primaryKey]:i}),d[n]=o;const l={};return l[t(132)]=s,l.tableName=r,l[t(134)]=d,await k[t(129)](l),o&&(c=o),e&&e(c),c}async function Re(a,e){const t=C,{tableName:r,propertiesKey:n,primaryKey:o,mapDB:i}=a;let s=null;const c={};c[t(132)]=i,c[t(146)]=r,c.primaryKey=o;const d=await k[t(136)](c);return d&&(s=d[n]),e&&e(s),s}async function Ve(a,e){const t=C,{tableName:r,propertiesKey:n,parameter:o,primaryKey:i,mapDB:s}=a;let c={};const d={};d.mapDB=s,d[t(146)]=r,d[t(138)]=i;const p=await k[t(136)](d);try{if(p){c={...p[n],...o};const u={[s[t(138)]]:i},l=u;l[n]=c;const y={};y[t(132)]=s,y[t(146)]=r,y[t(134)]=l,await k.updateStore(y)}else console.warn(r+"为空,请先调用handleData")}catch(u){console[t(135)](u)}return e&&e(c),c}async function je(a,e){const t=C,{tableName:r,primaryKey:n,mapDB:o}=a;let i=null;try{const s={};s.mapDB=o,s[t(146)]=r,s[t(138)]=n,await k[t(126)](s)}catch(s){console.error(s)}return e&&e(i),i}const j={};j[te(139)]=Qe,j[te(130)]=Re,j[te(134)]=Ve,j[te(131)]=je;var P=ae;(function(a,e){for(var t=ae,r=a();;)try{var n=-parseInt(t(385))/1+parseInt(t(387))/2+-parseInt(t(389))/3+-parseInt(t(398))/4*(parseInt(t(394))/5)+-parseInt(t(402))/6+-parseInt(t(399))/7+-parseInt(t(386))/8*(-parseInt(t(400))/9);if(n===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(re,363872);var be={};be[P(397)]=!1;var ue={};ue[P(384)]=be,ue[P(392)]={};var _e={};function re(){var a=["default","mapDB-indexeddb-form-schema","663915ecCGKl","primaryKey","stores","unique","12QKZOdu","2103521TxMjSC","1212714qgZAmF","formParams","3534618LLAImJ","DBName","properties","createIndex","464644FTRsMp","128qSoFyx","33606razpoB","DBVersion","168804drPGaG","queryParams","DBStoreName"];return re=function(){return a},re()}_e[P(390)]=ue;function ae(a,e){var t=re();return ae=function(r,n){r=r-382;var o=t[r];return o},ae(a,e)}var pe={};pe[P(391)]=P(401),pe[P(383)]=_e;var A={};A[P(395)]="userId",A[P(382)]=P(393),A[P(388)]=1,A[P(396)]=[pe];const Ae={formSchema:A},Ge=j,Ft="",We={name:"GeneralBasicForm",components:{InputArchive:a=>{const{templateEle:e}=a;return e()},VerificationButton:ke},props:{showSearch:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},formOnly:{type:Boolean,default:!1},getList:{type:Function,default:()=>{}},afterReset:{type:Function,default:()=>{}},formItem:{type:Array,default:()=>[]},size:{type:String,default:""},labelWidth:{type:String,default:"90px"},parametersType:{type:String,default:"url"},DBPrimaryKey:{type:[String,Number],required:!1},formData:{type:Object,default:()=>{}},noInputBlank:{type:Boolean,default:()=>!1},currentPageKey:{type:String,default:"page"},pageSizeKey:{type:String,default:"limit"},defCurrentPage:{type:Number,default:1},defPageSize:{type:Number,default:10},queryWhenReady:{type:Boolean,default:()=>!1}},data(){return{queryParams:E.initQueryParams({vm:this}),formLoading:this.loading||!1,selectSetting:{placeholder:"请选择",filterable:!0,clearable:!0,style:"width: 200px"},inputSetting:{placeholder:"请输入",style:"width: 200px",clearable:!0},datePackerSetting:{style:"width: 227px","start-placeholder":"开始日期","end-placeholder":"结束日期",type:"daterange"},attrs:{inline:!0,"label-position":"left"}}},watch:{formData:{handler(a,e){JSON.stringify(a)!==JSON.stringify(this.queryParams)&&(this.queryParams={...this.queryParams,...a})},immediate:!0,deep:!0},queryParams:{handler(a){this.$emit("update:formData",{...a})},deep:!0},$attrs:{handler(a){this.attrs={...this.attrs,...a}},immediate:!0,deep:!0},loading(a){this.formLoading!==a&&(this.formLoading=a)},formLoading(a){this.loading!==a&&this.$emit("update:loading",a)}},methods:{handleQuery(a={}){E.handleQuery({queryParameter:a,vm:this})},resetQuery(){E.resetQuery({vm:this})},currentInputComponent(){return"input-archive"},getItemRules(a){return E.getItemRules({item:a,vm:this})},getInputSetting(a){const{inputSetting:e,setting:t}=a;return{...this.inputSetting,...e,...t}},defaultFunction(){},getInputEvents(a){return{blur:a.blur||this.defaultFunction,focus:a.focus||this.defaultFunction,change:a.change||this.defaultFunction,input:a.input||this.defaultFunction,clear:a.clear||this.defaultFunction}},getSelectSetting(a){const{selectSetting:e,setting:t}=a;return{...this.selectSetting,...e,...t}},getSelectEvents(a){return{change:a.change||this.defaultFunction,"visible-change":a["visible-change"]||this.defaultFunction,"remove-tag":a["remove-tag"]||this.defaultFunction,"expand-change":a["expand-change"]||this.defaultFunction,clear:a.clear||this.defaultFunction,blur:a.blur||this.defaultFunction,focus:a.focus||this.defaultFunction}},getDatePackerSetting(a){const{datePackerSetting:e,setting:t}=a;return{...this.datePackerSetting,...e,...t}},getDatePackerEvents(a){return{change:a.change||this.defaultFunction,blur:a.blur||this.defaultFunction,focus:a.focus||this.defaultFunction}},getCheckboxGroupSetting(a){const{checkboxGroupSetting:e,setting:t}=a;return{...e,...t}},getCheckboxGroupEvents(a){return{change:a.change||this.defaultFunction}}}};var Je=function(){var e=this,t=e._self._c;return t("el-form",e._b({directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryFormRef",attrs:{model:e.queryParams,"label-width":e.labelWidth}},"el-form",e.attrs,!1),[e._l(e.formItem,function(r){return t("el-form-item",e._b({key:r.prop,attrs:{rules:e.getItemRules(r)}},"el-form-item",r,!1),[r.type==="input"?t("el-input",e._g(e._b({attrs:{size:e.size},nativeOn:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},scopedSlots:e._u([e._l(r.template,function(n,o){return{key:o,fn:function(){return[n?t(e.currentInputComponent(),{key:o,tag:"component",attrs:{templateEle:n}}):e._e()]},proxy:!0}})],null,!0),model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-input",e.getInputSetting(r),!1),e.getInputEvents(r))):r.type==="input-mobile-verification"?t("el-input",e._g(e._b({attrs:{size:e.size},nativeOn:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},scopedSlots:e._u([e._l(r.template,function(n,o){return{key:o,fn:function(){return[n?t(e.currentInputComponent(),{key:o,tag:"component",attrs:{templateEle:n}}):e._e()]},proxy:!0}})],null,!0),model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-input",e.getInputSetting(r),!1),e.getInputEvents(r)),[t("template",{slot:"append"},[t("verification-button",{attrs:{verificationSetting:r.verificationSetting,getSmscode:r.getSmscode}})],1)],2):r.type==="select"?t("el-select",e._g(e._b({attrs:{filterable:"",size:e.size},model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-select",e.getSelectSetting(r),!1),e.getSelectEvents(r)),e._l(r.option||[],function(n){return t("el-option",{key:n.key||n.value,attrs:{label:n.label,value:n.value}})}),1):r.type==="cascader"?t("el-cascader",e._g(e._b({attrs:{filterable:"",size:e.size,options:r.options||[]},model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-cascader",e.getSelectSetting(r),!1),e.getSelectEvents(r))):r.type==="date-picker"?t("el-date-picker",e._g(e._b({attrs:{size:e.size},model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-date-picker",e.getDatePackerSetting(r),!1),e.getDatePackerEvents(r))):e._e(),r.type==="input-number"?t("el-input-number",e._g(e._b({attrs:{size:e.size},model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-input-number",e.getInputSetting(r),!1),e.getInputEvents(r))):r.type==="checkbox"?t("el-checkbox-group",e._g(e._b({attrs:{size:e.size},model:{value:e.queryParams[r.prop],callback:function(n){e.$set(e.queryParams,r.prop,n)},expression:"queryParams[item.prop]"}},"el-checkbox-group",e.getCheckboxGroupSetting(r),!1),e.getCheckboxGroupEvents(r)),e._l(r.option||[],function(n){return t("el-checkbox",e._b({key:n.key||n.value||n.label},"el-checkbox",n,!1))}),1):e._e(),/^form-item-slot$/i.test(r.type)?e._t(r.name):e._e()],2)}),e._t("default"),e.formOnly?e._e():t("el-form-item",[t("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:e.size,loading:e.formLoading},on:{click:e.handleQuery}},[e._v("查询")]),t("el-button",{attrs:{icon:"el-icon-refresh",size:e.size},on:{click:e.resetQuery}},[e._v("重置")])],1),e._t("behind-the-button")],2)},Ze=[],Me=$(We,Je,Ze,!1,null,"f8e93bba",null,null);const Ue=Me.exports,Kt="",He={name:"InfiniteScrollList",components:{TableColumn:le},props:{search:{type:Function,required:!0},checkbox:{type:Boolean,required:!1},id:{type:String,required:!0},name:{type:String,required:!1},extra:{type:null,required:!1},defaultSelection:{type:Array,required:!1},height:{type:String,required:!1,default:"272px"}},data(){return{list:[],page:1,ifbottom:!1,checkedList:[],loading:!1}},computed:{selectInfo(){return this.list.filter(a=>this.checkedList.includes(a[this.id]))}},watch:{defaultSelection:{handler(a=[],e=[]){this.updateCheckedList(a)},immediate:!0}},methods:{reset(){this.lowReset(),this.checkedList=[]},updateCheckedList(a){this.checkedList=a.map(e=>typeof e=="object"?e[this.id]:e)},lowReset(){this.page=1,this.list=[],this.ifbottom=!1},async loadList(){if(this.loading||this.ifbottom)return;this.loading=!0;const a=await this.search(this.page);a&&a.length>0?(this.list=[...this.list,...a],this.page+=1):this.ifbottom=!0,this.loading=!1},async refreshList(){this.lowReset(),await this.loadList()}}};var Xe=function(){var e=this,t=e._self._c;return e.checkbox?t("el-checkbox-group",e._b({directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],model:{value:e.checkedList,callback:function(r){e.checkedList=r},expression:"checkedList"}},"el-checkbox-group",e.$attrs,!1),[t("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.loadList,expression:"loadList"}],staticClass:"list",style:{height:e.height},attrs:{"infinite-scroll-disabled":e.ifbottom}},e._l(e.list,function(r){return t("li",{key:r[e.id],staticClass:"list-item"},[t("el-checkbox",{staticClass:"checkbox",attrs:{label:r[e.id]}},[e._v(e._s(r[e.name])+" "),e.extra?t("TableColumn",{attrs:{renderFunction:e.extra,item:r}}):e._e()],1)],1)}),0)]):t("ul",e._b({directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.loadList,expression:"loadList"}],staticClass:"list",style:{height:e.height},attrs:{"infinite-scroll-disabled":e.ifbottom}},"ul",e.$attrs,!1),e._l(e.list,function(r){return t("li",{key:r[e.id],staticClass:"list-item"},[t("div",{staticClass:"checkbox"},[e._v(" "+e._s(r[e.name])+" "),e.extra?t("TableColumn",{attrs:{renderFunction:e.extra,item:r}}):e._e()],1)])}),0)},Ye=[],et=$(He,Xe,Ye,!1,null,"9ac38e10",null,null);const tt=et.exports,Ct="",rt={components:{},props:{query:{type:Object,default:()=>({prefCode:sessionStorage.getItem("prefCode")})},routePath:{type:String,default:()=>"/search/searchDetail"},inputstyle:{type:Object,default:()=>({width:"1280px"})},openHref:{type:Boolean,default:()=>!1},size:{type:String,default:()=>"medium"}},data(){var a,e;return{keyWord:((e=(a=this.$route)==null?void 0:a.query)==null?void 0:e.keyWord)||"",attrs:{}}},watch:{$attrs:{handler(a){this.attrs={...this.attrs,...a}},immediate:!0,deep:!0}},methods:{search(){const a={path:this.routePath,query:{...this.query,keyWord:this.keyWord}};if(this.openHref){const e=this.$router.resolve(a);window.open(e.href,"_blank")}else this.$router.push(a)}}};var at=function(){var e=this,t=e._self._c;return t("div",{staticClass:"search-box"},[t("el-input",e._b({style:{...e.inputstyle},attrs:{size:e.size},nativeOn:{keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.search.apply(null,arguments)}},model:{value:e.keyWord,callback:function(r){e.keyWord=r},expression:"keyWord"}},"el-input",e.attrs,!1),[t("svg",{staticClass:"el-input__icon",attrs:{slot:"prefix",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},slot:"prefix"},[t("path",{attrs:{d:"M9.51033 10.2186C8.69189 10.8814 7.64943 11.2784 6.51424 11.2784C3.88302 11.2784 1.75 9.14541 1.75 6.51421C1.75 3.88301 3.88302 1.75 6.51424 1.75C9.14545 1.75 11.2785 3.88301 11.2785 6.51421C11.2785 7.64942 10.8814 8.69189 10.2186 9.51034L13.75 13.0417L13.0417 13.75L9.51033 10.2186ZM10.2768 6.51421C10.2768 4.43623 8.59224 2.75168 6.51424 2.75168C4.43623 2.75168 2.75168 4.43623 2.75168 6.51421C2.75168 8.59219 4.43623 10.2767 6.51424 10.2767C8.59224 10.2767 10.2768 8.59219 10.2768 6.51421Z",fill:"#959A9F"}})])])],1)},nt=[],st=$(rt,at,nt,!1,null,"ef706e31",null,null);const ot=st.exports,it={name:"Descriptions",components:{TableColumn:le},data(){return{attrs:{border:!0,class:"v-descriptions"}}},props:{formItem:{type:Array,default:()=>[]},formData:{type:Object,default:()=>{}}},watch:{$attrs:{handler(a){this.attrs={...this.attrs,...a}},immediate:!0,deep:!0}}};var ct=function(){var e=this,t=e._self._c;return t("el-descriptions",e._b({},"el-descriptions",e.attrs,!1),e._l(e.formItem,function(r,n){return t("el-descriptions-item",e._b({key:r.prop,attrs:{label:r.label}},"el-descriptions-item",r.descriptionsItemProps,!1),[r.render?t("TableColumn",{attrs:{renderFunction:r.render,item:e.formData}}):t("span",[e._v(e._s(e.formData[r.prop]))])],1)}),1)},lt=[],ut=$(it,ct,lt,!1,null,null,null,null);const pt=ut.exports,$t="",dt={props:{nodeKey:{type:String,default:"id"},filterable:{type:Boolean,default:!1},dataSource:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]}},watch:{sourceFilterText(a){this.$refs.sourceTree.filter(a)},selectedFilterText(a){this.$refs.selectTree.filter(a)},checkedKeys(a){this.$refs.sourceTree.setCheckedKeys(a),Q.nextTick(()=>{this.getSelectedData(),this.$refs.selectTree.setCheckedKeys(a)})}},data(){return{defaultTreeAttributes:{"default-expand-all":!0,"show-checkbox":!0},selectedList:[],sourceFilterText:"",selectedFilterText:""}},methods:{sourceFilterNode(a,e){return a?e.label.indexOf(a)!==-1:!0},getSelectedData(){let a=!0,e;const t=this.$refs.sourceTree.getCheckedNodes(a,e);this.selectedList=t},removeSelectedData(){let a,e;const t=this.$refs.selectTree.getCheckedNodes(a,e),r={};t.forEach(n=>{r[n[this.nodeKey]]=n}),this.selectedList=this.selectedList.filter(n=>!r[n[this.nodeKey]])}}};var ft=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tree-box"},[t("div",{staticClass:"left-box"},[e.filterable?t("el-input",{attrs:{placeholder:"输入关键字进行过滤"},model:{value:e.sourceFilterText,callback:function(r){e.sourceFilterText=r},expression:"sourceFilterText"}}):e._e(),t("el-tree",e._b({ref:"sourceTree",attrs:{data:e.dataSource,"filter-node-method":e.sourceFilterNode,nodeKey:e.nodeKey}},"el-tree",{...e.defaultTreeAttributes},!1))],1),t("div",{staticClass:"mid-box"},[t("el-button",{attrs:{icon:"el-icon-arrow-right",circle:""},on:{click:e.getSelectedData}}),t("el-button",{attrs:{icon:"el-icon-arrow-left",circle:""},on:{click:e.removeSelectedData}})],1),t("div",{staticClass:"right-box"},[e.filterable?t("el-input",{attrs:{placeholder:"输入关键字进行过滤"},model:{value:e.selectedFilterText,callback:function(r){e.selectedFilterText=r},expression:"selectedFilterText"}}):e._e(),t("el-tree",e._b({ref:"selectTree",attrs:{data:e.selectedList,"filter-node-method":e.sourceFilterNode,nodeKey:e.nodeKey}},"el-tree",{...e.defaultTreeAttributes},!1))],1)])},yt=[],mt=$(dt,ft,yt,!1,null,"49dbad2a",null,null);const ht=mt.exports,qt="",{getData:bt}=Ge,{formSchema:_t}=Ae,gt={name:"VTabs",components:{TableColumn:le},data(){return{activeName:this.activeNameInit()}},props:{tabPanes:{type:Array,default:()=>[]},parametersType:{type:String,default:"url"},DBPrimaryKey:{type:[String,Number],required:!1},activeNameKey:{type:String,default:"activeName"},defActiveName:{type:String},getList:{type:Function,default:()=>{}}},watch:{defActiveName:{handler(a,e){JSON.stringify(a)!==JSON.stringify(this.activeName)&&(this.activeName=a)},immediate:!0},activeName:{handler(a){this.$emit(`update:${this.activeNameKey}`,a)}}},methods:{async handleClick(a,e){const t=await E.makeParamsByType({[this.activeNameKey]:this.activeName},this);await E.saveParamsByType(t,this),this.getList({...t})},activeNameInit(){var t,r,n;let a="";(t=this.tabPanes[0])!=null&&t.name&&(a=(r=this.tabPanes[0])==null?void 0:r.name);const e=Ee.queryToData(Number((n=this.$route)==null?void 0:n.query[this.activeNameKey]));return this.parametersType==="url"&&e&&(a=e),this.parametersType==="indexDB"&&bt({tableName:"formParams",propertiesKey:this.$route.path||"defQueryParams",primaryKey:this.DBPrimaryKey||"default",mapDB:_t},o=>{(o==null?void 0:o[this.activeNameKey])&&(this.activeName=o==null?void 0:o[this.activeNameKey])}),this.defActiveName&&(a=this.defActiveName),`${a}`}}};var vt=function(){var e=this,t=e._self._c;return t("el-tabs",e._b({on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(r){e.activeName=r},expression:"activeName"}},"el-tabs",e.$attrs,!1),[e._l(e.tabPanes,function(r){return t("el-tab-pane",e._b({key:r.name},"el-tab-pane",r,!1),[r.render?t("TableColumn",{attrs:{renderFunction:r.render,item:r}}):e._e()],1)}),e._t("default")],2)},St=[],wt=$(gt,vt,St,!1,null,"ee818ed7",null,null);const kt=wt.exports,Dt=Ue,xt=tt,It=ot,Pt=pt,Bt=ht,Tt=kt;x.VDescriptions=Pt,x.VGeneralBasicForm=Dt,x.VInfiniteScrollList=xt,x.VSearchBox=It,x.VTabs=Tt,x.VTreeTransfer=Bt,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "general-basic-form",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"type": "module",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"typings": "./dist/index.d.ts",
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"general-basic-indexdb": "^1.0.3",
|
|
58
|
-
"network-spanner": "^1.2.
|
|
58
|
+
"network-spanner": "^1.2.14"
|
|
59
59
|
},
|
|
60
60
|
"module": "./dist/index.js",
|
|
61
61
|
"exports": {
|