general-basic-form 2.0.28 → 2.0.29
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 +527 -527
- package/dist/index.d.ts +16 -16
- package/dist/index.js +253 -259
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRoute as
|
|
1
|
+
import { defineComponent as b, inject as h, resolveComponent as d, openBlock as n, createBlock as i, mergeProps as g, withKeys as Z, createSlots as K, renderList as P, withCtx as f, resolveDynamicComponent as M, createCommentVNode as y, ref as v, unref as m, resolveDirective as G, withDirectives as D, createElementBlock as S, createVNode as Q, createElementVNode as J, computed as T, onBeforeUnmount as ee, normalizeStyle as te, createTextVNode as I, toDisplayString as w, h as ne, normalizeProps as oe, guardReactiveProps as re, Fragment as L, provide as A, renderSlot as O, vShow as se, watch as ae } from "vue";
|
|
2
|
+
import { useRoute as ie } from "vue-router";
|
|
3
3
|
const W = {
|
|
4
4
|
placeholder: "请输入",
|
|
5
5
|
style: "width: 200px",
|
|
6
6
|
clearable: !0
|
|
7
|
-
},
|
|
7
|
+
}, le = {
|
|
8
8
|
style: "width: 227px",
|
|
9
9
|
"start-placeholder": "开始日期",
|
|
10
10
|
"end-placeholder": "结束日期",
|
|
@@ -14,11 +14,11 @@ const W = {
|
|
|
14
14
|
filterable: !0,
|
|
15
15
|
clearable: !0,
|
|
16
16
|
style: "width: 200px"
|
|
17
|
-
}, ue =
|
|
17
|
+
}, ue = b({
|
|
18
18
|
components: {
|
|
19
19
|
InputArchive: (e) => {
|
|
20
|
-
const { templateEle:
|
|
21
|
-
return
|
|
20
|
+
const { templateEle: o } = e;
|
|
21
|
+
return o();
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
props: {
|
|
@@ -26,8 +26,8 @@ const W = {
|
|
|
26
26
|
// null就是any
|
|
27
27
|
},
|
|
28
28
|
setup() {
|
|
29
|
-
const e =
|
|
30
|
-
return { queryParams: e, getList:
|
|
29
|
+
const e = h("queryParams", {}), o = h("getList"), t = h("size");
|
|
30
|
+
return { queryParams: e, getList: o, size: t };
|
|
31
31
|
},
|
|
32
32
|
data() {
|
|
33
33
|
return {
|
|
@@ -54,140 +54,140 @@ const W = {
|
|
|
54
54
|
// console.log(val);
|
|
55
55
|
// },
|
|
56
56
|
// },
|
|
57
|
-
}),
|
|
57
|
+
}), x = (e, o) => {
|
|
58
58
|
const t = e.__vccOpts || e;
|
|
59
|
-
for (const [
|
|
60
|
-
t[
|
|
59
|
+
for (const [l, a] of o)
|
|
60
|
+
t[l] = a;
|
|
61
61
|
return t;
|
|
62
62
|
};
|
|
63
|
-
function ce(e,
|
|
64
|
-
const
|
|
65
|
-
return
|
|
63
|
+
function ce(e, o, t, l, a, s) {
|
|
64
|
+
const u = d("el-input");
|
|
65
|
+
return n(), i(u, g({
|
|
66
66
|
onKeydown: Z(e.getList, ["enter"]),
|
|
67
67
|
modelValue: e.queryParams[e.item.prop],
|
|
68
|
-
"onUpdate:modelValue":
|
|
68
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => e.queryParams[e.item.prop] = r),
|
|
69
69
|
size: e.size
|
|
70
70
|
}, e.inputSetting), K({ _: 2 }, [
|
|
71
|
-
|
|
72
|
-
name:
|
|
73
|
-
fn:
|
|
74
|
-
r ? (
|
|
75
|
-
key:
|
|
71
|
+
P(e.item.template, (r, _) => ({
|
|
72
|
+
name: _,
|
|
73
|
+
fn: f(() => [
|
|
74
|
+
r ? (n(), i(M(e.currentInputComponent()), {
|
|
75
|
+
key: _,
|
|
76
76
|
templateEle: r
|
|
77
|
-
}, null, 8, ["templateEle"])) :
|
|
77
|
+
}, null, 8, ["templateEle"])) : y("", !0)
|
|
78
78
|
])
|
|
79
79
|
}))
|
|
80
80
|
]), 1040, ["onKeydown", "modelValue", "size"]);
|
|
81
81
|
}
|
|
82
|
-
const j = /* @__PURE__ */
|
|
82
|
+
const j = /* @__PURE__ */ x(ue, [["render", ce]]), pe = /* @__PURE__ */ b({
|
|
83
83
|
__name: "index",
|
|
84
84
|
props: {
|
|
85
85
|
item: {}
|
|
86
86
|
},
|
|
87
87
|
setup(e) {
|
|
88
|
-
const { item:
|
|
88
|
+
const { item: o } = e, t = h("queryParams", {}), l = h("size"), a = v({
|
|
89
89
|
...W,
|
|
90
|
-
...
|
|
90
|
+
...o.inputSetting
|
|
91
91
|
});
|
|
92
|
-
return (s,
|
|
93
|
-
const r =
|
|
94
|
-
return
|
|
95
|
-
modelValue:
|
|
96
|
-
"onUpdate:modelValue":
|
|
97
|
-
size:
|
|
92
|
+
return (s, u) => {
|
|
93
|
+
const r = d("el-input-number");
|
|
94
|
+
return n(), i(r, g({
|
|
95
|
+
modelValue: m(t)[s.item.prop],
|
|
96
|
+
"onUpdate:modelValue": u[0] || (u[0] = (_) => m(t)[s.item.prop] = _),
|
|
97
|
+
size: m(l)
|
|
98
98
|
}, a.value), null, 16, ["modelValue", "size"]);
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
}), X = Symbol(), de = { class: "input-graphic-verification" }, me = ["src"], _e = /* @__PURE__ */
|
|
101
|
+
}), X = Symbol(), de = { class: "input-graphic-verification" }, me = ["src"], _e = /* @__PURE__ */ b({
|
|
102
102
|
__name: "index",
|
|
103
103
|
props: {
|
|
104
104
|
item: {}
|
|
105
105
|
},
|
|
106
106
|
setup(e) {
|
|
107
|
-
const { item:
|
|
108
|
-
} } =
|
|
109
|
-
|
|
107
|
+
const { item: o } = e, { graphicSrc: t = "", getGraphic: l = () => {
|
|
108
|
+
} } = o, { formLoading: a, updateFormLoading: s } = h(X), u = async () => {
|
|
109
|
+
l && !a.value && await l();
|
|
110
110
|
};
|
|
111
|
-
return (r,
|
|
112
|
-
const
|
|
113
|
-
return D((
|
|
111
|
+
return (r, _) => {
|
|
112
|
+
const c = G("loading");
|
|
113
|
+
return D((n(), S("div", de, [
|
|
114
114
|
Q(j, {
|
|
115
115
|
item: r.item,
|
|
116
116
|
class: "input"
|
|
117
117
|
}, null, 8, ["item"]),
|
|
118
118
|
J("img", {
|
|
119
119
|
class: "graphic",
|
|
120
|
-
onClick:
|
|
121
|
-
src:
|
|
120
|
+
onClick: u,
|
|
121
|
+
src: m(t)
|
|
122
122
|
}, null, 8, me)
|
|
123
123
|
])), [
|
|
124
|
-
[
|
|
124
|
+
[c, m(a)]
|
|
125
125
|
]);
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
|
-
const fe = /* @__PURE__ */
|
|
129
|
+
const fe = /* @__PURE__ */ x(_e, [["__scopeId", "data-v-500ec9b0"]]), B = "获取验证码", ye = 60, he = /* @__PURE__ */ b({
|
|
130
130
|
__name: "verification-button",
|
|
131
131
|
props: {
|
|
132
132
|
getSmscode: { type: Function }
|
|
133
133
|
},
|
|
134
134
|
setup(e) {
|
|
135
|
-
const { getSmscode:
|
|
136
|
-
|
|
137
|
-
},
|
|
135
|
+
const { getSmscode: o } = e, t = v(B), l = v(null), a = T(() => t.value === B), s = () => {
|
|
136
|
+
l && (clearInterval(l.value), l.value = null, t.value = B);
|
|
137
|
+
}, u = async () => {
|
|
138
138
|
if (t.value === B)
|
|
139
|
-
if (t.value = ye,
|
|
139
|
+
if (t.value = ye, l.value = setInterval(() => {
|
|
140
140
|
if (Number(t.value) <= 0 || !t.value) {
|
|
141
141
|
s();
|
|
142
142
|
return;
|
|
143
143
|
} else
|
|
144
144
|
t.value = Number(t.value) - 1;
|
|
145
|
-
}, 1e3),
|
|
146
|
-
await
|
|
145
|
+
}, 1e3), o)
|
|
146
|
+
await o() === !1 && s();
|
|
147
147
|
else
|
|
148
148
|
return;
|
|
149
149
|
};
|
|
150
150
|
return ee(() => {
|
|
151
151
|
s();
|
|
152
|
-
}), (r,
|
|
153
|
-
const
|
|
154
|
-
return
|
|
152
|
+
}), (r, _) => {
|
|
153
|
+
const c = d("el-button");
|
|
154
|
+
return n(), i(c, {
|
|
155
155
|
class: "verifiaction-button",
|
|
156
156
|
style: te({
|
|
157
157
|
color: a.value ? "var(--color-primary, #409EFF)" : "var(--text-color-placeholder, #A8ABB2)",
|
|
158
158
|
cursor: a.value ? "pointer" : "default"
|
|
159
159
|
}),
|
|
160
|
-
onClick:
|
|
160
|
+
onClick: u
|
|
161
161
|
}, {
|
|
162
|
-
default:
|
|
163
|
-
I(
|
|
162
|
+
default: f(() => [
|
|
163
|
+
I(w(a.value ? B : t.value + "s"), 1)
|
|
164
164
|
]),
|
|
165
165
|
_: 1
|
|
166
166
|
}, 8, ["style"]);
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
|
-
const ve = /* @__PURE__ */
|
|
170
|
+
const ve = /* @__PURE__ */ x(he, [["__scopeId", "data-v-4074e137"]]), ge = /* @__PURE__ */ b({
|
|
171
171
|
__name: "index",
|
|
172
172
|
props: {
|
|
173
173
|
item: {}
|
|
174
174
|
},
|
|
175
175
|
setup(e) {
|
|
176
|
-
const { item:
|
|
176
|
+
const { item: o } = e, t = o;
|
|
177
177
|
return t.template = {
|
|
178
178
|
append: () => ne(ve, {
|
|
179
179
|
getSmscode: t.getSmscode
|
|
180
180
|
})
|
|
181
|
-
}, (
|
|
182
|
-
item:
|
|
181
|
+
}, (l, a) => (n(), i(j, {
|
|
182
|
+
item: m(t),
|
|
183
183
|
class: "input"
|
|
184
184
|
}, null, 8, ["item"]));
|
|
185
185
|
}
|
|
186
|
-
}), be =
|
|
186
|
+
}), be = b({
|
|
187
187
|
components: {
|
|
188
188
|
slotArchive: (e) => {
|
|
189
|
-
const { templateEle:
|
|
190
|
-
return
|
|
189
|
+
const { templateEle: o } = e;
|
|
190
|
+
return o();
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
193
|
props: {
|
|
@@ -209,156 +209,150 @@ const ve = /* @__PURE__ */ w(he, [["__scopeId", "data-v-a6c3916a"]]), ge = /* @_
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
|
-
function ke(e,
|
|
213
|
-
const
|
|
214
|
-
return
|
|
215
|
-
|
|
216
|
-
name:
|
|
217
|
-
fn:
|
|
218
|
-
r ? (
|
|
219
|
-
key:
|
|
212
|
+
function ke(e, o, t, l, a, s) {
|
|
213
|
+
const u = d("el-divider");
|
|
214
|
+
return n(), i(u, oe(re(e.dividerSetting)), K({ _: 2 }, [
|
|
215
|
+
P(e.item.template, (r, _) => ({
|
|
216
|
+
name: _,
|
|
217
|
+
fn: f(() => [
|
|
218
|
+
r ? (n(), i(M(e.currentInputComponent()), {
|
|
219
|
+
key: _,
|
|
220
220
|
templateEle: r
|
|
221
|
-
}, null, 8, ["templateEle"])) :
|
|
221
|
+
}, null, 8, ["templateEle"])) : y("", !0)
|
|
222
222
|
])
|
|
223
223
|
}))
|
|
224
224
|
]), 1040);
|
|
225
225
|
}
|
|
226
|
-
const Se = /* @__PURE__ */
|
|
226
|
+
const Se = /* @__PURE__ */ x(be, [["render", ke]]), ze = /* @__PURE__ */ b({
|
|
227
227
|
__name: "index",
|
|
228
228
|
props: {
|
|
229
229
|
item: {}
|
|
230
230
|
},
|
|
231
231
|
setup(e) {
|
|
232
|
-
const { item:
|
|
233
|
-
...
|
|
234
|
-
}), s = v({
|
|
235
|
-
...n.radioGroupSetting
|
|
232
|
+
const { item: o } = e, t = h("queryParams", {}), l = h("size"), a = v({
|
|
233
|
+
...o.radioGroupSetting
|
|
236
234
|
});
|
|
237
|
-
return (
|
|
238
|
-
const
|
|
239
|
-
return
|
|
240
|
-
modelValue:
|
|
241
|
-
"onUpdate:modelValue":
|
|
242
|
-
size:
|
|
243
|
-
},
|
|
244
|
-
default:
|
|
245
|
-
(
|
|
246
|
-
size:
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
I(x(f.value), 1)
|
|
235
|
+
return (s, u) => {
|
|
236
|
+
const r = d("el-radio"), _ = d("el-radio-group");
|
|
237
|
+
return n(), i(_, g({
|
|
238
|
+
modelValue: m(t)[s.item.prop],
|
|
239
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => m(t)[s.item.prop] = c),
|
|
240
|
+
size: m(l)
|
|
241
|
+
}, a.value), {
|
|
242
|
+
default: f(() => [
|
|
243
|
+
(n(!0), S(L, null, P(s.item.option || [], (c) => (n(), i(r, g({
|
|
244
|
+
size: m(l),
|
|
245
|
+
key: c.label
|
|
246
|
+
}, c), {
|
|
247
|
+
default: f(() => [
|
|
248
|
+
I(w(c.value), 1)
|
|
252
249
|
]),
|
|
253
250
|
_: 2
|
|
254
|
-
}, 1040, ["size"
|
|
251
|
+
}, 1040, ["size"]))), 128))
|
|
255
252
|
]),
|
|
256
253
|
_: 1
|
|
257
254
|
}, 16, ["modelValue", "size"]);
|
|
258
255
|
};
|
|
259
256
|
}
|
|
260
|
-
}), $e = /* @__PURE__ */
|
|
257
|
+
}), $e = /* @__PURE__ */ b({
|
|
261
258
|
__name: "index",
|
|
262
259
|
props: {
|
|
263
260
|
item: {}
|
|
264
261
|
},
|
|
265
262
|
setup(e) {
|
|
266
|
-
const { item:
|
|
267
|
-
...
|
|
268
|
-
}), s = v({
|
|
269
|
-
...n.checkboxGroupSetting
|
|
263
|
+
const { item: o } = e, t = h("queryParams", {}), l = h("size"), a = v({
|
|
264
|
+
...o.checkboxGroupSetting
|
|
270
265
|
});
|
|
271
|
-
return (
|
|
272
|
-
const
|
|
273
|
-
return
|
|
274
|
-
modelValue:
|
|
275
|
-
"onUpdate:modelValue":
|
|
276
|
-
size:
|
|
277
|
-
},
|
|
278
|
-
default:
|
|
279
|
-
(
|
|
280
|
-
size:
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
I(x(f.value), 1)
|
|
266
|
+
return (s, u) => {
|
|
267
|
+
const r = d("el-checkbox"), _ = d("el-checkbox-group");
|
|
268
|
+
return n(), i(_, g({
|
|
269
|
+
modelValue: m(t)[s.item.prop],
|
|
270
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => m(t)[s.item.prop] = c),
|
|
271
|
+
size: m(l)
|
|
272
|
+
}, a.value), {
|
|
273
|
+
default: f(() => [
|
|
274
|
+
(n(!0), S(L, null, P(s.item.option || [], (c) => (n(), i(r, g({
|
|
275
|
+
size: m(l),
|
|
276
|
+
key: c.label
|
|
277
|
+
}, c), {
|
|
278
|
+
default: f(() => [
|
|
279
|
+
I(w(c.value), 1)
|
|
286
280
|
]),
|
|
287
281
|
_: 2
|
|
288
|
-
}, 1040, ["size"
|
|
282
|
+
}, 1040, ["size"]))), 128))
|
|
289
283
|
]),
|
|
290
284
|
_: 1
|
|
291
285
|
}, 16, ["modelValue", "size"]);
|
|
292
286
|
};
|
|
293
287
|
}
|
|
294
|
-
}), Pe = /* @__PURE__ */
|
|
288
|
+
}), Pe = /* @__PURE__ */ b({
|
|
295
289
|
__name: "index",
|
|
296
290
|
props: {
|
|
297
291
|
item: {}
|
|
298
292
|
},
|
|
299
293
|
setup(e) {
|
|
300
|
-
const { item:
|
|
301
|
-
...
|
|
302
|
-
...
|
|
294
|
+
const { item: o } = e, t = h("queryParams", {}), l = h("size"), a = v({
|
|
295
|
+
...le,
|
|
296
|
+
...o.datePackerSetting
|
|
303
297
|
});
|
|
304
|
-
return (s,
|
|
305
|
-
const r =
|
|
306
|
-
return
|
|
307
|
-
modelValue:
|
|
308
|
-
"onUpdate:modelValue":
|
|
309
|
-
size:
|
|
298
|
+
return (s, u) => {
|
|
299
|
+
const r = d("el-date-picker");
|
|
300
|
+
return n(), i(r, g({
|
|
301
|
+
modelValue: m(t)[s.item.prop],
|
|
302
|
+
"onUpdate:modelValue": u[0] || (u[0] = (_) => m(t)[s.item.prop] = _),
|
|
303
|
+
size: m(l)
|
|
310
304
|
}, a.value), null, 16, ["modelValue", "size"]);
|
|
311
305
|
};
|
|
312
306
|
}
|
|
313
|
-
}), qe = /* @__PURE__ */
|
|
307
|
+
}), qe = /* @__PURE__ */ b({
|
|
314
308
|
__name: "index",
|
|
315
309
|
props: {
|
|
316
310
|
item: {}
|
|
317
311
|
},
|
|
318
312
|
setup(e) {
|
|
319
|
-
const { item:
|
|
313
|
+
const { item: o } = e, t = h("queryParams", {}), l = h("size"), a = v({
|
|
320
314
|
...H,
|
|
321
|
-
...
|
|
315
|
+
...o.selectSetting
|
|
322
316
|
});
|
|
323
|
-
return (s,
|
|
324
|
-
const r =
|
|
325
|
-
return
|
|
326
|
-
modelValue:
|
|
327
|
-
"onUpdate:modelValue":
|
|
328
|
-
size:
|
|
317
|
+
return (s, u) => {
|
|
318
|
+
const r = d("el-option"), _ = d("el-select");
|
|
319
|
+
return n(), i(_, g({
|
|
320
|
+
modelValue: m(t)[s.item.prop],
|
|
321
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => m(t)[s.item.prop] = c),
|
|
322
|
+
size: m(l)
|
|
329
323
|
}, a.value), {
|
|
330
|
-
default:
|
|
331
|
-
(
|
|
332
|
-
key:
|
|
333
|
-
label:
|
|
334
|
-
value:
|
|
324
|
+
default: f(() => [
|
|
325
|
+
(n(!0), S(L, null, P(s.item.option || [], (c) => (n(), i(r, {
|
|
326
|
+
key: c.value,
|
|
327
|
+
label: c.label,
|
|
328
|
+
value: c.value
|
|
335
329
|
}, null, 8, ["label", "value"]))), 128))
|
|
336
330
|
]),
|
|
337
331
|
_: 1
|
|
338
332
|
}, 16, ["modelValue", "size"]);
|
|
339
333
|
};
|
|
340
334
|
}
|
|
341
|
-
}), Ve = /* @__PURE__ */
|
|
335
|
+
}), Ve = /* @__PURE__ */ b({
|
|
342
336
|
__name: "index",
|
|
343
337
|
props: {
|
|
344
338
|
item: {}
|
|
345
339
|
},
|
|
346
340
|
setup(e) {
|
|
347
|
-
const { item:
|
|
341
|
+
const { item: o } = e, t = h("queryParams", {}), l = h("size"), a = v({
|
|
348
342
|
...H,
|
|
349
|
-
...
|
|
343
|
+
...o.selectSetting
|
|
350
344
|
});
|
|
351
|
-
return (s,
|
|
352
|
-
const r =
|
|
353
|
-
return
|
|
354
|
-
modelValue:
|
|
355
|
-
"onUpdate:modelValue":
|
|
356
|
-
size:
|
|
345
|
+
return (s, u) => {
|
|
346
|
+
const r = d("el-cascader");
|
|
347
|
+
return n(), i(r, g({
|
|
348
|
+
modelValue: m(t)[s.item.prop],
|
|
349
|
+
"onUpdate:modelValue": u[0] || (u[0] = (_) => m(t)[s.item.prop] = _),
|
|
350
|
+
size: m(l),
|
|
357
351
|
options: s.item.options || []
|
|
358
352
|
}, a.value), null, 16, ["modelValue", "size", "options"]);
|
|
359
353
|
};
|
|
360
354
|
}
|
|
361
|
-
}), Ie =
|
|
355
|
+
}), Ie = b({
|
|
362
356
|
name: "GeneralBasicForm",
|
|
363
357
|
components: {
|
|
364
358
|
Input: j,
|
|
@@ -433,7 +427,7 @@ const Se = /* @__PURE__ */ w(be, [["render", ke]]), ze = /* @__PURE__ */ k({
|
|
|
433
427
|
};
|
|
434
428
|
},
|
|
435
429
|
setup(e) {
|
|
436
|
-
const { size:
|
|
430
|
+
const { size: o, noUrlParameters: t, getList: l } = e, a = ie(), s = v({
|
|
437
431
|
...t ? {} : a == null ? void 0 : a.query
|
|
438
432
|
});
|
|
439
433
|
return A(
|
|
@@ -445,20 +439,20 @@ const Se = /* @__PURE__ */ w(be, [["render", ke]]), ze = /* @__PURE__ */ k({
|
|
|
445
439
|
/* 注入名 */
|
|
446
440
|
"size",
|
|
447
441
|
/* 值 */
|
|
448
|
-
|
|
442
|
+
o
|
|
449
443
|
), A(
|
|
450
444
|
/* 注入名 */
|
|
451
445
|
"getList",
|
|
452
446
|
/* 值 */
|
|
453
|
-
|
|
447
|
+
l
|
|
454
448
|
), {
|
|
455
449
|
queryParams: s
|
|
456
450
|
};
|
|
457
451
|
},
|
|
458
452
|
watch: {
|
|
459
453
|
formData: {
|
|
460
|
-
handler(e,
|
|
461
|
-
JSON.stringify(e) !== JSON.stringify(
|
|
454
|
+
handler(e, o) {
|
|
455
|
+
JSON.stringify(e) !== JSON.stringify(o) && (this.queryParams = {
|
|
462
456
|
...this.noUrlParameters ? {} : this.queryParams,
|
|
463
457
|
...e
|
|
464
458
|
});
|
|
@@ -496,100 +490,100 @@ const Se = /* @__PURE__ */ w(be, [["render", ke]]), ze = /* @__PURE__ */ k({
|
|
|
496
490
|
/** 搜索按钮操作 */
|
|
497
491
|
handleQuery() {
|
|
498
492
|
var t;
|
|
499
|
-
const e = { page: 1, limit: 10 },
|
|
493
|
+
const e = { page: 1, limit: 10 }, o = {
|
|
500
494
|
...(t = this.$route) == null ? void 0 : t.query,
|
|
501
495
|
...this.queryParams,
|
|
502
496
|
...e
|
|
503
497
|
};
|
|
504
498
|
this.noUrlParameters || this.$router.push({
|
|
505
|
-
query: { ...
|
|
499
|
+
query: { ...o }
|
|
506
500
|
}), this.getList({
|
|
507
|
-
...
|
|
501
|
+
...o
|
|
508
502
|
});
|
|
509
503
|
},
|
|
510
504
|
/** 重置按钮操作 */
|
|
511
505
|
async resetQuery() {
|
|
512
|
-
var
|
|
506
|
+
var o;
|
|
513
507
|
this.$refs.queryFormRef.resetFields();
|
|
514
508
|
const e = { page: 1 };
|
|
515
509
|
this.noUrlParameters || await this.$router.push({
|
|
516
510
|
query: { ...e }
|
|
517
511
|
}), this.queryParams = {
|
|
518
|
-
...this.noUrlParameters ? {} : (
|
|
512
|
+
...this.noUrlParameters ? {} : (o = this.$route) == null ? void 0 : o.query
|
|
519
513
|
}, this.afterReset(), this.handleQuery();
|
|
520
514
|
}
|
|
521
515
|
}
|
|
522
516
|
});
|
|
523
|
-
function Le(e,
|
|
524
|
-
const
|
|
525
|
-
return D((
|
|
517
|
+
function Le(e, o, t, l, a, s) {
|
|
518
|
+
const u = d("Input"), r = d("Radio"), _ = d("Select"), c = d("Divider"), q = d("Cascader"), C = d("Checkbox"), U = d("DatePicker"), N = d("InputNumber"), F = d("InputMobileVerification"), R = d("InputGraphicVerification"), k = d("el-form-item"), V = d("el-button"), $ = d("el-form"), E = G("loading");
|
|
519
|
+
return D((n(), i($, g({
|
|
526
520
|
model: e.queryParams,
|
|
527
521
|
ref: "queryFormRef",
|
|
528
522
|
inline: "",
|
|
529
523
|
"label-position": "left",
|
|
530
524
|
"label-width": e.labelWidth
|
|
531
525
|
}, e.$attrs), {
|
|
532
|
-
default:
|
|
533
|
-
(
|
|
534
|
-
label:
|
|
535
|
-
prop:
|
|
536
|
-
key:
|
|
537
|
-
rules:
|
|
526
|
+
default: f(() => [
|
|
527
|
+
(n(!0), S(L, null, P(e.formItem, (p) => (n(), i(k, {
|
|
528
|
+
label: p.label,
|
|
529
|
+
prop: p.prop,
|
|
530
|
+
key: p.prop,
|
|
531
|
+
rules: p.rules
|
|
538
532
|
}, {
|
|
539
|
-
default:
|
|
540
|
-
|
|
533
|
+
default: f(() => [
|
|
534
|
+
p.type === "input" ? (n(), i(u, {
|
|
541
535
|
key: 0,
|
|
542
|
-
item:
|
|
543
|
-
}, null, 8, ["item"])) :
|
|
544
|
-
|
|
536
|
+
item: p
|
|
537
|
+
}, null, 8, ["item"])) : y("", !0),
|
|
538
|
+
p.type === "radio" ? (n(), i(r, {
|
|
545
539
|
key: 1,
|
|
546
|
-
item:
|
|
547
|
-
}, null, 8, ["item"])) :
|
|
548
|
-
|
|
540
|
+
item: p
|
|
541
|
+
}, null, 8, ["item"])) : y("", !0),
|
|
542
|
+
p.type === "select" ? (n(), i(_, {
|
|
549
543
|
key: 2,
|
|
550
|
-
item:
|
|
551
|
-
}, null, 8, ["item"])) :
|
|
552
|
-
|
|
544
|
+
item: p
|
|
545
|
+
}, null, 8, ["item"])) : y("", !0),
|
|
546
|
+
p.type === "divider" ? (n(), i(c, {
|
|
553
547
|
key: 3,
|
|
554
|
-
item:
|
|
555
|
-
}, null, 8, ["item"])) :
|
|
556
|
-
|
|
548
|
+
item: p
|
|
549
|
+
}, null, 8, ["item"])) : y("", !0),
|
|
550
|
+
p.type === "cascader" ? (n(), i(q, {
|
|
557
551
|
key: 4,
|
|
558
|
-
item:
|
|
559
|
-
}, null, 8, ["item"])) :
|
|
560
|
-
|
|
552
|
+
item: p
|
|
553
|
+
}, null, 8, ["item"])) : y("", !0),
|
|
554
|
+
p.type === "checkbox" ? (n(), i(C, {
|
|
561
555
|
key: 5,
|
|
562
|
-
item:
|
|
563
|
-
}, null, 8, ["item"])) :
|
|
564
|
-
|
|
556
|
+
item: p
|
|
557
|
+
}, null, 8, ["item"])) : y("", !0),
|
|
558
|
+
p.type === "date-picker" ? (n(), i(U, {
|
|
565
559
|
key: 6,
|
|
566
|
-
item:
|
|
567
|
-
}, null, 8, ["item"])) :
|
|
568
|
-
|
|
560
|
+
item: p
|
|
561
|
+
}, null, 8, ["item"])) : y("", !0),
|
|
562
|
+
p.type === "input-number" ? (n(), i(N, {
|
|
569
563
|
key: 7,
|
|
570
|
-
item:
|
|
571
|
-
}, null, 8, ["item"])) :
|
|
572
|
-
|
|
573
|
-
|
|
564
|
+
item: p
|
|
565
|
+
}, null, 8, ["item"])) : y("", !0),
|
|
566
|
+
p.type === "form-item-slot" ? O(e.$slots, p.name, { key: 8 }) : y("", !0),
|
|
567
|
+
p.type === "input-mobile-verification" ? (n(), i(F, {
|
|
574
568
|
key: 9,
|
|
575
|
-
item:
|
|
576
|
-
}, null, 8, ["item"])) :
|
|
577
|
-
|
|
578
|
-
item:
|
|
579
|
-
key:
|
|
580
|
-
}, null, 8, ["item"])) :
|
|
569
|
+
item: p
|
|
570
|
+
}, null, 8, ["item"])) : y("", !0),
|
|
571
|
+
p.type === "input-graphic-verification" ? (n(), i(R, {
|
|
572
|
+
item: p,
|
|
573
|
+
key: p.key
|
|
574
|
+
}, null, 8, ["item"])) : y("", !0)
|
|
581
575
|
]),
|
|
582
576
|
_: 2
|
|
583
577
|
}, 1032, ["label", "prop", "rules"]))), 128)),
|
|
584
578
|
O(e.$slots, "default"),
|
|
585
|
-
e.formOnly ?
|
|
586
|
-
default:
|
|
587
|
-
D((
|
|
579
|
+
e.formOnly ? y("", !0) : (n(), i(k, { key: 0 }, {
|
|
580
|
+
default: f(() => [
|
|
581
|
+
D((n(), i(V, {
|
|
588
582
|
type: "primary",
|
|
589
583
|
size: e.size,
|
|
590
584
|
onClick: e.handleQuery
|
|
591
585
|
}, {
|
|
592
|
-
default:
|
|
586
|
+
default: f(() => [
|
|
593
587
|
I("查询")
|
|
594
588
|
]),
|
|
595
589
|
_: 1
|
|
@@ -600,7 +594,7 @@ function Le(e, n, t, u, a, s) {
|
|
|
600
594
|
size: e.size,
|
|
601
595
|
onClick: e.resetQuery
|
|
602
596
|
}, {
|
|
603
|
-
default:
|
|
597
|
+
default: f(() => [
|
|
604
598
|
I("重置")
|
|
605
599
|
]),
|
|
606
600
|
_: 1
|
|
@@ -612,10 +606,10 @@ function Le(e, n, t, u, a, s) {
|
|
|
612
606
|
]),
|
|
613
607
|
_: 3
|
|
614
608
|
}, 16, ["model", "label-width"])), [
|
|
615
|
-
[
|
|
609
|
+
[se, e.showSearch]
|
|
616
610
|
]);
|
|
617
611
|
}
|
|
618
|
-
const Ce = /* @__PURE__ */
|
|
612
|
+
const Ce = /* @__PURE__ */ x(Ie, [["render", Le]]), De = ["infinite-scroll-disabled"], we = ["infinite-scroll-disabled"], xe = { class: "checkbox" }, Fe = /* @__PURE__ */ b({
|
|
619
613
|
__name: "InfiniteScrollList",
|
|
620
614
|
props: {
|
|
621
615
|
search: {
|
|
@@ -643,90 +637,90 @@ const Ce = /* @__PURE__ */ w(Ie, [["render", Le]]), De = ["infinite-scroll-disab
|
|
|
643
637
|
required: !1
|
|
644
638
|
}
|
|
645
639
|
},
|
|
646
|
-
setup(e, { expose:
|
|
647
|
-
const t = e, { search:
|
|
648
|
-
const { i:
|
|
649
|
-
return
|
|
640
|
+
setup(e, { expose: o }) {
|
|
641
|
+
const t = e, { search: l, id: a, name: s, extra: u } = t, r = v([]), _ = v(1), c = v(!1), q = v([]), C = v(!1), U = (k, V) => {
|
|
642
|
+
const { i: $ } = k;
|
|
643
|
+
return u($);
|
|
650
644
|
};
|
|
651
|
-
|
|
645
|
+
ae(
|
|
652
646
|
() => t.defaultSelection,
|
|
653
|
-
(
|
|
654
|
-
|
|
647
|
+
(k = [], V = []) => {
|
|
648
|
+
q.value = k.map(($) => typeof $ == "object" ? $[a] : $);
|
|
655
649
|
},
|
|
656
650
|
{ immediate: !0 }
|
|
657
651
|
);
|
|
658
652
|
const N = () => {
|
|
659
|
-
|
|
653
|
+
_.value = 1, r.value = [], q.value = [], c.value = !1;
|
|
660
654
|
}, F = async () => {
|
|
661
|
-
if (C.value ||
|
|
655
|
+
if (C.value || c.value)
|
|
662
656
|
return;
|
|
663
657
|
C.value = !0;
|
|
664
|
-
const
|
|
665
|
-
|
|
658
|
+
const k = await l(_.value);
|
|
659
|
+
k && k.length > 0 ? (r.value = [...r.value, ...k], _.value += 1) : c.value = !0, C.value = !1;
|
|
666
660
|
}, R = T(
|
|
667
|
-
() => r.value.filter((
|
|
661
|
+
() => r.value.filter((k) => q.value.includes(k[a]))
|
|
668
662
|
) || {};
|
|
669
|
-
return
|
|
670
|
-
const
|
|
671
|
-
return t.checkbox ? D((
|
|
663
|
+
return o({ reset: N, loadList: F, selectInfo: R, list: r, ifbottom: c }), (k, V) => {
|
|
664
|
+
const $ = d("el-checkbox"), E = d("el-checkbox-group"), p = G("infinite-scroll"), Y = G("loading");
|
|
665
|
+
return t.checkbox ? D((n(), i(E, g({
|
|
672
666
|
key: 0,
|
|
673
|
-
modelValue:
|
|
674
|
-
"onUpdate:modelValue": V[0] || (V[0] = (
|
|
667
|
+
modelValue: q.value,
|
|
668
|
+
"onUpdate:modelValue": V[0] || (V[0] = (z) => q.value = z)
|
|
675
669
|
}, t), {
|
|
676
|
-
default:
|
|
677
|
-
D((
|
|
670
|
+
default: f(() => [
|
|
671
|
+
D((n(), S("ul", {
|
|
678
672
|
class: "list",
|
|
679
|
-
"infinite-scroll-disabled":
|
|
673
|
+
"infinite-scroll-disabled": c.value
|
|
680
674
|
}, [
|
|
681
|
-
(
|
|
682
|
-
key:
|
|
675
|
+
(n(!0), S(L, null, P(r.value, (z) => (n(), S("li", {
|
|
676
|
+
key: z[m(a)],
|
|
683
677
|
class: "list-item"
|
|
684
678
|
}, [
|
|
685
|
-
Q(
|
|
686
|
-
label:
|
|
679
|
+
Q($, {
|
|
680
|
+
label: z[m(a)],
|
|
687
681
|
class: "checkbox"
|
|
688
682
|
}, {
|
|
689
|
-
default:
|
|
690
|
-
I(
|
|
691
|
-
t.extra ? (
|
|
683
|
+
default: f(() => [
|
|
684
|
+
I(w(z[m(s)]) + " ", 1),
|
|
685
|
+
t.extra ? (n(), i(U, {
|
|
692
686
|
key: 0,
|
|
693
|
-
i:
|
|
694
|
-
}, null, 8, ["i"])) :
|
|
687
|
+
i: z
|
|
688
|
+
}, null, 8, ["i"])) : y("", !0)
|
|
695
689
|
]),
|
|
696
690
|
_: 2
|
|
697
691
|
}, 1032, ["label"])
|
|
698
692
|
]))), 128))
|
|
699
693
|
], 8, De)), [
|
|
700
|
-
[
|
|
694
|
+
[p, F]
|
|
701
695
|
])
|
|
702
696
|
]),
|
|
703
697
|
_: 1
|
|
704
698
|
}, 16, ["modelValue"])), [
|
|
705
699
|
[Y, C.value]
|
|
706
|
-
]) : D((
|
|
700
|
+
]) : D((n(), S("ul", g({
|
|
707
701
|
key: 1,
|
|
708
702
|
class: "list",
|
|
709
|
-
"infinite-scroll-disabled":
|
|
703
|
+
"infinite-scroll-disabled": c.value
|
|
710
704
|
}, t), [
|
|
711
|
-
(
|
|
712
|
-
key:
|
|
705
|
+
(n(!0), S(L, null, P(r.value, (z) => (n(), S("li", {
|
|
706
|
+
key: z[m(a)],
|
|
713
707
|
class: "list-item"
|
|
714
708
|
}, [
|
|
715
|
-
J("div",
|
|
716
|
-
I(
|
|
717
|
-
t.extra ? (
|
|
709
|
+
J("div", xe, [
|
|
710
|
+
I(w(z[m(s)]) + " ", 1),
|
|
711
|
+
t.extra ? (n(), i(U, {
|
|
718
712
|
key: 0,
|
|
719
|
-
i:
|
|
720
|
-
}, null, 8, ["i"])) :
|
|
713
|
+
i: z
|
|
714
|
+
}, null, 8, ["i"])) : y("", !0)
|
|
721
715
|
])
|
|
722
716
|
]))), 128))
|
|
723
|
-
], 16,
|
|
724
|
-
[
|
|
717
|
+
], 16, we)), [
|
|
718
|
+
[p, F]
|
|
725
719
|
]);
|
|
726
720
|
};
|
|
727
721
|
}
|
|
728
722
|
});
|
|
729
|
-
const Be = /* @__PURE__ */
|
|
723
|
+
const Be = /* @__PURE__ */ x(Fe, [["__scopeId", "data-v-6bf38adc"]]), Ue = { key: 1 }, Ge = /* @__PURE__ */ b({
|
|
730
724
|
__name: "Descriptions",
|
|
731
725
|
props: {
|
|
732
726
|
formData: {
|
|
@@ -739,32 +733,32 @@ const Be = /* @__PURE__ */ w(Fe, [["__scopeId", "data-v-93a94a39"]]), Ue = { key
|
|
|
739
733
|
}
|
|
740
734
|
},
|
|
741
735
|
setup(e) {
|
|
742
|
-
const
|
|
743
|
-
const { i: s, render:
|
|
744
|
-
return
|
|
736
|
+
const o = e, t = (l, a) => {
|
|
737
|
+
const { i: s, render: u, formData: r } = l;
|
|
738
|
+
return u({
|
|
745
739
|
row: r,
|
|
746
740
|
$index: s
|
|
747
741
|
});
|
|
748
742
|
};
|
|
749
|
-
return (
|
|
750
|
-
const s =
|
|
751
|
-
return
|
|
743
|
+
return (l, a) => {
|
|
744
|
+
const s = d("el-descriptions-item"), u = d("el-descriptions");
|
|
745
|
+
return n(), i(u, g({
|
|
752
746
|
column: 1,
|
|
753
747
|
border: "",
|
|
754
748
|
class: "form-width"
|
|
755
|
-
},
|
|
756
|
-
default:
|
|
757
|
-
(
|
|
749
|
+
}, o), {
|
|
750
|
+
default: f(() => [
|
|
751
|
+
(n(!0), S(L, null, P(o.formItem, (r, _) => (n(), i(s, g({
|
|
758
752
|
key: r.prop,
|
|
759
753
|
label: r.label
|
|
760
754
|
}, r.descriptionsItemProps), {
|
|
761
|
-
default:
|
|
762
|
-
r.render ? (
|
|
755
|
+
default: f(() => [
|
|
756
|
+
r.render ? (n(), i(t, {
|
|
763
757
|
key: 0,
|
|
764
|
-
i:
|
|
758
|
+
i: _,
|
|
765
759
|
render: r.render,
|
|
766
760
|
formData: e.formData
|
|
767
|
-
}, null, 8, ["i", "render", "formData"])) : (
|
|
761
|
+
}, null, 8, ["i", "render", "formData"])) : (n(), S("span", Ue, w(e.formData[r.prop]), 1))
|
|
768
762
|
]),
|
|
769
763
|
_: 2
|
|
770
764
|
}, 1040, ["label"]))), 128))
|