general-basic-form 1.2.6 → 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/README.md +1 -1
- package/dist/index.js +481 -350
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { nextTick as
|
|
2
|
-
function
|
|
1
|
+
import { nextTick as _e } from "vue";
|
|
2
|
+
function O(a, e, t, r, n, o, i, s) {
|
|
3
3
|
var c = typeof a == "function" ? a.options : a;
|
|
4
4
|
e && (c.render = e, c.staticRenderFns = t, c._compiled = !0), r && (c.functional = !0), o && (c._scopeId = "data-v-" + o);
|
|
5
|
-
var
|
|
6
|
-
if (i ? (
|
|
5
|
+
var d;
|
|
6
|
+
if (i ? (d = function(l) {
|
|
7
7
|
l = l || // cached call
|
|
8
8
|
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
9
9
|
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);
|
|
10
|
-
}, c._ssrRegister =
|
|
10
|
+
}, c._ssrRegister = d) : n && (d = s ? function() {
|
|
11
11
|
n.call(
|
|
12
12
|
this,
|
|
13
13
|
(c.functional ? this.parent : this).$root.$options.shadowRoot
|
|
14
14
|
);
|
|
15
|
-
} : n),
|
|
15
|
+
} : n), d)
|
|
16
16
|
if (c.functional) {
|
|
17
|
-
c._injectStyles =
|
|
17
|
+
c._injectStyles = d;
|
|
18
18
|
var p = c.render;
|
|
19
|
-
c.render = function(y,
|
|
20
|
-
return
|
|
19
|
+
c.render = function(y, _) {
|
|
20
|
+
return d.call(_), p(y, _);
|
|
21
21
|
};
|
|
22
22
|
} else {
|
|
23
23
|
var u = c.beforeCreate;
|
|
24
|
-
c.beforeCreate = u ? [].concat(u,
|
|
24
|
+
c.beforeCreate = u ? [].concat(u, d) : [d];
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
exports: a,
|
|
@@ -79,24 +79,24 @@ const be = {
|
|
|
79
79
|
var ge = function() {
|
|
80
80
|
var e = this, t = e._self._c;
|
|
81
81
|
return t("el-button", { on: { click: e.buttonClick } }, [e._v(e._s(e.buttonType ? e.defaultText : e.buttonText + "s"))]);
|
|
82
|
-
},
|
|
82
|
+
}, ve = [], we = /* @__PURE__ */ O(
|
|
83
83
|
be,
|
|
84
84
|
ge,
|
|
85
|
-
|
|
85
|
+
ve,
|
|
86
86
|
!1,
|
|
87
87
|
null,
|
|
88
88
|
null,
|
|
89
89
|
null,
|
|
90
90
|
null
|
|
91
91
|
);
|
|
92
|
-
const
|
|
92
|
+
const Se = we.exports, ke = (a = {}) => {
|
|
93
93
|
for (const e in a)
|
|
94
94
|
if (Object.prototype.hasOwnProperty.call(a, e)) {
|
|
95
95
|
const t = a[e];
|
|
96
96
|
Object.prototype.toString.call(t) === "[object Object]" && (a[e] = JSON.stringify(t));
|
|
97
97
|
}
|
|
98
98
|
return a;
|
|
99
|
-
},
|
|
99
|
+
}, xe = (a = {}) => {
|
|
100
100
|
for (const e in a)
|
|
101
101
|
if (Object.prototype.hasOwnProperty.call(a, e)) {
|
|
102
102
|
const t = a[e];
|
|
@@ -106,7 +106,7 @@ const De = ve.exports, we = (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 (; ; )
|
|
@@ -118,66 +118,66 @@ const De = ve.exports, we = (a = {}) => {
|
|
|
118
118
|
r.push(r.shift());
|
|
119
119
|
}
|
|
120
120
|
})(J, 819524);
|
|
121
|
-
const
|
|
122
|
-
let
|
|
123
|
-
const
|
|
121
|
+
const S = {};
|
|
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;
|
|
127
127
|
let o, i = !1;
|
|
128
128
|
try {
|
|
129
129
|
const s = window[t(543)][t(519)](r, n);
|
|
130
|
-
await new Promise((c,
|
|
130
|
+
await new Promise((c, d) => {
|
|
131
131
|
const p = t;
|
|
132
132
|
s[p(551)] = async function(u) {
|
|
133
|
-
const l = p, y = u.target.result, { stores:
|
|
134
|
-
await Promise.all(
|
|
135
|
-
const m = l, { DBStoreName: h = "", properties:
|
|
133
|
+
const l = p, y = u.target.result, { stores: _ = [] } = a;
|
|
134
|
+
await Promise.all(_[l(509)](async (f) => {
|
|
135
|
+
const m = l, { DBStoreName: h = "", properties: b = {} } = f;
|
|
136
136
|
try {
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
if (Object[m(548)](
|
|
137
|
+
const g = {};
|
|
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
141
|
console[m(559)](h + "没有设置默认值");
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
|
-
for (const v in
|
|
145
|
-
if (
|
|
146
|
-
const
|
|
147
|
-
|
|
144
|
+
for (const v in b)
|
|
145
|
+
if (b[m(556)][m(515)](b, v)) {
|
|
146
|
+
const w = b[v], x = { ...w.createIndex };
|
|
147
|
+
P[m(504)](v, v, x);
|
|
148
148
|
}
|
|
149
|
-
} catch (
|
|
150
|
-
console[m(559)](
|
|
149
|
+
} catch (g) {
|
|
150
|
+
console[m(559)](g);
|
|
151
151
|
}
|
|
152
152
|
})), o = y, i = !0;
|
|
153
153
|
}, s[p(535)] = async function(u) {
|
|
154
154
|
const l = p;
|
|
155
155
|
if (o = this[l(520)], i) {
|
|
156
156
|
const { stores: y = [] } = a;
|
|
157
|
-
await Promise[l(528)](y[l(509)](async (
|
|
158
|
-
const
|
|
159
|
-
|
|
157
|
+
await Promise[l(528)](y[l(509)](async (_) => {
|
|
158
|
+
const f = l, { DBStoreName: m = "" } = _, h = o[f(552)]([m], f(547)), b = h[f(496)](m), g = {};
|
|
159
|
+
g[a[f(557)]] = e, b[f(502)](g);
|
|
160
160
|
try {
|
|
161
|
-
await new Promise((
|
|
162
|
-
const
|
|
163
|
-
h[
|
|
164
|
-
const
|
|
165
|
-
console[
|
|
166
|
-
}, h[
|
|
167
|
-
|
|
168
|
-
}, h[
|
|
169
|
-
const
|
|
170
|
-
console[
|
|
161
|
+
await new Promise((P, v) => {
|
|
162
|
+
const w = f;
|
|
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(
|
|
173
|
+
} catch (P) {
|
|
174
|
+
console.warn(f(511), P);
|
|
175
175
|
}
|
|
176
176
|
}));
|
|
177
177
|
}
|
|
178
178
|
c();
|
|
179
179
|
}, s.onerror = function(u) {
|
|
180
|
-
|
|
180
|
+
d(u);
|
|
181
181
|
};
|
|
182
182
|
});
|
|
183
183
|
} catch (s) {
|
|
@@ -197,91 +197,91 @@ function q(a, e) {
|
|
|
197
197
|
return r = r - 496, t[r];
|
|
198
198
|
}, q(a, e);
|
|
199
199
|
}
|
|
200
|
-
let
|
|
201
|
-
|
|
200
|
+
let j = !1;
|
|
201
|
+
S[N(549)] = async (a, e) => {
|
|
202
202
|
const t = N, { mapDB: r, primaryKey: n } = a;
|
|
203
|
-
return r ? n ? (
|
|
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
|
-
},
|
|
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
214
|
const t = N, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
|
|
215
215
|
i[t(508)] = r, i[t(557)] = o;
|
|
216
|
-
const s = await
|
|
216
|
+
const s = await S.getDB(i);
|
|
217
217
|
if (!s)
|
|
218
218
|
return;
|
|
219
|
-
const c = s.transaction([n]),
|
|
219
|
+
const c = s.transaction([n]), d = c[t(496)](n), p = d[t(522)](o);
|
|
220
220
|
return new Promise((u, l) => {
|
|
221
221
|
const y = t;
|
|
222
|
-
p.onsuccess = function(
|
|
223
|
-
const
|
|
224
|
-
e && e(n +
|
|
225
|
-
}, p[y(529)] = function(
|
|
226
|
-
console.error(n + y(545) +
|
|
222
|
+
p.onsuccess = function(_) {
|
|
223
|
+
const f = q;
|
|
224
|
+
e && e(n + f(538) + p[f(520)]), u(p[f(520)]);
|
|
225
|
+
}, p[y(529)] = function(_) {
|
|
226
|
+
console.error(n + y(545) + _), l();
|
|
227
227
|
};
|
|
228
228
|
});
|
|
229
|
-
},
|
|
229
|
+
}, S.updateStore = async (a, e) => {
|
|
230
230
|
var t;
|
|
231
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)]];
|
|
235
|
-
const c = await
|
|
235
|
+
const c = await S[r(549)](s);
|
|
236
236
|
if (!c)
|
|
237
237
|
return;
|
|
238
|
-
let
|
|
238
|
+
let d = null;
|
|
239
239
|
try {
|
|
240
|
-
|
|
240
|
+
d = c[r(552)]([o], r(547)).objectStore(o);
|
|
241
241
|
} catch (y) {
|
|
242
242
|
console[r(513)](r(499), y);
|
|
243
243
|
}
|
|
244
244
|
let p = null, u = null;
|
|
245
|
-
const l = await new Promise((y,
|
|
246
|
-
const
|
|
247
|
-
m[
|
|
245
|
+
const l = await new Promise((y, _) => {
|
|
246
|
+
const f = r, m = d[f(501)](i[n == null ? void 0 : n[f(557)]]);
|
|
247
|
+
m[f(535)] = (h) => {
|
|
248
248
|
y(h);
|
|
249
249
|
}, m.onerror = (h) => {
|
|
250
|
-
|
|
250
|
+
_(h);
|
|
251
251
|
};
|
|
252
252
|
});
|
|
253
253
|
u = (t = l == null ? void 0 : l[r(533)]) == null ? void 0 : t[r(520)];
|
|
254
254
|
try {
|
|
255
|
-
u && (u == null ? void 0 : u.primaryKey) === i[n == null ? void 0 : n.primaryKey] ? p = u[r(517)](i) : p =
|
|
255
|
+
u && (u == null ? void 0 : u.primaryKey) === i[n == null ? void 0 : n.primaryKey] ? p = u[r(517)](i) : p = d[r(530)](i);
|
|
256
256
|
} catch (y) {
|
|
257
257
|
console[r(513)](r(539), y, i);
|
|
258
258
|
}
|
|
259
|
-
new Promise((y,
|
|
260
|
-
const
|
|
261
|
-
!p && (console[
|
|
262
|
-
e && e(o +
|
|
263
|
-
}, p[
|
|
264
|
-
const h =
|
|
265
|
-
console[h(513)](o + h(497), m),
|
|
259
|
+
new Promise((y, _) => {
|
|
260
|
+
const f = r;
|
|
261
|
+
!p && (console[f(513)](o + f(531)), _()), p[f(535)] = function(m) {
|
|
262
|
+
e && e(o + f(537)), y();
|
|
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
|
-
},
|
|
268
|
+
}, S[N(518)] = async (a, e) => {
|
|
269
269
|
const t = N, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
|
|
270
270
|
i[t(508)] = r, i[t(557)] = o;
|
|
271
|
-
const s = await
|
|
271
|
+
const s = await S.getDB(i);
|
|
272
272
|
if (!s)
|
|
273
273
|
return;
|
|
274
274
|
const c = s[t(552)]([n], t(547))[t(496)](n)[t(560)](o);
|
|
275
|
-
return new Promise((
|
|
275
|
+
return new Promise((d, p) => {
|
|
276
276
|
const u = t;
|
|
277
277
|
c[u(535)] = function(l) {
|
|
278
|
-
e && e(n + "数据删除成功"),
|
|
278
|
+
e && e(n + "数据删除成功"), d();
|
|
279
279
|
}, c.onerror = function(l) {
|
|
280
280
|
const y = u;
|
|
281
281
|
console[y(513)](n + y(524) + l), p();
|
|
282
282
|
};
|
|
283
283
|
});
|
|
284
|
-
},
|
|
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;
|
|
@@ -317,37 +317,37 @@ const G = K;
|
|
|
317
317
|
r.push(r.shift());
|
|
318
318
|
}
|
|
319
319
|
})(Z, 330152);
|
|
320
|
-
async function
|
|
320
|
+
async function De(a, e) {
|
|
321
321
|
const t = K, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
|
|
322
|
-
let c = null,
|
|
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;
|
|
325
|
-
const u = await
|
|
326
|
-
u && (
|
|
325
|
+
const u = await S[t(136)](p);
|
|
326
|
+
u && (d = { ...u, [s.primaryKey]: i }), d[n] = o;
|
|
327
327
|
const l = {};
|
|
328
|
-
return l[t(132)] = s, l.tableName = r, l[t(134)] =
|
|
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
|
-
async function
|
|
330
|
+
async function Ie(a, e) {
|
|
331
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
|
-
const
|
|
336
|
-
return
|
|
335
|
+
const d = await S[t(136)](c);
|
|
336
|
+
return d && (s = d[n]), e && e(s), s;
|
|
337
337
|
}
|
|
338
|
-
async function
|
|
338
|
+
async function Pe(a, e) {
|
|
339
339
|
const t = K, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
|
|
340
340
|
let c = {};
|
|
341
|
-
const
|
|
342
|
-
|
|
343
|
-
const p = await
|
|
341
|
+
const d = {};
|
|
342
|
+
d.mapDB = s, d[t(146)] = r, d[t(138)] = i;
|
|
343
|
+
const p = await S[t(136)](d);
|
|
344
344
|
try {
|
|
345
345
|
if (p) {
|
|
346
346
|
c = { ...p[n], ...o };
|
|
347
347
|
const u = { [s[t(138)]]: i }, l = u;
|
|
348
348
|
l[n] = c;
|
|
349
349
|
const y = {};
|
|
350
|
-
y[t(132)] = s, y[t(146)] = r, y[t(134)] = l, await
|
|
350
|
+
y[t(132)] = s, y[t(146)] = r, y[t(134)] = l, await S.updateStore(y);
|
|
351
351
|
} else
|
|
352
352
|
console.warn(r + "为空,请先调用handleData");
|
|
353
353
|
} catch (u) {
|
|
@@ -355,20 +355,20 @@ async function Be(a, e) {
|
|
|
355
355
|
}
|
|
356
356
|
return e && e(c), c;
|
|
357
357
|
}
|
|
358
|
-
async function
|
|
358
|
+
async function Be(a, e) {
|
|
359
359
|
const t = K, { tableName: r, primaryKey: n, mapDB: o } = a;
|
|
360
360
|
let i = null;
|
|
361
361
|
try {
|
|
362
362
|
const s = {};
|
|
363
|
-
s.mapDB = o, s[t(146)] = r, s[t(138)] = n, await
|
|
363
|
+
s.mapDB = o, s[t(146)] = r, s[t(138)] = n, await S[t(126)](s);
|
|
364
364
|
} catch (s) {
|
|
365
365
|
console.error(s);
|
|
366
366
|
}
|
|
367
367
|
return e && e(i), i;
|
|
368
368
|
}
|
|
369
|
-
const
|
|
370
|
-
|
|
371
|
-
var
|
|
369
|
+
const E = {};
|
|
370
|
+
E[G(139)] = De, E[G(130)] = Ie, E[G(134)] = Pe, E[G(131)] = Be;
|
|
371
|
+
var D = U;
|
|
372
372
|
(function(a, e) {
|
|
373
373
|
for (var t = U, r = a(); ; )
|
|
374
374
|
try {
|
|
@@ -380,18 +380,18 @@ var x = 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,42 +400,114 @@ 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
432
|
});
|
|
433
|
-
},
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
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
|
|
445
|
+
});
|
|
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;
|
|
483
|
+
}, Le = {
|
|
484
|
+
makeParamsByType: ie,
|
|
485
|
+
saveParamsByType: ce,
|
|
486
|
+
handleQuery: Fe,
|
|
487
|
+
resetQuery: Ce,
|
|
488
|
+
initQueryParams: $e,
|
|
489
|
+
getItemRules: qe
|
|
490
|
+
}, Oe = {
|
|
491
|
+
functional: !0,
|
|
492
|
+
props: {
|
|
493
|
+
renderFunction: {
|
|
494
|
+
default: () => {
|
|
495
|
+
},
|
|
496
|
+
type: Function
|
|
497
|
+
},
|
|
498
|
+
item: {
|
|
499
|
+
default: () => {
|
|
500
|
+
},
|
|
501
|
+
type: Object
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
render(a, e) {
|
|
505
|
+
const { props: t } = e, { renderFunction: r, item: n } = t;
|
|
506
|
+
return r(n);
|
|
507
|
+
}
|
|
508
|
+
}, ze = te, z = Le, le = Oe, T = L;
|
|
437
509
|
(function(a, e) {
|
|
438
|
-
const t =
|
|
510
|
+
const t = L, r = a();
|
|
439
511
|
for (; ; )
|
|
440
512
|
try {
|
|
441
513
|
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)
|
|
@@ -445,66 +517,66 @@ const Pe = {
|
|
|
445
517
|
r.push(r.shift());
|
|
446
518
|
}
|
|
447
519
|
})(H, 819524);
|
|
448
|
-
const
|
|
449
|
-
let
|
|
450
|
-
const
|
|
451
|
-
const t =
|
|
520
|
+
const k = {};
|
|
521
|
+
let $ = null;
|
|
522
|
+
const pe = async (a, e) => {
|
|
523
|
+
const t = L;
|
|
452
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.");
|
|
453
525
|
const { DBName: r = "", DBVersion: n = 1 } = a;
|
|
454
526
|
let o, i = !1;
|
|
455
527
|
try {
|
|
456
528
|
const s = window[t(543)][t(519)](r, n);
|
|
457
|
-
await new Promise((c,
|
|
529
|
+
await new Promise((c, d) => {
|
|
458
530
|
const p = t;
|
|
459
531
|
s[p(551)] = async function(u) {
|
|
460
|
-
const l = p, y = u.target.result, { stores:
|
|
461
|
-
await Promise.all(
|
|
462
|
-
const m = l, { DBStoreName: h = "", properties:
|
|
532
|
+
const l = p, y = u.target.result, { stores: _ = [] } = a;
|
|
533
|
+
await Promise.all(_[l(509)](async (f) => {
|
|
534
|
+
const m = l, { DBStoreName: h = "", properties: b = {} } = f;
|
|
463
535
|
try {
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
const
|
|
467
|
-
if (Object[m(548)](
|
|
536
|
+
const g = {};
|
|
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) {
|
|
468
540
|
console[m(559)](h + "没有设置默认值");
|
|
469
541
|
return;
|
|
470
542
|
}
|
|
471
|
-
for (const v in
|
|
472
|
-
if (
|
|
473
|
-
const
|
|
474
|
-
|
|
543
|
+
for (const v in b)
|
|
544
|
+
if (b[m(556)][m(515)](b, v)) {
|
|
545
|
+
const w = b[v], x = { ...w.createIndex };
|
|
546
|
+
P[m(504)](v, v, x);
|
|
475
547
|
}
|
|
476
|
-
} catch (
|
|
477
|
-
console[m(559)](
|
|
548
|
+
} catch (g) {
|
|
549
|
+
console[m(559)](g);
|
|
478
550
|
}
|
|
479
551
|
})), o = y, i = !0;
|
|
480
552
|
}, s[p(535)] = async function(u) {
|
|
481
553
|
const l = p;
|
|
482
554
|
if (o = this[l(520)], i) {
|
|
483
555
|
const { stores: y = [] } = a;
|
|
484
|
-
await Promise[l(528)](y[l(509)](async (
|
|
485
|
-
const
|
|
486
|
-
|
|
556
|
+
await Promise[l(528)](y[l(509)](async (_) => {
|
|
557
|
+
const f = l, { DBStoreName: m = "" } = _, h = o[f(552)]([m], f(547)), b = h[f(496)](m), g = {};
|
|
558
|
+
g[a[f(557)]] = e, b[f(502)](g);
|
|
487
559
|
try {
|
|
488
|
-
await new Promise((
|
|
489
|
-
const
|
|
490
|
-
h[
|
|
491
|
-
const
|
|
492
|
-
console[
|
|
493
|
-
}, h[
|
|
494
|
-
|
|
495
|
-
}, h[
|
|
496
|
-
const
|
|
497
|
-
console[
|
|
560
|
+
await new Promise((P, v) => {
|
|
561
|
+
const w = f;
|
|
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();
|
|
498
570
|
};
|
|
499
571
|
});
|
|
500
|
-
} catch (
|
|
501
|
-
console.warn(
|
|
572
|
+
} catch (P) {
|
|
573
|
+
console.warn(f(511), P);
|
|
502
574
|
}
|
|
503
575
|
}));
|
|
504
576
|
}
|
|
505
577
|
c();
|
|
506
578
|
}, s.onerror = function(u) {
|
|
507
|
-
|
|
579
|
+
d(u);
|
|
508
580
|
};
|
|
509
581
|
});
|
|
510
582
|
} catch (s) {
|
|
@@ -518,14 +590,14 @@ function H() {
|
|
|
518
590
|
return a;
|
|
519
591
|
}, H();
|
|
520
592
|
}
|
|
521
|
-
function
|
|
593
|
+
function L(a, e) {
|
|
522
594
|
const t = H();
|
|
523
|
-
return
|
|
595
|
+
return L = function(r, n) {
|
|
524
596
|
return r = r - 496, t[r];
|
|
525
|
-
},
|
|
597
|
+
}, L(a, e);
|
|
526
598
|
}
|
|
527
599
|
let V = !1;
|
|
528
|
-
|
|
600
|
+
k[T(549)] = async (a, e) => {
|
|
529
601
|
const t = T, { mapDB: r, primaryKey: n } = a;
|
|
530
602
|
return r ? n ? (V && await new Promise(async (o, i) => {
|
|
531
603
|
const s = () => {
|
|
@@ -534,84 +606,84 @@ S[T(549)] = async (a, e) => {
|
|
|
534
606
|
}, 200) : o();
|
|
535
607
|
};
|
|
536
608
|
s();
|
|
537
|
-
}),
|
|
538
|
-
console.info(t(532)),
|
|
539
|
-
}), V = !1), e && e(
|
|
540
|
-
},
|
|
609
|
+
}), !$ && (V = !0, $ = await pe(r, n), $ == null || $.addEventListener(t(555), async () => {
|
|
610
|
+
console.info(t(532)), $ = await pe(r, n);
|
|
611
|
+
}), V = !1), e && e($), $) : (console[t(559)](t(542)), !1) : (console[t(559)]("必须传入数据库配置信息"), !1);
|
|
612
|
+
}, k[T(523)] = async (a, e) => {
|
|
541
613
|
const t = T, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
|
|
542
614
|
i[t(508)] = r, i[t(557)] = o;
|
|
543
|
-
const s = await
|
|
615
|
+
const s = await k.getDB(i);
|
|
544
616
|
if (!s)
|
|
545
617
|
return;
|
|
546
|
-
const c = s.transaction([n]),
|
|
618
|
+
const c = s.transaction([n]), d = c[t(496)](n), p = d[t(522)](o);
|
|
547
619
|
return new Promise((u, l) => {
|
|
548
620
|
const y = t;
|
|
549
|
-
p.onsuccess = function(
|
|
550
|
-
const
|
|
551
|
-
e && e(n +
|
|
552
|
-
}, p[y(529)] = function(
|
|
553
|
-
console.error(n + y(545) +
|
|
621
|
+
p.onsuccess = function(_) {
|
|
622
|
+
const f = L;
|
|
623
|
+
e && e(n + f(538) + p[f(520)]), u(p[f(520)]);
|
|
624
|
+
}, p[y(529)] = function(_) {
|
|
625
|
+
console.error(n + y(545) + _), l();
|
|
554
626
|
};
|
|
555
627
|
});
|
|
556
|
-
},
|
|
628
|
+
}, k.updateStore = async (a, e) => {
|
|
557
629
|
var t;
|
|
558
630
|
const r = T, { mapDB: n, tableName: o, updateData: i } = a;
|
|
559
631
|
!i[n == null ? void 0 : n[r(557)]] && console[r(559)](r(507) + n[r(557)]);
|
|
560
632
|
const s = {};
|
|
561
633
|
s.mapDB = n, s[r(557)] = i[n == null ? void 0 : n[r(557)]];
|
|
562
|
-
const c = await
|
|
634
|
+
const c = await k[r(549)](s);
|
|
563
635
|
if (!c)
|
|
564
636
|
return;
|
|
565
|
-
let
|
|
637
|
+
let d = null;
|
|
566
638
|
try {
|
|
567
|
-
|
|
639
|
+
d = c[r(552)]([o], r(547)).objectStore(o);
|
|
568
640
|
} catch (y) {
|
|
569
641
|
console[r(513)](r(499), y);
|
|
570
642
|
}
|
|
571
643
|
let p = null, u = null;
|
|
572
|
-
const l = await new Promise((y,
|
|
573
|
-
const
|
|
574
|
-
m[
|
|
644
|
+
const l = await new Promise((y, _) => {
|
|
645
|
+
const f = r, m = d[f(501)](i[n == null ? void 0 : n[f(557)]]);
|
|
646
|
+
m[f(535)] = (h) => {
|
|
575
647
|
y(h);
|
|
576
648
|
}, m.onerror = (h) => {
|
|
577
|
-
|
|
649
|
+
_(h);
|
|
578
650
|
};
|
|
579
651
|
});
|
|
580
652
|
u = (t = l == null ? void 0 : l[r(533)]) == null ? void 0 : t[r(520)];
|
|
581
653
|
try {
|
|
582
|
-
u && (u == null ? void 0 : u.primaryKey) === i[n == null ? void 0 : n.primaryKey] ? p = u[r(517)](i) : p =
|
|
654
|
+
u && (u == null ? void 0 : u.primaryKey) === i[n == null ? void 0 : n.primaryKey] ? p = u[r(517)](i) : p = d[r(530)](i);
|
|
583
655
|
} catch (y) {
|
|
584
656
|
console[r(513)](r(539), y, i);
|
|
585
657
|
}
|
|
586
|
-
new Promise((y,
|
|
587
|
-
const
|
|
588
|
-
!p && (console[
|
|
589
|
-
e && e(o +
|
|
590
|
-
}, p[
|
|
591
|
-
const h =
|
|
592
|
-
console[h(513)](o + h(497), m),
|
|
658
|
+
new Promise((y, _) => {
|
|
659
|
+
const f = r;
|
|
660
|
+
!p && (console[f(513)](o + f(531)), _()), p[f(535)] = function(m) {
|
|
661
|
+
e && e(o + f(537)), y();
|
|
662
|
+
}, p[f(529)] = function(m) {
|
|
663
|
+
const h = f;
|
|
664
|
+
console[h(513)](o + h(497), m), _();
|
|
593
665
|
};
|
|
594
666
|
}), u && u[r(516)]();
|
|
595
|
-
},
|
|
667
|
+
}, k[T(518)] = async (a, e) => {
|
|
596
668
|
const t = T, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
|
|
597
669
|
i[t(508)] = r, i[t(557)] = o;
|
|
598
|
-
const s = await
|
|
670
|
+
const s = await k.getDB(i);
|
|
599
671
|
if (!s)
|
|
600
672
|
return;
|
|
601
673
|
const c = s[t(552)]([n], t(547))[t(496)](n)[t(560)](o);
|
|
602
|
-
return new Promise((
|
|
674
|
+
return new Promise((d, p) => {
|
|
603
675
|
const u = t;
|
|
604
676
|
c[u(535)] = function(l) {
|
|
605
|
-
e && e(n + "数据删除成功"),
|
|
677
|
+
e && e(n + "数据删除成功"), d();
|
|
606
678
|
}, c.onerror = function(l) {
|
|
607
679
|
const y = u;
|
|
608
680
|
console[y(513)](n + y(524) + l), p();
|
|
609
681
|
};
|
|
610
682
|
});
|
|
611
|
-
},
|
|
683
|
+
}, k[T(505)] = async (a, e) => {
|
|
612
684
|
const { mapDB: t } = a, r = window.indexedDB.deleteDatabase(t.DBName);
|
|
613
685
|
return new Promise((n, o) => {
|
|
614
|
-
const i =
|
|
686
|
+
const i = L;
|
|
615
687
|
r[i(535)] = (s) => {
|
|
616
688
|
e && e(t[i(553)] + "数据库已删除"), n();
|
|
617
689
|
}, r[i(529)] = (s) => {
|
|
@@ -620,11 +692,11 @@ S[T(549)] = async (a, e) => {
|
|
|
620
692
|
};
|
|
621
693
|
});
|
|
622
694
|
};
|
|
623
|
-
function
|
|
695
|
+
function F(a, e) {
|
|
624
696
|
const t = X();
|
|
625
|
-
return
|
|
697
|
+
return F = function(r, n) {
|
|
626
698
|
return r = r - 125, t[r];
|
|
627
|
-
},
|
|
699
|
+
}, F(a, e);
|
|
628
700
|
}
|
|
629
701
|
function X() {
|
|
630
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"];
|
|
@@ -632,9 +704,9 @@ function X() {
|
|
|
632
704
|
return a;
|
|
633
705
|
}, X();
|
|
634
706
|
}
|
|
635
|
-
const W =
|
|
707
|
+
const W = F;
|
|
636
708
|
(function(a, e) {
|
|
637
|
-
const t =
|
|
709
|
+
const t = F, r = a();
|
|
638
710
|
for (; ; )
|
|
639
711
|
try {
|
|
640
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)
|
|
@@ -644,37 +716,37 @@ const W = $;
|
|
|
644
716
|
r.push(r.shift());
|
|
645
717
|
}
|
|
646
718
|
})(X, 330152);
|
|
647
|
-
async function
|
|
648
|
-
const t =
|
|
649
|
-
let c = null,
|
|
719
|
+
async function Ee(a, e) {
|
|
720
|
+
const t = F, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
|
|
721
|
+
let c = null, d = { [s[t(138)]]: i };
|
|
650
722
|
const p = {};
|
|
651
723
|
p[t(132)] = s, p.tableName = r, p[t(138)] = i;
|
|
652
|
-
const u = await
|
|
653
|
-
u && (
|
|
724
|
+
const u = await k[t(136)](p);
|
|
725
|
+
u && (d = { ...u, [s.primaryKey]: i }), d[n] = o;
|
|
654
726
|
const l = {};
|
|
655
|
-
return l[t(132)] = s, l.tableName = r, l[t(134)] =
|
|
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;
|
|
656
728
|
}
|
|
657
|
-
async function
|
|
658
|
-
const t =
|
|
729
|
+
async function Qe(a, e) {
|
|
730
|
+
const t = F, { tableName: r, propertiesKey: n, primaryKey: o, mapDB: i } = a;
|
|
659
731
|
let s = null;
|
|
660
732
|
const c = {};
|
|
661
733
|
c[t(132)] = i, c[t(146)] = r, c.primaryKey = o;
|
|
662
|
-
const
|
|
663
|
-
return
|
|
734
|
+
const d = await k[t(136)](c);
|
|
735
|
+
return d && (s = d[n]), e && e(s), s;
|
|
664
736
|
}
|
|
665
|
-
async function
|
|
666
|
-
const t =
|
|
737
|
+
async function Re(a, e) {
|
|
738
|
+
const t = F, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
|
|
667
739
|
let c = {};
|
|
668
|
-
const
|
|
669
|
-
|
|
670
|
-
const p = await
|
|
740
|
+
const d = {};
|
|
741
|
+
d.mapDB = s, d[t(146)] = r, d[t(138)] = i;
|
|
742
|
+
const p = await k[t(136)](d);
|
|
671
743
|
try {
|
|
672
744
|
if (p) {
|
|
673
745
|
c = { ...p[n], ...o };
|
|
674
746
|
const u = { [s[t(138)]]: i }, l = u;
|
|
675
747
|
l[n] = c;
|
|
676
748
|
const y = {};
|
|
677
|
-
y[t(132)] = s, y[t(146)] = r, y[t(134)] = l, await
|
|
749
|
+
y[t(132)] = s, y[t(146)] = r, y[t(134)] = l, await k.updateStore(y);
|
|
678
750
|
} else
|
|
679
751
|
console.warn(r + "为空,请先调用handleData");
|
|
680
752
|
} catch (u) {
|
|
@@ -682,20 +754,20 @@ async function ze(a, e) {
|
|
|
682
754
|
}
|
|
683
755
|
return e && e(c), c;
|
|
684
756
|
}
|
|
685
|
-
async function
|
|
686
|
-
const t =
|
|
757
|
+
async function Ae(a, e) {
|
|
758
|
+
const t = F, { tableName: r, primaryKey: n, mapDB: o } = a;
|
|
687
759
|
let i = null;
|
|
688
760
|
try {
|
|
689
761
|
const s = {};
|
|
690
|
-
s.mapDB = o, s[t(146)] = r, s[t(138)] = n, await
|
|
762
|
+
s.mapDB = o, s[t(146)] = r, s[t(138)] = n, await k[t(126)](s);
|
|
691
763
|
} catch (s) {
|
|
692
764
|
console.error(s);
|
|
693
765
|
}
|
|
694
766
|
return e && e(i), i;
|
|
695
767
|
}
|
|
696
|
-
const
|
|
697
|
-
|
|
698
|
-
var
|
|
768
|
+
const R = {};
|
|
769
|
+
R[W(139)] = Ee, R[W(130)] = Qe, R[W(134)] = Re, R[W(131)] = Ae;
|
|
770
|
+
var I = ee;
|
|
699
771
|
(function(a, e) {
|
|
700
772
|
for (var t = ee, r = a(); ; )
|
|
701
773
|
try {
|
|
@@ -707,18 +779,18 @@ var B = ee;
|
|
|
707
779
|
r.push(r.shift());
|
|
708
780
|
}
|
|
709
781
|
})(Y, 363872);
|
|
710
|
-
var
|
|
711
|
-
|
|
712
|
-
var
|
|
713
|
-
|
|
714
|
-
var
|
|
782
|
+
var me = {};
|
|
783
|
+
me[I(397)] = !1;
|
|
784
|
+
var ne = {};
|
|
785
|
+
ne[I(384)] = me, ne[I(392)] = {};
|
|
786
|
+
var he = {};
|
|
715
787
|
function Y() {
|
|
716
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"];
|
|
717
789
|
return Y = function() {
|
|
718
790
|
return a;
|
|
719
791
|
}, Y();
|
|
720
792
|
}
|
|
721
|
-
|
|
793
|
+
he[I(390)] = ne;
|
|
722
794
|
function ee(a, e) {
|
|
723
795
|
var t = Y();
|
|
724
796
|
return ee = function(r, n) {
|
|
@@ -727,21 +799,21 @@ function ee(a, e) {
|
|
|
727
799
|
return o;
|
|
728
800
|
}, ee(a, e);
|
|
729
801
|
}
|
|
730
|
-
var
|
|
731
|
-
|
|
732
|
-
var
|
|
733
|
-
|
|
734
|
-
const
|
|
735
|
-
formSchema:
|
|
736
|
-
},
|
|
737
|
-
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 = {
|
|
738
810
|
name: "GeneralBasicForm",
|
|
739
811
|
components: {
|
|
740
812
|
InputArchive: (a) => {
|
|
741
813
|
const { templateEle: e } = a;
|
|
742
814
|
return e();
|
|
743
815
|
},
|
|
744
|
-
VerificationButton:
|
|
816
|
+
VerificationButton: Se
|
|
745
817
|
},
|
|
746
818
|
props: {
|
|
747
819
|
showSearch: {
|
|
@@ -830,7 +902,9 @@ const { getData: Ae } = me, { formSchema: Le } = ye, je = {
|
|
|
830
902
|
},
|
|
831
903
|
data() {
|
|
832
904
|
return {
|
|
833
|
-
queryParams:
|
|
905
|
+
queryParams: z.initQueryParams({
|
|
906
|
+
vm: this
|
|
907
|
+
}),
|
|
834
908
|
// form表单数据
|
|
835
909
|
formLoading: this.loading || !1,
|
|
836
910
|
selectSetting: {
|
|
@@ -908,57 +982,26 @@ const { getData: Ae } = me, { formSchema: Le } = ye, je = {
|
|
|
908
982
|
},
|
|
909
983
|
methods: {
|
|
910
984
|
/** 搜索按钮操作 */
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
...e,
|
|
916
|
-
...this.queryParams
|
|
917
|
-
};
|
|
918
|
-
t = await z.makeParamsByType(t, this), a.defaultPageFirst && (t = {
|
|
919
|
-
...t,
|
|
920
|
-
...e
|
|
921
|
-
}), await z.saveParamsByType(t, this), this.getList({
|
|
922
|
-
...t
|
|
985
|
+
handleQuery(a = {}) {
|
|
986
|
+
z.handleQuery({
|
|
987
|
+
queryParameter: a,
|
|
988
|
+
vm: this
|
|
923
989
|
});
|
|
924
990
|
},
|
|
925
991
|
/** 重置按钮操作 */
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
},
|
|
931
|
-
initQueryParams() {
|
|
932
|
-
var e;
|
|
933
|
-
let a = {
|
|
934
|
-
[this.pageSizeKey]: this.defPageSize
|
|
935
|
-
};
|
|
936
|
-
return this.parametersType === "url" && (a = { ...a, ...pe.queryToData((e = this.$route) == null ? void 0 : e.query) }), this.parametersType === "indexDB" && Ae(
|
|
937
|
-
{
|
|
938
|
-
tableName: "formParams",
|
|
939
|
-
propertiesKey: this.$route.path || "defQueryParams",
|
|
940
|
-
primaryKey: this.DBPrimaryKey || "default",
|
|
941
|
-
mapDB: Le
|
|
942
|
-
},
|
|
943
|
-
(t) => {
|
|
944
|
-
t && (this.queryParams = { ...a, ...t }), this.queryWhenReady && this.$nextTick(() => {
|
|
945
|
-
this.handleQuery({ defaultPageFirst: !1 });
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
), this.queryWhenReady && this.parametersType !== "indexDB" && this.$nextTick(() => {
|
|
949
|
-
this.handleQuery({ defaultPageFirst: !1 });
|
|
950
|
-
}), a;
|
|
992
|
+
resetQuery() {
|
|
993
|
+
z.resetQuery({
|
|
994
|
+
vm: this
|
|
995
|
+
});
|
|
951
996
|
},
|
|
952
997
|
currentInputComponent() {
|
|
953
998
|
return "input-archive";
|
|
954
999
|
},
|
|
955
1000
|
getItemRules(a) {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
trigger: "blur"
|
|
961
|
-
}), r;
|
|
1001
|
+
return z.getItemRules({
|
|
1002
|
+
item: a,
|
|
1003
|
+
vm: this
|
|
1004
|
+
});
|
|
962
1005
|
},
|
|
963
1006
|
getInputSetting(a) {
|
|
964
1007
|
const { inputSetting: e, setting: t } = a;
|
|
@@ -1027,11 +1070,11 @@ const { getData: Ae } = me, { formSchema: Le } = ye, je = {
|
|
|
1027
1070
|
}
|
|
1028
1071
|
}
|
|
1029
1072
|
};
|
|
1030
|
-
var
|
|
1073
|
+
var We = function() {
|
|
1031
1074
|
var e = this, t = e._self._c;
|
|
1032
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) {
|
|
1033
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) {
|
|
1034
|
-
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);
|
|
1035
1078
|
} }, scopedSlots: e._u([e._l(r.template, function(n, o) {
|
|
1036
1079
|
return { key: o, fn: function() {
|
|
1037
1080
|
return [n ? t(e.currentInputComponent(), { key: o, tag: "component", attrs: { templateEle: n } }) : e._e()];
|
|
@@ -1039,7 +1082,7 @@ var Re = function() {
|
|
|
1039
1082
|
})], null, !0), model: { value: e.queryParams[r.prop], callback: function(n) {
|
|
1040
1083
|
e.$set(e.queryParams, r.prop, n);
|
|
1041
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) {
|
|
1042
|
-
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);
|
|
1043
1086
|
} }, scopedSlots: e._u([e._l(r.template, function(n, o) {
|
|
1044
1087
|
return { key: o, fn: function() {
|
|
1045
1088
|
return [n ? t(e.currentInputComponent(), { key: o, tag: "component", attrs: { templateEle: n } }) : e._e()];
|
|
@@ -1062,18 +1105,119 @@ var Re = function() {
|
|
|
1062
1105
|
return t("el-checkbox", e._b({ key: n.key || n.value || n.label }, "el-checkbox", n, !1));
|
|
1063
1106
|
}), 1) : e._e(), /^form-item-slot$/i.test(r.type) ? e._t(r.name) : e._e()], 2);
|
|
1064
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);
|
|
1065
|
-
},
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1108
|
+
}, Je = [], Ze = /* @__PURE__ */ O(
|
|
1109
|
+
Ve,
|
|
1110
|
+
We,
|
|
1111
|
+
Je,
|
|
1112
|
+
!1,
|
|
1113
|
+
null,
|
|
1114
|
+
"f8e93bba",
|
|
1115
|
+
null,
|
|
1116
|
+
null
|
|
1117
|
+
);
|
|
1118
|
+
const Me = Ze.exports;
|
|
1119
|
+
const Ue = {
|
|
1120
|
+
name: "InfiniteScrollList",
|
|
1121
|
+
components: {
|
|
1122
|
+
TableColumn: le
|
|
1123
|
+
},
|
|
1124
|
+
props: {
|
|
1125
|
+
search: {
|
|
1126
|
+
type: Function,
|
|
1127
|
+
required: !0
|
|
1128
|
+
},
|
|
1129
|
+
checkbox: {
|
|
1130
|
+
type: Boolean,
|
|
1131
|
+
required: !1
|
|
1132
|
+
},
|
|
1133
|
+
id: {
|
|
1134
|
+
type: String,
|
|
1135
|
+
required: !0
|
|
1136
|
+
},
|
|
1137
|
+
name: {
|
|
1138
|
+
type: String,
|
|
1139
|
+
required: !1
|
|
1140
|
+
},
|
|
1141
|
+
extra: {
|
|
1142
|
+
type: null,
|
|
1143
|
+
required: !1
|
|
1144
|
+
},
|
|
1145
|
+
defaultSelection: {
|
|
1146
|
+
type: Array,
|
|
1147
|
+
required: !1
|
|
1148
|
+
},
|
|
1149
|
+
height: {
|
|
1150
|
+
type: String,
|
|
1151
|
+
required: !1,
|
|
1152
|
+
default: "272px"
|
|
1153
|
+
}
|
|
1154
|
+
},
|
|
1155
|
+
data() {
|
|
1156
|
+
return {
|
|
1157
|
+
list: [],
|
|
1158
|
+
page: 1,
|
|
1159
|
+
ifbottom: !1,
|
|
1160
|
+
//判断是否到底部,是的话就不再请求
|
|
1161
|
+
checkedList: [],
|
|
1162
|
+
loading: !1
|
|
1163
|
+
};
|
|
1164
|
+
},
|
|
1165
|
+
computed: {
|
|
1166
|
+
selectInfo() {
|
|
1167
|
+
return this.list.filter((a) => this.checkedList.includes(a[this.id]));
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
watch: {
|
|
1171
|
+
defaultSelection: {
|
|
1172
|
+
handler(a = [], e = []) {
|
|
1173
|
+
this.updateCheckedList(a);
|
|
1174
|
+
},
|
|
1175
|
+
immediate: !0
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
methods: {
|
|
1179
|
+
reset() {
|
|
1180
|
+
this.lowReset(), this.checkedList = [];
|
|
1181
|
+
},
|
|
1182
|
+
updateCheckedList(a) {
|
|
1183
|
+
this.checkedList = a.map((e) => typeof e == "object" ? e[this.id] : e);
|
|
1184
|
+
},
|
|
1185
|
+
lowReset() {
|
|
1186
|
+
this.page = 1, this.list = [], this.ifbottom = !1;
|
|
1187
|
+
},
|
|
1188
|
+
async loadList() {
|
|
1189
|
+
if (this.loading || this.ifbottom)
|
|
1190
|
+
return;
|
|
1191
|
+
this.loading = !0;
|
|
1192
|
+
const a = await this.search(this.page);
|
|
1193
|
+
a && a.length > 0 ? (this.list = [...this.list, ...a], this.page += 1) : this.ifbottom = !0, this.loading = !1;
|
|
1194
|
+
},
|
|
1195
|
+
async refreshList() {
|
|
1196
|
+
this.lowReset(), await this.loadList();
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
};
|
|
1200
|
+
var He = function() {
|
|
1201
|
+
var e = this, t = e._self._c;
|
|
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) {
|
|
1203
|
+
e.checkedList = r;
|
|
1204
|
+
}, 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) {
|
|
1205
|
+
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);
|
|
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) {
|
|
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)]);
|
|
1208
|
+
}), 0);
|
|
1209
|
+
}, Xe = [], Ye = /* @__PURE__ */ O(
|
|
1210
|
+
Ue,
|
|
1211
|
+
He,
|
|
1212
|
+
Xe,
|
|
1069
1213
|
!1,
|
|
1070
1214
|
null,
|
|
1071
|
-
"
|
|
1215
|
+
"9ac38e10",
|
|
1072
1216
|
null,
|
|
1073
1217
|
null
|
|
1074
1218
|
);
|
|
1075
|
-
const
|
|
1076
|
-
const
|
|
1219
|
+
const et = Ye.exports;
|
|
1220
|
+
const tt = {
|
|
1077
1221
|
components: {},
|
|
1078
1222
|
props: {
|
|
1079
1223
|
query: {
|
|
@@ -1133,44 +1277,27 @@ const We = {
|
|
|
1133
1277
|
}
|
|
1134
1278
|
}
|
|
1135
1279
|
};
|
|
1136
|
-
var
|
|
1280
|
+
var rt = function() {
|
|
1137
1281
|
var e = this, t = e._self._c;
|
|
1138
1282
|
return t("div", { staticClass: "search-box" }, [t("el-input", e._b({ style: { ...e.inputstyle }, attrs: { size: e.size }, nativeOn: { keydown: function(r) {
|
|
1139
1283
|
return !r.type.indexOf("key") && e._k(r.keyCode, "enter", 13, r.key, "Enter") ? null : e.search.apply(null, arguments);
|
|
1140
1284
|
} }, model: { value: e.keyWord, callback: function(r) {
|
|
1141
1285
|
e.keyWord = r;
|
|
1142
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);
|
|
1143
|
-
},
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1287
|
+
}, at = [], nt = /* @__PURE__ */ O(
|
|
1288
|
+
tt,
|
|
1289
|
+
rt,
|
|
1290
|
+
at,
|
|
1147
1291
|
!1,
|
|
1148
1292
|
null,
|
|
1149
1293
|
"ef706e31",
|
|
1150
1294
|
null,
|
|
1151
1295
|
null
|
|
1152
1296
|
);
|
|
1153
|
-
const
|
|
1154
|
-
functional: !0,
|
|
1155
|
-
props: {
|
|
1156
|
-
column: {
|
|
1157
|
-
default: { render: () => {
|
|
1158
|
-
} },
|
|
1159
|
-
type: Object
|
|
1160
|
-
},
|
|
1161
|
-
formData: {
|
|
1162
|
-
default: {},
|
|
1163
|
-
type: Object
|
|
1164
|
-
}
|
|
1165
|
-
},
|
|
1166
|
-
render(a, e) {
|
|
1167
|
-
const { props: t } = e, { column: r, formData: n } = t;
|
|
1168
|
-
return r.render(n);
|
|
1169
|
-
}
|
|
1170
|
-
}, Xe = {
|
|
1297
|
+
const st = nt.exports, ot = {
|
|
1171
1298
|
name: "Descriptions",
|
|
1172
1299
|
components: {
|
|
1173
|
-
|
|
1300
|
+
TableColumn: le
|
|
1174
1301
|
},
|
|
1175
1302
|
data() {
|
|
1176
1303
|
return {
|
|
@@ -1206,23 +1333,23 @@ const Ue = Me.exports, He = {
|
|
|
1206
1333
|
}
|
|
1207
1334
|
}
|
|
1208
1335
|
};
|
|
1209
|
-
var
|
|
1336
|
+
var it = function() {
|
|
1210
1337
|
var e = this, t = e._self._c;
|
|
1211
1338
|
return t("el-descriptions", e._b({}, "el-descriptions", e.attrs, !1), e._l(e.formItem, function(r, n) {
|
|
1212
|
-
return t("el-descriptions-item", e._b({ key: r.prop, attrs: { label: r.label } }, "el-descriptions-item", r.descriptionsItemProps, !1), [r.render ? t("
|
|
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);
|
|
1213
1340
|
}), 1);
|
|
1214
|
-
},
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1341
|
+
}, ct = [], lt = /* @__PURE__ */ O(
|
|
1342
|
+
ot,
|
|
1343
|
+
it,
|
|
1344
|
+
ct,
|
|
1218
1345
|
!1,
|
|
1219
1346
|
null,
|
|
1220
1347
|
null,
|
|
1221
1348
|
null,
|
|
1222
1349
|
null
|
|
1223
1350
|
);
|
|
1224
|
-
const
|
|
1225
|
-
const
|
|
1351
|
+
const ut = lt.exports;
|
|
1352
|
+
const pt = {
|
|
1226
1353
|
props: {
|
|
1227
1354
|
nodeKey: {
|
|
1228
1355
|
type: String,
|
|
@@ -1249,7 +1376,7 @@ const at = {
|
|
|
1249
1376
|
this.$refs.selectTree.filter(a);
|
|
1250
1377
|
},
|
|
1251
1378
|
checkedKeys(a) {
|
|
1252
|
-
this.$refs.sourceTree.setCheckedKeys(a),
|
|
1379
|
+
this.$refs.sourceTree.setCheckedKeys(a), _e(() => {
|
|
1253
1380
|
this.getSelectedData(), this.$refs.selectTree.setCheckedKeys(a);
|
|
1254
1381
|
});
|
|
1255
1382
|
}
|
|
@@ -1283,26 +1410,29 @@ const at = {
|
|
|
1283
1410
|
}
|
|
1284
1411
|
}
|
|
1285
1412
|
};
|
|
1286
|
-
var
|
|
1413
|
+
var dt = function() {
|
|
1287
1414
|
var e = this, t = e._self._c;
|
|
1288
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) {
|
|
1289
1416
|
e.sourceFilterText = r;
|
|
1290
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) {
|
|
1291
1418
|
e.selectedFilterText = r;
|
|
1292
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)]);
|
|
1293
|
-
},
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1420
|
+
}, ft = [], yt = /* @__PURE__ */ O(
|
|
1421
|
+
pt,
|
|
1422
|
+
dt,
|
|
1423
|
+
ft,
|
|
1297
1424
|
!1,
|
|
1298
1425
|
null,
|
|
1299
1426
|
"49dbad2a",
|
|
1300
1427
|
null,
|
|
1301
1428
|
null
|
|
1302
1429
|
);
|
|
1303
|
-
const
|
|
1304
|
-
const { getData:
|
|
1430
|
+
const mt = yt.exports;
|
|
1431
|
+
const { getData: ht } = Ge, { formSchema: _t } = je, bt = {
|
|
1305
1432
|
name: "VTabs",
|
|
1433
|
+
components: {
|
|
1434
|
+
TableColumn: le
|
|
1435
|
+
},
|
|
1306
1436
|
data() {
|
|
1307
1437
|
return {
|
|
1308
1438
|
activeName: this.activeNameInit()
|
|
@@ -1363,13 +1493,13 @@ const { getData: ct } = me, { formSchema: lt } = ye, ut = {
|
|
|
1363
1493
|
var t, r, n;
|
|
1364
1494
|
let a = "";
|
|
1365
1495
|
(t = this.tabPanes[0]) != null && t.name && (a = (r = this.tabPanes[0]) == null ? void 0 : r.name);
|
|
1366
|
-
const e =
|
|
1367
|
-
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(
|
|
1368
1498
|
{
|
|
1369
1499
|
tableName: "formParams",
|
|
1370
1500
|
propertiesKey: this.$route.path || "defQueryParams",
|
|
1371
1501
|
primaryKey: this.DBPrimaryKey || "default",
|
|
1372
|
-
mapDB:
|
|
1502
|
+
mapDB: _t
|
|
1373
1503
|
},
|
|
1374
1504
|
(o) => {
|
|
1375
1505
|
(o == null ? void 0 : o[this.activeNameKey]) && (this.activeName = o == null ? void 0 : o[this.activeNameKey]);
|
|
@@ -1378,28 +1508,29 @@ const { getData: ct } = me, { formSchema: lt } = ye, ut = {
|
|
|
1378
1508
|
}
|
|
1379
1509
|
}
|
|
1380
1510
|
};
|
|
1381
|
-
var
|
|
1511
|
+
var gt = function() {
|
|
1382
1512
|
var e = this, t = e._self._c;
|
|
1383
1513
|
return t("el-tabs", e._b({ on: { "tab-click": e.handleClick }, model: { value: e.activeName, callback: function(r) {
|
|
1384
1514
|
e.activeName = r;
|
|
1385
1515
|
}, expression: "activeName" } }, "el-tabs", e.$attrs, !1), [e._l(e.tabPanes, function(r) {
|
|
1386
|
-
return t("el-tab-pane", e._b({ key: r.name }, "el-tab-pane", r, !1), [
|
|
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);
|
|
1387
1517
|
}), e._t("default")], 2);
|
|
1388
|
-
},
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1518
|
+
}, vt = [], wt = /* @__PURE__ */ O(
|
|
1519
|
+
bt,
|
|
1520
|
+
gt,
|
|
1521
|
+
vt,
|
|
1392
1522
|
!1,
|
|
1393
1523
|
null,
|
|
1394
|
-
"
|
|
1524
|
+
"ee818ed7",
|
|
1395
1525
|
null,
|
|
1396
1526
|
null
|
|
1397
1527
|
);
|
|
1398
|
-
const
|
|
1528
|
+
const St = wt.exports, xt = Me, Dt = et, It = st, Pt = ut, Bt = mt, Nt = St;
|
|
1399
1529
|
export {
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1530
|
+
Pt as VDescriptions,
|
|
1531
|
+
xt as VGeneralBasicForm,
|
|
1532
|
+
Dt as VInfiniteScrollList,
|
|
1533
|
+
It as VSearchBox,
|
|
1534
|
+
Nt as VTabs,
|
|
1535
|
+
Bt as VTreeTransfer
|
|
1405
1536
|
};
|