general-basic-form 1.2.6 → 1.2.7
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 +419 -313
- 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
|
-
}, se = { paramsToQuery:
|
|
109
|
+
}, se = { paramsToQuery: ke, queryToData: xe }, T = 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
|
|
121
|
+
const S = {};
|
|
122
122
|
let F = null;
|
|
123
|
-
const
|
|
123
|
+
const ie = 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
|
|
133
|
+
const l = p, y = u.target.result, { stores: _ = [] } = a;
|
|
134
|
+
await Promise.all(_[l(509)](async (f) => {
|
|
135
|
+
const h = l, { DBStoreName: m = "", properties: b = {} } = f;
|
|
136
136
|
try {
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
if (Object[
|
|
141
|
-
console[
|
|
137
|
+
const g = {};
|
|
138
|
+
g[h(536)] = a[h(557)];
|
|
139
|
+
const B = u[h(541)][h(520)][h(554)](m, g);
|
|
140
|
+
if (Object[h(548)](b)[h(500)] === 0) {
|
|
141
|
+
console[h(559)](m + "没有设置默认值");
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
|
-
for (const v in
|
|
145
|
-
if (
|
|
146
|
-
const
|
|
147
|
-
|
|
144
|
+
for (const v in b)
|
|
145
|
+
if (b[h(556)][h(515)](b, v)) {
|
|
146
|
+
const w = b[v], x = { ...w.createIndex };
|
|
147
|
+
B[h(504)](v, v, x);
|
|
148
148
|
}
|
|
149
|
-
} catch (
|
|
150
|
-
console[
|
|
149
|
+
} catch (g) {
|
|
150
|
+
console[h(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: h = "" } = _, m = o[f(552)]([h], f(547)), b = m[f(496)](h), g = {};
|
|
159
|
+
g[a[f(557)]] = e, b[f(502)](g);
|
|
160
160
|
try {
|
|
161
|
-
await new Promise((
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
const P =
|
|
165
|
-
console[P(513)](P(512),
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
},
|
|
169
|
-
const P =
|
|
170
|
-
console[P(513)](P(534),
|
|
161
|
+
await new Promise((B, v) => {
|
|
162
|
+
const w = f;
|
|
163
|
+
m[w(525)] = function(x) {
|
|
164
|
+
const P = w;
|
|
165
|
+
console[P(513)](P(512), x), v();
|
|
166
|
+
}, m[w(544)] = function(x) {
|
|
167
|
+
B();
|
|
168
|
+
}, m[w(529)] = function(x) {
|
|
169
|
+
const P = w;
|
|
170
|
+
console[P(513)](P(534), x), v();
|
|
171
171
|
};
|
|
172
172
|
});
|
|
173
|
-
} catch (
|
|
174
|
-
console.warn(
|
|
173
|
+
} catch (B) {
|
|
174
|
+
console.warn(f(511), B);
|
|
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) {
|
|
@@ -198,8 +198,8 @@ function q(a, e) {
|
|
|
198
198
|
}, q(a, e);
|
|
199
199
|
}
|
|
200
200
|
let Q = !1;
|
|
201
|
-
|
|
202
|
-
const t =
|
|
201
|
+
S[T(549)] = async (a, e) => {
|
|
202
|
+
const t = T, { mapDB: r, primaryKey: n } = a;
|
|
203
203
|
return r ? n ? (Q && await new Promise(async (o, i) => {
|
|
204
204
|
const s = () => {
|
|
205
205
|
Q ? setTimeout(() => {
|
|
@@ -207,81 +207,81 @@ w[N(549)] = async (a, e) => {
|
|
|
207
207
|
}, 200) : o();
|
|
208
208
|
};
|
|
209
209
|
s();
|
|
210
|
-
}), !F && (Q = !0, F = await
|
|
211
|
-
console.info(t(532)), F = await
|
|
210
|
+
}), !F && (Q = !0, F = await ie(r, n), F == null || F.addEventListener(t(555), async () => {
|
|
211
|
+
console.info(t(532)), F = await ie(r, n);
|
|
212
212
|
}), Q = !1), e && e(F), F) : (console[t(559)](t(542)), !1) : (console[t(559)]("必须传入数据库配置信息"), !1);
|
|
213
|
-
},
|
|
214
|
-
const t =
|
|
213
|
+
}, S[T(523)] = async (a, e) => {
|
|
214
|
+
const t = T, { 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
|
-
const r =
|
|
231
|
+
const r = T, { 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
|
-
|
|
248
|
-
y(
|
|
249
|
-
},
|
|
250
|
-
|
|
245
|
+
const l = await new Promise((y, _) => {
|
|
246
|
+
const f = r, h = d[f(501)](i[n == null ? void 0 : n[f(557)]]);
|
|
247
|
+
h[f(535)] = (m) => {
|
|
248
|
+
y(m);
|
|
249
|
+
}, h.onerror = (m) => {
|
|
250
|
+
_(m);
|
|
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
|
|
265
|
-
console[
|
|
259
|
+
new Promise((y, _) => {
|
|
260
|
+
const f = r;
|
|
261
|
+
!p && (console[f(513)](o + f(531)), _()), p[f(535)] = function(h) {
|
|
262
|
+
e && e(o + f(537)), y();
|
|
263
|
+
}, p[f(529)] = function(h) {
|
|
264
|
+
const m = f;
|
|
265
|
+
console[m(513)](o + m(497), h), _();
|
|
266
266
|
};
|
|
267
267
|
}), u && u[r(516)]();
|
|
268
|
-
},
|
|
269
|
-
const t =
|
|
268
|
+
}, S[T(518)] = async (a, e) => {
|
|
269
|
+
const t = T, { 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[T(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 @@ w[N(549)] = async (a, e) => {
|
|
|
293
293
|
};
|
|
294
294
|
});
|
|
295
295
|
};
|
|
296
|
-
function
|
|
296
|
+
function C(a, e) {
|
|
297
297
|
const t = Z();
|
|
298
|
-
return
|
|
298
|
+
return C = function(r, n) {
|
|
299
299
|
return r = r - 125, t[r];
|
|
300
|
-
},
|
|
300
|
+
}, C(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 = C;
|
|
309
309
|
(function(a, e) {
|
|
310
|
-
const t =
|
|
310
|
+
const t = C, 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)
|
|
@@ -317,37 +317,37 @@ const G = K;
|
|
|
317
317
|
r.push(r.shift());
|
|
318
318
|
}
|
|
319
319
|
})(Z, 330152);
|
|
320
|
-
async function
|
|
321
|
-
const t =
|
|
322
|
-
let c = null,
|
|
320
|
+
async function De(a, e) {
|
|
321
|
+
const t = C, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
|
|
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
|
|
331
|
-
const t =
|
|
330
|
+
async function Ie(a, e) {
|
|
331
|
+
const t = C, { 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
338
|
async function Be(a, e) {
|
|
339
|
-
const t =
|
|
339
|
+
const t = C, { 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
|
|
359
|
-
const t =
|
|
358
|
+
async function Pe(a, e) {
|
|
359
|
+
const t = C, { 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)] = Be, E[G(131)] = Pe;
|
|
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 ce = {};
|
|
384
|
-
ce[x(397)] = !1;
|
|
385
|
-
var te = {};
|
|
386
|
-
te[x(384)] = ce, te[x(392)] = {};
|
|
387
383
|
var le = {};
|
|
384
|
+
le[D(397)] = !1;
|
|
385
|
+
var te = {};
|
|
386
|
+
te[D(384)] = le, te[D(392)] = {};
|
|
387
|
+
var ue = {};
|
|
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
|
+
ue[D(390)] = te;
|
|
395
395
|
function U(a, e) {
|
|
396
396
|
var t = M();
|
|
397
397
|
return U = function(r, n) {
|
|
@@ -401,12 +401,12 @@ function U(a, e) {
|
|
|
401
401
|
}, U(a, e);
|
|
402
402
|
}
|
|
403
403
|
var re = {};
|
|
404
|
-
re[
|
|
405
|
-
var
|
|
406
|
-
|
|
407
|
-
const
|
|
408
|
-
formSchema:
|
|
409
|
-
}, Ne =
|
|
404
|
+
re[D(391)] = D(401), re[D(383)] = ue;
|
|
405
|
+
var R = {};
|
|
406
|
+
R[D(395)] = "userId", R[D(382)] = D(393), R[D(388)] = 1, R[D(396)] = [re];
|
|
407
|
+
const Te = {
|
|
408
|
+
formSchema: R
|
|
409
|
+
}, Ne = E, { handleData: Ce, getData: Ke } = Ne, { formSchema: pe } = Te, Fe = async (a, e) => {
|
|
410
410
|
var t;
|
|
411
411
|
return e.parametersType === "url" && (a = {
|
|
412
412
|
...se.queryToData((t = e.$route) == null ? void 0 : t.query),
|
|
@@ -416,26 +416,44 @@ const Pe = {
|
|
|
416
416
|
tableName: "formParams",
|
|
417
417
|
propertiesKey: e.$route.path || "defQueryParams",
|
|
418
418
|
primaryKey: e.DBPrimaryKey || "default",
|
|
419
|
-
mapDB:
|
|
419
|
+
mapDB: pe
|
|
420
420
|
}),
|
|
421
421
|
...a
|
|
422
422
|
}), a;
|
|
423
|
-
},
|
|
423
|
+
}, $e = async (a, e) => {
|
|
424
424
|
e.parametersType === "url" && await e.$router.push({
|
|
425
425
|
query: se.paramsToQuery({ ...a })
|
|
426
|
-
}), e.parametersType === "indexDB" && await
|
|
426
|
+
}), e.parametersType === "indexDB" && await Ce({
|
|
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: pe
|
|
432
432
|
});
|
|
433
|
-
},
|
|
434
|
-
makeParamsByType:
|
|
435
|
-
saveParamsByType:
|
|
436
|
-
},
|
|
433
|
+
}, qe = {
|
|
434
|
+
makeParamsByType: Fe,
|
|
435
|
+
saveParamsByType: $e
|
|
436
|
+
}, Le = {
|
|
437
|
+
functional: !0,
|
|
438
|
+
props: {
|
|
439
|
+
renderFunction: {
|
|
440
|
+
default: () => {
|
|
441
|
+
},
|
|
442
|
+
type: Function
|
|
443
|
+
},
|
|
444
|
+
item: {
|
|
445
|
+
default: () => {
|
|
446
|
+
},
|
|
447
|
+
type: Object
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
render(a, e) {
|
|
451
|
+
const { props: t } = e, { renderFunction: r, item: n } = t;
|
|
452
|
+
return r(n);
|
|
453
|
+
}
|
|
454
|
+
}, de = se, z = qe, oe = Le, N = L;
|
|
437
455
|
(function(a, e) {
|
|
438
|
-
const t =
|
|
456
|
+
const t = L, r = a();
|
|
439
457
|
for (; ; )
|
|
440
458
|
try {
|
|
441
459
|
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 +463,66 @@ const Pe = {
|
|
|
445
463
|
r.push(r.shift());
|
|
446
464
|
}
|
|
447
465
|
})(H, 819524);
|
|
448
|
-
const
|
|
449
|
-
let
|
|
450
|
-
const
|
|
451
|
-
const t =
|
|
466
|
+
const k = {};
|
|
467
|
+
let $ = null;
|
|
468
|
+
const ce = async (a, e) => {
|
|
469
|
+
const t = L;
|
|
452
470
|
!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
471
|
const { DBName: r = "", DBVersion: n = 1 } = a;
|
|
454
472
|
let o, i = !1;
|
|
455
473
|
try {
|
|
456
474
|
const s = window[t(543)][t(519)](r, n);
|
|
457
|
-
await new Promise((c,
|
|
475
|
+
await new Promise((c, d) => {
|
|
458
476
|
const p = t;
|
|
459
477
|
s[p(551)] = async function(u) {
|
|
460
|
-
const l = p, y = u.target.result, { stores:
|
|
461
|
-
await Promise.all(
|
|
462
|
-
const
|
|
478
|
+
const l = p, y = u.target.result, { stores: _ = [] } = a;
|
|
479
|
+
await Promise.all(_[l(509)](async (f) => {
|
|
480
|
+
const h = l, { DBStoreName: m = "", properties: b = {} } = f;
|
|
463
481
|
try {
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
const
|
|
467
|
-
if (Object[
|
|
468
|
-
console[
|
|
482
|
+
const g = {};
|
|
483
|
+
g[h(536)] = a[h(557)];
|
|
484
|
+
const B = u[h(541)][h(520)][h(554)](m, g);
|
|
485
|
+
if (Object[h(548)](b)[h(500)] === 0) {
|
|
486
|
+
console[h(559)](m + "没有设置默认值");
|
|
469
487
|
return;
|
|
470
488
|
}
|
|
471
|
-
for (const v in
|
|
472
|
-
if (
|
|
473
|
-
const
|
|
474
|
-
|
|
489
|
+
for (const v in b)
|
|
490
|
+
if (b[h(556)][h(515)](b, v)) {
|
|
491
|
+
const w = b[v], x = { ...w.createIndex };
|
|
492
|
+
B[h(504)](v, v, x);
|
|
475
493
|
}
|
|
476
|
-
} catch (
|
|
477
|
-
console[
|
|
494
|
+
} catch (g) {
|
|
495
|
+
console[h(559)](g);
|
|
478
496
|
}
|
|
479
497
|
})), o = y, i = !0;
|
|
480
498
|
}, s[p(535)] = async function(u) {
|
|
481
499
|
const l = p;
|
|
482
500
|
if (o = this[l(520)], i) {
|
|
483
501
|
const { stores: y = [] } = a;
|
|
484
|
-
await Promise[l(528)](y[l(509)](async (
|
|
485
|
-
const
|
|
486
|
-
|
|
502
|
+
await Promise[l(528)](y[l(509)](async (_) => {
|
|
503
|
+
const f = l, { DBStoreName: h = "" } = _, m = o[f(552)]([h], f(547)), b = m[f(496)](h), g = {};
|
|
504
|
+
g[a[f(557)]] = e, b[f(502)](g);
|
|
487
505
|
try {
|
|
488
|
-
await new Promise((
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
const P =
|
|
492
|
-
console[P(513)](P(512),
|
|
493
|
-
},
|
|
494
|
-
|
|
495
|
-
},
|
|
496
|
-
const P =
|
|
497
|
-
console[P(513)](P(534),
|
|
506
|
+
await new Promise((B, v) => {
|
|
507
|
+
const w = f;
|
|
508
|
+
m[w(525)] = function(x) {
|
|
509
|
+
const P = w;
|
|
510
|
+
console[P(513)](P(512), x), v();
|
|
511
|
+
}, m[w(544)] = function(x) {
|
|
512
|
+
B();
|
|
513
|
+
}, m[w(529)] = function(x) {
|
|
514
|
+
const P = w;
|
|
515
|
+
console[P(513)](P(534), x), v();
|
|
498
516
|
};
|
|
499
517
|
});
|
|
500
|
-
} catch (
|
|
501
|
-
console.warn(
|
|
518
|
+
} catch (B) {
|
|
519
|
+
console.warn(f(511), B);
|
|
502
520
|
}
|
|
503
521
|
}));
|
|
504
522
|
}
|
|
505
523
|
c();
|
|
506
524
|
}, s.onerror = function(u) {
|
|
507
|
-
|
|
525
|
+
d(u);
|
|
508
526
|
};
|
|
509
527
|
});
|
|
510
528
|
} catch (s) {
|
|
@@ -518,15 +536,15 @@ function H() {
|
|
|
518
536
|
return a;
|
|
519
537
|
}, H();
|
|
520
538
|
}
|
|
521
|
-
function
|
|
539
|
+
function L(a, e) {
|
|
522
540
|
const t = H();
|
|
523
|
-
return
|
|
541
|
+
return L = function(r, n) {
|
|
524
542
|
return r = r - 496, t[r];
|
|
525
|
-
},
|
|
543
|
+
}, L(a, e);
|
|
526
544
|
}
|
|
527
545
|
let V = !1;
|
|
528
|
-
|
|
529
|
-
const t =
|
|
546
|
+
k[N(549)] = async (a, e) => {
|
|
547
|
+
const t = N, { mapDB: r, primaryKey: n } = a;
|
|
530
548
|
return r ? n ? (V && await new Promise(async (o, i) => {
|
|
531
549
|
const s = () => {
|
|
532
550
|
V ? setTimeout(() => {
|
|
@@ -534,84 +552,84 @@ S[T(549)] = async (a, e) => {
|
|
|
534
552
|
}, 200) : o();
|
|
535
553
|
};
|
|
536
554
|
s();
|
|
537
|
-
}),
|
|
538
|
-
console.info(t(532)),
|
|
539
|
-
}), V = !1), e && e(
|
|
540
|
-
},
|
|
541
|
-
const t =
|
|
555
|
+
}), !$ && (V = !0, $ = await ce(r, n), $ == null || $.addEventListener(t(555), async () => {
|
|
556
|
+
console.info(t(532)), $ = await ce(r, n);
|
|
557
|
+
}), V = !1), e && e($), $) : (console[t(559)](t(542)), !1) : (console[t(559)]("必须传入数据库配置信息"), !1);
|
|
558
|
+
}, k[N(523)] = async (a, e) => {
|
|
559
|
+
const t = N, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
|
|
542
560
|
i[t(508)] = r, i[t(557)] = o;
|
|
543
|
-
const s = await
|
|
561
|
+
const s = await k.getDB(i);
|
|
544
562
|
if (!s)
|
|
545
563
|
return;
|
|
546
|
-
const c = s.transaction([n]),
|
|
564
|
+
const c = s.transaction([n]), d = c[t(496)](n), p = d[t(522)](o);
|
|
547
565
|
return new Promise((u, l) => {
|
|
548
566
|
const y = t;
|
|
549
|
-
p.onsuccess = function(
|
|
550
|
-
const
|
|
551
|
-
e && e(n +
|
|
552
|
-
}, p[y(529)] = function(
|
|
553
|
-
console.error(n + y(545) +
|
|
567
|
+
p.onsuccess = function(_) {
|
|
568
|
+
const f = L;
|
|
569
|
+
e && e(n + f(538) + p[f(520)]), u(p[f(520)]);
|
|
570
|
+
}, p[y(529)] = function(_) {
|
|
571
|
+
console.error(n + y(545) + _), l();
|
|
554
572
|
};
|
|
555
573
|
});
|
|
556
|
-
},
|
|
574
|
+
}, k.updateStore = async (a, e) => {
|
|
557
575
|
var t;
|
|
558
|
-
const r =
|
|
576
|
+
const r = N, { mapDB: n, tableName: o, updateData: i } = a;
|
|
559
577
|
!i[n == null ? void 0 : n[r(557)]] && console[r(559)](r(507) + n[r(557)]);
|
|
560
578
|
const s = {};
|
|
561
579
|
s.mapDB = n, s[r(557)] = i[n == null ? void 0 : n[r(557)]];
|
|
562
|
-
const c = await
|
|
580
|
+
const c = await k[r(549)](s);
|
|
563
581
|
if (!c)
|
|
564
582
|
return;
|
|
565
|
-
let
|
|
583
|
+
let d = null;
|
|
566
584
|
try {
|
|
567
|
-
|
|
585
|
+
d = c[r(552)]([o], r(547)).objectStore(o);
|
|
568
586
|
} catch (y) {
|
|
569
587
|
console[r(513)](r(499), y);
|
|
570
588
|
}
|
|
571
589
|
let p = null, u = null;
|
|
572
|
-
const l = await new Promise((y,
|
|
573
|
-
const
|
|
574
|
-
|
|
575
|
-
y(
|
|
576
|
-
},
|
|
577
|
-
|
|
590
|
+
const l = await new Promise((y, _) => {
|
|
591
|
+
const f = r, h = d[f(501)](i[n == null ? void 0 : n[f(557)]]);
|
|
592
|
+
h[f(535)] = (m) => {
|
|
593
|
+
y(m);
|
|
594
|
+
}, h.onerror = (m) => {
|
|
595
|
+
_(m);
|
|
578
596
|
};
|
|
579
597
|
});
|
|
580
598
|
u = (t = l == null ? void 0 : l[r(533)]) == null ? void 0 : t[r(520)];
|
|
581
599
|
try {
|
|
582
|
-
u && (u == null ? void 0 : u.primaryKey) === i[n == null ? void 0 : n.primaryKey] ? p = u[r(517)](i) : p =
|
|
600
|
+
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
601
|
} catch (y) {
|
|
584
602
|
console[r(513)](r(539), y, i);
|
|
585
603
|
}
|
|
586
|
-
new Promise((y,
|
|
587
|
-
const
|
|
588
|
-
!p && (console[
|
|
589
|
-
e && e(o +
|
|
590
|
-
}, p[
|
|
591
|
-
const
|
|
592
|
-
console[
|
|
604
|
+
new Promise((y, _) => {
|
|
605
|
+
const f = r;
|
|
606
|
+
!p && (console[f(513)](o + f(531)), _()), p[f(535)] = function(h) {
|
|
607
|
+
e && e(o + f(537)), y();
|
|
608
|
+
}, p[f(529)] = function(h) {
|
|
609
|
+
const m = f;
|
|
610
|
+
console[m(513)](o + m(497), h), _();
|
|
593
611
|
};
|
|
594
612
|
}), u && u[r(516)]();
|
|
595
|
-
},
|
|
596
|
-
const t =
|
|
613
|
+
}, k[N(518)] = async (a, e) => {
|
|
614
|
+
const t = N, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
|
|
597
615
|
i[t(508)] = r, i[t(557)] = o;
|
|
598
|
-
const s = await
|
|
616
|
+
const s = await k.getDB(i);
|
|
599
617
|
if (!s)
|
|
600
618
|
return;
|
|
601
619
|
const c = s[t(552)]([n], t(547))[t(496)](n)[t(560)](o);
|
|
602
|
-
return new Promise((
|
|
620
|
+
return new Promise((d, p) => {
|
|
603
621
|
const u = t;
|
|
604
622
|
c[u(535)] = function(l) {
|
|
605
|
-
e && e(n + "数据删除成功"),
|
|
623
|
+
e && e(n + "数据删除成功"), d();
|
|
606
624
|
}, c.onerror = function(l) {
|
|
607
625
|
const y = u;
|
|
608
626
|
console[y(513)](n + y(524) + l), p();
|
|
609
627
|
};
|
|
610
628
|
});
|
|
611
|
-
},
|
|
629
|
+
}, k[N(505)] = async (a, e) => {
|
|
612
630
|
const { mapDB: t } = a, r = window.indexedDB.deleteDatabase(t.DBName);
|
|
613
631
|
return new Promise((n, o) => {
|
|
614
|
-
const i =
|
|
632
|
+
const i = L;
|
|
615
633
|
r[i(535)] = (s) => {
|
|
616
634
|
e && e(t[i(553)] + "数据库已删除"), n();
|
|
617
635
|
}, r[i(529)] = (s) => {
|
|
@@ -620,11 +638,11 @@ S[T(549)] = async (a, e) => {
|
|
|
620
638
|
};
|
|
621
639
|
});
|
|
622
640
|
};
|
|
623
|
-
function
|
|
641
|
+
function K(a, e) {
|
|
624
642
|
const t = X();
|
|
625
|
-
return
|
|
643
|
+
return K = function(r, n) {
|
|
626
644
|
return r = r - 125, t[r];
|
|
627
|
-
},
|
|
645
|
+
}, K(a, e);
|
|
628
646
|
}
|
|
629
647
|
function X() {
|
|
630
648
|
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 +650,9 @@ function X() {
|
|
|
632
650
|
return a;
|
|
633
651
|
}, X();
|
|
634
652
|
}
|
|
635
|
-
const W =
|
|
653
|
+
const W = K;
|
|
636
654
|
(function(a, e) {
|
|
637
|
-
const t =
|
|
655
|
+
const t = K, r = a();
|
|
638
656
|
for (; ; )
|
|
639
657
|
try {
|
|
640
658
|
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 +662,37 @@ const W = $;
|
|
|
644
662
|
r.push(r.shift());
|
|
645
663
|
}
|
|
646
664
|
})(X, 330152);
|
|
647
|
-
async function
|
|
648
|
-
const t =
|
|
649
|
-
let c = null,
|
|
665
|
+
async function Oe(a, e) {
|
|
666
|
+
const t = K, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
|
|
667
|
+
let c = null, d = { [s[t(138)]]: i };
|
|
650
668
|
const p = {};
|
|
651
669
|
p[t(132)] = s, p.tableName = r, p[t(138)] = i;
|
|
652
|
-
const u = await
|
|
653
|
-
u && (
|
|
670
|
+
const u = await k[t(136)](p);
|
|
671
|
+
u && (d = { ...u, [s.primaryKey]: i }), d[n] = o;
|
|
654
672
|
const l = {};
|
|
655
|
-
return l[t(132)] = s, l.tableName = r, l[t(134)] =
|
|
673
|
+
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
674
|
}
|
|
657
|
-
async function
|
|
658
|
-
const t =
|
|
675
|
+
async function ze(a, e) {
|
|
676
|
+
const t = K, { tableName: r, propertiesKey: n, primaryKey: o, mapDB: i } = a;
|
|
659
677
|
let s = null;
|
|
660
678
|
const c = {};
|
|
661
679
|
c[t(132)] = i, c[t(146)] = r, c.primaryKey = o;
|
|
662
|
-
const
|
|
663
|
-
return
|
|
680
|
+
const d = await k[t(136)](c);
|
|
681
|
+
return d && (s = d[n]), e && e(s), s;
|
|
664
682
|
}
|
|
665
|
-
async function
|
|
666
|
-
const t =
|
|
683
|
+
async function Ee(a, e) {
|
|
684
|
+
const t = K, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
|
|
667
685
|
let c = {};
|
|
668
|
-
const
|
|
669
|
-
|
|
670
|
-
const p = await
|
|
686
|
+
const d = {};
|
|
687
|
+
d.mapDB = s, d[t(146)] = r, d[t(138)] = i;
|
|
688
|
+
const p = await k[t(136)](d);
|
|
671
689
|
try {
|
|
672
690
|
if (p) {
|
|
673
691
|
c = { ...p[n], ...o };
|
|
674
692
|
const u = { [s[t(138)]]: i }, l = u;
|
|
675
693
|
l[n] = c;
|
|
676
694
|
const y = {};
|
|
677
|
-
y[t(132)] = s, y[t(146)] = r, y[t(134)] = l, await
|
|
695
|
+
y[t(132)] = s, y[t(146)] = r, y[t(134)] = l, await k.updateStore(y);
|
|
678
696
|
} else
|
|
679
697
|
console.warn(r + "为空,请先调用handleData");
|
|
680
698
|
} catch (u) {
|
|
@@ -682,20 +700,20 @@ async function ze(a, e) {
|
|
|
682
700
|
}
|
|
683
701
|
return e && e(c), c;
|
|
684
702
|
}
|
|
685
|
-
async function
|
|
686
|
-
const t =
|
|
703
|
+
async function Re(a, e) {
|
|
704
|
+
const t = K, { tableName: r, primaryKey: n, mapDB: o } = a;
|
|
687
705
|
let i = null;
|
|
688
706
|
try {
|
|
689
707
|
const s = {};
|
|
690
|
-
s.mapDB = o, s[t(146)] = r, s[t(138)] = n, await
|
|
708
|
+
s.mapDB = o, s[t(146)] = r, s[t(138)] = n, await k[t(126)](s);
|
|
691
709
|
} catch (s) {
|
|
692
710
|
console.error(s);
|
|
693
711
|
}
|
|
694
712
|
return e && e(i), i;
|
|
695
713
|
}
|
|
696
|
-
const
|
|
697
|
-
|
|
698
|
-
var
|
|
714
|
+
const A = {};
|
|
715
|
+
A[W(139)] = Oe, A[W(130)] = ze, A[W(134)] = Ee, A[W(131)] = Re;
|
|
716
|
+
var I = ee;
|
|
699
717
|
(function(a, e) {
|
|
700
718
|
for (var t = ee, r = a(); ; )
|
|
701
719
|
try {
|
|
@@ -708,17 +726,17 @@ var B = ee;
|
|
|
708
726
|
}
|
|
709
727
|
})(Y, 363872);
|
|
710
728
|
var fe = {};
|
|
711
|
-
fe[
|
|
729
|
+
fe[I(397)] = !1;
|
|
712
730
|
var ae = {};
|
|
713
|
-
ae[
|
|
714
|
-
var
|
|
731
|
+
ae[I(384)] = fe, ae[I(392)] = {};
|
|
732
|
+
var ye = {};
|
|
715
733
|
function Y() {
|
|
716
734
|
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
735
|
return Y = function() {
|
|
718
736
|
return a;
|
|
719
737
|
}, Y();
|
|
720
738
|
}
|
|
721
|
-
|
|
739
|
+
ye[I(390)] = ae;
|
|
722
740
|
function ee(a, e) {
|
|
723
741
|
var t = Y();
|
|
724
742
|
return ee = function(r, n) {
|
|
@@ -728,20 +746,20 @@ function ee(a, e) {
|
|
|
728
746
|
}, ee(a, e);
|
|
729
747
|
}
|
|
730
748
|
var ne = {};
|
|
731
|
-
ne[
|
|
732
|
-
var
|
|
733
|
-
|
|
734
|
-
const
|
|
735
|
-
formSchema:
|
|
736
|
-
}, me =
|
|
737
|
-
const { getData: Ae } = me, { formSchema:
|
|
749
|
+
ne[I(391)] = I(401), ne[I(383)] = ye;
|
|
750
|
+
var j = {};
|
|
751
|
+
j[I(395)] = "userId", j[I(382)] = I(393), j[I(388)] = 1, j[I(396)] = [ne];
|
|
752
|
+
const he = {
|
|
753
|
+
formSchema: j
|
|
754
|
+
}, me = A;
|
|
755
|
+
const { getData: Ae } = me, { formSchema: je } = he, Qe = {
|
|
738
756
|
name: "GeneralBasicForm",
|
|
739
757
|
components: {
|
|
740
758
|
InputArchive: (a) => {
|
|
741
759
|
const { templateEle: e } = a;
|
|
742
760
|
return e();
|
|
743
761
|
},
|
|
744
|
-
VerificationButton:
|
|
762
|
+
VerificationButton: Se
|
|
745
763
|
},
|
|
746
764
|
props: {
|
|
747
765
|
showSearch: {
|
|
@@ -933,12 +951,12 @@ const { getData: Ae } = me, { formSchema: Le } = ye, je = {
|
|
|
933
951
|
let a = {
|
|
934
952
|
[this.pageSizeKey]: this.defPageSize
|
|
935
953
|
};
|
|
936
|
-
return this.parametersType === "url" && (a = { ...a, ...
|
|
954
|
+
return this.parametersType === "url" && (a = { ...a, ...de.queryToData((e = this.$route) == null ? void 0 : e.query) }), this.parametersType === "indexDB" && Ae(
|
|
937
955
|
{
|
|
938
956
|
tableName: "formParams",
|
|
939
957
|
propertiesKey: this.$route.path || "defQueryParams",
|
|
940
958
|
primaryKey: this.DBPrimaryKey || "default",
|
|
941
|
-
mapDB:
|
|
959
|
+
mapDB: je
|
|
942
960
|
},
|
|
943
961
|
(t) => {
|
|
944
962
|
t && (this.queryParams = { ...a, ...t }), this.queryWhenReady && this.$nextTick(() => {
|
|
@@ -1027,7 +1045,7 @@ const { getData: Ae } = me, { formSchema: Le } = ye, je = {
|
|
|
1027
1045
|
}
|
|
1028
1046
|
}
|
|
1029
1047
|
};
|
|
1030
|
-
var
|
|
1048
|
+
var Ge = function() {
|
|
1031
1049
|
var e = this, t = e._self._c;
|
|
1032
1050
|
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
1051
|
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) {
|
|
@@ -1062,18 +1080,119 @@ var Re = function() {
|
|
|
1062
1080
|
return t("el-checkbox", e._b({ key: n.key || n.value || n.label }, "el-checkbox", n, !1));
|
|
1063
1081
|
}), 1) : e._e(), /^form-item-slot$/i.test(r.type) ? e._t(r.name) : e._e()], 2);
|
|
1064
1082
|
}), 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
|
-
je,
|
|
1067
|
-
Re,
|
|
1083
|
+
}, Ve = [], We = /* @__PURE__ */ O(
|
|
1068
1084
|
Qe,
|
|
1085
|
+
Ge,
|
|
1086
|
+
Ve,
|
|
1069
1087
|
!1,
|
|
1070
1088
|
null,
|
|
1071
1089
|
"111d2d55",
|
|
1072
1090
|
null,
|
|
1073
1091
|
null
|
|
1074
1092
|
);
|
|
1075
|
-
const
|
|
1076
|
-
const
|
|
1093
|
+
const Je = We.exports;
|
|
1094
|
+
const Ze = {
|
|
1095
|
+
name: "InfiniteScrollList",
|
|
1096
|
+
components: {
|
|
1097
|
+
TableColumn: oe
|
|
1098
|
+
},
|
|
1099
|
+
props: {
|
|
1100
|
+
search: {
|
|
1101
|
+
type: Function,
|
|
1102
|
+
required: !0
|
|
1103
|
+
},
|
|
1104
|
+
checkbox: {
|
|
1105
|
+
type: Boolean,
|
|
1106
|
+
required: !1
|
|
1107
|
+
},
|
|
1108
|
+
id: {
|
|
1109
|
+
type: String,
|
|
1110
|
+
required: !0
|
|
1111
|
+
},
|
|
1112
|
+
name: {
|
|
1113
|
+
type: String,
|
|
1114
|
+
required: !1
|
|
1115
|
+
},
|
|
1116
|
+
extra: {
|
|
1117
|
+
type: null,
|
|
1118
|
+
required: !1
|
|
1119
|
+
},
|
|
1120
|
+
defaultSelection: {
|
|
1121
|
+
type: Array,
|
|
1122
|
+
required: !1
|
|
1123
|
+
},
|
|
1124
|
+
height: {
|
|
1125
|
+
type: String,
|
|
1126
|
+
required: !1,
|
|
1127
|
+
default: "272px"
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
data() {
|
|
1131
|
+
return {
|
|
1132
|
+
list: [],
|
|
1133
|
+
page: 1,
|
|
1134
|
+
ifbottom: !1,
|
|
1135
|
+
//判断是否到底部,是的话就不再请求
|
|
1136
|
+
checkedList: [],
|
|
1137
|
+
loading: !1
|
|
1138
|
+
};
|
|
1139
|
+
},
|
|
1140
|
+
computed: {
|
|
1141
|
+
selectInfo() {
|
|
1142
|
+
return this.list.filter((a) => this.checkedList.includes(a[this.id]));
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
watch: {
|
|
1146
|
+
defaultSelection: {
|
|
1147
|
+
handler(a = [], e = []) {
|
|
1148
|
+
this.updateCheckedList(a);
|
|
1149
|
+
},
|
|
1150
|
+
immediate: !0
|
|
1151
|
+
}
|
|
1152
|
+
},
|
|
1153
|
+
methods: {
|
|
1154
|
+
reset() {
|
|
1155
|
+
this.lowReset(), this.checkedList = [];
|
|
1156
|
+
},
|
|
1157
|
+
updateCheckedList(a) {
|
|
1158
|
+
this.checkedList = a.map((e) => typeof e == "object" ? e[this.id] : e);
|
|
1159
|
+
},
|
|
1160
|
+
lowReset() {
|
|
1161
|
+
this.page = 1, this.list = [], this.ifbottom = !1;
|
|
1162
|
+
},
|
|
1163
|
+
async loadList() {
|
|
1164
|
+
if (this.loading || this.ifbottom)
|
|
1165
|
+
return;
|
|
1166
|
+
this.loading = !0;
|
|
1167
|
+
const a = await this.search(this.page);
|
|
1168
|
+
a && a.length > 0 ? (this.list = [...this.list, ...a], this.page += 1) : this.ifbottom = !0, this.loading = !1;
|
|
1169
|
+
},
|
|
1170
|
+
async refreshList() {
|
|
1171
|
+
this.lowReset(), await this.loadList();
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
};
|
|
1175
|
+
var Me = function() {
|
|
1176
|
+
var e = this, t = e._self._c;
|
|
1177
|
+
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
|
+
e.checkedList = r;
|
|
1179
|
+
}, 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) {
|
|
1180
|
+
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);
|
|
1181
|
+
}), 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
|
+
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
|
+
}), 0);
|
|
1184
|
+
}, Ue = [], He = /* @__PURE__ */ O(
|
|
1185
|
+
Ze,
|
|
1186
|
+
Me,
|
|
1187
|
+
Ue,
|
|
1188
|
+
!1,
|
|
1189
|
+
null,
|
|
1190
|
+
"9ac38e10",
|
|
1191
|
+
null,
|
|
1192
|
+
null
|
|
1193
|
+
);
|
|
1194
|
+
const Xe = He.exports;
|
|
1195
|
+
const Ye = {
|
|
1077
1196
|
components: {},
|
|
1078
1197
|
props: {
|
|
1079
1198
|
query: {
|
|
@@ -1133,44 +1252,27 @@ const We = {
|
|
|
1133
1252
|
}
|
|
1134
1253
|
}
|
|
1135
1254
|
};
|
|
1136
|
-
var
|
|
1255
|
+
var et = function() {
|
|
1137
1256
|
var e = this, t = e._self._c;
|
|
1138
1257
|
return t("div", { staticClass: "search-box" }, [t("el-input", e._b({ style: { ...e.inputstyle }, attrs: { size: e.size }, nativeOn: { keydown: function(r) {
|
|
1139
1258
|
return !r.type.indexOf("key") && e._k(r.keyCode, "enter", 13, r.key, "Enter") ? null : e.search.apply(null, arguments);
|
|
1140
1259
|
} }, model: { value: e.keyWord, callback: function(r) {
|
|
1141
1260
|
e.keyWord = r;
|
|
1142
1261
|
}, 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
|
-
|
|
1262
|
+
}, tt = [], rt = /* @__PURE__ */ O(
|
|
1263
|
+
Ye,
|
|
1264
|
+
et,
|
|
1265
|
+
tt,
|
|
1147
1266
|
!1,
|
|
1148
1267
|
null,
|
|
1149
1268
|
"ef706e31",
|
|
1150
1269
|
null,
|
|
1151
1270
|
null
|
|
1152
1271
|
);
|
|
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 = {
|
|
1272
|
+
const at = rt.exports, nt = {
|
|
1171
1273
|
name: "Descriptions",
|
|
1172
1274
|
components: {
|
|
1173
|
-
|
|
1275
|
+
TableColumn: oe
|
|
1174
1276
|
},
|
|
1175
1277
|
data() {
|
|
1176
1278
|
return {
|
|
@@ -1206,23 +1308,23 @@ const Ue = Me.exports, He = {
|
|
|
1206
1308
|
}
|
|
1207
1309
|
}
|
|
1208
1310
|
};
|
|
1209
|
-
var
|
|
1311
|
+
var st = function() {
|
|
1210
1312
|
var e = this, t = e._self._c;
|
|
1211
1313
|
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("
|
|
1314
|
+
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
1315
|
}), 1);
|
|
1214
|
-
},
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1316
|
+
}, ot = [], it = /* @__PURE__ */ O(
|
|
1317
|
+
nt,
|
|
1318
|
+
st,
|
|
1319
|
+
ot,
|
|
1218
1320
|
!1,
|
|
1219
1321
|
null,
|
|
1220
1322
|
null,
|
|
1221
1323
|
null,
|
|
1222
1324
|
null
|
|
1223
1325
|
);
|
|
1224
|
-
const
|
|
1225
|
-
const
|
|
1326
|
+
const ct = it.exports;
|
|
1327
|
+
const lt = {
|
|
1226
1328
|
props: {
|
|
1227
1329
|
nodeKey: {
|
|
1228
1330
|
type: String,
|
|
@@ -1249,7 +1351,7 @@ const at = {
|
|
|
1249
1351
|
this.$refs.selectTree.filter(a);
|
|
1250
1352
|
},
|
|
1251
1353
|
checkedKeys(a) {
|
|
1252
|
-
this.$refs.sourceTree.setCheckedKeys(a),
|
|
1354
|
+
this.$refs.sourceTree.setCheckedKeys(a), _e(() => {
|
|
1253
1355
|
this.getSelectedData(), this.$refs.selectTree.setCheckedKeys(a);
|
|
1254
1356
|
});
|
|
1255
1357
|
}
|
|
@@ -1283,26 +1385,29 @@ const at = {
|
|
|
1283
1385
|
}
|
|
1284
1386
|
}
|
|
1285
1387
|
};
|
|
1286
|
-
var
|
|
1388
|
+
var ut = function() {
|
|
1287
1389
|
var e = this, t = e._self._c;
|
|
1288
1390
|
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
1391
|
e.sourceFilterText = r;
|
|
1290
1392
|
}, 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
1393
|
e.selectedFilterText = r;
|
|
1292
1394
|
}, 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
|
-
|
|
1395
|
+
}, pt = [], dt = /* @__PURE__ */ O(
|
|
1396
|
+
lt,
|
|
1397
|
+
ut,
|
|
1398
|
+
pt,
|
|
1297
1399
|
!1,
|
|
1298
1400
|
null,
|
|
1299
1401
|
"49dbad2a",
|
|
1300
1402
|
null,
|
|
1301
1403
|
null
|
|
1302
1404
|
);
|
|
1303
|
-
const
|
|
1304
|
-
const { getData:
|
|
1405
|
+
const ft = dt.exports;
|
|
1406
|
+
const { getData: yt } = me, { formSchema: ht } = he, mt = {
|
|
1305
1407
|
name: "VTabs",
|
|
1408
|
+
components: {
|
|
1409
|
+
TableColumn: oe
|
|
1410
|
+
},
|
|
1306
1411
|
data() {
|
|
1307
1412
|
return {
|
|
1308
1413
|
activeName: this.activeNameInit()
|
|
@@ -1363,13 +1468,13 @@ const { getData: ct } = me, { formSchema: lt } = ye, ut = {
|
|
|
1363
1468
|
var t, r, n;
|
|
1364
1469
|
let a = "";
|
|
1365
1470
|
(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" &&
|
|
1471
|
+
const e = de.queryToData(Number((n = this.$route) == null ? void 0 : n.query[this.activeNameKey]));
|
|
1472
|
+
return this.parametersType === "url" && e && (a = e), this.parametersType === "indexDB" && yt(
|
|
1368
1473
|
{
|
|
1369
1474
|
tableName: "formParams",
|
|
1370
1475
|
propertiesKey: this.$route.path || "defQueryParams",
|
|
1371
1476
|
primaryKey: this.DBPrimaryKey || "default",
|
|
1372
|
-
mapDB:
|
|
1477
|
+
mapDB: ht
|
|
1373
1478
|
},
|
|
1374
1479
|
(o) => {
|
|
1375
1480
|
(o == null ? void 0 : o[this.activeNameKey]) && (this.activeName = o == null ? void 0 : o[this.activeNameKey]);
|
|
@@ -1378,28 +1483,29 @@ const { getData: ct } = me, { formSchema: lt } = ye, ut = {
|
|
|
1378
1483
|
}
|
|
1379
1484
|
}
|
|
1380
1485
|
};
|
|
1381
|
-
var
|
|
1486
|
+
var _t = function() {
|
|
1382
1487
|
var e = this, t = e._self._c;
|
|
1383
1488
|
return t("el-tabs", e._b({ on: { "tab-click": e.handleClick }, model: { value: e.activeName, callback: function(r) {
|
|
1384
1489
|
e.activeName = r;
|
|
1385
1490
|
}, 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), [
|
|
1491
|
+
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
1492
|
}), e._t("default")], 2);
|
|
1388
|
-
},
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1493
|
+
}, bt = [], gt = /* @__PURE__ */ O(
|
|
1494
|
+
mt,
|
|
1495
|
+
_t,
|
|
1496
|
+
bt,
|
|
1392
1497
|
!1,
|
|
1393
1498
|
null,
|
|
1394
|
-
"
|
|
1499
|
+
"ee818ed7",
|
|
1395
1500
|
null,
|
|
1396
1501
|
null
|
|
1397
1502
|
);
|
|
1398
|
-
const
|
|
1503
|
+
const vt = gt.exports, St = Je, kt = Xe, xt = at, Dt = ct, It = ft, Bt = vt;
|
|
1399
1504
|
export {
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1505
|
+
Dt as VDescriptions,
|
|
1506
|
+
St as VGeneralBasicForm,
|
|
1507
|
+
kt as VInfiniteScrollList,
|
|
1508
|
+
xt as VSearchBox,
|
|
1509
|
+
Bt as VTabs,
|
|
1510
|
+
It as VTreeTransfer
|
|
1405
1511
|
};
|