general-basic-form 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,34 +1,34 @@
1
- import { nextTick as te } from "vue";
2
- function I(r, e, t, a, n, o, s, c) {
3
- var i = typeof r == "function" ? r.options : r;
4
- e && (i.render = e, i.staticRenderFns = t, i._compiled = !0), a && (i.functional = !0), o && (i._scopeId = "data-v-" + o);
5
- var l;
6
- if (s ? (l = function(u) {
7
- u = u || // cached call
1
+ import { nextTick as he } from "vue";
2
+ function E(a, e, t, r, n, o, i, s) {
3
+ var c = typeof a == "function" ? a.options : a;
4
+ e && (c.render = e, c.staticRenderFns = t, c._compiled = !0), r && (c.functional = !0), o && (c._scopeId = "data-v-" + o);
5
+ var f;
6
+ if (i ? (f = function(l) {
7
+ l = l || // cached call
8
8
  this.$vnode && this.$vnode.ssrContext || // stateful
9
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !u && typeof __VUE_SSR_CONTEXT__ < "u" && (u = __VUE_SSR_CONTEXT__), n && n.call(this, u), u && u._registeredComponents && u._registeredComponents.add(s);
10
- }, i._ssrRegister = l) : n && (l = c ? function() {
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 = f) : n && (f = s ? function() {
11
11
  n.call(
12
12
  this,
13
- (i.functional ? this.parent : this).$root.$options.shadowRoot
13
+ (c.functional ? this.parent : this).$root.$options.shadowRoot
14
14
  );
15
- } : n), l)
16
- if (i.functional) {
17
- i._injectStyles = l;
18
- var d = i.render;
19
- i.render = function(f, h) {
20
- return l.call(h), d(f, h);
15
+ } : n), f)
16
+ if (c.functional) {
17
+ c._injectStyles = f;
18
+ var p = c.render;
19
+ c.render = function(y, b) {
20
+ return f.call(b), p(y, b);
21
21
  };
22
22
  } else {
23
- var p = i.beforeCreate;
24
- i.beforeCreate = p ? [].concat(p, l) : [l];
23
+ var u = c.beforeCreate;
24
+ c.beforeCreate = u ? [].concat(u, f) : [f];
25
25
  }
26
26
  return {
27
- exports: r,
28
- options: i
27
+ exports: a,
28
+ options: c
29
29
  };
30
30
  }
31
- const re = {
31
+ const be = {
32
32
  props: {
33
33
  verificationSetting: {
34
34
  type: Object,
@@ -76,616 +76,672 @@ const re = {
76
76
  }
77
77
  }
78
78
  };
79
- var ae = function() {
79
+ var _e = 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
- }, ne = [], se = /* @__PURE__ */ I(
83
- re,
84
- ae,
85
- ne,
82
+ }, ge = [], ve = /* @__PURE__ */ E(
83
+ be,
84
+ _e,
85
+ ge,
86
86
  !1,
87
87
  null,
88
88
  null,
89
89
  null,
90
90
  null
91
91
  );
92
- const oe = se.exports, ie = (r = {}) => {
93
- for (const e in r)
94
- if (Object.prototype.hasOwnProperty.call(r, e)) {
95
- const t = r[e];
96
- Object.prototype.toString.call(t) === "[object Object]" && (r[e] = JSON.stringify(t));
92
+ const De = ve.exports, we = (a = {}) => {
93
+ for (const e in a)
94
+ if (Object.prototype.hasOwnProperty.call(a, e)) {
95
+ const t = a[e];
96
+ Object.prototype.toString.call(t) === "[object Object]" && (a[e] = JSON.stringify(t));
97
97
  }
98
- return r;
99
- }, ce = (r = {}) => {
100
- for (const e in r)
101
- if (Object.prototype.hasOwnProperty.call(r, e)) {
102
- const t = r[e];
98
+ return a;
99
+ }, Se = (a = {}) => {
100
+ for (const e in a)
101
+ if (Object.prototype.hasOwnProperty.call(a, e)) {
102
+ const t = a[e];
103
103
  try {
104
- /[{]+/g.test(t) && /[}]+/g.test(t) && (r[e] = JSON.parse(t));
104
+ /[{]+/g.test(t) && /[}]+/g.test(t) && (a[e] = JSON.parse(t));
105
105
  } catch {
106
106
  }
107
107
  }
108
- return r;
109
- }, G = { paramsToQuery: ie, queryToData: ce }, D = K;
110
- (function(r, e) {
111
- const t = K, a = r();
108
+ return a;
109
+ }, se = { paramsToQuery: we, queryToData: Se }, N = q;
110
+ (function(a, e) {
111
+ const t = q, r = a();
112
112
  for (; ; )
113
113
  try {
114
- if (parseInt(t(224)) / 1 * (-parseInt(t(262)) / 2) + parseInt(t(271)) / 3 * (-parseInt(t(273)) / 4) + -parseInt(t(281)) / 5 * (-parseInt(t(257)) / 6) + -parseInt(t(250)) / 7 * (-parseInt(t(253)) / 8) + -parseInt(t(261)) / 9 + -parseInt(t(247)) / 10 + -parseInt(t(276)) / 11 * (-parseInt(t(256)) / 12) === e)
114
+ 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)
115
115
  break;
116
- a.push(a.shift());
116
+ r.push(r.shift());
117
117
  } catch {
118
- a.push(a.shift());
118
+ r.push(r.shift());
119
119
  }
120
- })(j, 932279);
121
- const g = {};
122
- let T = null;
123
- const H = async (r, e) => {
124
- const t = K;
125
- !window.indexedDB && window[t(252)](t(236));
126
- const { DBName: a = "", DBVersion: n = 1 } = r;
127
- let o, s = !1;
120
+ })(W, 819524);
121
+ const w = {};
122
+ let F = null;
123
+ const oe = async (a, e) => {
124
+ const t = q;
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
+ const { DBName: r = "", DBVersion: n = 1 } = a;
127
+ let o, i = !1;
128
128
  try {
129
- const c = window[t(265)].open(a, n);
130
- await new Promise((i, l) => {
131
- const d = t;
132
- c[d(231)] = async function(p) {
133
- const u = d, f = p[u(286)][u(228)], { stores: h = [] } = r;
134
- await Promise[u(269)](h[u(242)](async (y) => {
135
- const m = u, { DBStoreName: b = "", properties: w = {} } = y;
129
+ const s = window[t(543)][t(519)](r, n);
130
+ await new Promise((c, f) => {
131
+ const p = t;
132
+ s[p(551)] = async function(u) {
133
+ const l = p, y = u.target.result, { stores: b = [] } = a;
134
+ await Promise.all(b[l(509)](async (d) => {
135
+ const m = l, { DBStoreName: h = "", properties: _ = {} } = d;
136
136
  try {
137
- const x = {};
138
- x[m(237)] = r[m(238)];
139
- const N = p[m(234)].result[m(289)](b, x);
140
- if (Object[m(241)](w)[m(282)] === 0) {
141
- console[m(226)](b + m(275));
137
+ const g = {};
138
+ g[m(536)] = a[m(557)];
139
+ const I = u[m(541)][m(520)][m(554)](h, g);
140
+ if (Object[m(548)](_)[m(500)] === 0) {
141
+ console[m(559)](h + "没有设置默认值");
142
142
  return;
143
143
  }
144
- for (const B in w)
145
- if (w[m(223)][m(268)](w, B)) {
146
- const $ = w[B], k = { ...$[m(258)] };
147
- N[m(258)](B, B, k);
144
+ for (const v in _)
145
+ if (_[m(556)][m(515)](_, v)) {
146
+ const D = _[v], B = { ...D.createIndex };
147
+ I[m(504)](v, v, B);
148
148
  }
149
- } catch (x) {
150
- console.warn(x);
149
+ } catch (g) {
150
+ console[m(559)](g);
151
151
  }
152
- })), o = f, s = !0;
153
- }, c[d(288)] = async function(p) {
154
- const u = d;
155
- if (o = this[u(228)], s) {
156
- const { stores: f = [] } = r;
157
- await Promise[u(269)](f[u(242)](async (h) => {
158
- const y = u, { DBStoreName: m = "" } = h, b = o[y(246)]([m], y(251)), w = b[y(274)](m), x = {};
159
- x[r[y(238)]] = e, w[y(285)](x);
152
+ })), o = y, i = !0;
153
+ }, s[p(535)] = async function(u) {
154
+ const l = p;
155
+ if (o = this[l(520)], i) {
156
+ const { stores: y = [] } = a;
157
+ await Promise[l(528)](y[l(509)](async (b) => {
158
+ const d = l, { DBStoreName: m = "" } = b, h = o[d(552)]([m], d(547)), _ = h[d(496)](m), g = {};
159
+ g[a[d(557)]] = e, _[d(502)](g);
160
160
  try {
161
- await new Promise((N, B) => {
162
- const $ = y;
163
- b.onabort = function(k) {
164
- const C = K;
165
- console[C(230)](C(254), k), B();
166
- }, b[$(272)] = function(k) {
167
- N();
168
- }, b[$(260)] = function(k) {
169
- const C = $;
170
- console[C(230)](C(239), k), B();
161
+ await new Promise((I, v) => {
162
+ const D = d;
163
+ h[D(525)] = function(B) {
164
+ const P = D;
165
+ console[P(513)](P(512), B), v();
166
+ }, h[D(544)] = function(B) {
167
+ I();
168
+ }, h[D(529)] = function(B) {
169
+ const P = D;
170
+ console[P(513)](P(534), B), v();
171
171
  };
172
172
  });
173
- } catch (N) {
174
- console[y(226)](y(270), N);
173
+ } catch (I) {
174
+ console.warn(d(511), I);
175
175
  }
176
176
  }));
177
177
  }
178
- i();
179
- }, c[d(260)] = function(p) {
180
- l(p);
178
+ c();
179
+ }, s.onerror = function(u) {
180
+ f(u);
181
181
  };
182
182
  });
183
- } catch (c) {
184
- console.error(c, t(266));
183
+ } catch (s) {
184
+ console[t(513)](s, t(526));
185
185
  }
186
186
  return o;
187
187
  };
188
- function j() {
189
- const r = ["1464mvMiei", "237864JBnTLr", "createIndex", "info", "onerror", "10438893QpczMy", "2762094YVzJZu", "update", "Database connection closed, reconnecting...", "indexedDB", "打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因", "传入结构化克隆算法不支持的数据类型可能导致报错", "call", "all", "目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理", "4860399kEbqOd", "oncomplete", "4VdzWwr", "objectStore", "没有设置默认值", "235378QpXYjE", "deleteDB", "close", "事务失败", "数据库删除失败", "140VRAbTP", "length", "store不存在,请更新schema和DBVersion并重启前端服务", "getDB", "add", "target", "DBName", "onsuccess", "createObjectStore", "hasOwnProperty", "1UrIRyX", "updateStore", "warn", "openCursor", "result", "put", "error", "onupgradeneeded", "deleteStore", "主键查询结果:", "currentTarget", "mapDB", "您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.", "keyPath", "primaryKey", "主键插入失败", "数据更新成功", "keys", "map", "delete", "get", "数据更新失败没有request", "transaction", "4043600olVeJQ", "数据更新失败", "addEventListener", "163681jsedKz", "readwrite", "alert", "608zfClSO", "主键插入中止", "continue"];
190
- return j = function() {
191
- return r;
192
- }, j();
188
+ function W() {
189
+ const a = ["transaction", "DBName", "createObjectStore", "close", "hasOwnProperty", "primaryKey", "208156ZfrAJr", "warn", "delete", "1575928bFmnZg", "154LBDnQZ", "objectStore", "数据更新失败", "alert", "store不存在,请更新schema和DBVersion并重启前端服务", "length", "openCursor", "add", "15752fkogxb", "createIndex", "deleteDB", "299045NkkBTh", "请传入主键", "mapDB", "map", "102uEoUGM", "目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理", "主键插入中止", "error", "数据库删除失败", "call", "continue", "update", "deleteStore", "open", "result", "66891DVCnfv", "get", "getDataByKey", "数据删除失败", "onabort", "打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因", "52JGzdMb", "all", "onerror", "put", "数据更新失败没有request", "Database connection closed, reconnecting...", "target", "主键插入失败", "onsuccess", "keyPath", "数据更新成功", "主键查询结果:", "传入结构化克隆算法不支持的数据类型可能导致报错", "4779333CtWPbr", "currentTarget", "获取Database缺乏用户信息,请先传入对primaryKey的赋值", "indexedDB", "oncomplete", "事务失败", "634540WpNScH", "readwrite", "keys", "getDB", "4781SEkDBZ", "onupgradeneeded"];
190
+ return W = function() {
191
+ return a;
192
+ }, W();
193
193
  }
194
- function K(r, e) {
195
- const t = j();
196
- return K = function(a, n) {
197
- return a = a - 223, t[a];
198
- }, K(r, e);
194
+ function q(a, e) {
195
+ const t = W();
196
+ return q = function(r, n) {
197
+ return r = r - 496, t[r];
198
+ }, q(a, e);
199
199
  }
200
- let z = !1;
201
- g[D(284)] = async (r) => {
202
- const e = D, { mapDB: t, primaryKey: a } = r;
203
- return t ? a ? (z && await new Promise(async (n, o) => {
200
+ let Q = !1;
201
+ w[N(549)] = async (a, e) => {
202
+ const t = N, { mapDB: r, primaryKey: n } = a;
203
+ return r ? n ? (Q && await new Promise(async (o, i) => {
204
204
  const s = () => {
205
- z ? setTimeout(() => {
205
+ Q ? setTimeout(() => {
206
206
  s();
207
- }, 200) : n();
207
+ }, 200) : o();
208
208
  };
209
209
  s();
210
- }), !T && (z = !0, T = await H(t, a), T == null || T[e(249)](e(278), async () => {
211
- const n = e;
212
- console[n(259)](n(264)), T = await H(t, a);
213
- }), z = !1), T) : (console[e(226)]("获取Database缺乏用户信息,请先传入对primaryKey的赋值"), !1) : (console[e(226)]("必须传入数据库配置信息"), !1);
214
- }, g.getDataByKey = async (r, e) => {
215
- const t = D, { mapDB: a, tableName: n, primaryKey: o } = r, s = {};
216
- s[t(235)] = a, s[t(238)] = o;
217
- const c = await g[t(284)](s);
218
- if (!c)
210
+ }), !F && (Q = !0, F = await oe(r, n), F == null || F.addEventListener(t(555), async () => {
211
+ console.info(t(532)), F = await oe(r, n);
212
+ }), Q = !1), e && e(F), F) : (console[t(559)](t(542)), !1) : (console[t(559)]("必须传入数据库配置信息"), !1);
213
+ }, w[N(523)] = async (a, e) => {
214
+ const t = N, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
215
+ i[t(508)] = r, i[t(557)] = o;
216
+ const s = await w.getDB(i);
217
+ if (!s)
219
218
  return;
220
- const i = c.transaction([n]), l = i[t(274)](n), d = l[t(244)](o);
221
- return new Promise((p, u) => {
222
- const f = t;
223
- d[f(288)] = function(h) {
224
- const y = f;
225
- e(n + y(233) + d[y(228)]), p(d[y(228)]);
226
- }, d[f(260)] = function(h) {
227
- const y = f;
228
- console[y(230)](n + y(279) + h), u();
219
+ const c = s.transaction([n]), f = c[t(496)](n), p = f[t(522)](o);
220
+ return new Promise((u, l) => {
221
+ const y = t;
222
+ p.onsuccess = function(b) {
223
+ const d = q;
224
+ e && e(n + d(538) + p[d(520)]), u(p[d(520)]);
225
+ }, p[y(529)] = function(b) {
226
+ console.error(n + y(545) + b), l();
229
227
  };
230
228
  });
231
- }, g[D(225)] = async (r, e) => {
229
+ }, w.updateStore = async (a, e) => {
232
230
  var t;
233
- const a = D, { mapDB: n, tableName: o, updateData: s } = r;
234
- !s[n == null ? void 0 : n[a(238)]] && console[a(226)]("请传入主键" + n[a(238)]);
235
- const c = {};
236
- c[a(235)] = n, c[a(238)] = s[n == null ? void 0 : n[a(238)]];
237
- const i = await g.getDB(c);
238
- if (!i)
231
+ const r = N, { mapDB: n, tableName: o, updateData: i } = a;
232
+ !i[n == null ? void 0 : n[r(557)]] && console[r(559)](r(507) + n[r(557)]);
233
+ const s = {};
234
+ s.mapDB = n, s[r(557)] = i[n == null ? void 0 : n[r(557)]];
235
+ const c = await w[r(549)](s);
236
+ if (!c)
239
237
  return;
240
- let l = null;
238
+ let f = null;
241
239
  try {
242
- l = i[a(246)]([o], "readwrite").objectStore(o);
243
- } catch (f) {
244
- console[a(230)](a(283), f);
240
+ f = c[r(552)]([o], r(547)).objectStore(o);
241
+ } catch (y) {
242
+ console[r(513)](r(499), y);
245
243
  }
246
- let d = null, p = null;
247
- const u = await new Promise((f, h) => {
248
- const y = a, m = l[y(227)](s[n == null ? void 0 : n.primaryKey]);
249
- m[y(288)] = (b) => {
250
- f(b);
251
- }, m.onerror = (b) => {
252
- h(b);
244
+ let p = null, u = null;
245
+ const l = await new Promise((y, b) => {
246
+ const d = r, m = f[d(501)](i[n == null ? void 0 : n[d(557)]]);
247
+ m[d(535)] = (h) => {
248
+ y(h);
249
+ }, m.onerror = (h) => {
250
+ b(h);
253
251
  };
254
252
  });
255
- p = (t = u == null ? void 0 : u[a(286)]) == null ? void 0 : t[a(228)];
253
+ u = (t = l == null ? void 0 : l[r(533)]) == null ? void 0 : t[r(520)];
256
254
  try {
257
- p && (p == null ? void 0 : p[a(238)]) === s[n == null ? void 0 : n.primaryKey] ? d = p[a(263)](s) : d = l[a(229)](s);
258
- } catch (f) {
259
- console[a(230)](a(267), f, s);
255
+ u && (u == null ? void 0 : u.primaryKey) === i[n == null ? void 0 : n.primaryKey] ? p = u[r(517)](i) : p = f[r(530)](i);
256
+ } catch (y) {
257
+ console[r(513)](r(539), y, i);
260
258
  }
261
- new Promise((f, h) => {
262
- const y = a;
263
- !d && (console[y(230)](o + y(245)), h()), d[y(288)] = function(m) {
264
- e(o + y(240)), f();
265
- }, d[y(260)] = function(m) {
266
- const b = y;
267
- console[b(230)](o + b(248), m), h();
259
+ new Promise((y, b) => {
260
+ const d = r;
261
+ !p && (console[d(513)](o + d(531)), b()), p[d(535)] = function(m) {
262
+ e && e(o + d(537)), y();
263
+ }, p[d(529)] = function(m) {
264
+ const h = d;
265
+ console[h(513)](o + h(497), m), b();
268
266
  };
269
- }), p && p[a(255)]();
270
- }, g[D(232)] = async (r, e) => {
271
- const t = D, { mapDB: a, tableName: n, primaryKey: o } = r, s = {};
272
- s[t(235)] = a, s[t(238)] = o;
273
- const c = await g[t(284)](s);
274
- if (!c)
267
+ }), u && u[r(516)]();
268
+ }, w[N(518)] = async (a, e) => {
269
+ const t = N, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
270
+ i[t(508)] = r, i[t(557)] = o;
271
+ const s = await w.getDB(i);
272
+ if (!s)
275
273
  return;
276
- const i = c[t(246)]([n], t(251))[t(274)](n)[t(243)](o);
277
- return new Promise((l, d) => {
278
- const p = t;
279
- i[p(288)] = function(u) {
280
- e(n + "数据删除成功"), l();
281
- }, i.onerror = function(u) {
282
- console[p(230)](n + "数据删除失败" + u), d();
274
+ const c = s[t(552)]([n], t(547))[t(496)](n)[t(560)](o);
275
+ return new Promise((f, p) => {
276
+ const u = t;
277
+ c[u(535)] = function(l) {
278
+ e && e(n + "数据删除成功"), f();
279
+ }, c.onerror = function(l) {
280
+ const y = u;
281
+ console[y(513)](n + y(524) + l), p();
283
282
  };
284
283
  });
285
- }, g[D(277)] = async (r, e) => {
286
- const t = D, { mapDB: a } = r, n = window[t(265)].deleteDatabase(a[t(287)]);
287
- return new Promise((o, s) => {
288
- const c = t;
289
- n[c(288)] = (i) => {
290
- e(a[c(287)] + "数据库已删除"), o();
291
- }, n[c(260)] = (i) => {
292
- const l = c;
293
- console[l(230)](a[l(287)] + l(280) + i), s();
284
+ }, w[N(505)] = async (a, e) => {
285
+ const { mapDB: t } = a, r = window.indexedDB.deleteDatabase(t.DBName);
286
+ return new Promise((n, o) => {
287
+ const i = q;
288
+ r[i(535)] = (s) => {
289
+ e && e(t[i(553)] + "数据库已删除"), n();
290
+ }, r[i(529)] = (s) => {
291
+ const c = i;
292
+ console[c(513)](t[c(553)] + c(514) + s), o();
294
293
  };
295
294
  });
296
295
  };
297
- const Q = P;
298
- function E() {
299
- const r = ["error", "18qzGcVH", "4682604GbULBa", "6016003SPdUIY", "20065atPLOQ", "updateStore", "65UvpzlD", "6700512ZDDSvv", "handleData", "为空,请先调用handleData", "mapDB", "13110xITriW", "primaryKey", "deleteStore", "getDataByKey", "clearData", "7689BMhWoa", "404ipIPIB", "22929dseKps", "426mZTQfR", "8660kGxzIL", "tableName", "9mGIzFA", "updateData"];
300
- return E = function() {
301
- return r;
302
- }, E();
296
+ function K(a, e) {
297
+ const t = Z();
298
+ return K = function(r, n) {
299
+ return r = r - 125, t[r];
300
+ }, K(a, e);
301
+ }
302
+ function Z() {
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"];
304
+ return Z = function() {
305
+ return a;
306
+ }, Z();
303
307
  }
304
- (function(r, e) {
305
- const t = P, a = r();
308
+ const G = K;
309
+ (function(a, e) {
310
+ const t = K, r = a();
306
311
  for (; ; )
307
312
  try {
308
- if (parseInt(t(400)) / 1 * (-parseInt(t(405)) / 2) + parseInt(t(398)) / 3 * (-parseInt(t(397)) / 4) + parseInt(t(408)) / 5 * (parseInt(t(399)) / 6) + -parseInt(t(407)) / 7 + parseInt(t(387)) / 8 * (-parseInt(t(402)) / 9) + -parseInt(t(391)) / 10 * (-parseInt(t(396)) / 11) + parseInt(t(406)) / 12 * (parseInt(t(410)) / 13) === e)
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)
309
314
  break;
310
- a.push(a.shift());
315
+ r.push(r.shift());
311
316
  } catch {
312
- a.push(a.shift());
317
+ r.push(r.shift());
313
318
  }
314
- })(E, 605521);
315
- async function le(r, e) {
316
- const t = P, { tableName: a, propertiesKey: n, parameter: o, primaryKey: s, mapDB: c } = r;
317
- let i = null, l = { [c[t(392)]]: s };
318
- const d = {};
319
- d[t(390)] = c, d[t(401)] = a, d[t(392)] = s;
320
- const p = await g[t(394)](d);
321
- p && (l = { ...p, [c[t(392)]]: s }), l[n] = o;
322
- const u = {};
323
- return u[t(390)] = c, u[t(401)] = a, u.updateData = l, await g[t(409)](u), o && (i = o), e(i), i;
319
+ })(Z, 330152);
320
+ async function Be(a, e) {
321
+ const t = K, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
322
+ let c = null, f = { [s[t(138)]]: i };
323
+ const p = {};
324
+ p[t(132)] = s, p.tableName = r, p[t(138)] = i;
325
+ const u = await w[t(136)](p);
326
+ u && (f = { ...u, [s.primaryKey]: i }), f[n] = o;
327
+ const l = {};
328
+ return l[t(132)] = s, l.tableName = r, l[t(134)] = f, await w[t(129)](l), o && (c = o), e && e(c), c;
324
329
  }
325
- async function ue(r, e) {
326
- const t = P, { tableName: a, propertiesKey: n, primaryKey: o, mapDB: s } = r;
327
- let c = null;
328
- const i = {};
329
- i[t(390)] = s, i[t(401)] = a, i.primaryKey = o;
330
- const l = await g[t(394)](i);
331
- return l && (c = l[n]), e(c), c;
330
+ async function ke(a, e) {
331
+ const t = K, { tableName: r, propertiesKey: n, primaryKey: o, mapDB: i } = a;
332
+ let s = null;
333
+ const c = {};
334
+ c[t(132)] = i, c[t(146)] = r, c.primaryKey = o;
335
+ const f = await w[t(136)](c);
336
+ return f && (s = f[n]), e && e(s), s;
332
337
  }
333
- async function pe(r, e) {
334
- const t = P, { tableName: a, propertiesKey: n, parameter: o, primaryKey: s, mapDB: c } = r;
335
- let i = {};
336
- const l = {};
337
- l[t(390)] = c, l[t(401)] = a, l[t(392)] = s;
338
- const d = await g.getDataByKey(l);
338
+ async function xe(a, e) {
339
+ const t = K, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
340
+ let c = {};
341
+ const f = {};
342
+ f.mapDB = s, f[t(146)] = r, f[t(138)] = i;
343
+ const p = await w[t(136)](f);
339
344
  try {
340
- if (d) {
341
- i = { ...d[n], ...o };
342
- const p = { [c[t(392)]]: s }, u = p;
343
- u[n] = i;
344
- const f = {};
345
- f[t(390)] = c, f[t(401)] = a, f[t(403)] = u, await g[t(409)](f);
345
+ if (p) {
346
+ c = { ...p[n], ...o };
347
+ const u = { [s[t(138)]]: i }, l = u;
348
+ l[n] = c;
349
+ const y = {};
350
+ y[t(132)] = s, y[t(146)] = r, y[t(134)] = l, await w.updateStore(y);
346
351
  } else
347
- console.warn(a + t(389));
348
- } catch (p) {
349
- console.error(p);
352
+ console.warn(r + "为空,请先调用handleData");
353
+ } catch (u) {
354
+ console[t(135)](u);
350
355
  }
351
- return e(i), i;
352
- }
353
- function P(r, e) {
354
- const t = E();
355
- return P = function(a, n) {
356
- return a = a - 387, t[a];
357
- }, P(r, e);
356
+ return e && e(c), c;
358
357
  }
359
- async function de(r, e) {
360
- const t = P, { tableName: a, primaryKey: n, mapDB: o } = r;
361
- let s = null;
358
+ async function Ie(a, e) {
359
+ const t = K, { tableName: r, primaryKey: n, mapDB: o } = a;
360
+ let i = null;
362
361
  try {
363
- const c = {};
364
- c[t(390)] = o, c.tableName = a, c.primaryKey = n, await g[t(393)](c);
365
- } catch (c) {
366
- console[t(404)](c);
362
+ const s = {};
363
+ s.mapDB = o, s[t(146)] = r, s[t(138)] = n, await w[t(126)](s);
364
+ } catch (s) {
365
+ console.error(s);
367
366
  }
368
- return e(s), s;
367
+ return e && e(i), i;
369
368
  }
370
- const F = {};
371
- F[Q(388)] = le, F.getData = ue, F[Q(403)] = pe, F[Q(395)] = de;
372
- var v = L;
373
- (function(r, e) {
374
- for (var t = L, a = r(); ; )
369
+ const z = {};
370
+ z[G(139)] = Be, z[G(130)] = ke, z[G(134)] = xe, z[G(131)] = Ie;
371
+ var k = U;
372
+ (function(a, e) {
373
+ for (var t = U, r = a(); ; )
375
374
  try {
376
- var n = -parseInt(t(195)) / 1 * (-parseInt(t(179)) / 2) + -parseInt(t(196)) / 3 * (-parseInt(t(194)) / 4) + -parseInt(t(197)) / 5 + parseInt(t(183)) / 6 * (-parseInt(t(191)) / 7) + -parseInt(t(190)) / 8 + -parseInt(t(202)) / 9 * (-parseInt(t(199)) / 10) + -parseInt(t(203)) / 11 * (-parseInt(t(201)) / 12);
375
+ var n = -parseInt(t(385)) / 1 + parseInt(t(387)) / 2 + -parseInt(t(389)) / 3 + -parseInt(t(398)) / 4 * (parseInt(t(394)) / 5) + -parseInt(t(402)) / 6 + -parseInt(t(399)) / 7 + -parseInt(t(386)) / 8 * (-parseInt(t(400)) / 9);
377
376
  if (n === e)
378
377
  break;
379
- a.push(a.shift());
378
+ r.push(r.shift());
380
379
  } catch {
381
- a.push(a.shift());
380
+ r.push(r.shift());
382
381
  }
383
- })(V, 291935);
384
- var U = {};
385
- function V() {
386
- var r = ["mapDB-indexeddb-form-schema", "778390VHiMPL", "stores", "3383508RfiKTD", "63UERWuz", "22gvbCFO", "509514cRHqzj", "DBVersion", "formParams", "properties", "49908OxCuGa", "createIndex", "DBName", "primaryKey", "userId", "default", "unique", "562896ZFvrwm", "392gQpHIY", "DBStoreName", "queryParams", "8eQWvIE", "1FtIDQF", "5259FOfsNi", "2694745YrsVgs"];
387
- return V = function() {
388
- return r;
389
- }, V();
382
+ })(M, 363872);
383
+ var ce = {};
384
+ ce[k(397)] = !1;
385
+ var te = {};
386
+ te[k(384)] = ce, te[k(392)] = {};
387
+ var le = {};
388
+ function M() {
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
+ return M = function() {
391
+ return a;
392
+ }, M();
390
393
  }
391
- U[v(189)] = !1;
392
- var A = {};
393
- function L(r, e) {
394
- var t = V();
395
- return L = function(a, n) {
396
- a = a - 179;
397
- var o = t[a];
394
+ le[k(390)] = te;
395
+ function U(a, e) {
396
+ var t = M();
397
+ return U = function(r, n) {
398
+ r = r - 382;
399
+ var o = t[r];
398
400
  return o;
399
- }, L(r, e);
401
+ }, U(a, e);
400
402
  }
401
- A[v(184)] = U, A[v(188)] = {};
402
- var M = {};
403
- M[v(193)] = A;
404
- var W = {};
405
- W[v(192)] = v(181), W[v(182)] = M;
406
- var q = {};
407
- q[v(186)] = v(187), q[v(185)] = v(198), q[v(180)] = 1, q[v(200)] = [W];
408
- const fe = {
409
- formSchema: q
410
- }, ye = F, { handleData: me, getData: he } = ye, { formSchema: Y } = fe, be = async (r, e) => {
403
+ var re = {};
404
+ re[k(391)] = k(401), re[k(383)] = le;
405
+ var A = {};
406
+ A[k(395)] = "userId", A[k(382)] = k(393), A[k(388)] = 1, A[k(396)] = [re];
407
+ const Pe = {
408
+ formSchema: A
409
+ }, Ne = z, { handleData: Te, getData: Ke } = Ne, { formSchema: ue } = Pe, $e = async (a, e) => {
411
410
  var t;
412
- return e.parametersType === "url" && (r = {
413
- ...G.queryToData((t = e.$route) == null ? void 0 : t.query),
414
- ...r
415
- }), e.parametersType === "indexDB" && (r = {
416
- ...await he({
411
+ return e.parametersType === "url" && (a = {
412
+ ...se.queryToData((t = e.$route) == null ? void 0 : t.query),
413
+ ...a
414
+ }), e.parametersType === "indexDB" && (a = {
415
+ ...await Ke({
417
416
  tableName: "formParams",
418
417
  propertiesKey: e.$route.path || "defQueryParams",
419
418
  primaryKey: e.DBPrimaryKey || "default",
420
- mapDB: Y
419
+ mapDB: ue
421
420
  }),
422
- ...r
423
- }), r;
424
- }, ge = async (r, e) => {
421
+ ...a
422
+ }), a;
423
+ }, Fe = async (a, e) => {
425
424
  e.parametersType === "url" && await e.$router.push({
426
- query: G.paramsToQuery({ ...r })
427
- }), e.parametersType === "indexDB" && await me({
425
+ query: se.paramsToQuery({ ...a })
426
+ }), e.parametersType === "indexDB" && await Te({
428
427
  tableName: "formParams",
429
428
  propertiesKey: e.$route.path || "defQueryParams",
430
- parameter: { ...r },
429
+ parameter: { ...a },
431
430
  primaryKey: e.DBPrimaryKey || "default",
432
- mapDB: Y
431
+ mapDB: ue
433
432
  });
434
- }, _e = {
435
- makeParamsByType: be,
436
- saveParamsByType: ge
437
- }, Z = G, O = _e, _ = {};
438
- let S = null;
439
- const J = async (r, e) => {
440
- window.indexedDB || window.alert(
441
- "您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available."
442
- );
443
- const { DBName: t = "", DBVersion: a = 1 } = r;
444
- let n, o = !1;
433
+ }, Ce = {
434
+ makeParamsByType: $e,
435
+ saveParamsByType: Fe
436
+ }, pe = se, R = Ce, T = O;
437
+ (function(a, e) {
438
+ const t = O, r = a();
439
+ for (; ; )
440
+ try {
441
+ 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)
442
+ break;
443
+ r.push(r.shift());
444
+ } catch {
445
+ r.push(r.shift());
446
+ }
447
+ })(H, 819524);
448
+ const S = {};
449
+ let C = null;
450
+ const ie = async (a, e) => {
451
+ const t = O;
452
+ !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
+ const { DBName: r = "", DBVersion: n = 1 } = a;
454
+ let o, i = !1;
445
455
  try {
446
- const s = window.indexedDB.open(t, a);
447
- await new Promise((c, i) => {
448
- s.onupgradeneeded = async function(l) {
449
- const d = l.target.result, { stores: p = [] } = r;
450
- await Promise.all(
451
- p.map(async (u) => {
452
- const { DBStoreName: f = "", properties: h = {} } = u;
453
- try {
454
- const y = l.currentTarget.result.createObjectStore(
455
- f,
456
- {
457
- keyPath: r.primaryKey
458
- }
459
- );
460
- if (Object.keys(h).length === 0) {
461
- console.warn(`${f}没有设置默认值`);
462
- return;
463
- }
464
- for (const m in h)
465
- if (h.hasOwnProperty.call(h, m)) {
466
- const b = h[m];
467
- y.createIndex(m, m, { ...b.createIndex });
468
- }
469
- } catch (y) {
470
- console.warn(y);
456
+ const s = window[t(543)][t(519)](r, n);
457
+ await new Promise((c, f) => {
458
+ const p = t;
459
+ s[p(551)] = async function(u) {
460
+ const l = p, y = u.target.result, { stores: b = [] } = a;
461
+ await Promise.all(b[l(509)](async (d) => {
462
+ const m = l, { DBStoreName: h = "", properties: _ = {} } = d;
463
+ try {
464
+ const g = {};
465
+ g[m(536)] = a[m(557)];
466
+ const I = u[m(541)][m(520)][m(554)](h, g);
467
+ if (Object[m(548)](_)[m(500)] === 0) {
468
+ console[m(559)](h + "没有设置默认值");
469
+ return;
471
470
  }
472
- })
473
- ), n = d, o = !0;
474
- }, s.onsuccess = async function(l) {
475
- if (n = this.result, o) {
476
- const { stores: d = [] } = r;
477
- await Promise.all(
478
- d.map(async (p) => {
479
- const { DBStoreName: u = "" } = p, f = n.transaction(
480
- [u],
481
- "readwrite"
482
- ), h = f.objectStore(u), y = {};
483
- y[r.primaryKey] = e, h.add(y);
484
- try {
485
- await new Promise((m, b) => {
486
- f.onabort = function(w) {
487
- console.error("主键插入中止", w), b();
488
- }, f.oncomplete = function(w) {
489
- m();
490
- }, f.onerror = function(w) {
491
- console.error("主键插入失败", w), b();
492
- };
493
- });
494
- } catch (m) {
495
- console.warn(
496
- "目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理",
497
- m
498
- );
471
+ for (const v in _)
472
+ if (_[m(556)][m(515)](_, v)) {
473
+ const D = _[v], B = { ...D.createIndex };
474
+ I[m(504)](v, v, B);
499
475
  }
500
- })
501
- );
476
+ } catch (g) {
477
+ console[m(559)](g);
478
+ }
479
+ })), o = y, i = !0;
480
+ }, s[p(535)] = async function(u) {
481
+ const l = p;
482
+ if (o = this[l(520)], i) {
483
+ const { stores: y = [] } = a;
484
+ await Promise[l(528)](y[l(509)](async (b) => {
485
+ const d = l, { DBStoreName: m = "" } = b, h = o[d(552)]([m], d(547)), _ = h[d(496)](m), g = {};
486
+ g[a[d(557)]] = e, _[d(502)](g);
487
+ try {
488
+ await new Promise((I, v) => {
489
+ const D = d;
490
+ h[D(525)] = function(B) {
491
+ const P = D;
492
+ console[P(513)](P(512), B), v();
493
+ }, h[D(544)] = function(B) {
494
+ I();
495
+ }, h[D(529)] = function(B) {
496
+ const P = D;
497
+ console[P(513)](P(534), B), v();
498
+ };
499
+ });
500
+ } catch (I) {
501
+ console.warn(d(511), I);
502
+ }
503
+ }));
502
504
  }
503
505
  c();
504
- }, s.onerror = function(l) {
505
- i(l);
506
+ }, s.onerror = function(u) {
507
+ f(u);
506
508
  };
507
509
  });
508
510
  } catch (s) {
509
- console.error(
510
- s,
511
- "打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因"
512
- );
511
+ console[t(513)](s, t(526));
513
512
  }
514
- return n;
513
+ return o;
515
514
  };
516
- let R = !1;
517
- _.getDB = async (r, e) => {
518
- const { mapDB: t, primaryKey: a } = r;
519
- return t ? a ? (R && await new Promise(async (n, o) => {
515
+ function H() {
516
+ const a = ["transaction", "DBName", "createObjectStore", "close", "hasOwnProperty", "primaryKey", "208156ZfrAJr", "warn", "delete", "1575928bFmnZg", "154LBDnQZ", "objectStore", "数据更新失败", "alert", "store不存在,请更新schema和DBVersion并重启前端服务", "length", "openCursor", "add", "15752fkogxb", "createIndex", "deleteDB", "299045NkkBTh", "请传入主键", "mapDB", "map", "102uEoUGM", "目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理", "主键插入中止", "error", "数据库删除失败", "call", "continue", "update", "deleteStore", "open", "result", "66891DVCnfv", "get", "getDataByKey", "数据删除失败", "onabort", "打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因", "52JGzdMb", "all", "onerror", "put", "数据更新失败没有request", "Database connection closed, reconnecting...", "target", "主键插入失败", "onsuccess", "keyPath", "数据更新成功", "主键查询结果:", "传入结构化克隆算法不支持的数据类型可能导致报错", "4779333CtWPbr", "currentTarget", "获取Database缺乏用户信息,请先传入对primaryKey的赋值", "indexedDB", "oncomplete", "事务失败", "634540WpNScH", "readwrite", "keys", "getDB", "4781SEkDBZ", "onupgradeneeded"];
517
+ return H = function() {
518
+ return a;
519
+ }, H();
520
+ }
521
+ function O(a, e) {
522
+ const t = H();
523
+ return O = function(r, n) {
524
+ return r = r - 496, t[r];
525
+ }, O(a, e);
526
+ }
527
+ let V = !1;
528
+ S[T(549)] = async (a, e) => {
529
+ const t = T, { mapDB: r, primaryKey: n } = a;
530
+ return r ? n ? (V && await new Promise(async (o, i) => {
520
531
  const s = () => {
521
- R ? setTimeout(() => {
532
+ V ? setTimeout(() => {
522
533
  s();
523
- }, 200) : n();
534
+ }, 200) : o();
524
535
  };
525
536
  s();
526
- }), S || (R = !0, S = await J(t, a), S == null || S.addEventListener("close", async () => {
527
- console.info("Database connection closed, reconnecting..."), S = await J(t, a);
528
- }), R = !1), e && e(S), S) : (console.warn("获取Database缺乏用户信息,请先传入对primaryKey的赋值"), !1) : (console.warn("必须传入数据库配置信息"), !1);
529
- };
530
- _.getDataByKey = async (r, e) => {
531
- const { mapDB: t, tableName: a, primaryKey: n } = r, o = await _.getDB({ mapDB: t, primaryKey: n });
532
- if (!o)
537
+ }), !C && (V = !0, C = await ie(r, n), C == null || C.addEventListener(t(555), async () => {
538
+ console.info(t(532)), C = await ie(r, n);
539
+ }), V = !1), e && e(C), C) : (console[t(559)](t(542)), !1) : (console[t(559)]("必须传入数据库配置信息"), !1);
540
+ }, S[T(523)] = async (a, e) => {
541
+ const t = T, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
542
+ i[t(508)] = r, i[t(557)] = o;
543
+ const s = await S.getDB(i);
544
+ if (!s)
533
545
  return;
534
- const i = o.transaction([a]).objectStore(a).get(n);
535
- return new Promise((l, d) => {
536
- i.onsuccess = function(p) {
537
- e && e(`${a}主键查询结果:${i.result}`), l(i.result);
538
- }, i.onerror = function(p) {
539
- console.error(`${a}事务失败` + p), d();
546
+ const c = s.transaction([n]), f = c[t(496)](n), p = f[t(522)](o);
547
+ return new Promise((u, l) => {
548
+ const y = t;
549
+ p.onsuccess = function(b) {
550
+ const d = O;
551
+ e && e(n + d(538) + p[d(520)]), u(p[d(520)]);
552
+ }, p[y(529)] = function(b) {
553
+ console.error(n + y(545) + b), l();
540
554
  };
541
555
  });
542
- };
543
- _.updateStore = async (r, e) => {
544
- var d;
545
- const { mapDB: t, tableName: a, updateData: n } = r;
546
- n[t == null ? void 0 : t.primaryKey] || console.warn(`请传入主键${t.primaryKey}`);
547
- const o = await _.getDB({
548
- mapDB: t,
549
- primaryKey: n[t == null ? void 0 : t.primaryKey]
550
- });
551
- if (!o)
556
+ }, S.updateStore = async (a, e) => {
557
+ var t;
558
+ const r = T, { mapDB: n, tableName: o, updateData: i } = a;
559
+ !i[n == null ? void 0 : n[r(557)]] && console[r(559)](r(507) + n[r(557)]);
560
+ const s = {};
561
+ s.mapDB = n, s[r(557)] = i[n == null ? void 0 : n[r(557)]];
562
+ const c = await S[r(549)](s);
563
+ if (!c)
552
564
  return;
553
- let s = null;
565
+ let f = null;
554
566
  try {
555
- s = o.transaction([a], "readwrite").objectStore(a);
556
- } catch (p) {
557
- console.error("store不存在,请更新schema和DBVersion并重启前端服务", p);
567
+ f = c[r(552)]([o], r(547)).objectStore(o);
568
+ } catch (y) {
569
+ console[r(513)](r(499), y);
558
570
  }
559
- let c = null, i = null;
560
- const l = await new Promise((p, u) => {
561
- const f = s.openCursor(n[t == null ? void 0 : t.primaryKey]);
562
- f.onsuccess = (h) => {
563
- p(h);
564
- }, f.onerror = (h) => {
565
- u(h);
571
+ let p = null, u = null;
572
+ const l = await new Promise((y, b) => {
573
+ const d = r, m = f[d(501)](i[n == null ? void 0 : n[d(557)]]);
574
+ m[d(535)] = (h) => {
575
+ y(h);
576
+ }, m.onerror = (h) => {
577
+ b(h);
566
578
  };
567
579
  });
568
- i = (d = l == null ? void 0 : l.target) == null ? void 0 : d.result;
580
+ u = (t = l == null ? void 0 : l[r(533)]) == null ? void 0 : t[r(520)];
569
581
  try {
570
- i && (i == null ? void 0 : i.primaryKey) === n[t == null ? void 0 : t.primaryKey] ? c = i.update(n) : c = s.put(n);
571
- } catch (p) {
572
- console.error(
573
- "传入结构化克隆算法不支持的数据类型可能导致报错",
574
- p,
575
- n
576
- );
582
+ u && (u == null ? void 0 : u.primaryKey) === i[n == null ? void 0 : n.primaryKey] ? p = u[r(517)](i) : p = f[r(530)](i);
583
+ } catch (y) {
584
+ console[r(513)](r(539), y, i);
577
585
  }
578
- new Promise((p, u) => {
579
- c || (console.error(`${a}数据更新失败没有request`), u()), c.onsuccess = function(f) {
580
- e && e(`${a}数据更新成功`), p();
581
- }, c.onerror = function(f) {
582
- console.error(`${a}数据更新失败`, f), u();
586
+ new Promise((y, b) => {
587
+ const d = r;
588
+ !p && (console[d(513)](o + d(531)), b()), p[d(535)] = function(m) {
589
+ e && e(o + d(537)), y();
590
+ }, p[d(529)] = function(m) {
591
+ const h = d;
592
+ console[h(513)](o + h(497), m), b();
583
593
  };
584
- }), i && i.continue();
585
- };
586
- _.deleteStore = async (r, e) => {
587
- const { mapDB: t, tableName: a, primaryKey: n } = r, o = await _.getDB({ mapDB: t, primaryKey: n });
588
- if (!o)
594
+ }), u && u[r(516)]();
595
+ }, S[T(518)] = async (a, e) => {
596
+ const t = T, { mapDB: r, tableName: n, primaryKey: o } = a, i = {};
597
+ i[t(508)] = r, i[t(557)] = o;
598
+ const s = await S.getDB(i);
599
+ if (!s)
589
600
  return;
590
- const s = o.transaction([a], "readwrite").objectStore(a).delete(n);
591
- return new Promise((c, i) => {
592
- s.onsuccess = function(l) {
593
- e && e(`${a}数据删除成功`), c();
594
- }, s.onerror = function(l) {
595
- console.error(`${a}数据删除失败` + l), i();
601
+ const c = s[t(552)]([n], t(547))[t(496)](n)[t(560)](o);
602
+ return new Promise((f, p) => {
603
+ const u = t;
604
+ c[u(535)] = function(l) {
605
+ e && e(n + "数据删除成功"), f();
606
+ }, c.onerror = function(l) {
607
+ const y = u;
608
+ console[y(513)](n + y(524) + l), p();
596
609
  };
597
610
  });
598
- };
599
- _.deleteDB = async (r, e) => {
600
- const { mapDB: t } = r, a = window.indexedDB.deleteDatabase(t.DBName);
611
+ }, S[T(505)] = async (a, e) => {
612
+ const { mapDB: t } = a, r = window.indexedDB.deleteDatabase(t.DBName);
601
613
  return new Promise((n, o) => {
602
- a.onsuccess = (s) => {
603
- e && e(`${t.DBName}数据库已删除`), n();
604
- }, a.onerror = (s) => {
605
- console.error(`${t.DBName}数据库删除失败` + s), o();
614
+ const i = O;
615
+ r[i(535)] = (s) => {
616
+ e && e(t[i(553)] + "数据库已删除"), n();
617
+ }, r[i(529)] = (s) => {
618
+ const c = i;
619
+ console[c(513)](t[c(553)] + c(514) + s), o();
606
620
  };
607
621
  });
608
622
  };
609
- async function ve(r, e) {
610
- const { tableName: t, propertiesKey: a, parameter: n, primaryKey: o, mapDB: s } = r;
611
- let c = null, i = {
612
- [s.primaryKey]: o
613
- };
614
- const l = await _.getDataByKey({ mapDB: s, tableName: t, primaryKey: o });
615
- return l && (i = {
616
- ...l,
617
- [s.primaryKey]: o
618
- }), i[a] = n, await _.updateStore({ mapDB: s, tableName: t, updateData: i }), n && (c = n), e && e(c), c;
623
+ function $(a, e) {
624
+ const t = X();
625
+ return $ = function(r, n) {
626
+ return r = r - 125, t[r];
627
+ }, $(a, e);
628
+ }
629
+ function X() {
630
+ const a = ["updateData", "error", "getDataByKey", "531aQoQZo", "primaryKey", "handleData", "2kSsgxs", "777jFjQPc", "1271805RJVSFy", "546pnZEJw", "3522904vvFeGW", "4wGSwDA", "tableName", "780ChApSf", "deleteStore", "655364nEjUrb", "3705144rIEFqv", "updateStore", "getData", "clearData", "mapDB", "3003845nIJAzp"];
631
+ return X = function() {
632
+ return a;
633
+ }, X();
619
634
  }
620
- async function we(r, e) {
621
- const { tableName: t, propertiesKey: a, primaryKey: n, mapDB: o } = r;
635
+ const J = $;
636
+ (function(a, e) {
637
+ const t = $, r = a();
638
+ for (; ; )
639
+ try {
640
+ 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)
641
+ break;
642
+ r.push(r.shift());
643
+ } catch {
644
+ r.push(r.shift());
645
+ }
646
+ })(X, 330152);
647
+ async function qe(a, e) {
648
+ const t = $, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
649
+ let c = null, f = { [s[t(138)]]: i };
650
+ const p = {};
651
+ p[t(132)] = s, p.tableName = r, p[t(138)] = i;
652
+ const u = await S[t(136)](p);
653
+ u && (f = { ...u, [s.primaryKey]: i }), f[n] = o;
654
+ const l = {};
655
+ return l[t(132)] = s, l.tableName = r, l[t(134)] = f, await S[t(129)](l), o && (c = o), e && e(c), c;
656
+ }
657
+ async function Oe(a, e) {
658
+ const t = $, { tableName: r, propertiesKey: n, primaryKey: o, mapDB: i } = a;
622
659
  let s = null;
623
- const c = await _.getDataByKey({ mapDB: o, tableName: t, primaryKey: n });
624
- return c && (s = c[a]), e && e(s), s;
660
+ const c = {};
661
+ c[t(132)] = i, c[t(146)] = r, c.primaryKey = o;
662
+ const f = await S[t(136)](c);
663
+ return f && (s = f[n]), e && e(s), s;
625
664
  }
626
- async function De(r, e) {
627
- const { tableName: t, propertiesKey: a, parameter: n, primaryKey: o, mapDB: s } = r;
665
+ async function Ee(a, e) {
666
+ const t = $, { tableName: r, propertiesKey: n, parameter: o, primaryKey: i, mapDB: s } = a;
628
667
  let c = {};
629
- const i = await _.getDataByKey({ mapDB: s, tableName: t, primaryKey: o });
668
+ const f = {};
669
+ f.mapDB = s, f[t(146)] = r, f[t(138)] = i;
670
+ const p = await S[t(136)](f);
630
671
  try {
631
- if (i) {
632
- c = { ...i[a], ...n };
633
- const d = {
634
- [s.primaryKey]: o
635
- };
636
- d[a] = c, await _.updateStore({ mapDB: s, tableName: t, updateData: d });
672
+ if (p) {
673
+ c = { ...p[n], ...o };
674
+ const u = { [s[t(138)]]: i }, l = u;
675
+ l[n] = c;
676
+ const y = {};
677
+ y[t(132)] = s, y[t(146)] = r, y[t(134)] = l, await S.updateStore(y);
637
678
  } else
638
- console.warn(`${t}为空,请先调用handleData`);
639
- } catch (l) {
640
- console.error(l);
679
+ console.warn(r + "为空,请先调用handleData");
680
+ } catch (u) {
681
+ console[t(135)](u);
641
682
  }
642
683
  return e && e(c), c;
643
684
  }
644
- async function Se(r, e) {
645
- const { tableName: t, primaryKey: a, mapDB: n } = r;
646
- let o = null;
685
+ async function ze(a, e) {
686
+ const t = $, { tableName: r, primaryKey: n, mapDB: o } = a;
687
+ let i = null;
647
688
  try {
648
- await _.deleteStore({ mapDB: n, tableName: t, primaryKey: a });
689
+ const s = {};
690
+ s.mapDB = o, s[t(146)] = r, s[t(138)] = n, await S[t(126)](s);
649
691
  } catch (s) {
650
692
  console.error(s);
651
693
  }
652
- return e && e(o), o;
694
+ return e && e(i), i;
653
695
  }
654
- const Pe = {
655
- handleData: ve,
656
- getData: we,
657
- updateData: De,
658
- clearData: Se
659
- }, xe = {
660
- primaryKey: "userId",
661
- DBName: "mapDB-indexeddb-form-schema",
662
- DBVersion: 1,
663
- // 更改了stores的内容后必须更新DBVersion以刷新数据库数据
664
- stores: [
665
- {
666
- DBStoreName: "formParams",
667
- properties: {
668
- queryParams: { createIndex: { unique: !1 }, default: {} }
669
- }
696
+ const L = {};
697
+ L[J(139)] = qe, L[J(130)] = Oe, L[J(134)] = Ee, L[J(131)] = ze;
698
+ var x = ee;
699
+ (function(a, e) {
700
+ for (var t = ee, r = a(); ; )
701
+ try {
702
+ var n = -parseInt(t(385)) / 1 + parseInt(t(387)) / 2 + -parseInt(t(389)) / 3 + -parseInt(t(398)) / 4 * (parseInt(t(394)) / 5) + -parseInt(t(402)) / 6 + -parseInt(t(399)) / 7 + -parseInt(t(386)) / 8 * (-parseInt(t(400)) / 9);
703
+ if (n === e)
704
+ break;
705
+ r.push(r.shift());
706
+ } catch {
707
+ r.push(r.shift());
670
708
  }
671
- ]
672
- // required: ["userId"],
673
- // 设置加密的字段,除了primaryKey字段都加上
674
- // encrypted: ['lngLat', 'drivingStartLnglat']
675
- // attachments: {
676
- // encrypted: true // 存入附件 if true, the attachment-data will be encrypted with the db-password
677
- // }
678
- }, X = {
679
- formSchema: xe
680
- }, ee = Pe;
681
- const { getData: Be } = ee, { formSchema: ke } = X, Te = {
709
+ })(Y, 363872);
710
+ var fe = {};
711
+ fe[x(397)] = !1;
712
+ var ae = {};
713
+ ae[x(384)] = fe, ae[x(392)] = {};
714
+ var de = {};
715
+ function Y() {
716
+ 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
+ return Y = function() {
718
+ return a;
719
+ }, Y();
720
+ }
721
+ de[x(390)] = ae;
722
+ function ee(a, e) {
723
+ var t = Y();
724
+ return ee = function(r, n) {
725
+ r = r - 382;
726
+ var o = t[r];
727
+ return o;
728
+ }, ee(a, e);
729
+ }
730
+ var ne = {};
731
+ ne[x(391)] = x(401), ne[x(383)] = de;
732
+ var j = {};
733
+ j[x(395)] = "userId", j[x(382)] = x(393), j[x(388)] = 1, j[x(396)] = [ne];
734
+ const ye = {
735
+ formSchema: j
736
+ }, me = L;
737
+ const { getData: Ae } = me, { formSchema: Le } = ye, je = {
682
738
  name: "GeneralBasicForm",
683
739
  components: {
684
- InputArchive: (r) => {
685
- const { templateEle: e } = r;
740
+ InputArchive: (a) => {
741
+ const { templateEle: e } = a;
686
742
  return e();
687
743
  },
688
- VerificationButton: oe
744
+ VerificationButton: De
689
745
  },
690
746
  props: {
691
747
  showSearch: {
@@ -735,6 +791,7 @@ const { getData: Be } = ee, { formSchema: ke } = X, Te = {
735
791
  default: "url"
736
792
  },
737
793
  DBPrimaryKey: {
794
+ // indexDB的primaryKey,一般配合parametersType==="indexDB"使用
738
795
  type: [String, Number],
739
796
  required: !1
740
797
  },
@@ -815,10 +872,10 @@ const { getData: Be } = ee, { formSchema: ke } = X, Te = {
815
872
  // },
816
873
  watch: {
817
874
  formData: {
818
- handler(r, e) {
819
- JSON.stringify(r) !== JSON.stringify(this.queryParams) && (this.queryParams = {
875
+ handler(a, e) {
876
+ JSON.stringify(a) !== JSON.stringify(this.queryParams) && (this.queryParams = {
820
877
  ...this.queryParams,
821
- ...r
878
+ ...a
822
879
  });
823
880
  },
824
881
  // watch 默认是懒执行的:仅当数据源变化时,才会执行回调。但在某些场景中,我们希望在创建侦听器时,立即执行一遍回调。举例来说,我们想请求一些初始数据,然后在相关状态更改时重新请求数据。
@@ -827,82 +884,82 @@ const { getData: Be } = ee, { formSchema: ke } = X, Te = {
827
884
  deep: !0
828
885
  },
829
886
  queryParams: {
830
- handler(r) {
831
- this.$emit("update:formData", { ...r });
887
+ handler(a) {
888
+ this.$emit("update:formData", { ...a });
832
889
  },
833
890
  deep: !0
834
891
  },
835
892
  $attrs: {
836
- handler(r) {
893
+ handler(a) {
837
894
  this.attrs = {
838
895
  ...this.attrs,
839
- ...r
896
+ ...a
840
897
  };
841
898
  },
842
899
  immediate: !0,
843
900
  deep: !0
844
901
  },
845
- loading(r) {
846
- this.formLoading !== r && (this.formLoading = r);
902
+ loading(a) {
903
+ this.formLoading !== a && (this.formLoading = a);
847
904
  },
848
- formLoading(r) {
849
- this.loading !== r && this.$emit("update:loading", r);
905
+ formLoading(a) {
906
+ this.loading !== a && this.$emit("update:loading", a);
850
907
  }
851
908
  },
852
909
  methods: {
853
910
  /** 搜索按钮操作 */
854
- async handleQuery(r = {}) {
855
- r.defaultPageFirst ?? (r.defaultPageFirst = !0);
911
+ async handleQuery(a = {}) {
912
+ a.defaultPageFirst ?? (a.defaultPageFirst = !0);
856
913
  const e = { [this.currentPageKey]: this.defCurrentPage };
857
914
  let t = {
858
915
  ...e,
859
916
  ...this.queryParams
860
917
  };
861
- console.log(t, "searchParams1"), t = await O.makeParamsByType(t, this), console.log(t, "searchParams2"), r.defaultPageFirst && (t = {
918
+ t = await R.makeParamsByType(t, this), a.defaultPageFirst && (t = {
862
919
  ...t,
863
920
  ...e
864
- }), await O.saveParamsByType(t, this), this.getList({
921
+ }), await R.saveParamsByType(t, this), this.getList({
865
922
  ...t
866
923
  });
867
924
  },
868
925
  /** 重置按钮操作 */
869
926
  async resetQuery() {
870
927
  this.$refs.queryFormRef.resetFields();
871
- const r = { [this.currentPageKey]: this.defCurrentPage };
872
- await O.saveParamsByType(r, this), this.queryParams = { ...r }, this.afterReset(), this.handleQuery();
928
+ const a = { [this.currentPageKey]: this.defCurrentPage };
929
+ await R.saveParamsByType(a, this), this.queryParams = { ...a }, this.afterReset(), this.handleQuery();
873
930
  },
874
931
  initQueryParams() {
875
932
  var e;
876
- let r = {
933
+ let a = {
877
934
  [this.pageSizeKey]: this.defPageSize
878
935
  };
879
- return this.parametersType === "url" && (r = { ...r, ...Z.queryToData((e = this.$route) == null ? void 0 : e.query) }), this.parametersType === "indexDB" && Be(
936
+ return this.parametersType === "url" && (a = { ...a, ...pe.queryToData((e = this.$route) == null ? void 0 : e.query) }), this.parametersType === "indexDB" && Ae(
880
937
  {
881
938
  tableName: "formParams",
882
939
  propertiesKey: this.$route.path || "defQueryParams",
883
940
  primaryKey: this.DBPrimaryKey || "default",
884
- mapDB: ke
941
+ mapDB: Le
885
942
  },
886
943
  (t) => {
887
- this.queryParams = { ...r, ...t };
944
+ this.queryParams = { ...a, ...t };
888
945
  }
889
946
  ), this.queryWhenReady && this.$nextTick(() => {
890
947
  this.handleQuery({ defaultPageFirst: !1 });
891
- }), r;
948
+ }), a;
892
949
  },
893
950
  currentInputComponent() {
894
951
  return "input-archive";
895
952
  },
896
- getItemRules(r) {
897
- const { type: e, rules: t = [] } = r, a = [...t];
898
- return this.noInputBlank && e === "input" && a.push({
953
+ getItemRules(a) {
954
+ const { type: e, rules: t = [] } = a, r = [...t];
955
+ return this.noInputBlank && e === "input" && r.push({
899
956
  pattern: this.trimRegex,
900
957
  message: "请输入(不能仅输入空格)",
901
958
  trigger: "blur"
902
- }), a;
959
+ }), r;
903
960
  },
904
- getInputSetting(r) {
905
- const { inputSetting: e, setting: t } = r;
961
+ getInputSetting(a) {
962
+ const { inputSetting: e, setting: t } = a;
906
963
  return {
907
964
  ...this.inputSetting,
908
965
  ...e,
@@ -911,110 +968,110 @@ const { getData: Be } = ee, { formSchema: ke } = X, Te = {
911
968
  },
912
969
  defaultFunction() {
913
970
  },
914
- getInputEvents(r) {
971
+ getInputEvents(a) {
915
972
  return {
916
- blur: r.blur || this.defaultFunction,
917
- focus: r.focus || this.defaultFunction,
918
- change: r.change || this.defaultFunction,
919
- input: r.input || this.defaultFunction,
920
- clear: r.clear || this.defaultFunction
973
+ blur: a.blur || this.defaultFunction,
974
+ focus: a.focus || this.defaultFunction,
975
+ change: a.change || this.defaultFunction,
976
+ input: a.input || this.defaultFunction,
977
+ clear: a.clear || this.defaultFunction
921
978
  };
922
979
  },
923
- getSelectSetting(r) {
924
- const { selectSetting: e, setting: t } = r;
980
+ getSelectSetting(a) {
981
+ const { selectSetting: e, setting: t } = a;
925
982
  return {
926
983
  ...this.selectSetting,
927
984
  ...e,
928
985
  ...t
929
986
  };
930
987
  },
931
- getSelectEvents(r) {
988
+ getSelectEvents(a) {
932
989
  return {
933
- change: r.change || this.defaultFunction,
934
- "visible-change": r["visible-change"] || this.defaultFunction,
935
- "remove-tag": r["remove-tag"] || this.defaultFunction,
936
- "expand-change": r["expand-change"] || this.defaultFunction,
937
- clear: r.clear || this.defaultFunction,
938
- blur: r.blur || this.defaultFunction,
939
- focus: r.focus || this.defaultFunction
990
+ change: a.change || this.defaultFunction,
991
+ "visible-change": a["visible-change"] || this.defaultFunction,
992
+ "remove-tag": a["remove-tag"] || this.defaultFunction,
993
+ "expand-change": a["expand-change"] || this.defaultFunction,
994
+ clear: a.clear || this.defaultFunction,
995
+ blur: a.blur || this.defaultFunction,
996
+ focus: a.focus || this.defaultFunction
940
997
  };
941
998
  },
942
- getDatePackerSetting(r) {
943
- const { datePackerSetting: e, setting: t } = r;
999
+ getDatePackerSetting(a) {
1000
+ const { datePackerSetting: e, setting: t } = a;
944
1001
  return {
945
1002
  ...this.datePackerSetting,
946
1003
  ...e,
947
1004
  ...t
948
1005
  };
949
1006
  },
950
- getDatePackerEvents(r) {
1007
+ getDatePackerEvents(a) {
951
1008
  return {
952
- change: r.change || this.defaultFunction,
953
- blur: r.blur || this.defaultFunction,
954
- focus: r.focus || this.defaultFunction
1009
+ change: a.change || this.defaultFunction,
1010
+ blur: a.blur || this.defaultFunction,
1011
+ focus: a.focus || this.defaultFunction
955
1012
  };
956
1013
  },
957
- getCheckboxGroupSetting(r) {
958
- const { checkboxGroupSetting: e, setting: t } = r;
1014
+ getCheckboxGroupSetting(a) {
1015
+ const { checkboxGroupSetting: e, setting: t } = a;
959
1016
  return {
960
1017
  ...e,
961
1018
  ...t
962
1019
  };
963
1020
  },
964
- getCheckboxGroupEvents(r) {
1021
+ getCheckboxGroupEvents(a) {
965
1022
  return {
966
- change: r.change || this.defaultFunction
1023
+ change: a.change || this.defaultFunction
967
1024
  };
968
1025
  }
969
1026
  }
970
1027
  };
971
- var Ke = function() {
1028
+ var Re = function() {
972
1029
  var e = this, t = e._self._c;
973
- 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(a) {
974
- return t("el-form-item", e._b({ key: a.prop, attrs: { rules: e.getItemRules(a) } }, "el-form-item", a, !1), [a.type === "input" ? t("el-input", e._g(e._b({ attrs: { size: e.size }, nativeOn: { keydown: function(n) {
1030
+ 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) {
1031
+ 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) {
975
1032
  return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.getList.apply(null, arguments);
976
- } }, scopedSlots: e._u([e._l(a.template, function(n, o) {
1033
+ } }, scopedSlots: e._u([e._l(r.template, function(n, o) {
977
1034
  return { key: o, fn: function() {
978
1035
  return [n ? t(e.currentInputComponent(), { key: o, tag: "component", attrs: { templateEle: n } }) : e._e()];
979
1036
  }, proxy: !0 };
980
- })], null, !0), model: { value: e.queryParams[a.prop], callback: function(n) {
981
- e.$set(e.queryParams, a.prop, n);
982
- }, expression: "queryParams[item.prop]" } }, "el-input", e.getInputSetting(a), !1), e.getInputEvents(a))) : a.type === "input-mobile-verification" ? t("el-input", e._g(e._b({ attrs: { size: e.size }, nativeOn: { keydown: function(n) {
1037
+ })], null, !0), model: { value: e.queryParams[r.prop], callback: function(n) {
1038
+ e.$set(e.queryParams, r.prop, n);
1039
+ }, 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) {
983
1040
  return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.getList.apply(null, arguments);
984
- } }, scopedSlots: e._u([e._l(a.template, function(n, o) {
1041
+ } }, scopedSlots: e._u([e._l(r.template, function(n, o) {
985
1042
  return { key: o, fn: function() {
986
1043
  return [n ? t(e.currentInputComponent(), { key: o, tag: "component", attrs: { templateEle: n } }) : e._e()];
987
1044
  }, proxy: !0 };
988
- })], null, !0), model: { value: e.queryParams[a.prop], callback: function(n) {
989
- e.$set(e.queryParams, a.prop, n);
990
- }, expression: "queryParams[item.prop]" } }, "el-input", e.getInputSetting(a), !1), e.getInputEvents(a)), [t("template", { slot: "append" }, [t("verification-button", { attrs: { verificationSetting: a.verificationSetting, getSmscode: a.getSmscode } })], 1)], 2) : a.type === "select" ? t("el-select", e._g(e._b({ attrs: { filterable: "", size: e.size }, model: { value: e.queryParams[a.prop], callback: function(n) {
991
- e.$set(e.queryParams, a.prop, n);
992
- }, expression: "queryParams[item.prop]" } }, "el-select", e.getSelectSetting(a), !1), e.getSelectEvents(a)), e._l(a.option || [], function(n) {
1045
+ })], null, !0), model: { value: e.queryParams[r.prop], callback: function(n) {
1046
+ e.$set(e.queryParams, r.prop, n);
1047
+ }, expression: "queryParams[item.prop]" } }, "el-input", e.getInputSetting(r), !1), e.getInputEvents(r)), [t("template", { slot: "append" }, [t("verification-button", { attrs: { verificationSetting: r.verificationSetting, getSmscode: r.getSmscode } })], 1)], 2) : r.type === "select" ? t("el-select", e._g(e._b({ attrs: { filterable: "", size: e.size }, model: { value: e.queryParams[r.prop], callback: function(n) {
1048
+ e.$set(e.queryParams, r.prop, n);
1049
+ }, expression: "queryParams[item.prop]" } }, "el-select", e.getSelectSetting(r), !1), e.getSelectEvents(r)), e._l(r.option || [], function(n) {
993
1050
  return t("el-option", { key: n.key || n.value, attrs: { label: n.label, value: n.value } });
994
- }), 1) : a.type === "cascader" ? t("el-cascader", e._g(e._b({ attrs: { filterable: "", size: e.size, options: a.options || [] }, model: { value: e.queryParams[a.prop], callback: function(n) {
995
- e.$set(e.queryParams, a.prop, n);
996
- }, expression: "queryParams[item.prop]" } }, "el-cascader", e.getSelectSetting(a), !1), e.getSelectEvents(a))) : a.type === "date-picker" ? t("el-date-picker", e._g(e._b({ attrs: { size: e.size }, model: { value: e.queryParams[a.prop], callback: function(n) {
997
- e.$set(e.queryParams, a.prop, n);
998
- }, expression: "queryParams[item.prop]" } }, "el-date-picker", e.getDatePackerSetting(a), !1), e.getDatePackerEvents(a))) : e._e(), a.type === "input-number" ? t("el-input-number", e._g(e._b({ attrs: { size: e.size }, model: { value: e.queryParams[a.prop], callback: function(n) {
999
- e.$set(e.queryParams, a.prop, n);
1000
- }, expression: "queryParams[item.prop]" } }, "el-input-number", e.getInputSetting(a), !1), e.getInputEvents(a))) : a.type === "checkbox" ? t("el-checkbox-group", e._g(e._b({ attrs: { size: e.size }, model: { value: e.queryParams[a.prop], callback: function(n) {
1001
- e.$set(e.queryParams, a.prop, n);
1002
- }, expression: "queryParams[item.prop]" } }, "el-checkbox-group", e.getCheckboxGroupSetting(a), !1), e.getCheckboxGroupEvents(a)), e._l(a.option || [], function(n) {
1051
+ }), 1) : r.type === "cascader" ? t("el-cascader", e._g(e._b({ attrs: { filterable: "", size: e.size, options: r.options || [] }, model: { value: e.queryParams[r.prop], callback: function(n) {
1052
+ e.$set(e.queryParams, r.prop, n);
1053
+ }, expression: "queryParams[item.prop]" } }, "el-cascader", e.getSelectSetting(r), !1), e.getSelectEvents(r))) : r.type === "date-picker" ? t("el-date-picker", e._g(e._b({ attrs: { size: e.size }, model: { value: e.queryParams[r.prop], callback: function(n) {
1054
+ e.$set(e.queryParams, r.prop, n);
1055
+ }, expression: "queryParams[item.prop]" } }, "el-date-picker", e.getDatePackerSetting(r), !1), e.getDatePackerEvents(r))) : e._e(), r.type === "input-number" ? t("el-input-number", e._g(e._b({ attrs: { size: e.size }, model: { value: e.queryParams[r.prop], callback: function(n) {
1056
+ e.$set(e.queryParams, r.prop, n);
1057
+ }, expression: "queryParams[item.prop]" } }, "el-input-number", e.getInputSetting(r), !1), e.getInputEvents(r))) : r.type === "checkbox" ? t("el-checkbox-group", e._g(e._b({ attrs: { size: e.size }, model: { value: e.queryParams[r.prop], callback: function(n) {
1058
+ e.$set(e.queryParams, r.prop, n);
1059
+ }, expression: "queryParams[item.prop]" } }, "el-checkbox-group", e.getCheckboxGroupSetting(r), !1), e.getCheckboxGroupEvents(r)), e._l(r.option || [], function(n) {
1003
1060
  return t("el-checkbox", e._b({ key: n.key || n.value || n.label }, "el-checkbox", n, !1));
1004
- }), 1) : e._e(), /^form-item-slot$/i.test(a.type) ? e._t(a.name) : e._e()], 2);
1061
+ }), 1) : e._e(), /^form-item-slot$/i.test(r.type) ? e._t(r.name) : e._e()], 2);
1005
1062
  }), 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);
1006
- }, Ie = [], Ne = /* @__PURE__ */ I(
1007
- Te,
1008
- Ke,
1009
- Ie,
1063
+ }, Qe = [], Ge = /* @__PURE__ */ E(
1064
+ je,
1065
+ Re,
1066
+ Qe,
1010
1067
  !1,
1011
1068
  null,
1012
- "1bb4e2ca",
1069
+ "e0143289",
1013
1070
  null,
1014
1071
  null
1015
1072
  );
1016
- const $e = Ne.exports;
1017
- const Ce = {
1073
+ const Ve = Ge.exports;
1074
+ const Je = {
1018
1075
  components: {},
1019
1076
  props: {
1020
1077
  query: {
@@ -1045,18 +1102,18 @@ const Ce = {
1045
1102
  }
1046
1103
  },
1047
1104
  data() {
1048
- var r, e;
1105
+ var a, e;
1049
1106
  return {
1050
- keyWord: ((e = (r = this.$route) == null ? void 0 : r.query) == null ? void 0 : e.keyWord) || "",
1107
+ keyWord: ((e = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : e.keyWord) || "",
1051
1108
  attrs: {}
1052
1109
  };
1053
1110
  },
1054
1111
  watch: {
1055
1112
  $attrs: {
1056
- handler(r) {
1113
+ handler(a) {
1057
1114
  this.attrs = {
1058
1115
  ...this.attrs,
1059
- ...r
1116
+ ...a
1060
1117
  };
1061
1118
  },
1062
1119
  immediate: !0,
@@ -1065,33 +1122,33 @@ const Ce = {
1065
1122
  },
1066
1123
  methods: {
1067
1124
  search() {
1068
- const r = { path: this.routePath, query: { ...this.query, keyWord: this.keyWord } };
1125
+ const a = { path: this.routePath, query: { ...this.query, keyWord: this.keyWord } };
1069
1126
  if (this.openHref) {
1070
- const e = this.$router.resolve(r);
1127
+ const e = this.$router.resolve(a);
1071
1128
  window.open(e.href, "_blank");
1072
1129
  } else
1073
- this.$router.push(r);
1130
+ this.$router.push(a);
1074
1131
  }
1075
1132
  }
1076
1133
  };
1077
- var Fe = function() {
1134
+ var We = function() {
1078
1135
  var e = this, t = e._self._c;
1079
- return t("div", { staticClass: "search-box" }, [t("el-input", e._b({ style: { ...e.inputstyle }, attrs: { size: e.size }, nativeOn: { keydown: function(a) {
1080
- return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.search.apply(null, arguments);
1081
- } }, model: { value: e.keyWord, callback: function(a) {
1082
- e.keyWord = a;
1136
+ return t("div", { staticClass: "search-box" }, [t("el-input", e._b({ style: { ...e.inputstyle }, attrs: { size: e.size }, nativeOn: { keydown: function(r) {
1137
+ return !r.type.indexOf("key") && e._k(r.keyCode, "enter", 13, r.key, "Enter") ? null : e.search.apply(null, arguments);
1138
+ } }, model: { value: e.keyWord, callback: function(r) {
1139
+ e.keyWord = r;
1083
1140
  }, 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);
1084
- }, qe = [], Oe = /* @__PURE__ */ I(
1085
- Ce,
1086
- Fe,
1087
- qe,
1141
+ }, Ze = [], Me = /* @__PURE__ */ E(
1142
+ Je,
1143
+ We,
1144
+ Ze,
1088
1145
  !1,
1089
1146
  null,
1090
1147
  "ef706e31",
1091
1148
  null,
1092
1149
  null
1093
1150
  );
1094
- const ze = Oe.exports, Re = {
1151
+ const Ue = Me.exports, He = {
1095
1152
  functional: !0,
1096
1153
  props: {
1097
1154
  column: {
@@ -1104,14 +1161,14 @@ const ze = Oe.exports, Re = {
1104
1161
  type: Object
1105
1162
  }
1106
1163
  },
1107
- render(r, e) {
1108
- const { props: t } = e, { column: a, formData: n } = t;
1109
- return a.render(n);
1164
+ render(a, e) {
1165
+ const { props: t } = e, { column: r, formData: n } = t;
1166
+ return r.render(n);
1110
1167
  }
1111
- }, je = {
1168
+ }, Xe = {
1112
1169
  name: "Descriptions",
1113
1170
  components: {
1114
- DescriptionsColumn: Re
1171
+ DescriptionsColumn: He
1115
1172
  },
1116
1173
  data() {
1117
1174
  return {
@@ -1136,10 +1193,10 @@ const ze = Oe.exports, Re = {
1136
1193
  },
1137
1194
  watch: {
1138
1195
  $attrs: {
1139
- handler(r) {
1196
+ handler(a) {
1140
1197
  this.attrs = {
1141
1198
  ...this.attrs,
1142
- ...r
1199
+ ...a
1143
1200
  };
1144
1201
  },
1145
1202
  immediate: !0,
@@ -1147,23 +1204,23 @@ const ze = Oe.exports, Re = {
1147
1204
  }
1148
1205
  }
1149
1206
  };
1150
- var Ee = function() {
1207
+ var Ye = function() {
1151
1208
  var e = this, t = e._self._c;
1152
- return t("el-descriptions", e._b({}, "el-descriptions", e.attrs, !1), e._l(e.formItem, function(a, n) {
1153
- return t("el-descriptions-item", e._b({ key: a.prop, attrs: { label: a.label } }, "el-descriptions-item", a.descriptionsItemProps, !1), [a.render ? t("DescriptionsColumn", { attrs: { column: a, formData: e.formData } }) : t("span", [e._v(e._s(e.formData[a.prop]))])], 1);
1209
+ return t("el-descriptions", e._b({}, "el-descriptions", e.attrs, !1), e._l(e.formItem, function(r, n) {
1210
+ return t("el-descriptions-item", e._b({ key: r.prop, attrs: { label: r.label } }, "el-descriptions-item", r.descriptionsItemProps, !1), [r.render ? t("DescriptionsColumn", { attrs: { column: r, formData: e.formData } }) : t("span", [e._v(e._s(e.formData[r.prop]))])], 1);
1154
1211
  }), 1);
1155
- }, Ve = [], Le = /* @__PURE__ */ I(
1156
- je,
1157
- Ee,
1158
- Ve,
1212
+ }, et = [], tt = /* @__PURE__ */ E(
1213
+ Xe,
1214
+ Ye,
1215
+ et,
1159
1216
  !1,
1160
1217
  null,
1161
1218
  null,
1162
1219
  null,
1163
1220
  null
1164
1221
  );
1165
- const Qe = Le.exports;
1166
- const Ae = {
1222
+ const rt = tt.exports;
1223
+ const at = {
1167
1224
  props: {
1168
1225
  nodeKey: {
1169
1226
  type: String,
@@ -1183,15 +1240,15 @@ const Ae = {
1183
1240
  }
1184
1241
  },
1185
1242
  watch: {
1186
- sourceFilterText(r) {
1187
- this.$refs.sourceTree.filter(r);
1243
+ sourceFilterText(a) {
1244
+ this.$refs.sourceTree.filter(a);
1188
1245
  },
1189
- selectedFilterText(r) {
1190
- this.$refs.selectTree.filter(r);
1246
+ selectedFilterText(a) {
1247
+ this.$refs.selectTree.filter(a);
1191
1248
  },
1192
- checkedKeys(r) {
1193
- this.$refs.sourceTree.setCheckedKeys(r), te(() => {
1194
- this.getSelectedData(), this.$refs.selectTree.setCheckedKeys(r);
1249
+ checkedKeys(a) {
1250
+ this.$refs.sourceTree.setCheckedKeys(a), he(() => {
1251
+ this.getSelectedData(), this.$refs.selectTree.setCheckedKeys(a);
1195
1252
  });
1196
1253
  }
1197
1254
  },
@@ -1207,42 +1264,42 @@ const Ae = {
1207
1264
  };
1208
1265
  },
1209
1266
  methods: {
1210
- sourceFilterNode(r, e) {
1211
- return r ? e.label.indexOf(r) !== -1 : !0;
1267
+ sourceFilterNode(a, e) {
1268
+ return a ? e.label.indexOf(a) !== -1 : !0;
1212
1269
  },
1213
1270
  getSelectedData() {
1214
- let r = !0, e;
1215
- const t = this.$refs.sourceTree.getCheckedNodes(r, e);
1271
+ let a = !0, e;
1272
+ const t = this.$refs.sourceTree.getCheckedNodes(a, e);
1216
1273
  this.selectedList = t;
1217
1274
  },
1218
1275
  removeSelectedData() {
1219
- let r, e;
1220
- const t = this.$refs.selectTree.getCheckedNodes(r, e), a = {};
1276
+ let a, e;
1277
+ const t = this.$refs.selectTree.getCheckedNodes(a, e), r = {};
1221
1278
  t.forEach((n) => {
1222
- a[n[this.nodeKey]] = n;
1223
- }), this.selectedList = this.selectedList.filter((n) => !a[n[this.nodeKey]]);
1279
+ r[n[this.nodeKey]] = n;
1280
+ }), this.selectedList = this.selectedList.filter((n) => !r[n[this.nodeKey]]);
1224
1281
  }
1225
1282
  }
1226
1283
  };
1227
- var We = function() {
1284
+ var nt = function() {
1228
1285
  var e = this, t = e._self._c;
1229
- return t("div", { staticClass: "tree-box" }, [t("div", { staticClass: "left-box" }, [e.filterable ? t("el-input", { attrs: { placeholder: "输入关键字进行过滤" }, model: { value: e.sourceFilterText, callback: function(a) {
1230
- e.sourceFilterText = a;
1231
- }, 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(a) {
1232
- e.selectedFilterText = a;
1286
+ 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) {
1287
+ e.sourceFilterText = r;
1288
+ }, 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) {
1289
+ e.selectedFilterText = r;
1233
1290
  }, 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)]);
1234
- }, Ge = [], He = /* @__PURE__ */ I(
1235
- Ae,
1236
- We,
1237
- Ge,
1291
+ }, st = [], ot = /* @__PURE__ */ E(
1292
+ at,
1293
+ nt,
1294
+ st,
1238
1295
  !1,
1239
1296
  null,
1240
1297
  "49dbad2a",
1241
1298
  null,
1242
1299
  null
1243
1300
  );
1244
- const Je = He.exports;
1245
- const { getData: Ue } = ee, { formSchema: Me } = X, Ye = {
1301
+ const it = ot.exports;
1302
+ const { getData: ct } = me, { formSchema: lt } = ye, ut = {
1246
1303
  name: "VTabs",
1247
1304
  data() {
1248
1305
  return {
@@ -1260,6 +1317,7 @@ const { getData: Ue } = ee, { formSchema: Me } = X, Ye = {
1260
1317
  default: "url"
1261
1318
  },
1262
1319
  DBPrimaryKey: {
1320
+ // indexDB的primaryKey,一般配合parametersType==="indexDB"使用
1263
1321
  type: [String, Number],
1264
1322
  required: !1
1265
1323
  },
@@ -1279,67 +1337,67 @@ const { getData: Ue } = ee, { formSchema: Me } = X, Ye = {
1279
1337
  },
1280
1338
  watch: {
1281
1339
  defActiveName: {
1282
- handler(r, e) {
1283
- JSON.stringify(r) !== JSON.stringify(this.activeName) && (this.activeName = r);
1340
+ handler(a, e) {
1341
+ JSON.stringify(a) !== JSON.stringify(this.activeName) && (this.activeName = a);
1284
1342
  },
1285
1343
  immediate: !0
1286
1344
  },
1287
1345
  activeName: {
1288
- handler(r) {
1289
- this.$emit(`update:${this.activeNameKey}`, r);
1346
+ handler(a) {
1347
+ this.$emit(`update:${this.activeNameKey}`, a);
1290
1348
  }
1291
1349
  }
1292
1350
  },
1293
1351
  methods: {
1294
- async handleClick(r, e) {
1295
- const t = await O.makeParamsByType({
1352
+ async handleClick(a, e) {
1353
+ const t = await R.makeParamsByType({
1296
1354
  [this.activeNameKey]: this.activeName
1297
1355
  }, this);
1298
- await O.saveParamsByType(t, this), this.getList({
1356
+ await R.saveParamsByType(t, this), this.getList({
1299
1357
  ...t
1300
1358
  });
1301
1359
  },
1302
1360
  activeNameInit() {
1303
- var t, a, n;
1304
- let r = "";
1305
- (t = this.tabPanes[0]) != null && t.name && (r = (a = this.tabPanes[0]) == null ? void 0 : a.name);
1306
- const e = Z.queryToData(Number((n = this.$route) == null ? void 0 : n.query[this.activeNameKey]));
1307
- return this.parametersType === "url" && e && (r = e), this.parametersType === "indexDB" && Ue(
1361
+ var t, r, n;
1362
+ let a = "";
1363
+ (t = this.tabPanes[0]) != null && t.name && (a = (r = this.tabPanes[0]) == null ? void 0 : r.name);
1364
+ const e = pe.queryToData(Number((n = this.$route) == null ? void 0 : n.query[this.activeNameKey]));
1365
+ return this.parametersType === "url" && e && (a = e), this.parametersType === "indexDB" && ct(
1308
1366
  {
1309
1367
  tableName: "formParams",
1310
1368
  propertiesKey: this.$route.path || "defQueryParams",
1311
1369
  primaryKey: this.DBPrimaryKey || "default",
1312
- mapDB: Me
1370
+ mapDB: lt
1313
1371
  },
1314
1372
  (o) => {
1315
1373
  this.activeName = o == null ? void 0 : o[this.activeNameKey];
1316
1374
  }
1317
- ), this.defActiveName && (r = this.defActiveName), `${r}`;
1375
+ ), this.defActiveName && (a = this.defActiveName), `${a}`;
1318
1376
  }
1319
1377
  }
1320
1378
  };
1321
- var Ze = function() {
1379
+ var pt = function() {
1322
1380
  var e = this, t = e._self._c;
1323
- return t("el-tabs", e._b({ on: { "tab-click": e.handleClick }, model: { value: e.activeName, callback: function(a) {
1324
- e.activeName = a;
1325
- }, expression: "activeName" } }, "el-tabs", e.$attrs, !1), [e._l(e.tabPanes, function(a) {
1326
- return t("el-tab-pane", e._b({ key: a.name }, "el-tab-pane", a, !1), [e._v(" " + e._s(a.render && a.render(a)) + " ")]);
1381
+ return t("el-tabs", e._b({ on: { "tab-click": e.handleClick }, model: { value: e.activeName, callback: function(r) {
1382
+ e.activeName = r;
1383
+ }, expression: "activeName" } }, "el-tabs", e.$attrs, !1), [e._l(e.tabPanes, function(r) {
1384
+ return t("el-tab-pane", e._b({ key: r.name }, "el-tab-pane", r, !1), [e._v(" " + e._s(r.render && r.render(r)) + " ")]);
1327
1385
  }), e._t("default")], 2);
1328
- }, Xe = [], et = /* @__PURE__ */ I(
1329
- Ye,
1330
- Ze,
1331
- Xe,
1386
+ }, ft = [], dt = /* @__PURE__ */ E(
1387
+ ut,
1388
+ pt,
1389
+ ft,
1332
1390
  !1,
1333
1391
  null,
1334
- "27244d13",
1392
+ "ebedcae9",
1335
1393
  null,
1336
1394
  null
1337
1395
  );
1338
- const tt = et.exports, at = $e, nt = ze, st = Qe, ot = Je, it = tt;
1396
+ const yt = dt.exports, ht = Ve, bt = Ue, _t = rt, gt = it, vt = yt;
1339
1397
  export {
1340
- st as VDescriptions,
1341
- at as VGeneralBasicForm,
1342
- nt as VSearchBox,
1343
- it as VTabs,
1344
- ot as VTreeTransfer
1398
+ _t as VDescriptions,
1399
+ ht as VGeneralBasicForm,
1400
+ bt as VSearchBox,
1401
+ vt as VTabs,
1402
+ gt as VTreeTransfer
1345
1403
  };