@unizhen/ui 0.1.112 → 0.1.114
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/lib/ui.js
CHANGED
|
@@ -43,7 +43,7 @@ var ut = Object.defineProperty, dt = (e, t) => {
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
setup(e) {
|
|
46
|
-
return () =>
|
|
46
|
+
return () => Ii({
|
|
47
47
|
buttons: e.data,
|
|
48
48
|
rowData: e.rowData,
|
|
49
49
|
hProps: e.hProps
|
|
@@ -205,28 +205,19 @@ function qt(e, t) {
|
|
|
205
205
|
var Jt = /*#__PURE__*/ W(Gt, [["render", qt]]), Yt = {}, Xt = {
|
|
206
206
|
xmlns: "http://www.w3.org/2000/svg",
|
|
207
207
|
viewBox: "0 0 24 24",
|
|
208
|
+
width: "64",
|
|
209
|
+
height: "64",
|
|
208
210
|
fill: "none"
|
|
209
211
|
};
|
|
210
212
|
function Zt(e, t) {
|
|
211
|
-
return S(), a("svg", Xt, [...t[0] ||= [
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
"clip-rule": "evenodd",
|
|
220
|
-
d: "M7.25 10C7.25 9.58579 7.58579 9.25 8 9.25H16C16.4142 9.25 16.75 9.58579 16.75 10C16.75 10.4142 16.4142 10.75 16 10.75H8C7.58579 10.75 7.25 10.4142 7.25 10Z",
|
|
221
|
-
fill: "currentColor"
|
|
222
|
-
}, null, -1),
|
|
223
|
-
o("path", {
|
|
224
|
-
"fill-rule": "evenodd",
|
|
225
|
-
"clip-rule": "evenodd",
|
|
226
|
-
d: "M7.25 14C7.25 13.5858 7.58579 13.25 8 13.25H13C13.4142 13.25 13.75 13.5858 13.75 14C13.75 14.4142 13.4142 14.75 13 14.75H8C7.58579 14.75 7.25 14.4142 7.25 14Z",
|
|
227
|
-
fill: "currentColor"
|
|
228
|
-
}, null, -1)
|
|
229
|
-
]]);
|
|
213
|
+
return S(), a("svg", Xt, [...t[0] ||= [o("path", {
|
|
214
|
+
d: "M6.59961 11.3974C6.59961 8.67119 6.59961 7.3081 7.44314 6.46118C8.28667 5.61426 9.64432 5.61426 12.3596 5.61426H15.2396C17.9549 5.61426 19.3125 5.61426 20.1561 6.46118C20.9996 7.3081 20.9996 8.6712 20.9996 11.3974V16.2167C20.9996 18.9429 20.9996 20.306 20.1561 21.1529C19.3125 21.9998 17.9549 21.9998 15.2396 21.9998H12.3596C9.64432 21.9998 8.28667 21.9998 7.44314 21.1529C6.59961 20.306 6.59961 18.9429 6.59961 16.2167V11.3974Z",
|
|
215
|
+
fill: "currentColor"
|
|
216
|
+
}, null, -1), o("path", {
|
|
217
|
+
opacity: "0.5",
|
|
218
|
+
d: "M4.17157 3.17157C3 4.34315 3 6.22876 3 10V12C3 15.7712 3 17.6569 4.17157 18.8284C4.78913 19.446 5.6051 19.738 6.79105 19.8761C6.59961 19.0353 6.59961 17.8796 6.59961 16.2167V11.3974C6.59961 8.6712 6.59961 7.3081 7.44314 6.46118C8.28667 5.61426 9.64432 5.61426 12.3596 5.61426H15.2396C16.8915 5.61426 18.0409 5.61426 18.8777 5.80494C18.7403 4.61146 18.4484 3.79154 17.8284 3.17157C16.6569 2 14.7712 2 11 2C7.22876 2 5.34315 2 4.17157 3.17157Z",
|
|
219
|
+
fill: "currentColor"
|
|
220
|
+
}, null, -1)]]);
|
|
230
221
|
}
|
|
231
222
|
var Qt = /*#__PURE__*/ W(Yt, [["render", Zt]]), $t = {}, en = {
|
|
232
223
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -237,19 +228,19 @@ function tn(e, t) {
|
|
|
237
228
|
return S(), a("svg", en, [...t[0] ||= [
|
|
238
229
|
o("path", {
|
|
239
230
|
opacity: "0.5",
|
|
240
|
-
d: "
|
|
241
|
-
fill: "currentColor"
|
|
242
|
-
}, null, -1),
|
|
243
|
-
o("path", {
|
|
244
|
-
d: "M8 13C8.55228 13 9 12.5523 9 12C9 11.4477 8.55228 11 8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13Z",
|
|
231
|
+
d: "M3 10C3 6.22876 3 4.34315 4.17157 3.17157C5.34315 2 7.22876 2 11 2H13C16.7712 2 18.6569 2 19.8284 3.17157C21 4.34315 21 6.22876 21 10V14C21 17.7712 21 19.6569 19.8284 20.8284C18.6569 22 16.7712 22 13 22H11C7.22876 22 5.34315 22 4.17157 20.8284C3 19.6569 3 17.7712 3 14V10Z",
|
|
245
232
|
fill: "currentColor"
|
|
246
233
|
}, null, -1),
|
|
247
234
|
o("path", {
|
|
248
|
-
|
|
235
|
+
"fill-rule": "evenodd",
|
|
236
|
+
"clip-rule": "evenodd",
|
|
237
|
+
d: "M7.25 10C7.25 9.58579 7.58579 9.25 8 9.25H16C16.4142 9.25 16.75 9.58579 16.75 10C16.75 10.4142 16.4142 10.75 16 10.75H8C7.58579 10.75 7.25 10.4142 7.25 10Z",
|
|
249
238
|
fill: "currentColor"
|
|
250
239
|
}, null, -1),
|
|
251
240
|
o("path", {
|
|
252
|
-
|
|
241
|
+
"fill-rule": "evenodd",
|
|
242
|
+
"clip-rule": "evenodd",
|
|
243
|
+
d: "M7.25 14C7.25 13.5858 7.58579 13.25 8 13.25H13C13.4142 13.25 13.75 13.5858 13.75 14C13.75 14.4142 13.4142 14.75 13 14.75H8C7.58579 14.75 7.25 14.4142 7.25 14Z",
|
|
253
244
|
fill: "currentColor"
|
|
254
245
|
}, null, -1)
|
|
255
246
|
]]);
|
|
@@ -262,16 +253,16 @@ var nn = /*#__PURE__*/ W($t, [["render", tn]]), rn = {}, an = {
|
|
|
262
253
|
function on(e, t) {
|
|
263
254
|
return S(), a("svg", an, [...t[0] ||= [
|
|
264
255
|
o("path", {
|
|
265
|
-
|
|
266
|
-
d: "M1 12C1 6.81455 1 4.22183 2.61091 2.61091C4.22183 1 6.81455 1 12 1C17.1854 1 19.7782 1 21.3891 2.61091C23 4.22183 23 6.81455 23 12C23 17.1854 23 19.7782 21.3891 21.3891C19.7782 23 17.1854 23 12 23C6.81455 23 4.22183 23 2.61091 21.3891C1 19.7782 1 17.1854 1 12Z",
|
|
256
|
+
d: "M7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12Z",
|
|
267
257
|
fill: "currentColor"
|
|
268
258
|
}, null, -1),
|
|
269
259
|
o("path", {
|
|
270
|
-
d: "
|
|
260
|
+
d: "M21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12C17 10.8954 17.8954 10 19 10C20.1046 10 21 10.8954 21 12Z",
|
|
271
261
|
fill: "currentColor"
|
|
272
262
|
}, null, -1),
|
|
273
263
|
o("path", {
|
|
274
|
-
|
|
264
|
+
opacity: "0.5",
|
|
265
|
+
d: "M14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12Z",
|
|
275
266
|
fill: "currentColor"
|
|
276
267
|
}, null, -1)
|
|
277
268
|
]]);
|
|
@@ -282,7 +273,14 @@ var sn = /*#__PURE__*/ W(rn, [["render", on]]), cn = {}, ln = {
|
|
|
282
273
|
fill: "none"
|
|
283
274
|
};
|
|
284
275
|
function un(e, t) {
|
|
285
|
-
return S(), a("svg", ln, [...t[0] ||= [
|
|
276
|
+
return S(), a("svg", ln, [...t[0] ||= [o("path", {
|
|
277
|
+
opacity: "0.5",
|
|
278
|
+
d: "M20.8487 8.71306C22.3844 7.17735 22.3844 4.68748 20.8487 3.15178C19.313 1.61607 16.8231 1.61607 15.2874 3.15178L14.4004 4.03882C14.4125 4.0755 14.4251 4.11268 14.4382 4.15035C14.7633 5.0875 15.3768 6.31601 16.5308 7.47002C17.6848 8.62403 18.9133 9.23749 19.8505 9.56262C19.888 9.57563 19.925 9.58817 19.9615 9.60026L20.8487 8.71306Z",
|
|
279
|
+
fill: "currentColor"
|
|
280
|
+
}, null, -1), o("path", {
|
|
281
|
+
d: "M14.4386 4L14.4004 4.03819C14.4125 4.07487 14.4251 4.11206 14.4382 4.14973C14.7633 5.08687 15.3768 6.31538 16.5308 7.4694C17.6848 8.62341 18.9133 9.23686 19.8505 9.56199C19.8876 9.57489 19.9243 9.58733 19.9606 9.59933L11.4001 18.1598C10.823 18.7369 10.5343 19.0255 10.2162 19.2737C9.84082 19.5665 9.43469 19.8175 9.00498 20.0223C8.6407 20.1959 8.25351 20.3249 7.47918 20.583L3.39584 21.9442C3.01478 22.0712 2.59466 21.972 2.31063 21.688C2.0266 21.4039 1.92743 20.9838 2.05445 20.6028L3.41556 16.5194C3.67368 15.7451 3.80273 15.3579 3.97634 14.9936C4.18114 14.5639 4.43213 14.1578 4.7249 13.7824C4.97307 13.4643 5.26165 13.1757 5.83874 12.5986L14.4386 4Z",
|
|
282
|
+
fill: "currentColor"
|
|
283
|
+
}, null, -1)]]);
|
|
286
284
|
}
|
|
287
285
|
var dn = /*#__PURE__*/ W(cn, [["render", un]]), fn = {}, pn = {
|
|
288
286
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -290,7 +288,15 @@ var dn = /*#__PURE__*/ W(cn, [["render", un]]), fn = {}, pn = {
|
|
|
290
288
|
fill: "none"
|
|
291
289
|
};
|
|
292
290
|
function mn(e, t) {
|
|
293
|
-
return S(), a("svg", pn, [...t[0] ||= [
|
|
291
|
+
return S(), a("svg", pn, [...t[0] ||= [c("<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.9511 8.59515L12.5875 8.23781C11.069 6.7455 10.3098 5.99934 9.48673 6C9.21786 6.00021 8.95184 6.05411 8.70481 6.15843C7.94859 6.47775 7.55155 7.45818 6.75747 9.41903L6.70001 9.56094C6.47489 10.1168 6.36233 10.3948 6.18157 10.619C6.04444 10.7891 5.87938 10.9356 5.6932 11.0523C5.44779 11.2061 5.15496 11.2878 4.5693 11.4511C3.66115 11.7045 3.20707 11.8311 3.00555 12.1012C2.8558 12.302 2.7898 12.5514 2.82108 12.7984C2.86316 13.1307 3.19693 13.4588 3.86446 14.1148L4.88148 15.1143L5.92632 16.1412L5.94409 16.1586L6.97115 17.168C7.63868 17.8241 7.97244 18.1521 8.31063 18.1934C8.56197 18.2242 8.81575 18.1593 9.02 18.0121C9.29483 17.8141 9.42371 17.3678 9.68146 16.4753C9.84768 15.8997 9.9308 15.6119 10.0873 15.3708C10.2061 15.1878 10.3551 15.0256 10.5282 14.8908C10.7563 14.7132 11.0391 14.6025 11.6048 14.3813L11.7492 14.3248C13.7444 13.5444 14.742 13.1542 15.0669 12.411C15.173 12.1682 15.2279 11.9068 15.2281 11.6425C15.2287 10.8336 14.4695 10.0875 12.9511 8.59515Z\" fill=\"currentColor\"></path><path opacity=\"0.5\" d=\"M3.2706 18.7857L5.94386 16.1586L5.92608 16.1411L4.88125 15.1143L2.218 17.7512C1.92733 18.0369 1.92733 18.5 2.218 18.7857C2.50867 19.0714 2.97993 19.0714 3.2706 18.7857Z\" fill=\"currentColor\"></path><g opacity=\"0.5\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.0003 8.37699C22.0003 8.78098 21.667 9.10848 21.256 9.10848H16.294C15.8829 9.10848 15.5497 8.78098 15.5497 8.37699C15.5497 7.97301 15.8829 7.64551 16.294 7.64551H21.256C21.667 7.64551 22.0003 7.97301 22.0003 8.37699Z\" fill=\"currentColor\"></path><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.0003 12.7659C22.0003 13.1699 21.667 13.4974 21.256 13.4974H17.2864C16.8753 13.4974 16.5421 13.1699 16.5421 12.7659C16.5421 12.3619 16.8753 12.0344 17.2864 12.0344H21.256C21.667 12.0344 22.0003 12.3619 22.0003 12.7659Z\" fill=\"currentColor\"></path><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.0003 17.1548C22.0003 17.5588 21.667 17.8863 21.256 17.8863H12.3244C11.9133 17.8863 11.5801 17.5588 11.5801 17.1548C11.5801 16.7508 11.9133 16.4234 12.3244 16.4234H21.256C21.667 16.4234 22.0003 16.7508 22.0003 17.1548Z\" fill=\"currentColor\"></path></g>", 3)]]);
|
|
292
|
+
}
|
|
293
|
+
var hn = /*#__PURE__*/ W(fn, [["render", mn]]), gn = {}, _n = {
|
|
294
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
295
|
+
viewBox: "0 0 24 24",
|
|
296
|
+
fill: "none"
|
|
297
|
+
};
|
|
298
|
+
function vn(e, t) {
|
|
299
|
+
return S(), a("svg", _n, [...t[0] ||= [
|
|
294
300
|
o("path", {
|
|
295
301
|
d: "M18 8C18 9.10457 17.1046 10 16 10C14.8954 10 14 9.10457 14 8C14 6.89543 14.8954 6 16 6C17.1046 6 18 6.89543 18 8Z",
|
|
296
302
|
fill: "currentColor"
|
|
@@ -308,29 +314,29 @@ function mn(e, t) {
|
|
|
308
314
|
}, null, -1)
|
|
309
315
|
]]);
|
|
310
316
|
}
|
|
311
|
-
var
|
|
317
|
+
var yn = /*#__PURE__*/ W(gn, [["render", vn]]), bn = {}, xn = {
|
|
312
318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
313
319
|
viewBox: "0 0 24 24",
|
|
314
320
|
fill: "none"
|
|
315
321
|
};
|
|
316
|
-
function
|
|
317
|
-
return S(), a("svg",
|
|
322
|
+
function Sn(e, t) {
|
|
323
|
+
return S(), a("svg", xn, [...t[0] ||= [c("<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M17 3.25C17.2361 3.25 17.4584 3.36115 17.6 3.55L20.6 7.55C20.8486 7.88137 20.7814 8.35147 20.45 8.6C20.1187 8.84853 19.6486 8.78137 19.4 8.45L17.75 6.25V17.75L19.4 15.55C19.6486 15.2186 20.1187 15.1515 20.45 15.4C20.7814 15.6485 20.8486 16.1186 20.6 16.45L17.6 20.45C17.4584 20.6389 17.2361 20.75 17 20.75C16.764 20.75 16.5417 20.6389 16.4 20.45L13.4 16.45C13.1515 16.1186 13.2187 15.6485 13.55 15.4C13.8814 15.1515 14.3515 15.2186 14.6 15.55L16.25 17.75V6.25L14.6 8.45C14.3515 8.78137 13.8814 8.84853 13.55 8.6C13.2187 8.35147 13.1515 7.88137 13.4 7.55L16.4 3.55C16.5417 3.36115 16.764 3.25 17 3.25Z\" fill=\"currentColor\"></path><g opacity=\"0.5\"><path d=\"M3.25 7C3.25 6.58579 3.58579 6.25 4 6.25H11C11.4142 6.25 11.75 6.58579 11.75 7C11.75 7.41421 11.4142 7.75 11 7.75H4C3.58579 7.75 3.25 7.41421 3.25 7Z\" fill=\"currentColor\"></path><path d=\"M3.25 12C3.25 11.5858 3.58579 11.25 4 11.25H11C11.4142 11.25 11.75 11.5858 11.75 12C11.75 12.4142 11.4142 12.75 11 12.75H4C3.58579 12.75 3.25 12.4142 3.25 12Z\" fill=\"currentColor\"></path><path d=\"M3.25 17C3.25 16.5858 3.58579 16.25 4 16.25H11C11.4142 16.25 11.75 16.5858 11.75 17C11.75 17.4142 11.4142 17.75 11 17.75H4C3.58579 17.75 3.25 17.4142 3.25 17Z\" fill=\"currentColor\"></path></g>", 2)]]);
|
|
318
324
|
}
|
|
319
|
-
var
|
|
325
|
+
var Cn = /*#__PURE__*/ W(bn, [["render", Sn]]), wn = {}, Tn = {
|
|
320
326
|
xmlns: "http://www.w3.org/2000/svg",
|
|
321
327
|
viewBox: "0 0 24 24",
|
|
322
328
|
fill: "none"
|
|
323
329
|
};
|
|
324
|
-
function
|
|
325
|
-
return S(), a("svg",
|
|
330
|
+
function En(e, t) {
|
|
331
|
+
return S(), a("svg", Tn, [...t[0] ||= [c("<path d=\"M17.1211 2.87868C16.2424 2 14.8282 2 11.9998 2C9.17134 2 7.75712 2 6.87844 2.87868C6.38608 3.37105 6.16961 4.03157 6.07444 5.01484C6.63368 4.99996 7.25183 4.99998 7.92943 5H16.0706C16.748 4.99998 17.366 4.99996 17.9251 5.01483C17.8299 4.03156 17.6135 3.37105 17.1211 2.87868Z\" fill=\"currentColor\"></path><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M18 14.5C18 17.3284 18 20.2426 17.1213 21.1213C16.2426 22 14.8284 22 12 22C9.17158 22 7.75736 22 6.87868 21.1213C6 20.2426 6 17.3284 6 14.5H18ZM15.75 16.75C15.75 17.1642 15.4142 17.5 15 17.5H9C8.58579 17.5 8.25 17.1642 8.25 16.75C8.25 16.3358 8.58579 16 9 16H15C15.4142 16 15.75 16.3358 15.75 16.75ZM13.75 19.75C13.75 20.1642 13.4142 20.5 13 20.5H9C8.58579 20.5 8.25 20.1642 8.25 19.75C8.25 19.3358 8.58579 19 9 19H13C13.4142 19 13.75 19.3358 13.75 19.75Z\" fill=\"currentColor\"></path><g opacity=\"0.5\"><path d=\"M15 17.5C15.4142 17.5 15.75 17.1642 15.75 16.75C15.75 16.3358 15.4142 16 15 16H9C8.58579 16 8.25 16.3358 8.25 16.75C8.25 17.1642 8.58579 17.5 9 17.5H15Z\" fill=\"currentColor\"></path><path d=\"M13 20.5C13.4142 20.5 13.75 20.1642 13.75 19.75C13.75 19.3358 13.4142 19 13 19H9C8.58579 19 8.25 19.3358 8.25 19.75C8.25 20.1642 8.58579 20.5 9 20.5H13Z\" fill=\"currentColor\"></path></g><path opacity=\"0.5\" d=\"M16 6H8C5.17157 6 3.75736 6 2.87868 6.87868C2 7.75736 2 9.17157 2 12C2 14.8284 2 16.2426 2.87868 17.1213C3.37323 17.6159 4.03743 17.8321 5.02795 17.9266C4.99998 17.2038 4.99999 15.3522 5 14.5C4.72386 14.5 4.5 14.2761 4.5 14C4.5 13.7239 4.72386 13.5 5 13.5H19C19.2761 13.5 19.5 13.7239 19.5 14C19.5 14.2761 19.2761 14.5003 19 14.5003C19 15.3525 19 17.2039 18.9721 17.9266C19.9626 17.8321 20.6268 17.6159 21.1213 17.1213C22 16.2426 22 14.8284 22 12C22 9.17157 22 7.75736 21.1213 6.87868C20.2426 6 18.8284 6 16 6Z\" fill=\"currentColor\"></path><path d=\"M9 10.75C9.41421 10.75 9.75 10.4142 9.75 10C9.75 9.58579 9.41421 9.25 9 9.25H6C5.58579 9.25 5.25 9.58579 5.25 10C5.25 10.4142 5.58579 10.75 6 10.75H9Z\" fill=\"currentColor\"></path><path d=\"M18 10C18 10.5523 17.5523 11 17 11C16.4477 11 16 10.5523 16 10C16 9.44772 16.4477 9 17 9C17.5523 9 18 9.44772 18 10Z\" fill=\"currentColor\"></path>", 6)]]);
|
|
326
332
|
}
|
|
327
|
-
var
|
|
333
|
+
var Dn = /*#__PURE__*/ W(wn, [["render", En]]), On = {}, kn = {
|
|
328
334
|
xmlns: "http://www.w3.org/2000/svg",
|
|
329
335
|
viewBox: "0 0 24 24",
|
|
330
336
|
fill: "none"
|
|
331
337
|
};
|
|
332
|
-
function
|
|
333
|
-
return S(), a("svg",
|
|
338
|
+
function An(e, t) {
|
|
339
|
+
return S(), a("svg", kn, [...t[0] ||= [o("path", {
|
|
334
340
|
d: "M12.0789 2.25C7.2854 2.25 3.34478 5.913 2.96055 10.5833H2.00002C1.69614 10.5833 1.42229 10.7667 1.30655 11.0477C1.19081 11.3287 1.25606 11.6517 1.47178 11.8657L3.15159 13.5324C3.444 13.8225 3.91567 13.8225 4.20808 13.5324L5.88789 11.8657C6.10361 11.6517 6.16886 11.3287 6.05312 11.0477C5.93738 10.7667 5.66353 10.5833 5.35965 10.5833H4.4668C4.84652 6.75167 8.10479 3.75 12.0789 3.75C14.8484 3.75 17.2727 5.20845 18.6156 7.39279C18.8325 7.74565 19.2944 7.85585 19.6473 7.63892C20.0002 7.42199 20.1104 6.96007 19.8934 6.60721C18.2871 3.99427 15.3873 2.25 12.0789 2.25Z",
|
|
335
341
|
fill: "currentColor"
|
|
336
342
|
}, null, -1), o("path", {
|
|
@@ -339,26 +345,26 @@ function En(e, t) {
|
|
|
339
345
|
fill: "currentColor"
|
|
340
346
|
}, null, -1)]]);
|
|
341
347
|
}
|
|
342
|
-
var
|
|
348
|
+
var jn = /*#__PURE__*/ W(On, [["render", An]]), Mn = {}, Nn = {
|
|
343
349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
344
350
|
viewBox: "0 0 24 24",
|
|
345
351
|
fill: "none"
|
|
346
352
|
};
|
|
347
|
-
function
|
|
348
|
-
return S(), a("svg",
|
|
353
|
+
function Pn(e, t) {
|
|
354
|
+
return S(), a("svg", Nn, [...t[0] ||= [o("path", {
|
|
349
355
|
"fill-rule": "evenodd",
|
|
350
356
|
"clip-rule": "evenodd",
|
|
351
357
|
d: "M16.4733 17.8875C14.8415 19.2086 12.7631 20 10.5 20C5.25329 20 1 15.7467 1 10.5C1 5.25329 5.25329 1 10.5 1C15.7467 1 20 5.25329 20 10.5C20 12.7631 19.2086 14.8415 17.8875 16.4733L22.7071 21.2929C23.0976 21.6834 23.0976 22.3166 22.7071 22.7071C22.3166 23.0976 21.6834 23.0976 21.2929 22.7071L16.4733 17.8875ZM3 10.5C3 6.35786 6.35786 3 10.5 3C14.6421 3 18 6.35786 18 10.5C18 12.5129 17.207 14.3407 15.9163 15.6878C15.8731 15.719 15.8318 15.754 15.7929 15.7929C15.754 15.8318 15.719 15.8731 15.6878 15.9163C14.3407 17.207 12.5129 18 10.5 18C6.35786 18 3 14.6421 3 10.5Z",
|
|
352
358
|
fill: "currentColor"
|
|
353
359
|
}, null, -1)]]);
|
|
354
360
|
}
|
|
355
|
-
var
|
|
361
|
+
var Fn = /*#__PURE__*/ W(Mn, [["render", Pn]]), In = {}, Ln = {
|
|
356
362
|
xmlns: "http://www.w3.org/2000/svg",
|
|
357
363
|
viewBox: "0 0 24 24",
|
|
358
364
|
fill: "none"
|
|
359
365
|
};
|
|
360
|
-
function
|
|
361
|
-
return S(), a("svg",
|
|
366
|
+
function Rn(e, t) {
|
|
367
|
+
return S(), a("svg", Ln, [...t[0] ||= [o("path", {
|
|
362
368
|
opacity: "0.5",
|
|
363
369
|
d: "M3.03414 8.89004C2.5536 5.68645 2.31333 4.08466 3.21098 3.04233C4.10862 2 5.72833 2 8.96776 2H15.0335C18.2729 2 19.8927 2 20.7903 3.04233C21.6879 4.08466 21.4477 5.68646 20.9671 8.89004L19.7671 16.89C19.4015 19.3276 19.2187 20.5464 18.3747 21.2732C17.5308 22 16.2984 22 13.8335 22H10.1678C7.70289 22 6.47046 22 5.62653 21.2732C4.7826 20.5464 4.59978 19.3276 4.23414 16.89L3.03414 8.89004Z",
|
|
364
370
|
fill: "currentColor"
|
|
@@ -369,7 +375,7 @@ function Pn(e, t) {
|
|
|
369
375
|
fill: "currentColor"
|
|
370
376
|
}, null, -1)]]);
|
|
371
377
|
}
|
|
372
|
-
var
|
|
378
|
+
var zn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
373
379
|
"./Add.vue": gt,
|
|
374
380
|
"./ArrowDown.vue": bt,
|
|
375
381
|
"./ArrowLeft.vue": wt,
|
|
@@ -379,17 +385,18 @@ var Fn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
379
385
|
"./CircleMinus.vue": Bt,
|
|
380
386
|
"./CloudDownload.vue": Wt,
|
|
381
387
|
"./CloudUpload.vue": Jt,
|
|
382
|
-
"./
|
|
383
|
-
"./
|
|
384
|
-
"./
|
|
385
|
-
"./
|
|
386
|
-
"./
|
|
387
|
-
"./
|
|
388
|
-
"./
|
|
389
|
-
"./
|
|
390
|
-
"./
|
|
391
|
-
"./
|
|
392
|
-
|
|
388
|
+
"./Copy.vue": Qt,
|
|
389
|
+
"./Document.vue": nn,
|
|
390
|
+
"./DotsVertical.vue": sn,
|
|
391
|
+
"./Edit.vue": dn,
|
|
392
|
+
"./Filter.vue": hn,
|
|
393
|
+
"./Gallery.vue": yn,
|
|
394
|
+
"./List.vue": Cn,
|
|
395
|
+
"./Printer.vue": Dn,
|
|
396
|
+
"./Refresh.vue": jn,
|
|
397
|
+
"./Search.vue": Fn,
|
|
398
|
+
"./Trash.vue": /* @__PURE__ */ W(In, [["render", Rn]])
|
|
399
|
+
})).map(([e, t]) => [e.slice(2, -4), t])), Bn = f({
|
|
393
400
|
name: "UzIcon",
|
|
394
401
|
props: {
|
|
395
402
|
icon: {
|
|
@@ -400,13 +407,17 @@ var Fn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
400
407
|
extendIcons: {
|
|
401
408
|
type: [Object],
|
|
402
409
|
default: () => ({})
|
|
410
|
+
},
|
|
411
|
+
defaultIcon: {
|
|
412
|
+
type: [Object],
|
|
413
|
+
default: void 0
|
|
403
414
|
}
|
|
404
415
|
},
|
|
405
416
|
setup(e) {
|
|
406
417
|
let t = T(!0), n = T(), r = (r) => {
|
|
407
418
|
if (t.value = !1, r && typeof r == "string") {
|
|
408
419
|
try {
|
|
409
|
-
Object.keys(e.extendIcons).length > 0 ? n.value = e.extendIcons[r] : n.value =
|
|
420
|
+
Object.keys(e.extendIcons).length > 0 ? e.extendIcons[r] ? n.value = e.extendIcons[r] : n.value = e.extendIcons[e.defaultIcon] : n.value = Vn[r];
|
|
410
421
|
} catch {}
|
|
411
422
|
g(() => {
|
|
412
423
|
t.value = !0;
|
|
@@ -419,18 +430,18 @@ var Fn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
419
430
|
r(e);
|
|
420
431
|
}), () => t.value ? n.value && n.value.render(null, []) : null;
|
|
421
432
|
}
|
|
422
|
-
}),
|
|
423
|
-
function
|
|
424
|
-
return
|
|
433
|
+
}), Vn = zn, G;
|
|
434
|
+
function Hn(e, t = "/") {
|
|
435
|
+
return G = Ke({
|
|
425
436
|
history: qe(t),
|
|
426
437
|
routes: e,
|
|
427
438
|
scrollBehavior: () => ({
|
|
428
439
|
left: 0,
|
|
429
440
|
top: 0
|
|
430
441
|
})
|
|
431
|
-
}),
|
|
442
|
+
}), G;
|
|
432
443
|
}
|
|
433
|
-
var
|
|
444
|
+
var Un = Xe({
|
|
434
445
|
legacy: !1,
|
|
435
446
|
locale: "zh-CN",
|
|
436
447
|
messages: {
|
|
@@ -530,16 +541,16 @@ var G = Xe({
|
|
|
530
541
|
language: !1,
|
|
531
542
|
lang: "zh-CN"
|
|
532
543
|
});
|
|
533
|
-
function
|
|
544
|
+
function Wn(e) {
|
|
534
545
|
K.language = e;
|
|
535
546
|
}
|
|
536
|
-
function
|
|
547
|
+
function Gn(e) {
|
|
537
548
|
let t;
|
|
538
549
|
t = e || (K.lang === "zh-CN" ? "en-US" : "zh-CN"), J("lang", t, 0), K.lang = t;
|
|
539
550
|
let n = document.body;
|
|
540
|
-
n.dataset.lang = t,
|
|
551
|
+
n.dataset.lang = t, Un.global.locale.value = t;
|
|
541
552
|
}
|
|
542
|
-
function
|
|
553
|
+
function Kn(e) {
|
|
543
554
|
let t = document.body;
|
|
544
555
|
t.classList.add("remove-all-transition");
|
|
545
556
|
let n = document.querySelector("meta[name=theme-color]");
|
|
@@ -547,45 +558,45 @@ function Hn(e) {
|
|
|
547
558
|
t.classList.remove("remove-all-transition");
|
|
548
559
|
}, 0);
|
|
549
560
|
}
|
|
550
|
-
function
|
|
561
|
+
function qn(e) {
|
|
551
562
|
K.needUpdate = e;
|
|
552
563
|
}
|
|
553
|
-
function
|
|
564
|
+
function Jn(e) {
|
|
554
565
|
K.title = e;
|
|
555
566
|
}
|
|
556
|
-
var
|
|
567
|
+
var Yn = () => {
|
|
557
568
|
K.isMobile = window.screen.availWidth < 769;
|
|
558
569
|
};
|
|
559
|
-
window.addEventListener("resize",
|
|
570
|
+
window.addEventListener("resize", Yn), Yn();
|
|
560
571
|
//#endregion
|
|
561
572
|
//#region components/localStorage.ts
|
|
562
|
-
var
|
|
563
|
-
function
|
|
564
|
-
|
|
573
|
+
var Xn = window.localStorage;
|
|
574
|
+
function Zn(e, t) {
|
|
575
|
+
Xn.setItem(e, JSON.stringify(t));
|
|
565
576
|
}
|
|
566
|
-
function
|
|
567
|
-
let t =
|
|
577
|
+
function Qn(e) {
|
|
578
|
+
let t = Xn.getItem(e);
|
|
568
579
|
if (t) return JSON.parse(t);
|
|
569
580
|
}
|
|
570
|
-
function
|
|
571
|
-
|
|
581
|
+
function $n(e) {
|
|
582
|
+
Xn.removeItem(e);
|
|
572
583
|
}
|
|
573
|
-
function
|
|
584
|
+
function er() {
|
|
574
585
|
return Date.parse(String(/* @__PURE__ */ new Date()));
|
|
575
586
|
}
|
|
576
|
-
var
|
|
587
|
+
var tr = "local-", nr = new class {
|
|
577
588
|
namespace;
|
|
578
589
|
mapKey;
|
|
579
590
|
map;
|
|
580
591
|
constructor(e = "") {
|
|
581
|
-
this.namespace = e, this.mapKey =
|
|
592
|
+
this.namespace = e, this.mapKey = tr + this.namespace, this.map = Qn(this.mapKey) || {};
|
|
582
593
|
}
|
|
583
594
|
set(e, t, n = 0) {
|
|
584
595
|
let r = this.getReallyKey(e), i = {
|
|
585
596
|
expires: n,
|
|
586
|
-
time:
|
|
597
|
+
time: er()
|
|
587
598
|
};
|
|
588
|
-
|
|
599
|
+
Zn(r, t), this.map[e] = i, Zn(this.mapKey, this.map);
|
|
589
600
|
}
|
|
590
601
|
getReallyKey(e) {
|
|
591
602
|
return this.namespace + "-" + e;
|
|
@@ -593,9 +604,9 @@ var Zn = "local-", Qn = new class {
|
|
|
593
604
|
get(e, t) {
|
|
594
605
|
let n = this.getReallyKey(e), r = this.map[e];
|
|
595
606
|
if (r) {
|
|
596
|
-
let i =
|
|
607
|
+
let i = Qn(n);
|
|
597
608
|
if (r.expires > 0) {
|
|
598
|
-
if (
|
|
609
|
+
if (er() - r.time <= r.expires) return i === !1 || i ? i : t;
|
|
599
610
|
this.delete(e);
|
|
600
611
|
} else return i === !1 || i ? i : t;
|
|
601
612
|
}
|
|
@@ -603,7 +614,7 @@ var Zn = "local-", Qn = new class {
|
|
|
603
614
|
}
|
|
604
615
|
delete(e) {
|
|
605
616
|
let t = this.getReallyKey(e);
|
|
606
|
-
delete this.map[e],
|
|
617
|
+
delete this.map[e], Zn(this.mapKey, this.map), $n(t);
|
|
607
618
|
}
|
|
608
619
|
deleteByPrefix(e) {
|
|
609
620
|
for (let t in this.map) t.indexOf(e) > -1 && this.delete(t);
|
|
@@ -611,12 +622,12 @@ var Zn = "local-", Qn = new class {
|
|
|
611
622
|
deleteAll() {
|
|
612
623
|
for (let e in this.map) this.delete(e);
|
|
613
624
|
}
|
|
614
|
-
}("uz"),
|
|
625
|
+
}("uz"), rr = new Intl.Collator("zh-Hans-u-co-pinyin"), ir = [..."阿八嚓哒妸发旮哈讥咔垃妈拏噢妑七呥仨他屲夕丫帀"], ar = [..."ABCDEFGHJKLMNOPQRSTWXYZ"], { notification: or, dialog: sr } = Ve(["notification", "dialog"], {
|
|
615
626
|
configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
|
|
616
627
|
notificationProviderProps: { placement: "bottom-right" }
|
|
617
|
-
}),
|
|
628
|
+
}), cr = or, lr = sr;
|
|
618
629
|
function q(e) {
|
|
619
|
-
console.log(e),
|
|
630
|
+
console.log(e), or.error({
|
|
620
631
|
content: e.message,
|
|
621
632
|
duration: 3e3
|
|
622
633
|
});
|
|
@@ -638,18 +649,18 @@ function J(e, t, n = "1 Day") {
|
|
|
638
649
|
}
|
|
639
650
|
n = Number(t[0]) * e;
|
|
640
651
|
}
|
|
641
|
-
|
|
652
|
+
nr.set(e, t, n);
|
|
642
653
|
}
|
|
643
654
|
function Y(e, t) {
|
|
644
|
-
return
|
|
655
|
+
return nr.get(e, t);
|
|
645
656
|
}
|
|
646
|
-
var
|
|
647
|
-
|
|
648
|
-
},
|
|
649
|
-
|
|
650
|
-
},
|
|
651
|
-
|
|
652
|
-
},
|
|
657
|
+
var ur = (e) => {
|
|
658
|
+
nr.delete(e);
|
|
659
|
+
}, dr = (e) => {
|
|
660
|
+
nr.deleteByPrefix(e);
|
|
661
|
+
}, fr = () => {
|
|
662
|
+
nr.deleteAll();
|
|
663
|
+
}, pr = (e = 0) => {
|
|
653
664
|
let t = document.documentElement, n = document.querySelectorAll(".uz-table-m-content");
|
|
654
665
|
t && (t.scrollTop = e, setTimeout(() => {
|
|
655
666
|
t.scrollTop = e;
|
|
@@ -657,7 +668,7 @@ var or = (e) => {
|
|
|
657
668
|
t.scrollTop = e;
|
|
658
669
|
});
|
|
659
670
|
};
|
|
660
|
-
function
|
|
671
|
+
function mr(e) {
|
|
661
672
|
if (!e.records) {
|
|
662
673
|
let t = e;
|
|
663
674
|
return {
|
|
@@ -701,7 +712,7 @@ function ur(e) {
|
|
|
701
712
|
records: e.records
|
|
702
713
|
};
|
|
703
714
|
}
|
|
704
|
-
var
|
|
715
|
+
var hr = (e, t = "yyyy-MM-dd") => {
|
|
705
716
|
if (!e) return "";
|
|
706
717
|
typeof e == "string" && (e = e.replace(/年/g, "-").replace(/月/g, "-").replace(/日/g, ""));
|
|
707
718
|
let n = new Date(e);
|
|
@@ -719,9 +730,9 @@ var dr = (e, t = "yyyy-MM-dd") => {
|
|
|
719
730
|
RegExp.$1.length !== 1 && (n = ("00" + r[e]).substr(("" + r[e]).length)), t = t.replace(RegExp.$1, n);
|
|
720
731
|
}
|
|
721
732
|
return t;
|
|
722
|
-
},
|
|
733
|
+
}, gr = (e) => {
|
|
723
734
|
document.title = `${e} - ${K.title}`;
|
|
724
|
-
},
|
|
735
|
+
}, _r = (e, t = 500) => {
|
|
725
736
|
let n = e, r, i = !1, a = function(...e) {
|
|
726
737
|
if (i) {
|
|
727
738
|
n.apply(a, e), i = !1;
|
|
@@ -733,10 +744,10 @@ var dr = (e, t = "yyyy-MM-dd") => {
|
|
|
733
744
|
};
|
|
734
745
|
return a;
|
|
735
746
|
};
|
|
736
|
-
function
|
|
747
|
+
function vr(e, t) {
|
|
737
748
|
e.requestFullscreen ? (t && (e.onfullscreenchange = t), e.requestFullscreen()) : e.mozRequestFullScreen ? (t && (e.onmozfullscreenchange = t), e.mozRequestFullScreen()) : e.webkitRequestFullscreen ? (t && (e.onwebkitfullscreenchange = t), e.webkitRequestFullscreen()) : e.msRequestFullscreen && (t && (e.onmsfullscreenchange = t), e.msRequestFullscreen());
|
|
738
749
|
}
|
|
739
|
-
function
|
|
750
|
+
function yr(e, t = 0) {
|
|
740
751
|
let n = [
|
|
741
752
|
"",
|
|
742
753
|
"k",
|
|
@@ -746,20 +757,20 @@ function hr(e, t = 0) {
|
|
|
746
757
|
], r = Math.floor(Math.log10(Math.abs(e)) / 3), i = Math.max(0, Math.min(r, n.length - 1)), a = n[i];
|
|
747
758
|
return a ? (e / 10 ** (i * 3)).toFixed(t) + a : (e / 10 ** (i * 3)).toFixed(0);
|
|
748
759
|
}
|
|
749
|
-
function
|
|
760
|
+
function br(e) {
|
|
750
761
|
if (/^[a-z0-9]$/i.test(e)) return e.toLowerCase();
|
|
751
762
|
if (!/^[\u4e00-\u9fff]$/.test(e)) return "";
|
|
752
|
-
for (let t =
|
|
763
|
+
for (let t = ir.length - 1; t >= 0; --t) if (rr.compare(e, ir[t]) >= 0) return ar[t].toLowerCase();
|
|
753
764
|
return "";
|
|
754
765
|
}
|
|
755
|
-
function
|
|
756
|
-
return [...String(e)].map(
|
|
766
|
+
function xr(e) {
|
|
767
|
+
return [...String(e)].map(br).join("");
|
|
757
768
|
}
|
|
758
|
-
function
|
|
769
|
+
function Sr(e, t) {
|
|
759
770
|
let n = String(t).trim().toLowerCase();
|
|
760
|
-
return n === "" || e.toLowerCase().includes(n) ||
|
|
771
|
+
return n === "" || e.toLowerCase().includes(n) || xr(e).includes(n);
|
|
761
772
|
}
|
|
762
|
-
function
|
|
773
|
+
function Cr(e, t) {
|
|
763
774
|
e.forEach((e) => {
|
|
764
775
|
let n = t.find((t) => t.key === e.key);
|
|
765
776
|
n && (e.hide = n.hide, e.show = n.show, e.width = n.width);
|
|
@@ -772,8 +783,8 @@ function yr(e, t) {
|
|
|
772
783
|
}
|
|
773
784
|
//#endregion
|
|
774
785
|
//#region components/monitor.ts
|
|
775
|
-
var
|
|
776
|
-
let e =
|
|
786
|
+
var wr = 500, Tr = 300, Er = [], Dr = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakSet(), Ar, jr, Mr, Nr, Pr, Fr, Ir = !1, Lr = () => typeof navigator > "u" ? "" : navigator.userAgent.toLocaleUpperCase(), Rr = () => {
|
|
787
|
+
let e = Lr(), t = /ANDROID ([\d.]+)/.exec(e);
|
|
777
788
|
if (t) return `Android ${t[1]}`;
|
|
778
789
|
let n = /(?:IPHONE|IPAD).*OS ([\d_]+)/.exec(e);
|
|
779
790
|
if (n) return `${e.includes("IPAD") ? "iPad" : "iPhone"} ${n[1].replace(/_/g, ".")}`;
|
|
@@ -788,8 +799,8 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
788
799
|
}[r[1]] ?? `Windows NT ${r[1]}`;
|
|
789
800
|
let i = /MAC OS X ([\d_]+)/.exec(e);
|
|
790
801
|
return i ? `macOS ${i[1].replace(/_/g, ".")}` : "Other Platform";
|
|
791
|
-
},
|
|
792
|
-
let e =
|
|
802
|
+
}, zr = () => {
|
|
803
|
+
let e = Lr();
|
|
793
804
|
for (let [t, n] of [
|
|
794
805
|
[/EDG(?:A|IOS)?\/([\d.]+)/, "Edge"],
|
|
795
806
|
[/OPR\/([\d.]+)/, "Opera"],
|
|
@@ -804,7 +815,7 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
804
815
|
if (r) return `${n} ${r[1]}`;
|
|
805
816
|
}
|
|
806
817
|
return "Others";
|
|
807
|
-
},
|
|
818
|
+
}, Br = (e, t) => e.length > t ? `${e.slice(0, t)}…` : e, Vr = (e) => e.replace(/([?&](?:access[_-]?token|refresh[_-]?token|token|authorization|password|passwd|secret|api[_-]?key|cookie|session)=)[^&#\s]*/gi, "$1[REDACTED]").replace(/("(?:access[_-]?token|refresh[_-]?token|token|authorization|password|passwd|secret|api[_-]?key|cookie|session)"\s*:\s*)"[^"]*"/gi, "$1\"[REDACTED]\"").replace(/(\b(?:access[_-]?token|refresh[_-]?token|token|authorization|password|passwd|secret|api[_-]?key|cookie|session)\s*[=:]\s*)[^\s,;]+/gi, "$1[REDACTED]"), Hr = (e) => {
|
|
808
819
|
let t = /* @__PURE__ */ new WeakSet();
|
|
809
820
|
try {
|
|
810
821
|
return JSON.stringify(e, (e, n) => {
|
|
@@ -818,7 +829,7 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
818
829
|
} catch {
|
|
819
830
|
return String(e);
|
|
820
831
|
}
|
|
821
|
-
},
|
|
832
|
+
}, Ur = (e) => e instanceof Error ? Br(Vr(`${e.name && e.name !== "Error" ? `${e.name}: ` : ""}${e.message || "Unknown error"}`), wr) : Br(Vr((typeof e == "string" ? e : Hr(e)).trim() || "Unknown error"), wr), Wr = (e) => {
|
|
822
833
|
let t = String(e || "");
|
|
823
834
|
if (!t) return "";
|
|
824
835
|
try {
|
|
@@ -827,7 +838,7 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
827
838
|
} catch {
|
|
828
839
|
return t.split(/[?#]/, 1)[0];
|
|
829
840
|
}
|
|
830
|
-
},
|
|
841
|
+
}, Gr = (e, t) => {
|
|
831
842
|
let n = [];
|
|
832
843
|
try {
|
|
833
844
|
let t = new URL(e, location.href).searchParams.toString();
|
|
@@ -844,8 +855,8 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
844
855
|
}), n.push(e.join("&"));
|
|
845
856
|
} else typeof Blob < "u" && t instanceof Blob ? n.push(`[Blob:${t.type || "unknown"},${t.size}B]`) : typeof ArrayBuffer < "u" && (t instanceof ArrayBuffer || ArrayBuffer.isView(t)) && n.push("[Binary data]");
|
|
846
857
|
}
|
|
847
|
-
return
|
|
848
|
-
},
|
|
858
|
+
return Br(Vr(n.filter(Boolean).join(" | ")), Tr);
|
|
859
|
+
}, Kr = (e) => {
|
|
849
860
|
let t;
|
|
850
861
|
if (typeof TextEncoder < "u") {
|
|
851
862
|
let n = new TextEncoder().encode(e);
|
|
@@ -860,8 +871,8 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
860
871
|
t = n.map((e) => String.fromCharCode(e)).join("");
|
|
861
872
|
}
|
|
862
873
|
return window.btoa(t);
|
|
863
|
-
},
|
|
864
|
-
let n =
|
|
874
|
+
}, qr = (e, t) => {
|
|
875
|
+
let n = Kr(t), r = () => {
|
|
865
876
|
let t = new XMLHttpRequest();
|
|
866
877
|
t.open("POST", e, !0), t.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"), t.send(n);
|
|
867
878
|
}, i = () => {
|
|
@@ -871,7 +882,7 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
871
882
|
try {
|
|
872
883
|
r();
|
|
873
884
|
} catch {}
|
|
874
|
-
}, a =
|
|
885
|
+
}, a = Mr ?? window.fetch;
|
|
875
886
|
if (typeof a == "function") {
|
|
876
887
|
a.call(window, e, {
|
|
877
888
|
method: "POST",
|
|
@@ -885,87 +896,87 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
885
896
|
return;
|
|
886
897
|
}
|
|
887
898
|
i();
|
|
888
|
-
},
|
|
889
|
-
if (!
|
|
890
|
-
|
|
899
|
+
}, Jr = (e, t) => (n, r, i) => {
|
|
900
|
+
if (!Ir) {
|
|
901
|
+
Ir = !0;
|
|
891
902
|
try {
|
|
892
|
-
let a =
|
|
893
|
-
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 &&
|
|
903
|
+
let a = Ur(i);
|
|
904
|
+
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 && qr(e, Hr({
|
|
894
905
|
type: n,
|
|
895
906
|
time: Date.now(),
|
|
896
|
-
url:
|
|
897
|
-
browser:
|
|
898
|
-
platform:
|
|
907
|
+
url: Wr(r) || Wr(location.href),
|
|
908
|
+
browser: zr(),
|
|
909
|
+
platform: Rr(),
|
|
899
910
|
message: `[${n}] [${window.document.title}] [${a}]`,
|
|
900
911
|
info: t ? t() : ""
|
|
901
912
|
}));
|
|
902
913
|
} catch {} finally {
|
|
903
|
-
|
|
914
|
+
Ir = !1;
|
|
904
915
|
}
|
|
905
916
|
}
|
|
906
|
-
},
|
|
907
|
-
for (let r of
|
|
908
|
-
},
|
|
909
|
-
let t =
|
|
910
|
-
return
|
|
911
|
-
},
|
|
912
|
-
|
|
913
|
-
let t =
|
|
914
|
-
t && !
|
|
917
|
+
}, Yr = (e, t, n) => {
|
|
918
|
+
for (let r of Er) r.report(e, t, n);
|
|
919
|
+
}, Xr = (e) => {
|
|
920
|
+
let t = Wr(e);
|
|
921
|
+
return Er.some((e) => e.endpoint === t);
|
|
922
|
+
}, Zr = (e) => {
|
|
923
|
+
kr.has(e) || (kr.add(e), e.addEventListener("error", () => {
|
|
924
|
+
let t = Or.get(e);
|
|
925
|
+
t && !Xr(t.url) && Yr(3, t.url, `${t.method} network error`);
|
|
915
926
|
}), e.addEventListener("timeout", () => {
|
|
916
|
-
let t =
|
|
917
|
-
t && !
|
|
927
|
+
let t = Or.get(e);
|
|
928
|
+
t && !Xr(t.url) && Yr(3, t.url, `${t.method} timeout`);
|
|
918
929
|
}), e.addEventListener("loadend", () => {
|
|
919
|
-
let t =
|
|
920
|
-
if (!t || e.status < 400 ||
|
|
930
|
+
let t = Or.get(e);
|
|
931
|
+
if (!t || e.status < 400 || Xr(t.url)) return;
|
|
921
932
|
let n = Date.now() - t.startTime;
|
|
922
|
-
|
|
933
|
+
Yr(3, t.url, `${t.method} ${e.status} (${n}ms)`);
|
|
923
934
|
}));
|
|
924
|
-
},
|
|
925
|
-
|
|
926
|
-
|
|
935
|
+
}, Qr = () => {
|
|
936
|
+
Ar || jr || Nr || Pr || typeof XMLHttpRequest > "u" || (Ar = XMLHttpRequest.prototype.open, jr = XMLHttpRequest.prototype.send, Nr = function(e, t, ...n) {
|
|
937
|
+
Or.set(this, {
|
|
927
938
|
method: String(e).toUpperCase(),
|
|
928
939
|
url: String(t),
|
|
929
940
|
startTime: Date.now()
|
|
930
|
-
}),
|
|
931
|
-
}, XMLHttpRequest.prototype.open =
|
|
932
|
-
let t =
|
|
933
|
-
t && (t.startTime = Date.now()),
|
|
934
|
-
}, XMLHttpRequest.prototype.send =
|
|
935
|
-
},
|
|
936
|
-
|
|
937
|
-
},
|
|
938
|
-
if (
|
|
941
|
+
}), Zr(this), Ar?.call(this, e, t, n[0] ?? !0, n[1] ?? null, n[2] ?? null);
|
|
942
|
+
}, XMLHttpRequest.prototype.open = Nr, Pr = function(e) {
|
|
943
|
+
let t = Or.get(this);
|
|
944
|
+
t && (t.startTime = Date.now()), jr?.call(this, e ?? null);
|
|
945
|
+
}, XMLHttpRequest.prototype.send = Pr);
|
|
946
|
+
}, $r = () => {
|
|
947
|
+
Ar && XMLHttpRequest.prototype.open === Nr && (XMLHttpRequest.prototype.open = Ar, Ar = void 0, Nr = void 0), jr && XMLHttpRequest.prototype.send === Pr && (XMLHttpRequest.prototype.send = jr, jr = void 0, Pr = void 0);
|
|
948
|
+
}, ei = () => {
|
|
949
|
+
if (Mr || typeof window.fetch != "function") return;
|
|
939
950
|
let e = window.fetch;
|
|
940
|
-
|
|
941
|
-
let r = typeof Request < "u" && t instanceof Request, i = r ? t.url : String(t), a = String(n?.method || r && t.method || "GET").toUpperCase(), o =
|
|
951
|
+
Mr = e, Fr = async function(t, n) {
|
|
952
|
+
let r = typeof Request < "u" && t instanceof Request, i = r ? t.url : String(t), a = String(n?.method || r && t.method || "GET").toUpperCase(), o = Gr(i, n?.body), s = o ? ` | Params: ${o}` : "", c = Date.now();
|
|
942
953
|
try {
|
|
943
954
|
let r = await e.call(this, t, n);
|
|
944
|
-
return !r.ok && !
|
|
955
|
+
return !r.ok && !Xr(i) && Yr(3, i, `${a} ${r.status} (${Date.now() - c}ms)${s}`), r;
|
|
945
956
|
} catch (e) {
|
|
946
|
-
throw
|
|
957
|
+
throw Xr(i) || Yr(3, i, `${a} network error: ${Ur(e)}${s}`), e;
|
|
947
958
|
}
|
|
948
|
-
}, window.fetch =
|
|
949
|
-
}, Zr = () => {
|
|
950
|
-
Or && window.fetch === jr && (window.fetch = Or, Or = void 0, jr = void 0);
|
|
951
|
-
}, Qr = (e) => {
|
|
952
|
-
Gr(1, e.filename || location.href, e.error || e.message);
|
|
953
|
-
}, $r = (e) => {
|
|
954
|
-
Gr(1, location.href, `Promise: ${zr(e.reason)}`);
|
|
955
|
-
}, ei = () => {
|
|
956
|
-
Sr.length === 1 && (Jr(), Xr(), window.addEventListener("error", Qr), window.addEventListener("unhandledrejection", $r));
|
|
959
|
+
}, window.fetch = Fr;
|
|
957
960
|
}, ti = () => {
|
|
958
|
-
|
|
961
|
+
Mr && window.fetch === Fr && (window.fetch = Mr, Mr = void 0, Fr = void 0);
|
|
962
|
+
}, ni = (e) => {
|
|
963
|
+
Yr(1, e.filename || location.href, e.error || e.message);
|
|
964
|
+
}, ri = (e) => {
|
|
965
|
+
Yr(1, location.href, `Promise: ${Ur(e.reason)}`);
|
|
966
|
+
}, ii = () => {
|
|
967
|
+
Er.length === 1 && (Qr(), ei(), window.addEventListener("error", ni), window.addEventListener("unhandledrejection", ri));
|
|
968
|
+
}, ai = () => {
|
|
969
|
+
Er.length > 0 || ($r(), ti(), window.removeEventListener("error", ni), window.removeEventListener("unhandledrejection", ri));
|
|
959
970
|
};
|
|
960
|
-
function
|
|
971
|
+
function oi(e, t, n) {
|
|
961
972
|
if (!t || typeof window > "u" || typeof navigator > "u") return;
|
|
962
|
-
let r =
|
|
973
|
+
let r = Dr.get(e);
|
|
963
974
|
if (r) return r;
|
|
964
|
-
let i =
|
|
965
|
-
endpoint:
|
|
975
|
+
let i = Jr(t, n), a = {
|
|
976
|
+
endpoint: Wr(t),
|
|
966
977
|
report: i
|
|
967
978
|
};
|
|
968
|
-
|
|
979
|
+
Er.push(a), ii();
|
|
969
980
|
let o = e.config.errorHandler, s = (e, t, n) => {
|
|
970
981
|
i(2, location.href, e), o?.(e, t, n);
|
|
971
982
|
};
|
|
@@ -973,14 +984,14 @@ function ni(e, t, n) {
|
|
|
973
984
|
let c = !1, l = () => {
|
|
974
985
|
if (c) return;
|
|
975
986
|
c = !0, e.config.errorHandler === s && (e.config.errorHandler = o);
|
|
976
|
-
let t =
|
|
977
|
-
t >= 0 &&
|
|
987
|
+
let t = Er.indexOf(a);
|
|
988
|
+
t >= 0 && Er.splice(t, 1), Dr.delete(e), ai();
|
|
978
989
|
};
|
|
979
|
-
return
|
|
990
|
+
return Dr.set(e, l), e.onUnmount(l), l;
|
|
980
991
|
}
|
|
981
|
-
var
|
|
982
|
-
|
|
983
|
-
}, X = /* @__PURE__ */ new Map(),
|
|
992
|
+
var si = (e, t, n) => {
|
|
993
|
+
Yr(e, t, n);
|
|
994
|
+
}, X = /* @__PURE__ */ new Map(), ci = Object.prototype.hasOwnProperty, li = 300, ui = (e) => {
|
|
984
995
|
if (e == null) return "";
|
|
985
996
|
let t;
|
|
986
997
|
if (typeof e == "string") t = e;
|
|
@@ -989,44 +1000,44 @@ var ri = (e, t, n) => {
|
|
|
989
1000
|
} catch {
|
|
990
1001
|
t = String(e);
|
|
991
1002
|
}
|
|
992
|
-
return t.length >
|
|
1003
|
+
return t.length > li ? `${t.slice(0, li)}…` : t;
|
|
993
1004
|
};
|
|
994
|
-
function
|
|
1005
|
+
function di(e, t) {
|
|
995
1006
|
let n = [];
|
|
996
1007
|
for (let r in e) {
|
|
997
|
-
if (!
|
|
1008
|
+
if (!ci.call(e, r)) continue;
|
|
998
1009
|
let i = e[r], a = encodeURIComponent(r), o;
|
|
999
|
-
o = typeof i == "object" ?
|
|
1010
|
+
o = typeof i == "object" ? di(i, t ? t + "[" + a + "]" : a) : (t ? t + "[" + a + "]" : a) + "=" + encodeURIComponent(i), n.push(o);
|
|
1000
1011
|
}
|
|
1001
1012
|
return n.join("&");
|
|
1002
1013
|
}
|
|
1003
|
-
var
|
|
1014
|
+
var fi = (e) => {
|
|
1004
1015
|
let t = e["content-disposition"];
|
|
1005
1016
|
if (t) {
|
|
1006
1017
|
let e = t.match(/filename=(?<fileName>.+)/);
|
|
1007
1018
|
return e && e.groups && e.groups.fileName;
|
|
1008
1019
|
}
|
|
1009
1020
|
return "";
|
|
1010
|
-
},
|
|
1021
|
+
}, pi = Ge.create({
|
|
1011
1022
|
timeout: 3e5,
|
|
1012
1023
|
responseType: "json",
|
|
1013
1024
|
headers: { "Content-Type": "application/json" }
|
|
1014
1025
|
});
|
|
1015
|
-
|
|
1016
|
-
var
|
|
1017
|
-
|
|
1018
|
-
e.cancelToken =
|
|
1026
|
+
pi.defaults.timeout = 3e5;
|
|
1027
|
+
var mi = Ge.CancelToken.source();
|
|
1028
|
+
pi.interceptors.request.use((e) => {
|
|
1029
|
+
e.cancelToken = mi.token, e.headers.Language = K.lang, e.headers.Platform = K.isMobile ? "mobile" : "pc";
|
|
1019
1030
|
let t = Y("token", !1);
|
|
1020
1031
|
if (e.headers && t && (e.headers.token = t), e.method?.toLocaleUpperCase() === "GET") {
|
|
1021
|
-
let t =
|
|
1032
|
+
let t = di(e.data);
|
|
1022
1033
|
t && (e.url = `${e.url}?${t}`);
|
|
1023
1034
|
}
|
|
1024
1035
|
return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
|
|
1025
|
-
}, (e) => Promise.reject(e)),
|
|
1036
|
+
}, (e) => Promise.reject(e)), pi.interceptors.response.use((e) => {
|
|
1026
1037
|
let t = e.data;
|
|
1027
|
-
if (t.code === 401) return
|
|
1038
|
+
if (t.code === 401) return ur("token"), G.replace("/login"), Promise.reject(!1);
|
|
1028
1039
|
if (e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
|
|
1029
|
-
let t =
|
|
1040
|
+
let t = fi(e.headers);
|
|
1030
1041
|
return Promise.resolve({
|
|
1031
1042
|
fileName: decodeURIComponent(t),
|
|
1032
1043
|
data: e.data
|
|
@@ -1037,30 +1048,30 @@ li.interceptors.request.use((e) => {
|
|
|
1037
1048
|
return Promise.resolve(e);
|
|
1038
1049
|
}
|
|
1039
1050
|
{
|
|
1040
|
-
|
|
1041
|
-
let n = t.message, r =
|
|
1042
|
-
return
|
|
1043
|
-
content: n ||
|
|
1051
|
+
cr.destroyAll();
|
|
1052
|
+
let n = t.message, r = ui(e.config.data ?? e.config.params);
|
|
1053
|
+
return si(3, e.config.url || location.href, `Fetch ${t.code ?? "error"}: ${n || "Unknown error"}${r ? ` | Params: ${r}` : ""}`), cr.error({
|
|
1054
|
+
content: n || Un.global.t("Notice.error"),
|
|
1044
1055
|
duration: 3e3
|
|
1045
1056
|
}), Promise.reject(n);
|
|
1046
1057
|
}
|
|
1047
|
-
}, (e) => e ? (
|
|
1048
|
-
content:
|
|
1058
|
+
}, (e) => e ? (cr.destroyAll(), e.code === "ERR_NETWORK" ? (cr.error({
|
|
1059
|
+
content: Un.global.t("Notice.network"),
|
|
1049
1060
|
duration: 3e3
|
|
1050
|
-
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (
|
|
1051
|
-
content:
|
|
1061
|
+
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (ur("token"), window.location.href = "/mom/login"), cr.error({
|
|
1062
|
+
content: Un.global.t("Notice.error"),
|
|
1052
1063
|
duration: 3e3
|
|
1053
|
-
}), Promise.reject(
|
|
1054
|
-
var
|
|
1055
|
-
|
|
1056
|
-
},
|
|
1064
|
+
}), Promise.reject(Un.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(Un.global.t("Notice.error")));
|
|
1065
|
+
var hi = "/apiserver/", gi = () => {
|
|
1066
|
+
mi.cancel(), mi = Ge.CancelToken.source();
|
|
1067
|
+
}, _i = (e, t, n = "json", r = 3e5) => {
|
|
1057
1068
|
let i = JSON.stringify({
|
|
1058
1069
|
fetchUri: e,
|
|
1059
1070
|
...t
|
|
1060
1071
|
});
|
|
1061
1072
|
if (X.has(i)) return X.get(i);
|
|
1062
|
-
let a =
|
|
1063
|
-
url: `${
|
|
1073
|
+
let a = pi({
|
|
1074
|
+
url: `${hi}${e}`,
|
|
1064
1075
|
method: "GET",
|
|
1065
1076
|
data: t,
|
|
1066
1077
|
responseType: n,
|
|
@@ -1075,53 +1086,53 @@ var di = "/apiserver/", fi = () => {
|
|
|
1075
1086
|
...t
|
|
1076
1087
|
});
|
|
1077
1088
|
if (X.has(i)) return X.get(i);
|
|
1078
|
-
let a =
|
|
1079
|
-
url: `${
|
|
1089
|
+
let a = pi({
|
|
1090
|
+
url: `${hi}${e}`,
|
|
1080
1091
|
method: "POST",
|
|
1081
1092
|
data: t,
|
|
1082
1093
|
responseType: n,
|
|
1083
1094
|
timeout: r
|
|
1084
1095
|
}).then((e) => (X.delete(i), Promise.resolve(e))).catch((e) => (X.delete(i), Promise.reject(e)));
|
|
1085
1096
|
return X.set(i, a), a;
|
|
1086
|
-
},
|
|
1087
|
-
url: `${
|
|
1097
|
+
}, vi = (e, t = {}, n = "blob", r = 3e5) => pi({
|
|
1098
|
+
url: `${hi}${e}`,
|
|
1088
1099
|
method: "POST",
|
|
1089
1100
|
data: t,
|
|
1090
1101
|
responseType: n,
|
|
1091
1102
|
timeout: r
|
|
1092
|
-
}),
|
|
1103
|
+
}), yi = (e) => pi(e), bi = (e, t) => pi({
|
|
1093
1104
|
headers: { "Content-Type": "multipart/form-data" },
|
|
1094
|
-
url: `${
|
|
1105
|
+
url: `${hi}${e}`,
|
|
1095
1106
|
method: "POST",
|
|
1096
1107
|
data: t
|
|
1097
|
-
}),
|
|
1108
|
+
}), xi = (e, t) => Z("dynamic-table/createTime", {
|
|
1098
1109
|
id: e,
|
|
1099
1110
|
createTime: t
|
|
1100
|
-
}),
|
|
1111
|
+
}), Si = (e) => Z("table/query", e), Ci = (e) => Z("table/submit", e), wi = (e) => Z("table/delete", e), Ti = (e) => Z("dataBind/query", { table_id: e }), Ei = (e) => Z("dataBind/submit", e), Di = (e, t, n) => Z("calculation/sqlExecute", {
|
|
1101
1112
|
calculationIds: e,
|
|
1102
1113
|
linkId: t,
|
|
1103
1114
|
...n
|
|
1104
|
-
}),
|
|
1115
|
+
}), Oi = (e) => vi("excel/template", { tableKey: e }, "arraybuffer"), ki = (e) => Z("excel/record/query", {
|
|
1105
1116
|
recordType: "import",
|
|
1106
1117
|
tableKey: e
|
|
1107
|
-
}),
|
|
1118
|
+
}), Ai = (e) => Z("excel/exportData", e), ji = (e, t) => p(Re, { style: { "max-width": "300px" } }, {
|
|
1108
1119
|
trigger: () => e,
|
|
1109
1120
|
default: () => typeof t == "function" ? t() : t
|
|
1110
|
-
}),
|
|
1121
|
+
}), Mi = (e, t, n, r) => {
|
|
1111
1122
|
try {
|
|
1112
1123
|
Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
|
|
1113
1124
|
n && n();
|
|
1114
|
-
}, (e) =>
|
|
1125
|
+
}, (e) => Si({
|
|
1115
1126
|
id: e,
|
|
1116
1127
|
tableId: r
|
|
1117
|
-
}), (e) =>
|
|
1128
|
+
}), (e) => Ci({
|
|
1118
1129
|
tableId: r,
|
|
1119
1130
|
...e
|
|
1120
|
-
}),
|
|
1131
|
+
}), cr, Z);
|
|
1121
1132
|
} catch (e) {
|
|
1122
1133
|
q(e);
|
|
1123
1134
|
}
|
|
1124
|
-
},
|
|
1135
|
+
}, Ni = (e, t, n, r, i) => {
|
|
1125
1136
|
let a = {
|
|
1126
1137
|
secondary: i?.secondary || !1,
|
|
1127
1138
|
tertiary: i?.tertiary || !1,
|
|
@@ -1136,36 +1147,36 @@ var di = "/apiserver/", fi = () => {
|
|
|
1136
1147
|
if (!e.confirmText) {
|
|
1137
1148
|
if (e.onClick && typeof e.onClick == "string") {
|
|
1138
1149
|
let i = e.onClick;
|
|
1139
|
-
a.onClick = () =>
|
|
1150
|
+
a.onClick = () => Mi(i, t, n, r);
|
|
1140
1151
|
}
|
|
1141
1152
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
1142
1153
|
}
|
|
1143
|
-
return e.icon && (o.icon = () => p(V, {}, { default: () => p(
|
|
1144
|
-
},
|
|
1154
|
+
return e.icon && (o.icon = () => p(V, {}, { default: () => p(Bn, { icon: e.icon }, { default: () => null }) })), p(R, a, o);
|
|
1155
|
+
}, Pi = (e, t, n, r, i) => {
|
|
1145
1156
|
let a = { placement: "left" };
|
|
1146
1157
|
if (typeof t.onClick == "string") {
|
|
1147
1158
|
let e = t.onClick;
|
|
1148
|
-
a["on-positive-click"] = () =>
|
|
1159
|
+
a["on-positive-click"] = () => Mi(e, n, r, i);
|
|
1149
1160
|
} else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
|
|
1150
1161
|
return p(Ee, a, {
|
|
1151
1162
|
default: () => p("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
|
|
1152
1163
|
trigger: () => e
|
|
1153
1164
|
});
|
|
1154
|
-
},
|
|
1155
|
-
let a =
|
|
1156
|
-
return e.confirmText && (a =
|
|
1157
|
-
},
|
|
1165
|
+
}, Fi = (e, t, n, r, i) => {
|
|
1166
|
+
let a = Ni(e, t, n, r, i);
|
|
1167
|
+
return e.confirmText && (a = Pi(a, e, t, n, r)), !e.confirmText && e.tooltipText && (a = ji(a, e.tooltipText)), a;
|
|
1168
|
+
}, Ii = ({ buttons: e, rowData: t = {}, callback: n, tableId: r, hProps: i }) => {
|
|
1158
1169
|
let a = [];
|
|
1159
1170
|
return e.forEach((e) => {
|
|
1160
1171
|
if (e.type === "group") {
|
|
1161
1172
|
let o = [];
|
|
1162
1173
|
e.children && e.children.length > 0 && e.children.forEach((a, s) => {
|
|
1163
|
-
o.push(
|
|
1174
|
+
o.push(Fi({
|
|
1164
1175
|
...a,
|
|
1165
1176
|
tooltipText: void 0
|
|
1166
1177
|
}, t, n, r, i)), s < e.children.length - 1 && o.push(p("div", { class: "uz-action-split" }, { default: () => "" }));
|
|
1167
1178
|
}), a.push(p(De, { trigger: "click" }, {
|
|
1168
|
-
trigger: () =>
|
|
1179
|
+
trigger: () => Ni({
|
|
1169
1180
|
type: "normal",
|
|
1170
1181
|
key: e.key,
|
|
1171
1182
|
icon: e.icon,
|
|
@@ -1181,11 +1192,11 @@ var di = "/apiserver/", fi = () => {
|
|
|
1181
1192
|
}));
|
|
1182
1193
|
}
|
|
1183
1194
|
if (e.type === "normal") {
|
|
1184
|
-
let o =
|
|
1195
|
+
let o = Fi(e, t, n, r, i);
|
|
1185
1196
|
a.push(o);
|
|
1186
1197
|
}
|
|
1187
1198
|
}), p("div", { class: "uz-action-flex" }, { default: () => a });
|
|
1188
|
-
},
|
|
1199
|
+
}, Li = (e) => {
|
|
1189
1200
|
switch (e) {
|
|
1190
1201
|
case "tertiary": return 1;
|
|
1191
1202
|
case "primary": return 2;
|
|
@@ -1195,7 +1206,7 @@ var di = "/apiserver/", fi = () => {
|
|
|
1195
1206
|
case "error": return 6;
|
|
1196
1207
|
default: return 0;
|
|
1197
1208
|
}
|
|
1198
|
-
},
|
|
1209
|
+
}, Ri = (e) => {
|
|
1199
1210
|
switch (e) {
|
|
1200
1211
|
case 1: return "tertiary";
|
|
1201
1212
|
case 2: return "primary";
|
|
@@ -1205,7 +1216,7 @@ var di = "/apiserver/", fi = () => {
|
|
|
1205
1216
|
case 6: return "error";
|
|
1206
1217
|
default: return "default";
|
|
1207
1218
|
}
|
|
1208
|
-
},
|
|
1219
|
+
}, zi = (e) => {
|
|
1209
1220
|
switch (e) {
|
|
1210
1221
|
case "detailInside": return 0;
|
|
1211
1222
|
case "editInside": return 1;
|
|
@@ -1214,7 +1225,7 @@ var di = "/apiserver/", fi = () => {
|
|
|
1214
1225
|
case "enabledInside": return 4;
|
|
1215
1226
|
default: return e;
|
|
1216
1227
|
}
|
|
1217
|
-
},
|
|
1228
|
+
}, Bi = (e) => {
|
|
1218
1229
|
switch (e) {
|
|
1219
1230
|
case 0: return "detailInside";
|
|
1220
1231
|
case 1: return "editInside";
|
|
@@ -1223,66 +1234,66 @@ var di = "/apiserver/", fi = () => {
|
|
|
1223
1234
|
case 4: return "enabledInside";
|
|
1224
1235
|
default: return e;
|
|
1225
1236
|
}
|
|
1226
|
-
},
|
|
1237
|
+
}, Vi = (e) => ({
|
|
1227
1238
|
t: 0,
|
|
1228
1239
|
k: e.key,
|
|
1229
1240
|
d: e?.disabled,
|
|
1230
1241
|
l: e?.loading,
|
|
1231
1242
|
i: e?.icon,
|
|
1232
|
-
c:
|
|
1243
|
+
c: Li(e?.color),
|
|
1233
1244
|
b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
|
|
1234
1245
|
o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
|
|
1235
1246
|
p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
|
|
1236
1247
|
s: e?.optionsType,
|
|
1237
1248
|
u: e?.optionsSource,
|
|
1238
|
-
a:
|
|
1249
|
+
a: zi(e?.action),
|
|
1239
1250
|
r: +!!e.footer,
|
|
1240
1251
|
g: +!!e.main,
|
|
1241
1252
|
h: +!!e.sub,
|
|
1242
1253
|
w: e?.width,
|
|
1243
1254
|
z: e?.onClick
|
|
1244
|
-
}),
|
|
1255
|
+
}), Hi = (e) => ({
|
|
1245
1256
|
type: "normal",
|
|
1246
1257
|
key: e.k,
|
|
1247
1258
|
disabled: e?.d,
|
|
1248
1259
|
loading: e?.l,
|
|
1249
1260
|
icon: e?.i,
|
|
1250
|
-
color:
|
|
1261
|
+
color: Ri(e?.c),
|
|
1251
1262
|
buttonText: e?.b ? decodeURIComponent(e?.b) : "",
|
|
1252
1263
|
confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
|
|
1253
1264
|
tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
|
|
1254
1265
|
optionsType: e?.s,
|
|
1255
1266
|
optionsSource: e?.u,
|
|
1256
|
-
action:
|
|
1267
|
+
action: Bi(e?.a),
|
|
1257
1268
|
footer: !!e.r,
|
|
1258
1269
|
sub: !!e.h,
|
|
1259
1270
|
main: !!e.g,
|
|
1260
1271
|
width: e?.w,
|
|
1261
1272
|
onClick: e?.z
|
|
1262
|
-
}),
|
|
1273
|
+
}), Ui = (e) => {
|
|
1263
1274
|
let t = [];
|
|
1264
|
-
for (let n of e) n.type === "normal" && t.push(
|
|
1275
|
+
for (let n of e) n.type === "normal" && t.push(Vi(n)), n.type === "group" && t.push({
|
|
1265
1276
|
t: 1,
|
|
1266
1277
|
k: n.key,
|
|
1267
1278
|
i: n?.icon,
|
|
1268
|
-
x:
|
|
1279
|
+
x: Li(n?.color),
|
|
1269
1280
|
b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
|
|
1270
|
-
c: n.children.map((e) =>
|
|
1281
|
+
c: n.children.map((e) => Vi(e))
|
|
1271
1282
|
});
|
|
1272
1283
|
return t;
|
|
1273
|
-
},
|
|
1284
|
+
}, Wi = (e) => {
|
|
1274
1285
|
if (e && e[0] && e[0].type) return e;
|
|
1275
1286
|
let t = [];
|
|
1276
|
-
for (let n of e) n.t === 0 && t.push(
|
|
1287
|
+
for (let n of e) n.t === 0 && t.push(Hi(n)), n.t === 1 && t.push({
|
|
1277
1288
|
type: "group",
|
|
1278
1289
|
key: n.k,
|
|
1279
1290
|
icon: n?.i,
|
|
1280
|
-
color:
|
|
1291
|
+
color: Ri(n?.x),
|
|
1281
1292
|
buttonText: n?.b ? decodeURIComponent(n?.b) : "",
|
|
1282
|
-
children: n.c.map((e) =>
|
|
1293
|
+
children: n.c.map((e) => Hi(e))
|
|
1283
1294
|
});
|
|
1284
1295
|
return t;
|
|
1285
|
-
},
|
|
1296
|
+
}, Gi = f({
|
|
1286
1297
|
name: "UzBack",
|
|
1287
1298
|
components: {
|
|
1288
1299
|
NButton: R,
|
|
@@ -1307,7 +1318,7 @@ var di = "/apiserver/", fi = () => {
|
|
|
1307
1318
|
});
|
|
1308
1319
|
//#endregion
|
|
1309
1320
|
//#region components/back/index.vue
|
|
1310
|
-
function
|
|
1321
|
+
function Ki(e, t, n, i, a, s) {
|
|
1311
1322
|
let c = O("UzIcon"), l = O("NIcon"), d = O("NButton");
|
|
1312
1323
|
return S(), r(d, {
|
|
1313
1324
|
quaternary: "",
|
|
@@ -1321,7 +1332,7 @@ function Hi(e, t, n, i, a, s) {
|
|
|
1321
1332
|
_: 1
|
|
1322
1333
|
}, 8, ["onClick"]);
|
|
1323
1334
|
}
|
|
1324
|
-
var
|
|
1335
|
+
var qi = /*#__PURE__*/ W(Gi, [["render", Ki]]), Ji = f({
|
|
1325
1336
|
name: "UzFormItem",
|
|
1326
1337
|
components: {
|
|
1327
1338
|
NIcon: V,
|
|
@@ -1499,11 +1510,11 @@ var Ui = /*#__PURE__*/ W(Vi, [["render", Hi]]), Wi = f({
|
|
|
1499
1510
|
checkNumberMax: (t) => {
|
|
1500
1511
|
if (e.status !== 2) return t.params.maxKey ? Number(e.formValue[t.params.maxKey]) : t.params.max;
|
|
1501
1512
|
},
|
|
1502
|
-
selectFilter: (e, t) =>
|
|
1513
|
+
selectFilter: (e, t) => Sr(t.label, e)
|
|
1503
1514
|
};
|
|
1504
1515
|
}
|
|
1505
|
-
}),
|
|
1506
|
-
function
|
|
1516
|
+
}), Yi = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
1517
|
+
function Xi(t, n, i, c, d, f) {
|
|
1507
1518
|
let p = O("NInput"), m = O("NDropdown"), h = O("NInputNumber"), g = O("NDatePicker"), v = O("NSelect"), y = O("NCascader"), b = O("NColorPicker"), x = O("NCheckbox"), C = O("NCheckboxGroup"), w = O("NTimePicker"), T = O("UzFormItemTimesPicker"), D = O("NSwitch"), k = O("UzFormItemUpload");
|
|
1508
1519
|
return t.item.input === "input" ? (S(), r(p, {
|
|
1509
1520
|
key: 0,
|
|
@@ -1808,7 +1819,7 @@ function Ki(t, n, i, c, d, f) {
|
|
|
1808
1819
|
value: t.formValue[t.item.key],
|
|
1809
1820
|
disabled: t.checkDisabled()
|
|
1810
1821
|
}, {
|
|
1811
|
-
default: P(() => [o("div",
|
|
1822
|
+
default: P(() => [o("div", Yi, [(S(!0), a(e, null, E(t.item.params.options, (e) => (S(), r(x, {
|
|
1812
1823
|
key: e.value,
|
|
1813
1824
|
label: e.label,
|
|
1814
1825
|
value: e.value
|
|
@@ -1877,7 +1888,7 @@ function Ki(t, n, i, c, d, f) {
|
|
|
1877
1888
|
"status"
|
|
1878
1889
|
])) : (S(), a(e, { key: 14 }, [], 64));
|
|
1879
1890
|
}
|
|
1880
|
-
var
|
|
1891
|
+
var Zi = /*#__PURE__*/ W(Ji, [["render", Xi]]), Qi = f({
|
|
1881
1892
|
name: "UzForm",
|
|
1882
1893
|
components: {
|
|
1883
1894
|
NForm: me,
|
|
@@ -1885,7 +1896,7 @@ var qi = /*#__PURE__*/ W(Wi, [["render", Ki]]), Ji = f({
|
|
|
1885
1896
|
NDivider: le,
|
|
1886
1897
|
NButton: R,
|
|
1887
1898
|
NIcon: V,
|
|
1888
|
-
UzFormItem:
|
|
1899
|
+
UzFormItem: Zi
|
|
1889
1900
|
},
|
|
1890
1901
|
props: {
|
|
1891
1902
|
items: {
|
|
@@ -1962,12 +1973,12 @@ var qi = /*#__PURE__*/ W(Wi, [["render", Ki]]), Ji = f({
|
|
|
1962
1973
|
}, p = (e, t) => {
|
|
1963
1974
|
switch (e) {
|
|
1964
1975
|
case "datetime":
|
|
1965
|
-
case "datetimerange": return
|
|
1976
|
+
case "datetimerange": return hr(t, "yyyy-MM-dd hh:mm:ss");
|
|
1966
1977
|
case "month":
|
|
1967
|
-
case "monthrange": return
|
|
1978
|
+
case "monthrange": return hr(t, "yyyy-MM");
|
|
1968
1979
|
case "year":
|
|
1969
|
-
case "yearrange": return
|
|
1970
|
-
default: return
|
|
1980
|
+
case "yearrange": return hr(t, "yyyy");
|
|
1981
|
+
default: return hr(t);
|
|
1971
1982
|
}
|
|
1972
1983
|
}, h = (e, t = !1) => {
|
|
1973
1984
|
let n = tt(e).startOf("day").diff(tt().startOf("day"), "day");
|
|
@@ -2090,8 +2101,8 @@ var qi = /*#__PURE__*/ W(Wi, [["render", Ki]]), Ji = f({
|
|
|
2090
2101
|
}
|
|
2091
2102
|
};
|
|
2092
2103
|
}
|
|
2093
|
-
}),
|
|
2094
|
-
function
|
|
2104
|
+
}), $i = ["onClick"];
|
|
2105
|
+
function ea(t, n, s, c, d, f) {
|
|
2095
2106
|
let p = O("UzIcon"), m = O("NIcon"), h = O("UzTableChild"), g = O("UzTableQuestChild"), y = O("NDivider"), b = O("UzFormItem"), x = O("NFormItem"), C = O("NForm"), w = O("UzTableDrawer"), T = k("media");
|
|
2096
2107
|
return S(), a(e, null, [u(C, {
|
|
2097
2108
|
ref: "formRef",
|
|
@@ -2119,7 +2130,7 @@ function Xi(t, n, s, c, d, f) {
|
|
|
2119
2130
|
}, [u(m, null, {
|
|
2120
2131
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
2121
2132
|
_: 1
|
|
2122
|
-
}), n[0] ||= l(" 新增 ", -1)], 8,
|
|
2133
|
+
}), n[0] ||= l(" 新增 ", -1)], 8, $i)) : i("", !0),
|
|
2123
2134
|
s.form.showDays ? (S(), a("span", {
|
|
2124
2135
|
key: 1,
|
|
2125
2136
|
class: _(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
@@ -2180,7 +2191,7 @@ function Xi(t, n, s, c, d, f) {
|
|
|
2180
2191
|
onOnSubmit: t.refreshOption
|
|
2181
2192
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
2182
2193
|
}
|
|
2183
|
-
var
|
|
2194
|
+
var ta = /*#__PURE__*/ W(Qi, [["render", ea]]), na = f({
|
|
2184
2195
|
name: "UzDraggableForm",
|
|
2185
2196
|
components: {
|
|
2186
2197
|
NForm: me,
|
|
@@ -2188,7 +2199,7 @@ var Zi = /*#__PURE__*/ W(Ji, [["render", Xi]]), Qi = f({
|
|
|
2188
2199
|
NButton: R,
|
|
2189
2200
|
NIcon: V,
|
|
2190
2201
|
NDivider: le,
|
|
2191
|
-
UzFormItem:
|
|
2202
|
+
UzFormItem: Zi,
|
|
2192
2203
|
VueDraggable: nt
|
|
2193
2204
|
},
|
|
2194
2205
|
props: {
|
|
@@ -2286,14 +2297,14 @@ var Zi = /*#__PURE__*/ W(Ji, [["render", Xi]]), Qi = f({
|
|
|
2286
2297
|
}
|
|
2287
2298
|
};
|
|
2288
2299
|
}
|
|
2289
|
-
}),
|
|
2300
|
+
}), ra = {
|
|
2290
2301
|
key: 0,
|
|
2291
2302
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
|
|
2292
|
-
},
|
|
2303
|
+
}, ia = {
|
|
2293
2304
|
key: 1,
|
|
2294
2305
|
class: "uz-form-item-add"
|
|
2295
2306
|
};
|
|
2296
|
-
function
|
|
2307
|
+
function aa(t, n, s, c, d, f) {
|
|
2297
2308
|
let p = O("UzIcon"), m = O("NIcon"), h = O("NButton"), g = O("UzTableChild"), y = O("UzFormItem"), b = O("NFormItem"), x = O("VueDraggable"), C = O("NDivider"), w = O("NForm");
|
|
2298
2309
|
return S(), r(w, {
|
|
2299
2310
|
ref: "formRef",
|
|
@@ -2331,11 +2342,11 @@ function ta(t, n, s, c, d, f) {
|
|
|
2331
2342
|
}, {
|
|
2332
2343
|
label: P(() => [
|
|
2333
2344
|
o("div", null, A(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
2334
|
-
s.source && s.form.createButton ? (S(), a("a",
|
|
2345
|
+
s.source && s.form.createButton ? (S(), a("a", ra, [u(m, null, {
|
|
2335
2346
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
2336
2347
|
_: 1
|
|
2337
2348
|
}), n[1] ||= l(" 新增 ", -1)])) : i("", !0),
|
|
2338
|
-
s.form.showDays ? (S(), a("span",
|
|
2349
|
+
s.form.showDays ? (S(), a("span", ia, " showDays ")) : i("", !0)
|
|
2339
2350
|
]),
|
|
2340
2351
|
default: P(() => [t.formItemIndex[0] === c && t.formItemIndex[1] === -1 ? (S(), r(h, {
|
|
2341
2352
|
key: 0,
|
|
@@ -2462,7 +2473,7 @@ function ta(t, n, s, c, d, f) {
|
|
|
2462
2473
|
"onClick"
|
|
2463
2474
|
]);
|
|
2464
2475
|
}
|
|
2465
|
-
var
|
|
2476
|
+
var oa = /*#__PURE__*/ W(na, [["render", aa]]), sa = f({
|
|
2466
2477
|
name: "UzFormItemUpload",
|
|
2467
2478
|
components: {
|
|
2468
2479
|
NUpload: ze,
|
|
@@ -2507,7 +2518,7 @@ var na = /*#__PURE__*/ W(Qi, [["render", ta]]), ra = f({
|
|
|
2507
2518
|
}), r.value = !1, o();
|
|
2508
2519
|
else {
|
|
2509
2520
|
let s = new FormData();
|
|
2510
|
-
s.append("file", e.file.file), s.append("name", e.file.name),
|
|
2521
|
+
s.append("file", e.file.file), s.append("name", e.file.name), bi("file/cos/upload", s).then((o) => {
|
|
2511
2522
|
i.value.push({
|
|
2512
2523
|
id: e.file.id,
|
|
2513
2524
|
name: e.file.name,
|
|
@@ -2574,8 +2585,8 @@ var na = /*#__PURE__*/ W(Qi, [["render", ta]]), ra = f({
|
|
|
2574
2585
|
}
|
|
2575
2586
|
};
|
|
2576
2587
|
}
|
|
2577
|
-
}),
|
|
2578
|
-
function
|
|
2588
|
+
}), ca = { class: "uz-form-upload-item-inner" }, la = ["title"], ua = { key: 0 };
|
|
2589
|
+
function da(t, n, s, c, d, f) {
|
|
2579
2590
|
let p = O("UzIcon"), m = O("NIcon"), h = O("NUploadDragger"), g = O("NUpload"), _ = O("NImage"), v = O("NButton"), y = O("NPopconfirm"), b = O("NSpin");
|
|
2580
2591
|
return S(), r(b, {
|
|
2581
2592
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
@@ -2629,10 +2640,10 @@ function sa(t, n, s, c, d, f) {
|
|
|
2629
2640
|
}, {
|
|
2630
2641
|
default: P(() => [u(p, { icon: "Document" })]),
|
|
2631
2642
|
_: 1
|
|
2632
|
-
}, 8, ["onClick"])), o("div",
|
|
2643
|
+
}, 8, ["onClick"])), o("div", ca, [o("div", {
|
|
2633
2644
|
class: "uz-form-upload-title uz-truncate",
|
|
2634
2645
|
title: e.name
|
|
2635
|
-
}, A(e.name), 9,
|
|
2646
|
+
}, A(e.name), 9, la), t.status === 2 ? i("", !0) : (S(), a("div", ua, [u(y, { onPositiveClick: (e) => t.doDelete(s) }, {
|
|
2636
2647
|
trigger: P(() => [u(v, {
|
|
2637
2648
|
size: "small",
|
|
2638
2649
|
tertiary: ""
|
|
@@ -2661,7 +2672,7 @@ function sa(t, n, s, c, d, f) {
|
|
|
2661
2672
|
_: 1
|
|
2662
2673
|
}, 8, ["show"]);
|
|
2663
2674
|
}
|
|
2664
|
-
var
|
|
2675
|
+
var fa = /*#__PURE__*/ W(sa, [["render", da], ["__scopeId", "data-v-79565a09"]]), pa = f({
|
|
2665
2676
|
name: "UzFormItemImage",
|
|
2666
2677
|
components: {
|
|
2667
2678
|
NImageGroup: ye,
|
|
@@ -2705,11 +2716,11 @@ var ca = /*#__PURE__*/ W(ra, [["render", sa], ["__scopeId", "data-v-79565a09"]])
|
|
|
2705
2716
|
}
|
|
2706
2717
|
};
|
|
2707
2718
|
}
|
|
2708
|
-
}),
|
|
2709
|
-
function
|
|
2719
|
+
}), ma = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
|
|
2720
|
+
function ha(t, n, i, s, c, d) {
|
|
2710
2721
|
let f = O("UzIcon"), p = O("NIcon"), m = O("NImage"), h = O("NPopover"), g = O("NImageGroup");
|
|
2711
2722
|
return S(), r(g, null, {
|
|
2712
|
-
default: P(() => [o("div",
|
|
2723
|
+
default: P(() => [o("div", ma, [(S(!0), a(e, null, E(t.imgs, (n) => (S(), a(e, null, [t.isAssetTypeAnImage(n) ? (S(), r(m, {
|
|
2713
2724
|
key: 0,
|
|
2714
2725
|
width: "40",
|
|
2715
2726
|
src: n
|
|
@@ -2741,7 +2752,7 @@ function da(t, n, i, s, c, d) {
|
|
|
2741
2752
|
_: 1
|
|
2742
2753
|
});
|
|
2743
2754
|
}
|
|
2744
|
-
var
|
|
2755
|
+
var ga = /*#__PURE__*/ W(pa, [["render", ha]]), _a = f({
|
|
2745
2756
|
name: "UzFormItemTimesPicker",
|
|
2746
2757
|
components: { NSelect: Ae },
|
|
2747
2758
|
props: {
|
|
@@ -2791,10 +2802,10 @@ var fa = /*#__PURE__*/ W(la, [["render", da]]), pa = f({
|
|
|
2791
2802
|
}
|
|
2792
2803
|
};
|
|
2793
2804
|
}
|
|
2794
|
-
}),
|
|
2795
|
-
function
|
|
2805
|
+
}), va = { class: "times-picker" };
|
|
2806
|
+
function ya(e, t, n, r, i, o) {
|
|
2796
2807
|
let s = O("NSelect");
|
|
2797
|
-
return S(), a("div",
|
|
2808
|
+
return S(), a("div", va, [
|
|
2798
2809
|
u(s, {
|
|
2799
2810
|
value: e.h,
|
|
2800
2811
|
options: e.times,
|
|
@@ -2842,10 +2853,10 @@ function ha(e, t, n, r, i, o) {
|
|
|
2842
2853
|
])
|
|
2843
2854
|
]);
|
|
2844
2855
|
}
|
|
2845
|
-
var
|
|
2856
|
+
var ba = /*#__PURE__*/ W(_a, [["render", ya], ["__scopeId", "data-v-12b4d7e3"]]);
|
|
2846
2857
|
//#endregion
|
|
2847
2858
|
//#region components/hooks/useDebounceFn.ts
|
|
2848
|
-
function
|
|
2859
|
+
function xa(e, t = 1e3) {
|
|
2849
2860
|
let n = $e(e, t);
|
|
2850
2861
|
return {
|
|
2851
2862
|
run: n,
|
|
@@ -2855,24 +2866,24 @@ function _a(e, t = 1e3) {
|
|
|
2855
2866
|
}
|
|
2856
2867
|
//#endregion
|
|
2857
2868
|
//#region components/bom/index.vue?vue&type=script&lang.ts
|
|
2858
|
-
var
|
|
2869
|
+
var Sa = [
|
|
2859
2870
|
"var(--primary)",
|
|
2860
2871
|
"var(--green)",
|
|
2861
2872
|
"var(--yellow)",
|
|
2862
2873
|
"var(--purple)"
|
|
2863
|
-
],
|
|
2874
|
+
], Ca = (e) => {
|
|
2864
2875
|
if (e == null || e === "") return null;
|
|
2865
2876
|
if (typeof e == "string") {
|
|
2866
2877
|
let t = Number.parseFloat(e);
|
|
2867
2878
|
return Number.isFinite(t) ? e.includes("%") || t > 1 ? t / 100 : t : null;
|
|
2868
2879
|
}
|
|
2869
2880
|
return Number.isFinite(e) ? e > 1 ? e / 100 : e : null;
|
|
2870
|
-
},
|
|
2871
|
-
let t = Number(e.quantity), n =
|
|
2881
|
+
}, wa = (e) => {
|
|
2882
|
+
let t = Number(e.quantity), n = Ca(e.lossRate);
|
|
2872
2883
|
if (!Number.isFinite(t) || n === null || n < 0) return null;
|
|
2873
2884
|
let r = 1 - n;
|
|
2874
2885
|
return r > 0 ? Math.ceil(t / r) : null;
|
|
2875
|
-
},
|
|
2886
|
+
}, Ta = (e) => e === null ? "—" : e.toLocaleString("zh-CN"), Ea = [
|
|
2876
2887
|
{
|
|
2877
2888
|
title: "编码",
|
|
2878
2889
|
key: "code",
|
|
@@ -2917,7 +2928,7 @@ var va = [
|
|
|
2917
2928
|
title: "含损耗用量",
|
|
2918
2929
|
key: "required_quantity",
|
|
2919
2930
|
width: 120,
|
|
2920
|
-
render: (e) =>
|
|
2931
|
+
render: (e) => Ta(wa(e))
|
|
2921
2932
|
},
|
|
2922
2933
|
{
|
|
2923
2934
|
title: "备注",
|
|
@@ -2925,7 +2936,7 @@ var va = [
|
|
|
2925
2936
|
width: 220,
|
|
2926
2937
|
ellipsis: { tooltip: !0 }
|
|
2927
2938
|
}
|
|
2928
|
-
],
|
|
2939
|
+
], Da = f({
|
|
2929
2940
|
name: "UzBom",
|
|
2930
2941
|
components: { NDataTable: se },
|
|
2931
2942
|
props: {
|
|
@@ -2971,7 +2982,7 @@ var va = [
|
|
|
2971
2982
|
}
|
|
2972
2983
|
let n = new Set(t), r = o.value.map((t) => e.get(t) ?? t).filter((e) => n.has(e));
|
|
2973
2984
|
(r.length !== o.value.length || r.some((e, t) => e !== o.value[t])) && (o.value = r);
|
|
2974
|
-
}, { run: h, flush: g, cancel: _ } =
|
|
2985
|
+
}, { run: h, flush: g, cancel: _ } = xa(() => m(u(a.value)), 200), v = /* @__PURE__ */ new WeakMap(), b = (e) => {
|
|
2975
2986
|
let t = v.get(e);
|
|
2976
2987
|
if (t) return t;
|
|
2977
2988
|
let n = new Proxy(e, { set(e, t, n) {
|
|
@@ -3066,7 +3077,7 @@ var va = [
|
|
|
3066
3077
|
align: "center",
|
|
3067
3078
|
titleAlign: "center",
|
|
3068
3079
|
className: "uz-bom-action-cell",
|
|
3069
|
-
render: (e) =>
|
|
3080
|
+
render: (e) => Ii({
|
|
3070
3081
|
buttons: [{
|
|
3071
3082
|
type: "normal",
|
|
3072
3083
|
key: "add",
|
|
@@ -3095,14 +3106,14 @@ var va = [
|
|
|
3095
3106
|
title: e.label,
|
|
3096
3107
|
key: e.key,
|
|
3097
3108
|
width: 160,
|
|
3098
|
-
render: (t, n) => p(
|
|
3109
|
+
render: (t, n) => p(Zi, {
|
|
3099
3110
|
item: e,
|
|
3100
3111
|
formValue: b(t),
|
|
3101
3112
|
status: 1,
|
|
3102
3113
|
itemIndex: n
|
|
3103
3114
|
})
|
|
3104
3115
|
}))), k = n(() => {
|
|
3105
|
-
let [e, ...t] =
|
|
3116
|
+
let [e, ...t] = Ea;
|
|
3106
3117
|
return [
|
|
3107
3118
|
E,
|
|
3108
3119
|
e,
|
|
@@ -3120,7 +3131,7 @@ var va = [
|
|
|
3120
3131
|
if (!Number.isFinite(t) || t < 1) return null;
|
|
3121
3132
|
let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
|
|
3122
3133
|
return {
|
|
3123
|
-
color:
|
|
3134
|
+
color: Sa[n - 1],
|
|
3124
3135
|
opacity: Math.min(.1 + r * .05, .4)
|
|
3125
3136
|
};
|
|
3126
3137
|
};
|
|
@@ -3139,10 +3150,10 @@ var va = [
|
|
|
3139
3150
|
handleExpandedRowKeysChange: A
|
|
3140
3151
|
};
|
|
3141
3152
|
}
|
|
3142
|
-
}),
|
|
3143
|
-
function
|
|
3153
|
+
}), Oa = { class: "uz-bom" };
|
|
3154
|
+
function ka(e, t, n, r, i, o) {
|
|
3144
3155
|
let s = O("NDataTable");
|
|
3145
|
-
return S(), a("div",
|
|
3156
|
+
return S(), a("div", Oa, [u(s, {
|
|
3146
3157
|
columns: e.tableColumns,
|
|
3147
3158
|
data: e.innerData,
|
|
3148
3159
|
"row-props": e.getRowProps,
|
|
@@ -3169,13 +3180,13 @@ function Ta(e, t, n, r, i, o) {
|
|
|
3169
3180
|
"onUpdate:expandedRowKeys"
|
|
3170
3181
|
])]);
|
|
3171
3182
|
}
|
|
3172
|
-
var
|
|
3183
|
+
var Aa = /*#__PURE__*/ W(Da, [["render", ka]]), ja = 46, Ma = 8, Q = 2 * Math.PI * ja, Na = Ma, Pa = 19, Fa = 69, Ia = 52, La = 8, Ra = 135, za = 270, Ba = 2 * Math.PI * Ia, Va = za / 360 * Ba, Ha = 11, Ua = `rotate(${Ra} 60 ${Fa})`, Wa = (e, t, n, r) => {
|
|
3173
3184
|
let i = r * Math.PI / 180;
|
|
3174
3185
|
return {
|
|
3175
3186
|
x: e + n * Math.cos(i),
|
|
3176
3187
|
y: t + n * Math.sin(i)
|
|
3177
3188
|
};
|
|
3178
|
-
},
|
|
3189
|
+
}, Ga = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, Ka = (e, t, n, r, i, a) => {
|
|
3179
3190
|
if (a <= 0) return "";
|
|
3180
3191
|
let o = n + r / 2, s = n - r / 2;
|
|
3181
3192
|
if (a >= 359.999) {
|
|
@@ -3187,16 +3198,16 @@ var Ea = /*#__PURE__*/ W(Ca, [["render", Ta]]), Da = 46, Oa = 8, Q = 2 * Math.PI
|
|
|
3187
3198
|
`A ${s} ${s} 0 1 0 ${i}`
|
|
3188
3199
|
].join(" ");
|
|
3189
3200
|
}
|
|
3190
|
-
let c = i + a, l =
|
|
3201
|
+
let c = i + a, l = Wa(e, t, o, i), u = Wa(e, t, o, c), d = Wa(e, t, s, c), f = Wa(e, t, s, i), p = r / 2, m = +(a > 180);
|
|
3191
3202
|
return [
|
|
3192
|
-
`M ${
|
|
3193
|
-
`A ${o} ${o} 0 ${m} 1 ${
|
|
3194
|
-
`A ${p} ${p} 0 0 1 ${
|
|
3195
|
-
`A ${s} ${s} 0 ${m} 0 ${
|
|
3196
|
-
`A ${p} ${p} 0 0 1 ${
|
|
3203
|
+
`M ${Ga(l)}`,
|
|
3204
|
+
`A ${o} ${o} 0 ${m} 1 ${Ga(u)}`,
|
|
3205
|
+
`A ${p} ${p} 0 0 1 ${Ga(d)}`,
|
|
3206
|
+
`A ${s} ${s} 0 ${m} 0 ${Ga(f)}`,
|
|
3207
|
+
`A ${p} ${p} 0 0 1 ${Ga(l)}`,
|
|
3197
3208
|
"Z"
|
|
3198
3209
|
].join(" ");
|
|
3199
|
-
},
|
|
3210
|
+
}, qa = (e) => {
|
|
3200
3211
|
if (!e) return "";
|
|
3201
3212
|
let t = e.toLowerCase();
|
|
3202
3213
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -3210,7 +3221,7 @@ var Ea = /*#__PURE__*/ W(Ca, [["render", Ta]]), Da = 46, Oa = 8, Q = 2 * Math.PI
|
|
|
3210
3221
|
return e.join(",");
|
|
3211
3222
|
}
|
|
3212
3223
|
return "0,0,0";
|
|
3213
|
-
},
|
|
3224
|
+
}, Ja = f({
|
|
3214
3225
|
name: "UzCircle",
|
|
3215
3226
|
components: { UzNumberFlow: it },
|
|
3216
3227
|
props: {
|
|
@@ -3233,10 +3244,10 @@ var Ea = /*#__PURE__*/ W(Ca, [["render", Ta]]), Da = 46, Oa = 8, Q = 2 * Math.PI
|
|
|
3233
3244
|
}
|
|
3234
3245
|
},
|
|
3235
3246
|
setup(e) {
|
|
3236
|
-
let t = te(), r = `uz-blurs-${t}`, i = n(() => `rgba(${
|
|
3247
|
+
let t = te(), r = `uz-blurs-${t}`, i = n(() => `rgba(${qa(e.color).split(",").map((e) => {
|
|
3237
3248
|
let t = Number(e) - 50;
|
|
3238
3249
|
return t < 0 && (t = 0), t;
|
|
3239
|
-
})},1)`), a = n(() => `rgba(${
|
|
3250
|
+
})},1)`), a = n(() => `rgba(${qa(e.color)},1)`), o = n(() => {
|
|
3240
3251
|
let t = Number(e.circle);
|
|
3241
3252
|
return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
|
|
3242
3253
|
}), s = T(o.value), c;
|
|
@@ -3268,49 +3279,49 @@ var Ea = /*#__PURE__*/ W(Ca, [["render", Ta]]), Da = 46, Oa = 8, Q = 2 * Math.PI
|
|
|
3268
3279
|
remainingLength: 0,
|
|
3269
3280
|
remainingStart: 0
|
|
3270
3281
|
};
|
|
3271
|
-
let n = Math.min(1, Math.min(e, t) /
|
|
3282
|
+
let n = Math.min(1, Math.min(e, t) / Pa), r = Na + 3 * n, i = Ma * n, a = e < Pa ? i : Q - (t < Pa ? i : t - r) - r * 2, o = Q - a - r * 2;
|
|
3272
3283
|
return {
|
|
3273
3284
|
activeLength: a,
|
|
3274
3285
|
activeStart: r / 2,
|
|
3275
3286
|
remainingLength: o,
|
|
3276
3287
|
remainingStart: r / 2 + a + r
|
|
3277
3288
|
};
|
|
3278
|
-
}), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() =>
|
|
3279
|
-
let e =
|
|
3289
|
+
}), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() => Ka(60, 60, ja, Ma, -90 + p.value / Q * 360, f.value / Q * 360)), h = n(() => {
|
|
3290
|
+
let e = Va * (s.value / 100), t = Va - e;
|
|
3280
3291
|
if (e === 0) return {
|
|
3281
3292
|
activeLength: 0,
|
|
3282
|
-
remainingLength:
|
|
3293
|
+
remainingLength: Va,
|
|
3283
3294
|
remainingStart: 0
|
|
3284
3295
|
};
|
|
3285
3296
|
if (t === 0) return {
|
|
3286
|
-
activeLength:
|
|
3297
|
+
activeLength: Va,
|
|
3287
3298
|
remainingLength: 0,
|
|
3288
3299
|
remainingStart: 0
|
|
3289
3300
|
};
|
|
3290
|
-
let n = Math.min(
|
|
3301
|
+
let n = Math.min(Ha, e, t);
|
|
3291
3302
|
return {
|
|
3292
3303
|
activeLength: e - n / 2,
|
|
3293
3304
|
remainingLength: t - n / 2,
|
|
3294
3305
|
remainingStart: e + n / 2
|
|
3295
3306
|
};
|
|
3296
|
-
}), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), v = n(() => h.value.remainingStart), b = n(() =>
|
|
3307
|
+
}), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), v = n(() => h.value.remainingStart), b = n(() => Ka(60, Fa, Ia, La, Ra + v.value / Ba * 360, _.value / Ba * 360));
|
|
3297
3308
|
return {
|
|
3298
3309
|
color: n(() => e.color),
|
|
3299
3310
|
colorA: i,
|
|
3300
3311
|
colorB: a,
|
|
3301
|
-
fullRadius:
|
|
3302
|
-
fullStrokeWidth:
|
|
3312
|
+
fullRadius: ja,
|
|
3313
|
+
fullStrokeWidth: Ma,
|
|
3303
3314
|
fullCircumference: Q,
|
|
3304
3315
|
fullActiveLength: u,
|
|
3305
3316
|
fullActiveStart: d,
|
|
3306
3317
|
fullRemainingLength: f,
|
|
3307
3318
|
fullRemainingStart: p,
|
|
3308
3319
|
fullRemainingPath: m,
|
|
3309
|
-
gaugeCenterY:
|
|
3310
|
-
gaugeRadius:
|
|
3311
|
-
gaugeStrokeWidth:
|
|
3312
|
-
gaugeCircumference:
|
|
3313
|
-
gaugeTransform:
|
|
3320
|
+
gaugeCenterY: Fa,
|
|
3321
|
+
gaugeRadius: Ia,
|
|
3322
|
+
gaugeStrokeWidth: La,
|
|
3323
|
+
gaugeCircumference: Ba,
|
|
3324
|
+
gaugeTransform: Ua,
|
|
3314
3325
|
gaugeActiveLength: g,
|
|
3315
3326
|
gaugeRemainingLength: _,
|
|
3316
3327
|
gaugeRemainingStart: v,
|
|
@@ -3319,31 +3330,31 @@ var Ea = /*#__PURE__*/ W(Ca, [["render", Ta]]), Da = 46, Oa = 8, Q = 2 * Math.PI
|
|
|
3319
3330
|
blurFilterId: r
|
|
3320
3331
|
};
|
|
3321
3332
|
}
|
|
3322
|
-
}),
|
|
3333
|
+
}), Ya = { class: "uz-circle" }, Xa = {
|
|
3323
3334
|
key: 0,
|
|
3324
3335
|
viewBox: "0 0 120 120",
|
|
3325
3336
|
"aria-hidden": "true"
|
|
3326
|
-
},
|
|
3337
|
+
}, Za = ["id"], Qa = ["stop-color"], $a = ["stop-color"], eo = ["id"], to = [
|
|
3327
3338
|
"r",
|
|
3328
3339
|
"stroke-width",
|
|
3329
3340
|
"stroke-dasharray",
|
|
3330
3341
|
"stroke-dashoffset",
|
|
3331
3342
|
"filter",
|
|
3332
3343
|
"stroke"
|
|
3333
|
-
],
|
|
3344
|
+
], no = [
|
|
3334
3345
|
"d",
|
|
3335
3346
|
"fill",
|
|
3336
3347
|
"filter"
|
|
3337
|
-
],
|
|
3348
|
+
], ro = {
|
|
3338
3349
|
class: "uz-circle__unit",
|
|
3339
3350
|
x: "60",
|
|
3340
3351
|
y: "82",
|
|
3341
3352
|
"text-anchor": "middle"
|
|
3342
|
-
},
|
|
3353
|
+
}, io = {
|
|
3343
3354
|
key: 1,
|
|
3344
3355
|
viewBox: "0 0 120 120",
|
|
3345
3356
|
"aria-hidden": "true"
|
|
3346
|
-
},
|
|
3357
|
+
}, ao = ["id"], oo = ["stop-color"], so = ["stop-color"], co = ["id"], lo = [
|
|
3347
3358
|
"cy",
|
|
3348
3359
|
"r",
|
|
3349
3360
|
"stroke-width",
|
|
@@ -3351,19 +3362,19 @@ var Ea = /*#__PURE__*/ W(Ca, [["render", Ta]]), Da = 46, Oa = 8, Q = 2 * Math.PI
|
|
|
3351
3362
|
"transform",
|
|
3352
3363
|
"filter",
|
|
3353
3364
|
"stroke"
|
|
3354
|
-
],
|
|
3365
|
+
], uo = [
|
|
3355
3366
|
"d",
|
|
3356
3367
|
"fill",
|
|
3357
3368
|
"filter"
|
|
3358
|
-
],
|
|
3369
|
+
], fo = {
|
|
3359
3370
|
class: "uz-circle__unit uz-circle__unit--gauge",
|
|
3360
3371
|
x: "60",
|
|
3361
3372
|
y: "90",
|
|
3362
3373
|
"text-anchor": "middle"
|
|
3363
3374
|
};
|
|
3364
|
-
function
|
|
3375
|
+
function po(e, t, n, r, s, c) {
|
|
3365
3376
|
let l = O("UzNumberFlow");
|
|
3366
|
-
return S(), a("div",
|
|
3377
|
+
return S(), a("div", Ya, [e.mode === 0 ? (S(), a("svg", Xa, [
|
|
3367
3378
|
o("defs", null, [o("linearGradient", {
|
|
3368
3379
|
id: `uz-progress-grad-${e.uniqueId}`,
|
|
3369
3380
|
x1: "1",
|
|
@@ -3373,10 +3384,10 @@ function co(e, t, n, r, s, c) {
|
|
|
3373
3384
|
}, [o("stop", {
|
|
3374
3385
|
offset: "0%",
|
|
3375
3386
|
"stop-color": e.colorA
|
|
3376
|
-
}, null, 8,
|
|
3387
|
+
}, null, 8, Qa), o("stop", {
|
|
3377
3388
|
offset: "50%",
|
|
3378
3389
|
"stop-color": e.colorB
|
|
3379
|
-
}, null, 8,
|
|
3390
|
+
}, null, 8, $a)], 8, Za), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
|
|
3380
3391
|
o("feOffset", {
|
|
3381
3392
|
result: "offOut",
|
|
3382
3393
|
in: "SourceGraphic",
|
|
@@ -3393,7 +3404,7 @@ function co(e, t, n, r, s, c) {
|
|
|
3393
3404
|
in2: "blurOut",
|
|
3394
3405
|
mode: "normal"
|
|
3395
3406
|
}, null, -1)
|
|
3396
|
-
]], 8,
|
|
3407
|
+
]], 8, eo)]),
|
|
3397
3408
|
e.fullActiveLength > 0 ? (S(), a("circle", {
|
|
3398
3409
|
key: 0,
|
|
3399
3410
|
class: "uz-circle__progress",
|
|
@@ -3408,7 +3419,7 @@ function co(e, t, n, r, s, c) {
|
|
|
3408
3419
|
transform: "rotate(-90 60 60)",
|
|
3409
3420
|
filter: `url(#${e.blurFilterId})`,
|
|
3410
3421
|
stroke: `url(#uz-progress-grad-${e.uniqueId})`
|
|
3411
|
-
}, null, 8,
|
|
3422
|
+
}, null, 8, to)) : i("", !0),
|
|
3412
3423
|
e.fullRemainingPath ? (S(), a("path", {
|
|
3413
3424
|
key: 1,
|
|
3414
3425
|
class: "uz-circle__progress",
|
|
@@ -3416,9 +3427,9 @@ function co(e, t, n, r, s, c) {
|
|
|
3416
3427
|
fill: e.color,
|
|
3417
3428
|
"fill-opacity": "0.1",
|
|
3418
3429
|
filter: `url(#${e.blurFilterId})`
|
|
3419
|
-
}, null, 8,
|
|
3420
|
-
o("text",
|
|
3421
|
-
])) : (S(), a("svg",
|
|
3430
|
+
}, null, 8, no)) : i("", !0),
|
|
3431
|
+
o("text", ro, A(e.circleUnit), 1)
|
|
3432
|
+
])) : (S(), a("svg", io, [
|
|
3422
3433
|
o("defs", null, [o("linearGradient", {
|
|
3423
3434
|
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
3424
3435
|
x1: "1",
|
|
@@ -3428,10 +3439,10 @@ function co(e, t, n, r, s, c) {
|
|
|
3428
3439
|
}, [o("stop", {
|
|
3429
3440
|
offset: "0%",
|
|
3430
3441
|
"stop-color": e.colorA
|
|
3431
|
-
}, null, 8,
|
|
3442
|
+
}, null, 8, oo), o("stop", {
|
|
3432
3443
|
offset: "50%",
|
|
3433
3444
|
"stop-color": e.colorB
|
|
3434
|
-
}, null, 8,
|
|
3445
|
+
}, null, 8, so)], 8, ao), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
|
|
3435
3446
|
o("feOffset", {
|
|
3436
3447
|
result: "offOut",
|
|
3437
3448
|
in: "SourceGraphic",
|
|
@@ -3448,7 +3459,7 @@ function co(e, t, n, r, s, c) {
|
|
|
3448
3459
|
in2: "blurOut",
|
|
3449
3460
|
mode: "normal"
|
|
3450
3461
|
}, null, -1)
|
|
3451
|
-
]], 8,
|
|
3462
|
+
]], 8, co)]),
|
|
3452
3463
|
e.gaugeActiveLength > 0 ? (S(), a("circle", {
|
|
3453
3464
|
key: 0,
|
|
3454
3465
|
class: "uz-circle__progress",
|
|
@@ -3462,7 +3473,7 @@ function co(e, t, n, r, s, c) {
|
|
|
3462
3473
|
transform: e.gaugeTransform,
|
|
3463
3474
|
filter: `url(#${e.blurFilterId})`,
|
|
3464
3475
|
stroke: `url(#uz-progress-grad-1-${e.uniqueId})`
|
|
3465
|
-
}, null, 8,
|
|
3476
|
+
}, null, 8, lo)) : i("", !0),
|
|
3466
3477
|
e.gaugeRemainingPath ? (S(), a("path", {
|
|
3467
3478
|
key: 1,
|
|
3468
3479
|
class: "uz-circle__progress",
|
|
@@ -3470,11 +3481,11 @@ function co(e, t, n, r, s, c) {
|
|
|
3470
3481
|
fill: e.color,
|
|
3471
3482
|
"fill-opacity": "0.1",
|
|
3472
3483
|
filter: `url(#${e.blurFilterId})`
|
|
3473
|
-
}, null, 8,
|
|
3474
|
-
o("text",
|
|
3484
|
+
}, null, 8, uo)) : i("", !0),
|
|
3485
|
+
o("text", fo, A(e.circleUnit), 1)
|
|
3475
3486
|
])), o("div", { class: _(["uz-circle__value uz-circle__value--gauge uz-circle__number", { "uz-circle__number--gauge": e.mode !== 0 }]) }, [u(l, { value: e.circle }, null, 8, ["value"])], 2)]);
|
|
3476
3487
|
}
|
|
3477
|
-
var
|
|
3488
|
+
var mo = /*#__PURE__*/ W(Ja, [["render", po]]), ho = f({
|
|
3478
3489
|
name: "UzCamera",
|
|
3479
3490
|
components: {
|
|
3480
3491
|
NButton: R,
|
|
@@ -3566,11 +3577,11 @@ var lo = /*#__PURE__*/ W(Wa, [["render", co]]), uo = f({
|
|
|
3566
3577
|
closeAll: d
|
|
3567
3578
|
};
|
|
3568
3579
|
}
|
|
3569
|
-
}),
|
|
3580
|
+
}), go = ["width", "height"], _o = ["width", "height"], vo = { class: "uz-scan-video" }, yo = {
|
|
3570
3581
|
ref: "videoRef",
|
|
3571
3582
|
playsInline: ""
|
|
3572
3583
|
};
|
|
3573
|
-
function
|
|
3584
|
+
function bo(t, n, s, c, u, d) {
|
|
3574
3585
|
let f = O("NButton"), p = O("NModal");
|
|
3575
3586
|
return S(), a(e, null, [
|
|
3576
3587
|
t.mode === "button" ? (S(), r(f, {
|
|
@@ -3602,7 +3613,7 @@ function go(t, n, s, c, u, d) {
|
|
|
3602
3613
|
id: "uz-scan-canvas",
|
|
3603
3614
|
width: t.width,
|
|
3604
3615
|
height: t.height
|
|
3605
|
-
}, null, 8,
|
|
3616
|
+
}, null, 8, go)], 4)]),
|
|
3606
3617
|
_: 1
|
|
3607
3618
|
}, 8, [
|
|
3608
3619
|
"show",
|
|
@@ -3620,11 +3631,11 @@ function go(t, n, s, c, u, d) {
|
|
|
3620
3631
|
id: "uz-scan-canvas",
|
|
3621
3632
|
width: t.width,
|
|
3622
3633
|
height: t.height
|
|
3623
|
-
}, null, 8,
|
|
3624
|
-
o("div",
|
|
3634
|
+
}, null, 8, _o)], 4)) : i("", !0),
|
|
3635
|
+
o("div", vo, [o("video", yo, null, 512)])
|
|
3625
3636
|
], 64);
|
|
3626
3637
|
}
|
|
3627
|
-
var
|
|
3638
|
+
var xo = /*#__PURE__*/ W(ho, [["render", bo]]), So = /* @__PURE__ */ new WeakMap(), Co = f({
|
|
3628
3639
|
name: "UzSearchBar",
|
|
3629
3640
|
components: {
|
|
3630
3641
|
NIcon: V,
|
|
@@ -3635,7 +3646,7 @@ var _o = /*#__PURE__*/ W(uo, [["render", go]]), vo = /* @__PURE__ */ new WeakMap
|
|
|
3635
3646
|
NInputGroup: xe,
|
|
3636
3647
|
NInputGroupLabel: Se,
|
|
3637
3648
|
NPopover: De,
|
|
3638
|
-
UzFormItem:
|
|
3649
|
+
UzFormItem: Zi
|
|
3639
3650
|
},
|
|
3640
3651
|
props: {
|
|
3641
3652
|
data: {
|
|
@@ -3673,10 +3684,10 @@ var _o = /*#__PURE__*/ W(uo, [["render", go]]), vo = /* @__PURE__ */ new WeakMap
|
|
|
3673
3684
|
e.offsetWidth > 1100 ? (t.instance.gridSpan = 1, t.instance.more = t.instance.moreCache, t.instance.offset = t.instance.offsetCache) : e.offsetWidth <= 1100 && e.offsetWidth > 550 ? (t.instance.gridSpan = 2, t.instance.more = t.instance.moreIndex > 2, t.instance.offset = t.instance.moreIndex === 1 ? 1 : -1) : (t.instance.gridSpan = 4, t.instance.more = t.instance.moreIndex > 1, t.instance.offset = -1);
|
|
3674
3685
|
}
|
|
3675
3686
|
});
|
|
3676
|
-
n.observe(e),
|
|
3687
|
+
n.observe(e), So.set(e, n);
|
|
3677
3688
|
},
|
|
3678
3689
|
unmounted: (e) => {
|
|
3679
|
-
|
|
3690
|
+
So.get(e)?.disconnect(), So.delete(e);
|
|
3680
3691
|
}
|
|
3681
3692
|
} },
|
|
3682
3693
|
emits: ["update:loading", "on-update:value"],
|
|
@@ -3791,24 +3802,24 @@ var _o = /*#__PURE__*/ W(uo, [["render", go]]), vo = /* @__PURE__ */ new WeakMap
|
|
|
3791
3802
|
tabButtonType: b
|
|
3792
3803
|
};
|
|
3793
3804
|
}
|
|
3794
|
-
}),
|
|
3805
|
+
}), wo = { class: "uz-flex uz-justify-between uz-gap-2" }, To = {
|
|
3795
3806
|
key: 0,
|
|
3796
3807
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-2 uz-w-full"
|
|
3797
|
-
},
|
|
3808
|
+
}, Eo = { key: 0 }, Do = { class: "uz-flex-1" }, Oo = {
|
|
3798
3809
|
key: 1,
|
|
3799
3810
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
3800
|
-
},
|
|
3811
|
+
}, ko = {
|
|
3801
3812
|
key: 0,
|
|
3802
3813
|
class: "uz-search-fields-collapse"
|
|
3803
3814
|
};
|
|
3804
|
-
function
|
|
3815
|
+
function Ao(n, s, c, d, f, p) {
|
|
3805
3816
|
let m = O("NButton"), h = O("NButtonGroup"), g = O("NGridItem"), v = O("NInputGroupLabel"), y = O("NPopover"), b = O("UzFormItem"), x = O("NInputGroup"), C = O("NGrid"), w = O("UzIcon"), T = O("NIcon"), ee = k("media");
|
|
3806
3817
|
return S(), a("div", {
|
|
3807
3818
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
3808
3819
|
onKeyup: s[1] ||= I((e) => n.doSearch(!1), ["enter"])
|
|
3809
|
-
}, [o("div",
|
|
3820
|
+
}, [o("div", wo, [n.enableHeader ? (S(), a("div", To, [
|
|
3810
3821
|
D(n.$slots, "header"),
|
|
3811
|
-
n.tabList && n.tabList.length > 0 ? (S(), a("div",
|
|
3822
|
+
n.tabList && n.tabList.length > 0 ? (S(), a("div", Eo, [u(h, null, {
|
|
3812
3823
|
default: P(() => [(S(!0), a(e, null, E(n.tabList, (e) => (S(), r(m, {
|
|
3813
3824
|
key: e.value,
|
|
3814
3825
|
type: n.tabButtonType(e),
|
|
@@ -3820,7 +3831,7 @@ function Eo(n, s, c, d, f, p) {
|
|
|
3820
3831
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
3821
3832
|
_: 1
|
|
3822
3833
|
})])) : i("", !0),
|
|
3823
|
-
F((S(), a("div",
|
|
3834
|
+
F((S(), a("div", Do, [u(C, {
|
|
3824
3835
|
"x-gap": "8",
|
|
3825
3836
|
"y-gap": "8",
|
|
3826
3837
|
cols: n.cols,
|
|
@@ -3857,7 +3868,7 @@ function Eo(n, s, c, d, f, p) {
|
|
|
3857
3868
|
}, 1032, ["span"]))), 128)) : i("", !0)]),
|
|
3858
3869
|
_: 1
|
|
3859
3870
|
}, 8, ["cols"])])), [[ee]])
|
|
3860
|
-
])) : i("", !0), n.enableHeader ? (S(), a("div",
|
|
3871
|
+
])) : i("", !0), n.enableHeader ? (S(), a("div", Oo, [
|
|
3861
3872
|
n.more ? (S(), r(m, {
|
|
3862
3873
|
key: 0,
|
|
3863
3874
|
secondary: "",
|
|
@@ -3907,7 +3918,7 @@ function Eo(n, s, c, d, f, p) {
|
|
|
3907
3918
|
})) : i("", !0),
|
|
3908
3919
|
D(n.$slots, "action")
|
|
3909
3920
|
])) : i("", !0)]), u(t, { name: "uz-search-fields" }, {
|
|
3910
|
-
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div",
|
|
3921
|
+
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div", ko, [u(C, {
|
|
3911
3922
|
"x-gap": "8",
|
|
3912
3923
|
"y-gap": "8",
|
|
3913
3924
|
cols: 4
|
|
@@ -3942,7 +3953,7 @@ function Eo(n, s, c, d, f, p) {
|
|
|
3942
3953
|
_: 1
|
|
3943
3954
|
})], 32);
|
|
3944
3955
|
}
|
|
3945
|
-
var
|
|
3956
|
+
var jo = /*#__PURE__*/ W(Co, [["render", Ao]]), Mo = f({
|
|
3946
3957
|
name: "UzSearchMobileBar",
|
|
3947
3958
|
components: {
|
|
3948
3959
|
NIcon: V,
|
|
@@ -3953,7 +3964,7 @@ var Do = /*#__PURE__*/ W(yo, [["render", Eo]]), Oo = f({
|
|
|
3953
3964
|
NGridItem: _e,
|
|
3954
3965
|
NInputGroup: xe,
|
|
3955
3966
|
NInputGroupLabel: Se,
|
|
3956
|
-
UzFormItem:
|
|
3967
|
+
UzFormItem: Zi
|
|
3957
3968
|
},
|
|
3958
3969
|
props: {
|
|
3959
3970
|
data: {
|
|
@@ -4031,10 +4042,10 @@ var Do = /*#__PURE__*/ W(yo, [["render", Eo]]), Oo = f({
|
|
|
4031
4042
|
clearAll: l
|
|
4032
4043
|
};
|
|
4033
4044
|
}
|
|
4034
|
-
}),
|
|
4035
|
-
function
|
|
4045
|
+
}), No = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, Po = { class: "uz-flex uz-gap-2" }, Fo = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
4046
|
+
function Io(t, n, s, c, d, f) {
|
|
4036
4047
|
let p = O("UzIcon"), m = O("NIcon"), h = O("NButton"), g = O("NInputGroupLabel"), _ = O("UzFormItem"), v = O("NInputGroup"), y = O("NGridItem"), b = O("NGrid"), x = O("NDrawerContent"), C = O("NDrawer");
|
|
4037
|
-
return S(), a(e, null, [o("div",
|
|
4048
|
+
return S(), a(e, null, [o("div", No, [D(t.$slots, "header"), o("div", Po, [t.itemData && Object.keys(t.itemData).length > 0 ? (S(), r(h, {
|
|
4038
4049
|
key: 0,
|
|
4039
4050
|
secondary: "",
|
|
4040
4051
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
@@ -4059,7 +4070,7 @@ function Mo(t, n, s, c, d, f) {
|
|
|
4059
4070
|
title: "查询",
|
|
4060
4071
|
closable: ""
|
|
4061
4072
|
}, {
|
|
4062
|
-
footer: P(() => [o("div",
|
|
4073
|
+
footer: P(() => [o("div", Fo, [u(h, {
|
|
4063
4074
|
secondary: "",
|
|
4064
4075
|
loading: t.loading,
|
|
4065
4076
|
onClick: t.clearAll,
|
|
@@ -4114,7 +4125,7 @@ function Mo(t, n, s, c, d, f) {
|
|
|
4114
4125
|
_: 1
|
|
4115
4126
|
}, 8, ["show"])], 64);
|
|
4116
4127
|
}
|
|
4117
|
-
var
|
|
4128
|
+
var Lo = /*#__PURE__*/ W(Mo, [["render", Io]]), Ro = /(?<=\[)(.+?)(?=\])/g, zo = {
|
|
4118
4129
|
index: 1,
|
|
4119
4130
|
selection: 0,
|
|
4120
4131
|
pagination: 1,
|
|
@@ -4132,10 +4143,10 @@ var No = /*#__PURE__*/ W(Oo, [["render", Mo]]), Po = /(?<=\[)(.+?)(?=\])/g, Fo =
|
|
|
4132
4143
|
placement: "right",
|
|
4133
4144
|
summary: ""
|
|
4134
4145
|
};
|
|
4135
|
-
function
|
|
4146
|
+
function Bo(e) {
|
|
4136
4147
|
return Function("return " + e)();
|
|
4137
4148
|
}
|
|
4138
|
-
var
|
|
4149
|
+
var Vo = () => new Promise((e) => {
|
|
4139
4150
|
let t = window.localStorage.getItem("city");
|
|
4140
4151
|
if (t) e(JSON.parse(t));
|
|
4141
4152
|
else {
|
|
@@ -4148,12 +4159,12 @@ var Lo = () => new Promise((e) => {
|
|
|
4148
4159
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
4149
4160
|
}, 500);
|
|
4150
4161
|
}
|
|
4151
|
-
}),
|
|
4162
|
+
}), Ho = async (e, t, n) => {
|
|
4152
4163
|
if (t && typeof t == "string") {
|
|
4153
|
-
let r = t.match(
|
|
4164
|
+
let r = t.match(Ro);
|
|
4154
4165
|
if (r && t.indexOf("return") === -1) {
|
|
4155
4166
|
let t = r[0].split(":");
|
|
4156
|
-
if (t[0] === "date") return (t) =>
|
|
4167
|
+
if (t[0] === "date") return (t) => hr(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
4157
4168
|
if (t[0] === "city") return (t) => t[`${e}Str`];
|
|
4158
4169
|
if (t[0] === "modules" && n && Object.keys(n).length > 0) {
|
|
4159
4170
|
let e = r[0].replace("modules:", ""), t = Object.keys(n).find((t) => t.includes(e));
|
|
@@ -4171,7 +4182,7 @@ var Lo = () => new Promise((e) => {
|
|
|
4171
4182
|
}
|
|
4172
4183
|
}
|
|
4173
4184
|
return t && typeof t == "function" ? (e, n) => t(e, n, p) : "";
|
|
4174
|
-
},
|
|
4185
|
+
}, Uo = (e, t, n) => {
|
|
4175
4186
|
let r = t.map((t) => {
|
|
4176
4187
|
let r = [], i = t.id;
|
|
4177
4188
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -4184,35 +4195,35 @@ var Lo = () => new Promise((e) => {
|
|
|
4184
4195
|
};
|
|
4185
4196
|
});
|
|
4186
4197
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
4187
|
-
},
|
|
4188
|
-
function
|
|
4189
|
-
|
|
4198
|
+
}, Wo = /* @__PURE__ */ new Map();
|
|
4199
|
+
function Go() {
|
|
4200
|
+
Wo.clear();
|
|
4190
4201
|
}
|
|
4191
|
-
async function
|
|
4202
|
+
async function Ko(e, t = !1) {
|
|
4192
4203
|
let n = e.split("."), r = !1;
|
|
4193
|
-
return n.length > 1 && (
|
|
4204
|
+
return n.length > 1 && (Wo.has(n[0]) && !t ? r = U(Wo.get(n[0])) : (r = await Si({ tableId: n[0] }), Wo.set(n[0], r))), {
|
|
4194
4205
|
sourceData: r,
|
|
4195
4206
|
n
|
|
4196
4207
|
};
|
|
4197
4208
|
}
|
|
4198
|
-
async function
|
|
4209
|
+
async function qo(e) {
|
|
4199
4210
|
return new Promise((t, n) => {
|
|
4200
4211
|
let r = Y(`dynamicTable_${e}`, !1);
|
|
4201
|
-
r &&
|
|
4212
|
+
r && Wo.has(`dynamicTable_${e}`) ? t(r) : xi(e, r ? r.createTime : null).then((n) => {
|
|
4202
4213
|
if (n) {
|
|
4203
4214
|
let r = {
|
|
4204
4215
|
createTime: n.createTime,
|
|
4205
4216
|
tableTitle: n.tableTitle,
|
|
4206
4217
|
viewJson: n.viewJson
|
|
4207
4218
|
};
|
|
4208
|
-
J(`dynamicTable_${e}`, r, 0),
|
|
4209
|
-
} else
|
|
4219
|
+
J(`dynamicTable_${e}`, r, 0), Wo.set(`dynamicTable_${e}`, !0), dr("tables_"), t(n);
|
|
4220
|
+
} else Wo.set(`dynamicTable_${e}`, !0), t(r);
|
|
4210
4221
|
}).catch(() => {
|
|
4211
4222
|
n();
|
|
4212
4223
|
});
|
|
4213
4224
|
});
|
|
4214
4225
|
}
|
|
4215
|
-
var
|
|
4226
|
+
var Jo = (e) => e.map((e) => {
|
|
4216
4227
|
let t = {};
|
|
4217
4228
|
return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.x = +!!e.params.expandable, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.deleteFn && (t.f = e.params.deleteFn)), {
|
|
4218
4229
|
i: e.input,
|
|
@@ -4287,7 +4298,7 @@ var Wo = (e) => e.map((e) => {
|
|
|
4287
4298
|
p: { s: +!!e.form.expand.show }
|
|
4288
4299
|
}
|
|
4289
4300
|
};
|
|
4290
|
-
}),
|
|
4301
|
+
}), Yo = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
4291
4302
|
let t = {};
|
|
4292
4303
|
return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
|
|
4293
4304
|
input: e.i,
|
|
@@ -4362,12 +4373,12 @@ var Wo = (e) => e.map((e) => {
|
|
|
4362
4373
|
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
4363
4374
|
}
|
|
4364
4375
|
};
|
|
4365
|
-
}),
|
|
4376
|
+
}), Xo = (e) => ({
|
|
4366
4377
|
f: e.fetch,
|
|
4367
4378
|
n: e.fetchFn,
|
|
4368
4379
|
o: e.when_drawer_open,
|
|
4369
4380
|
b: e.when_before_save
|
|
4370
|
-
}),
|
|
4381
|
+
}), Zo = (e) => e ? e.fetch ? e : {
|
|
4371
4382
|
fetch: e.f,
|
|
4372
4383
|
fetchFn: e.n,
|
|
4373
4384
|
when_drawer_open: e.o,
|
|
@@ -4377,7 +4388,7 @@ var Wo = (e) => e.map((e) => {
|
|
|
4377
4388
|
fetchFn: "",
|
|
4378
4389
|
when_drawer_open: "",
|
|
4379
4390
|
when_before_save: ""
|
|
4380
|
-
},
|
|
4391
|
+
}, Qo = (e) => ({
|
|
4381
4392
|
i: e.index,
|
|
4382
4393
|
s: e.selection,
|
|
4383
4394
|
p: e.pagination,
|
|
@@ -4393,7 +4404,7 @@ var Wo = (e) => e.map((e) => {
|
|
|
4393
4404
|
h: e.drawerHeight,
|
|
4394
4405
|
l: e.placement,
|
|
4395
4406
|
r: e.summary
|
|
4396
|
-
}),
|
|
4407
|
+
}), $o = (e) => {
|
|
4397
4408
|
let t = {};
|
|
4398
4409
|
return e && (t = e.index !== void 0 || e.selection !== void 0 || e.pagination !== void 0 || e.cache !== void 0 || e.draggable !== void 0 || e.addButton !== void 0 || e.filterButton !== void 0 || e.commonTime !== void 0 || e.asynchronous !== void 0 || e.filePort !== void 0 || e.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
|
|
4399
4410
|
index: e.i,
|
|
@@ -4411,9 +4422,9 @@ var Wo = (e) => e.map((e) => {
|
|
|
4411
4422
|
drawerHeight: e.h,
|
|
4412
4423
|
placement: e.l,
|
|
4413
4424
|
summary: e.r
|
|
4414
|
-
}), Object.assign({},
|
|
4425
|
+
}), Object.assign({}, zo, U(t));
|
|
4415
4426
|
};
|
|
4416
|
-
function
|
|
4427
|
+
function es(e, t, n, r) {
|
|
4417
4428
|
return new Promise(async (i, a) => {
|
|
4418
4429
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
|
|
4419
4430
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -4448,21 +4459,21 @@ function Xo(e, t, n, r) {
|
|
|
4448
4459
|
disabled: !0
|
|
4449
4460
|
}];
|
|
4450
4461
|
if (e.params.immediately || r) {
|
|
4451
|
-
let { sourceData: t, n: r } = await
|
|
4462
|
+
let { sourceData: t, n: r } = await Ko(e.source);
|
|
4452
4463
|
if (t && Array.isArray(t)) {
|
|
4453
4464
|
if (e.sourceFn) {
|
|
4454
4465
|
let r = e.sourceFn;
|
|
4455
4466
|
n = Function("sourceData", r)(t);
|
|
4456
|
-
} else n =
|
|
4467
|
+
} else n = Uo(e, t, r);
|
|
4457
4468
|
}
|
|
4458
4469
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
4459
|
-
let { sourceData: t, n } = await
|
|
4470
|
+
let { sourceData: t, n } = await Ko(e.source);
|
|
4460
4471
|
if (t && Array.isArray(t)) {
|
|
4461
4472
|
if (e.sourceFn) {
|
|
4462
4473
|
let n = e.sourceFn;
|
|
4463
4474
|
return Function("sourceData", n)(t);
|
|
4464
4475
|
}
|
|
4465
|
-
return
|
|
4476
|
+
return Uo(e, t, n);
|
|
4466
4477
|
}
|
|
4467
4478
|
};
|
|
4468
4479
|
if (e.params.options = n, e.form.backfill && t) {
|
|
@@ -4496,27 +4507,27 @@ function Xo(e, t, n, r) {
|
|
|
4496
4507
|
q(e);
|
|
4497
4508
|
}
|
|
4498
4509
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
4499
|
-
let t = await
|
|
4510
|
+
let t = await Vo();
|
|
4500
4511
|
e.params.options = t;
|
|
4501
4512
|
}
|
|
4502
4513
|
if (e.input === "subTable" && e.params.link) {
|
|
4503
|
-
let t = await
|
|
4514
|
+
let t = await qo(e.params.link).catch(() => {
|
|
4504
4515
|
a();
|
|
4505
4516
|
});
|
|
4506
4517
|
if (t) try {
|
|
4507
4518
|
let n = rt.parse(t.viewJson);
|
|
4508
|
-
n.suffix && (e._suffix =
|
|
4509
|
-
let r =
|
|
4519
|
+
n.suffix && (e._suffix = Wi(n.suffix));
|
|
4520
|
+
let r = Yo(n.table);
|
|
4510
4521
|
r.forEach((e) => {
|
|
4511
4522
|
e.table.sorter = !1;
|
|
4512
4523
|
});
|
|
4513
4524
|
let i = r.filter((e) => e.input === "subTable");
|
|
4514
4525
|
if (i) for await (let e of i) {
|
|
4515
|
-
let t = await
|
|
4526
|
+
let t = await qo(e.params.link).catch(() => {
|
|
4516
4527
|
a();
|
|
4517
4528
|
});
|
|
4518
4529
|
if (t) try {
|
|
4519
|
-
let n = rt.parse(t.viewJson), r =
|
|
4530
|
+
let n = rt.parse(t.viewJson), r = Yo(n.table);
|
|
4520
4531
|
r.forEach((e) => {
|
|
4521
4532
|
e.table.sorter = !1;
|
|
4522
4533
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -4550,7 +4561,7 @@ function Xo(e, t, n, r) {
|
|
|
4550
4561
|
});
|
|
4551
4562
|
});
|
|
4552
4563
|
}
|
|
4553
|
-
async function
|
|
4564
|
+
async function ts(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
4554
4565
|
let s = 0, c = [], l = [], u = {
|
|
4555
4566
|
key: "",
|
|
4556
4567
|
link: "",
|
|
@@ -4565,25 +4576,25 @@ async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4565
4576
|
for await (let [e, s] of m.entries()) {
|
|
4566
4577
|
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
|
|
4567
4578
|
if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
4568
|
-
let { sourceData: t, n } = await
|
|
4579
|
+
let { sourceData: t, n } = await Ko(s.source, a && e === 0);
|
|
4569
4580
|
if (t && Array.isArray(t)) {
|
|
4570
4581
|
if (s.sourceFn) {
|
|
4571
4582
|
let e = s.sourceFn, n = Function("sourceData", e);
|
|
4572
4583
|
s.params.options = n(t);
|
|
4573
|
-
} else s.params.options =
|
|
4584
|
+
} else s.params.options = Uo(s, t, n);
|
|
4574
4585
|
}
|
|
4575
4586
|
} else s.params.options = [{
|
|
4576
4587
|
label: "加载中......",
|
|
4577
4588
|
value: "loading",
|
|
4578
4589
|
disabled: !0
|
|
4579
4590
|
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4580
|
-
let { sourceData: e, n: t } = await
|
|
4591
|
+
let { sourceData: e, n: t } = await Ko(s.source);
|
|
4581
4592
|
if (e && Array.isArray(e)) {
|
|
4582
4593
|
if (s.sourceFn) {
|
|
4583
4594
|
let t = s.sourceFn;
|
|
4584
4595
|
return Function("sourceData", t)(e);
|
|
4585
4596
|
}
|
|
4586
|
-
return
|
|
4597
|
+
return Uo(s, e, t);
|
|
4587
4598
|
}
|
|
4588
4599
|
};
|
|
4589
4600
|
}
|
|
@@ -4591,7 +4602,7 @@ async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4591
4602
|
let t = s.params.options.find((t) => t.value === e[s.key]);
|
|
4592
4603
|
if (t) return t.label;
|
|
4593
4604
|
}), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
|
|
4594
|
-
return p(
|
|
4605
|
+
return p(ga, { value: e[s.key] }, { default: () => null });
|
|
4595
4606
|
});
|
|
4596
4607
|
let f = {
|
|
4597
4608
|
input: s.input,
|
|
@@ -4606,7 +4617,7 @@ async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4606
4617
|
tooltip: !0,
|
|
4607
4618
|
"line-clamp": s.table.clamp ?? 0
|
|
4608
4619
|
} : !1,
|
|
4609
|
-
render: s.table.render ? await
|
|
4620
|
+
render: s.table.render ? await Ho(s.key, s.table.render, i) : void 0,
|
|
4610
4621
|
show: K.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
4611
4622
|
pin: !!s.table.fixed,
|
|
4612
4623
|
fixTemp: s.table.fixed
|
|
@@ -4628,7 +4639,7 @@ async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4628
4639
|
...s.form.rule,
|
|
4629
4640
|
index: t
|
|
4630
4641
|
} : void 0
|
|
4631
|
-
}, { default: () => p(
|
|
4642
|
+
}, { default: () => p(Zi, {
|
|
4632
4643
|
item: s,
|
|
4633
4644
|
formValue: e,
|
|
4634
4645
|
status: n,
|
|
@@ -4641,34 +4652,34 @@ async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4641
4652
|
if (s.search.title && (s.label = s.search.title), s.search.source) {
|
|
4642
4653
|
if (s.input = "select", s.params.type = s.search.type, s.params.valueKey = s.search.valueKey, s.params.valueKey = s.search.valueKey, s.search.source === "from-up") s.params.options = s.params.options;
|
|
4643
4654
|
else if (s.params.immediately || s.search.defaultValue) {
|
|
4644
|
-
let { sourceData: e, n: t } = await
|
|
4655
|
+
let { sourceData: e, n: t } = await Ko(s.search.source);
|
|
4645
4656
|
if (e && Array.isArray(e)) {
|
|
4646
4657
|
if (s.sourceFn) {
|
|
4647
4658
|
let t = s.sourceFn, n = Function("sourceData", t);
|
|
4648
4659
|
s.params.options = n(e);
|
|
4649
|
-
} else s.params.options =
|
|
4660
|
+
} else s.params.options = Uo(s, e, t);
|
|
4650
4661
|
}
|
|
4651
4662
|
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4652
|
-
let { sourceData: e, n: t } = await
|
|
4663
|
+
let { sourceData: e, n: t } = await Ko(s.search.source);
|
|
4653
4664
|
if (e && Array.isArray(e)) {
|
|
4654
4665
|
if (s.sourceFn) {
|
|
4655
4666
|
let t = s.sourceFn;
|
|
4656
4667
|
return Function("sourceData", t)(e);
|
|
4657
4668
|
}
|
|
4658
|
-
return
|
|
4669
|
+
return Uo(s, e, t);
|
|
4659
4670
|
}
|
|
4660
4671
|
};
|
|
4661
4672
|
}
|
|
4662
|
-
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue =
|
|
4673
|
+
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = Bo(s.search.defaultValue))), s.search.show) {
|
|
4663
4674
|
let e = U(s);
|
|
4664
4675
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
4665
|
-
let { sourceData: t, n } = await
|
|
4676
|
+
let { sourceData: t, n } = await Ko(e.source || e.search.source);
|
|
4666
4677
|
if (t && Array.isArray(t)) {
|
|
4667
4678
|
if (e.sourceFn) {
|
|
4668
4679
|
let n = e.sourceFn;
|
|
4669
4680
|
return Function("sourceData", n)(t);
|
|
4670
4681
|
}
|
|
4671
|
-
return
|
|
4682
|
+
return Uo(e, t, n);
|
|
4672
4683
|
}
|
|
4673
4684
|
}), c.push({
|
|
4674
4685
|
input: e.input,
|
|
@@ -4722,7 +4733,7 @@ async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4722
4733
|
}
|
|
4723
4734
|
//#endregion
|
|
4724
4735
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
4725
|
-
var
|
|
4736
|
+
var ns = f({
|
|
4726
4737
|
name: "UzSpin",
|
|
4727
4738
|
components: {
|
|
4728
4739
|
NButton: R,
|
|
@@ -4768,7 +4779,7 @@ var Qo = f({
|
|
|
4768
4779
|
});
|
|
4769
4780
|
//#endregion
|
|
4770
4781
|
//#region components/spin/index.vue
|
|
4771
|
-
function
|
|
4782
|
+
function rs(e, t, n, i, a, s) {
|
|
4772
4783
|
let c = O("NEllipsis"), d = O("NButton"), f = O("NSpin");
|
|
4773
4784
|
return S(), r(f, { show: e.value }, {
|
|
4774
4785
|
description: P(() => [
|
|
@@ -4796,7 +4807,7 @@ function $o(e, t, n, i, a, s) {
|
|
|
4796
4807
|
_: 3
|
|
4797
4808
|
}, 8, ["show"]);
|
|
4798
4809
|
}
|
|
4799
|
-
var
|
|
4810
|
+
var is = /*#__PURE__*/ W(ns, [["render", rs]]), as = f({
|
|
4800
4811
|
name: "UzTableExpand",
|
|
4801
4812
|
components: {
|
|
4802
4813
|
NDataTable: se,
|
|
@@ -4822,8 +4833,8 @@ var es = /*#__PURE__*/ W(Qo, [["render", $o]]), ts = f({
|
|
|
4822
4833
|
} catch (e) {
|
|
4823
4834
|
q(e);
|
|
4824
4835
|
}
|
|
4825
|
-
|
|
4826
|
-
let { tableColumns: r } = await
|
|
4836
|
+
qo(e.data.link).then(async (e) => {
|
|
4837
|
+
let { tableColumns: r } = await ts(Yo(rt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
|
|
4827
4838
|
...e,
|
|
4828
4839
|
sorter: !1,
|
|
4829
4840
|
resizable: !1
|
|
@@ -4844,7 +4855,7 @@ var es = /*#__PURE__*/ W(Qo, [["render", $o]]), ts = f({
|
|
|
4844
4855
|
});
|
|
4845
4856
|
//#endregion
|
|
4846
4857
|
//#region components/table/components/expand.vue
|
|
4847
|
-
function
|
|
4858
|
+
function os(e, t, n, i, a, o) {
|
|
4848
4859
|
let s = O("NDataTable");
|
|
4849
4860
|
return S(), r(s, {
|
|
4850
4861
|
columns: e.columns,
|
|
@@ -4863,18 +4874,18 @@ function ns(e, t, n, i, a, o) {
|
|
|
4863
4874
|
"scroll-x"
|
|
4864
4875
|
]);
|
|
4865
4876
|
}
|
|
4866
|
-
var
|
|
4877
|
+
var ss = /*#__PURE__*/ W(as, [["render", os]]), cs = f({
|
|
4867
4878
|
components: { NSkeleton: je },
|
|
4868
4879
|
setup() {
|
|
4869
4880
|
return {};
|
|
4870
4881
|
}
|
|
4871
|
-
}),
|
|
4872
|
-
function
|
|
4882
|
+
}), ls = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, us = { class: "uz-flex uz-justify-between" }, ds = { class: "uz-flex uz-gap-1" };
|
|
4883
|
+
function fs(e, t, n, r, i, s) {
|
|
4873
4884
|
let c = O("NSkeleton");
|
|
4874
|
-
return S(), a("div",
|
|
4885
|
+
return S(), a("div", ls, [o("div", us, [u(c, {
|
|
4875
4886
|
width: 120,
|
|
4876
4887
|
size: "medium"
|
|
4877
|
-
}), o("div",
|
|
4888
|
+
}), o("div", ds, [
|
|
4878
4889
|
u(c, {
|
|
4879
4890
|
width: 180,
|
|
4880
4891
|
size: "medium"
|
|
@@ -4907,7 +4918,7 @@ function cs(e, t, n, r, i, s) {
|
|
|
4907
4918
|
}
|
|
4908
4919
|
//#endregion
|
|
4909
4920
|
//#region components/table/index.vue?vue&type=script&lang.ts
|
|
4910
|
-
var
|
|
4921
|
+
var ps = f({
|
|
4911
4922
|
name: "UzTable",
|
|
4912
4923
|
components: {
|
|
4913
4924
|
NDataTable: se,
|
|
@@ -4917,9 +4928,9 @@ var ls = f({
|
|
|
4917
4928
|
NCheckbox: ie,
|
|
4918
4929
|
NSpin: Ne,
|
|
4919
4930
|
VueDraggable: nt,
|
|
4920
|
-
UzSpin:
|
|
4921
|
-
TableExpand:
|
|
4922
|
-
SkeletonLoading: /* @__PURE__ */ W(
|
|
4931
|
+
UzSpin: is,
|
|
4932
|
+
TableExpand: ss,
|
|
4933
|
+
SkeletonLoading: /* @__PURE__ */ W(cs, [["render", fs]])
|
|
4923
4934
|
},
|
|
4924
4935
|
props: {
|
|
4925
4936
|
id: {
|
|
@@ -5059,7 +5070,7 @@ var ls = f({
|
|
|
5059
5070
|
fetchFn: "",
|
|
5060
5071
|
when_drawer_open: "",
|
|
5061
5072
|
when_before_save: ""
|
|
5062
|
-
}), L = T(
|
|
5073
|
+
}), L = T($o()), ne = T(""), re = T(!1), ie = T([]), z = T([]), ae = m("modules"), oe = (e) => e.id, se = (e, n) => {
|
|
5063
5074
|
t("update:rowKeys", {
|
|
5064
5075
|
keys: e,
|
|
5065
5076
|
rows: U(n)
|
|
@@ -5093,7 +5104,7 @@ var ls = f({
|
|
|
5093
5104
|
else if (I.value.fetchFn) {
|
|
5094
5105
|
let e = I.value.fetchFn;
|
|
5095
5106
|
r = Function("POST", "queryData", e)(Z, { ...t });
|
|
5096
|
-
} else r =
|
|
5107
|
+
} else r = Si({
|
|
5097
5108
|
...t,
|
|
5098
5109
|
tableId: n
|
|
5099
5110
|
});
|
|
@@ -5107,7 +5118,7 @@ var ls = f({
|
|
|
5107
5118
|
else if (I.value.fetchFn) {
|
|
5108
5119
|
let e = I.value.fetchFn;
|
|
5109
5120
|
r = Function("POST", "queryData", e)(Z, { id: t.id });
|
|
5110
|
-
} else r =
|
|
5121
|
+
} else r = Si({
|
|
5111
5122
|
id: t.id,
|
|
5112
5123
|
tableId: n
|
|
5113
5124
|
});
|
|
@@ -5116,24 +5127,24 @@ var ls = f({
|
|
|
5116
5127
|
let r = e.id || o.params.id;
|
|
5117
5128
|
e.enableLoading && (_.value = !0, t("update:loading", !0));
|
|
5118
5129
|
let i = U(k.value);
|
|
5119
|
-
n && delete i.orderby, I.value.fetch ?
|
|
5120
|
-
let n =
|
|
5130
|
+
n && delete i.orderby, I.value.fetch ? Di([I.value.fetch], "", i).then((e) => {
|
|
5131
|
+
let n = mr(e);
|
|
5121
5132
|
k.value.query = n.query, E.value = n.records, _.value = !1, v.value = !0, t("on-update:value", i), t("update:loading", !1), L.value.cache && r && J(`tables_${r}`, k.value);
|
|
5122
5133
|
}).catch(() => {
|
|
5123
5134
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5124
5135
|
}) : de(i).then((e) => {
|
|
5125
|
-
let n =
|
|
5136
|
+
let n = mr(e);
|
|
5126
5137
|
k.value.query = n.query, E.value = n.records, _.value = !1, v.value = !0, t("on-update:value", i), t("update:loading", !1), L.value.cache && r && J(`tables_${r}`, k.value);
|
|
5127
5138
|
}).catch(() => {
|
|
5128
5139
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5129
5140
|
});
|
|
5130
5141
|
}, pe = (e) => {
|
|
5131
|
-
k.value.query.page = e, u.value && (u.value.scrollTop = 0),
|
|
5142
|
+
k.value.query.page = e, u.value && (u.value.scrollTop = 0), pr(), B();
|
|
5132
5143
|
}, me = () => {
|
|
5133
5144
|
let e = k.value.query.page + 1;
|
|
5134
5145
|
e > k.value.query.pageMax && (e = 1), k.value.query.page = e, u.value && (u.value.scrollTop = 0), B();
|
|
5135
5146
|
}, he = (e) => {
|
|
5136
|
-
k.value.query.pageSize = e, k.value.query.page = 1,
|
|
5147
|
+
k.value.query.pageSize = e, k.value.query.page = 1, pr(), B();
|
|
5137
5148
|
}, ge = (e) => {
|
|
5138
5149
|
e && e.order ? k.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete k.value.orderby, B();
|
|
5139
5150
|
}, _e = () => {
|
|
@@ -5157,7 +5168,7 @@ var ls = f({
|
|
|
5157
5168
|
show: !0,
|
|
5158
5169
|
ellipsis: !1,
|
|
5159
5170
|
width: 180,
|
|
5160
|
-
render: (e) => [p("div", {}, { default: () => e.createBy }), p("div", {}, { default: () =>
|
|
5171
|
+
render: (e) => [p("div", {}, { default: () => e.createBy }), p("div", {}, { default: () => hr(e.createTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5161
5172
|
}, {
|
|
5162
5173
|
title: "更新人/时间",
|
|
5163
5174
|
key: "updateTime",
|
|
@@ -5166,9 +5177,9 @@ var ls = f({
|
|
|
5166
5177
|
show: !0,
|
|
5167
5178
|
ellipsis: !0,
|
|
5168
5179
|
width: 180,
|
|
5169
|
-
render: (e) => [p("div", {}, { default: () => e.updateBy }), p("div", {}, { default: () =>
|
|
5180
|
+
render: (e) => [p("div", {}, { default: () => e.updateBy }), p("div", {}, { default: () => hr(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5170
5181
|
}], be = (t) => a?.remainingDays < 0 && t === "add" ? !0 : !e.ruleFetch || !j.value || j.value && j.value[0] === "*" ? !1 : !j.value?.includes(t), xe = async (e) => {
|
|
5171
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await
|
|
5182
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await es(N.value, e, () => f.value?.getFormValues());
|
|
5172
5183
|
return x.value = t, {
|
|
5173
5184
|
form: t,
|
|
5174
5185
|
fillingDefaultValue: n,
|
|
@@ -5257,7 +5268,7 @@ var ls = f({
|
|
|
5257
5268
|
...n,
|
|
5258
5269
|
tableId: a,
|
|
5259
5270
|
sub_table_ids: r
|
|
5260
|
-
}) :
|
|
5271
|
+
}) : wi({
|
|
5261
5272
|
...n,
|
|
5262
5273
|
tableId: a,
|
|
5263
5274
|
sub_table_ids: r
|
|
@@ -5275,7 +5286,7 @@ var ls = f({
|
|
|
5275
5286
|
});
|
|
5276
5287
|
};
|
|
5277
5288
|
} else if (n.type !== "group" && n.action === "disabledInside") n.onClick = (t) => {
|
|
5278
|
-
|
|
5289
|
+
Ci({
|
|
5279
5290
|
tableId: e.id || o.params.id,
|
|
5280
5291
|
...t,
|
|
5281
5292
|
is_disabled: "1"
|
|
@@ -5284,7 +5295,7 @@ var ls = f({
|
|
|
5284
5295
|
}).catch(() => null);
|
|
5285
5296
|
};
|
|
5286
5297
|
else if (n.type !== "group" && n.action === "enabledInside") n.onClick = (t) => {
|
|
5287
|
-
|
|
5298
|
+
Ci({
|
|
5288
5299
|
tableId: e.id || o.params.id,
|
|
5289
5300
|
...t,
|
|
5290
5301
|
is_disabled: "0"
|
|
@@ -5297,7 +5308,7 @@ var ls = f({
|
|
|
5297
5308
|
n.onClick = (t) => {
|
|
5298
5309
|
fe(t).then((t) => {
|
|
5299
5310
|
let r = t && t[0];
|
|
5300
|
-
|
|
5311
|
+
Di([n.action], r.id, r).then((t) => {
|
|
5301
5312
|
if (e && typeof e == "string") {
|
|
5302
5313
|
try {
|
|
5303
5314
|
Function("rowData", "res", e)(r, t).then((e) => {
|
|
@@ -5336,8 +5347,8 @@ var ls = f({
|
|
|
5336
5347
|
};
|
|
5337
5348
|
}
|
|
5338
5349
|
}, Te = async () => {
|
|
5339
|
-
re.value = !1,
|
|
5340
|
-
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await
|
|
5350
|
+
re.value = !1, Go();
|
|
5351
|
+
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await ts(N.value, e.child, 0, () => ({}), ae);
|
|
5341
5352
|
!l.value && L.value.index && n.unshift({
|
|
5342
5353
|
title: "#",
|
|
5343
5354
|
key: "index",
|
|
@@ -5379,7 +5390,7 @@ var ls = f({
|
|
|
5379
5390
|
hide: !0,
|
|
5380
5391
|
width: Number(typeof L.value.actionWidth == "string" ? L.value.actionWidth.replace("px", "") : L.value.actionWidth),
|
|
5381
5392
|
render(t) {
|
|
5382
|
-
return
|
|
5393
|
+
return Ii({
|
|
5383
5394
|
buttons: e,
|
|
5384
5395
|
rowData: t,
|
|
5385
5396
|
callback: B,
|
|
@@ -5393,8 +5404,8 @@ var ls = f({
|
|
|
5393
5404
|
if (c) {
|
|
5394
5405
|
let e = Y(`tables_filter_${c}`, !1);
|
|
5395
5406
|
if (e) try {
|
|
5396
|
-
let t = await
|
|
5397
|
-
t && (e = JSON.parse(t), u =
|
|
5407
|
+
let t = await Ti(c);
|
|
5408
|
+
t && (e = JSON.parse(t), u = Cr(n, e));
|
|
5398
5409
|
} catch {}
|
|
5399
5410
|
}
|
|
5400
5411
|
a.link && u.unshift({
|
|
@@ -5406,7 +5417,7 @@ var ls = f({
|
|
|
5406
5417
|
filter: "default",
|
|
5407
5418
|
filterOptionValue: null,
|
|
5408
5419
|
renderFilterMenu: () => p("div", { class: "uz-table-filter" }, [p(R, { onClick: ze }, { default: () => s("Common.expand") }), p(R, { onClick: Be }, { default: () => s("Common.contract") })]),
|
|
5409
|
-
renderExpand: (e) => p(
|
|
5420
|
+
renderExpand: (e) => p(ss, {
|
|
5410
5421
|
data: a,
|
|
5411
5422
|
value: e
|
|
5412
5423
|
})
|
|
@@ -5427,12 +5438,12 @@ var ls = f({
|
|
|
5427
5438
|
let e = 0;
|
|
5428
5439
|
S.value.forEach((t) => {
|
|
5429
5440
|
t.show && (e += Number(t.width || 140));
|
|
5430
|
-
}), D.value = e, J(`tables_filter_${n}`, t.filter((e) => e.key)),
|
|
5441
|
+
}), D.value = e, J(`tables_filter_${n}`, t.filter((e) => e.key)), Ei({
|
|
5431
5442
|
table_id: n,
|
|
5432
5443
|
data: JSON.stringify(t)
|
|
5433
5444
|
}).catch(() => null);
|
|
5434
5445
|
}
|
|
5435
|
-
}, { run: ke } =
|
|
5446
|
+
}, { run: ke } = xa(Oe), { run: Ae } = xa((e, t) => {
|
|
5436
5447
|
let n = [];
|
|
5437
5448
|
S.value.forEach((r) => {
|
|
5438
5449
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -5459,7 +5470,7 @@ var ls = f({
|
|
|
5459
5470
|
i = e.formFetch ? e.formFetch({
|
|
5460
5471
|
tableId: a,
|
|
5461
5472
|
...t
|
|
5462
|
-
}) :
|
|
5473
|
+
}) : Ci({
|
|
5463
5474
|
tableId: a,
|
|
5464
5475
|
...t
|
|
5465
5476
|
}), i.then(() => {
|
|
@@ -5473,14 +5484,14 @@ var ls = f({
|
|
|
5473
5484
|
fetchFn: "",
|
|
5474
5485
|
when_drawer_open: "",
|
|
5475
5486
|
when_before_save: ""
|
|
5476
|
-
}, L.value =
|
|
5487
|
+
}, L.value = $o();
|
|
5477
5488
|
}, Pe = (t) => {
|
|
5478
5489
|
let n = rt.parse(t.viewJson);
|
|
5479
|
-
y.value = t.tableTitle, N.value =
|
|
5480
|
-
let r =
|
|
5481
|
-
F.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value =
|
|
5482
|
-
let i =
|
|
5483
|
-
t.tableTitle && i.title &&
|
|
5490
|
+
y.value = t.tableTitle, N.value = Yo(n.table), P.value = Wi(e.actions || n.action);
|
|
5491
|
+
let r = Wi(n.suffix || []);
|
|
5492
|
+
F.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value = Zo(n.trigger);
|
|
5493
|
+
let i = $o(e.options ?? n.option);
|
|
5494
|
+
t.tableTitle && i.title && gr(t.tableTitle), L.value = i;
|
|
5484
5495
|
}, Fe = async () => {
|
|
5485
5496
|
v.value = !1, Ne();
|
|
5486
5497
|
let t = e.id || o.params.id;
|
|
@@ -5497,7 +5508,7 @@ var ls = f({
|
|
|
5497
5508
|
ne.value = s("Notice.network"), re.value = !0;
|
|
5498
5509
|
return;
|
|
5499
5510
|
}
|
|
5500
|
-
De(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], L.value =
|
|
5511
|
+
De(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], L.value = $o(e.options), await Te()) : await qo(t).then(async (e) => {
|
|
5501
5512
|
Pe(e), await Te();
|
|
5502
5513
|
}).catch((e) => {
|
|
5503
5514
|
ne.value = e?.message || s("Notice.network"), re.value = !0;
|
|
@@ -5538,7 +5549,7 @@ var ls = f({
|
|
|
5538
5549
|
if (_.value) return;
|
|
5539
5550
|
_.value = !0;
|
|
5540
5551
|
let t = e.id || o.params.id;
|
|
5541
|
-
t && (
|
|
5552
|
+
t && (ur(`tables_filter_${t}`), Ei({
|
|
5542
5553
|
table_id: t,
|
|
5543
5554
|
data: null
|
|
5544
5555
|
}).catch(() => null).finally(() => {
|
|
@@ -5565,7 +5576,7 @@ var ls = f({
|
|
|
5565
5576
|
}), M(() => e.height, () => {
|
|
5566
5577
|
De();
|
|
5567
5578
|
}), M([() => o.params.id, () => e.id], async () => {
|
|
5568
|
-
|
|
5579
|
+
pr(), await Fe();
|
|
5569
5580
|
}), M(() => e.defaultCheckedRowKeys, (e) => {
|
|
5570
5581
|
let t = e || [], n = z.value.filter((e) => t.includes(e.id));
|
|
5571
5582
|
ie.value = t, z.value = n;
|
|
@@ -5616,14 +5627,14 @@ var ls = f({
|
|
|
5616
5627
|
}
|
|
5617
5628
|
};
|
|
5618
5629
|
}
|
|
5619
|
-
}),
|
|
5630
|
+
}), ms = { class: "uz-com-title" }, hs = {
|
|
5620
5631
|
ref: "mRef",
|
|
5621
5632
|
class: "uz-table-m-content"
|
|
5622
|
-
},
|
|
5633
|
+
}, gs = {
|
|
5623
5634
|
key: 1,
|
|
5624
5635
|
class: "uz-transform-fade-in"
|
|
5625
|
-
},
|
|
5626
|
-
function
|
|
5636
|
+
}, _s = { class: "uz-com-title" }, vs = ["data-index"];
|
|
5637
|
+
function ys(t, n, c, d, f, p) {
|
|
5627
5638
|
let m = O("SkeletonLoading"), h = O("NButton"), g = O("UzIcon"), y = O("NIcon"), b = O("UzActionButton"), x = O("UzSearchMobileBar"), C = O("UzTableMobile"), w = O("NCheckbox"), T = O("VueDraggable"), k = O("NPopover"), ee = O("UzTableFile"), te = O("UzSearchBar"), M = O("NDataTable"), N = O("NSpin"), I = O("UzTableDrawer");
|
|
5628
5639
|
return S(), a("div", {
|
|
5629
5640
|
class: "uz-table",
|
|
@@ -5688,7 +5699,7 @@ function hs(t, n, c, d, f, p) {
|
|
|
5688
5699
|
key: "0"
|
|
5689
5700
|
} : {
|
|
5690
5701
|
name: "header",
|
|
5691
|
-
fn: P(() => [o("div",
|
|
5702
|
+
fn: P(() => [o("div", ms, A(t.title), 1)]),
|
|
5692
5703
|
key: "1"
|
|
5693
5704
|
}]), 1032, [
|
|
5694
5705
|
"data",
|
|
@@ -5696,7 +5707,7 @@ function hs(t, n, c, d, f, p) {
|
|
|
5696
5707
|
"cache",
|
|
5697
5708
|
"loading",
|
|
5698
5709
|
"onOnUpdate:value"
|
|
5699
|
-
]), o("div",
|
|
5710
|
+
]), o("div", hs, [u(C, {
|
|
5700
5711
|
tableColumns: t.tableCols,
|
|
5701
5712
|
tableData: t.tableData,
|
|
5702
5713
|
tableQueries: t.tableQueries,
|
|
@@ -5714,7 +5725,7 @@ function hs(t, n, c, d, f, p) {
|
|
|
5714
5725
|
"minH",
|
|
5715
5726
|
"maxH",
|
|
5716
5727
|
"onUpdate:rowKeys"
|
|
5717
|
-
])], 512)], 2)) : (S(), a("div",
|
|
5728
|
+
])], 512)], 2)) : (S(), a("div", gs, [u(te, {
|
|
5718
5729
|
data: t.searchData,
|
|
5719
5730
|
id: t.id || t.route.params.id,
|
|
5720
5731
|
cache: t.tableOption.cache,
|
|
@@ -5769,7 +5780,7 @@ function hs(t, n, c, d, f, p) {
|
|
|
5769
5780
|
_: 1
|
|
5770
5781
|
})]),
|
|
5771
5782
|
_: 1
|
|
5772
|
-
})], 8,
|
|
5783
|
+
})], 8, vs)), [[j, !e.hide]])), 128)), u(h, {
|
|
5773
5784
|
block: "",
|
|
5774
5785
|
tertiary: "",
|
|
5775
5786
|
loading: t.loading,
|
|
@@ -5823,7 +5834,7 @@ function hs(t, n, c, d, f, p) {
|
|
|
5823
5834
|
key: "0"
|
|
5824
5835
|
} : {
|
|
5825
5836
|
name: "header",
|
|
5826
|
-
fn: P(() => [o("div",
|
|
5837
|
+
fn: P(() => [o("div", _s, A(t.title), 1)]),
|
|
5827
5838
|
key: "1"
|
|
5828
5839
|
}]), 1032, [
|
|
5829
5840
|
"data",
|
|
@@ -5884,10 +5895,10 @@ function hs(t, n, c, d, f, p) {
|
|
|
5884
5895
|
u(I, { ref: "drawerRef" }, null, 512)
|
|
5885
5896
|
], 4);
|
|
5886
5897
|
}
|
|
5887
|
-
var
|
|
5898
|
+
var bs = /*#__PURE__*/ W(ps, [["render", ys]]), xs = f({
|
|
5888
5899
|
name: "UzTableChild",
|
|
5889
5900
|
components: {
|
|
5890
|
-
UzIcon:
|
|
5901
|
+
UzIcon: Bn,
|
|
5891
5902
|
NSpin: Ne,
|
|
5892
5903
|
NButton: R,
|
|
5893
5904
|
NIcon: V,
|
|
@@ -5913,7 +5924,7 @@ var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
|
5913
5924
|
emits: ["update:value"],
|
|
5914
5925
|
setup(e, { emit: t, expose: r }) {
|
|
5915
5926
|
let i = m("emitSuffix"), a = m("modules"), o = m("mainFormValue"), s = m("childFormReload"), c = n(() => s ? s() : 0), { t: l } = Ze(), u = T(), d = T(), f = T(), h = T(!1), _ = T(!0), v = T([]), b = T({ child: [] }), x = T(""), S = T({}), C = T([]), w = T(void 0), E = async (t, n) => {
|
|
5916
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
5927
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await es(U(n ?? e.item.params.columns), t, void 0, !0);
|
|
5917
5928
|
return S.value = r, i;
|
|
5918
5929
|
}, D = async (t) => {
|
|
5919
5930
|
if (h.value) return;
|
|
@@ -5944,7 +5955,7 @@ var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
|
5944
5955
|
});
|
|
5945
5956
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
5946
5957
|
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
5947
|
-
let { tableColumns: r, tableWidth: i } = await
|
|
5958
|
+
let { tableColumns: r, tableWidth: i } = await ts(U(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
|
|
5948
5959
|
r.unshift({
|
|
5949
5960
|
title: " ",
|
|
5950
5961
|
key: "index",
|
|
@@ -5963,7 +5974,7 @@ var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
|
5963
5974
|
hide: !0,
|
|
5964
5975
|
show: !0,
|
|
5965
5976
|
render() {
|
|
5966
|
-
return p("div", { class: "flex justify-center" }, p(V, {}, { default: () => p(
|
|
5977
|
+
return p("div", { class: "flex justify-center" }, p(V, {}, { default: () => p(Bn, { icon: "Add" }) }));
|
|
5967
5978
|
}
|
|
5968
5979
|
}), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
|
|
5969
5980
|
title: () => l("Common.action"),
|
|
@@ -5977,7 +5988,7 @@ var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
|
5977
5988
|
width: 60,
|
|
5978
5989
|
render(t, n) {
|
|
5979
5990
|
let r = [];
|
|
5980
|
-
return e.item.params.childActions && e.item.params.actions &&
|
|
5991
|
+
return e.item.params.childActions && e.item.params.actions && Wi(e.item.params.actions).forEach((e) => {
|
|
5981
5992
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
5982
5993
|
}), e.item.params.showDelete && e.status !== 2 && (b.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly) && r.push({
|
|
5983
5994
|
type: "normal",
|
|
@@ -5989,7 +6000,7 @@ var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
|
5989
6000
|
let n = e.item.params.deleteFn;
|
|
5990
6001
|
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
|
|
5991
6002
|
}
|
|
5992
|
-
}),
|
|
6003
|
+
}), Ii({
|
|
5993
6004
|
buttons: r,
|
|
5994
6005
|
rowData: t
|
|
5995
6006
|
});
|
|
@@ -6120,14 +6131,14 @@ var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
|
6120
6131
|
}
|
|
6121
6132
|
};
|
|
6122
6133
|
}
|
|
6123
|
-
}),
|
|
6134
|
+
}), Ss = { class: "uz-flex-1 uz-w-full" }, Cs = { class: "uz-flex uz-justify-between" }, ws = { class: "uz-com-title" }, Ts = {
|
|
6124
6135
|
key: 0,
|
|
6125
6136
|
class: "uz-table-asterisk"
|
|
6126
|
-
},
|
|
6127
|
-
function
|
|
6137
|
+
}, Es = { class: "uz-flex uz-gap-2" }, Ds = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
6138
|
+
function Os(t, n, c, d, f, p) {
|
|
6128
6139
|
let m = O("UzIcon"), h = O("NIcon"), g = O("NButton"), v = O("NDataTable"), y = O("NForm");
|
|
6129
|
-
return S(), a("div",
|
|
6130
|
-
o("div",
|
|
6140
|
+
return S(), a("div", Ss, [
|
|
6141
|
+
o("div", Cs, [o("div", ws, [l(A(t.item.label) + " ", 1), t.item.form.rule.required ? (S(), a("span", Ts, " \xA0* ")) : i("", !0)]), o("div", Es, [
|
|
6131
6142
|
t.status === 2 ? i("", !0) : (S(!0), a(e, { key: 0 }, E(t.suffixes, (e) => (S(), r(g, {
|
|
6132
6143
|
key: e.key,
|
|
6133
6144
|
type: e.color,
|
|
@@ -6200,7 +6211,7 @@ function ws(t, n, c, d, f, p) {
|
|
|
6200
6211
|
"scroll-x",
|
|
6201
6212
|
"class",
|
|
6202
6213
|
"row-class-name"
|
|
6203
|
-
])) : i("", !0), o("div",
|
|
6214
|
+
])) : i("", !0), o("div", Ds, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (S(), r(g, {
|
|
6204
6215
|
key: 0,
|
|
6205
6216
|
type: "success",
|
|
6206
6217
|
secondary: "",
|
|
@@ -6229,7 +6240,7 @@ function ws(t, n, c, d, f, p) {
|
|
|
6229
6240
|
}, 8, ["model"])
|
|
6230
6241
|
]);
|
|
6231
6242
|
}
|
|
6232
|
-
var
|
|
6243
|
+
var ks = /*#__PURE__*/ W(xs, [["render", Os]]), As = f({
|
|
6233
6244
|
name: "UzTableQuestChild",
|
|
6234
6245
|
components: { NDataTable: se },
|
|
6235
6246
|
props: {
|
|
@@ -6257,7 +6268,7 @@ var Ts = /*#__PURE__*/ W(_s, [["render", ws]]), Es = f({
|
|
|
6257
6268
|
}), o.value = t, i.value = !1;
|
|
6258
6269
|
}
|
|
6259
6270
|
}, l = async (i) => {
|
|
6260
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
6271
|
+
let { tableColumns: c, tableWidth: l } = await ts(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
6261
6272
|
c.unshift({
|
|
6262
6273
|
title: " ",
|
|
6263
6274
|
key: "index",
|
|
@@ -6276,7 +6287,7 @@ var Ts = /*#__PURE__*/ W(_s, [["render", ws]]), Es = f({
|
|
|
6276
6287
|
hide: !0,
|
|
6277
6288
|
width: 60,
|
|
6278
6289
|
render(t) {
|
|
6279
|
-
return
|
|
6290
|
+
return Ii({ buttons: [{
|
|
6280
6291
|
type: "normal",
|
|
6281
6292
|
color: "primary",
|
|
6282
6293
|
key: "detail",
|
|
@@ -6297,7 +6308,7 @@ var Ts = /*#__PURE__*/ W(_s, [["render", ws]]), Es = f({
|
|
|
6297
6308
|
}), N(async () => {
|
|
6298
6309
|
try {
|
|
6299
6310
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
6300
|
-
let t = await
|
|
6311
|
+
let t = await Si({
|
|
6301
6312
|
tableId: e.item.params.link,
|
|
6302
6313
|
params: [{
|
|
6303
6314
|
key: e.item.params.searchKey,
|
|
@@ -6331,11 +6342,11 @@ var Ts = /*#__PURE__*/ W(_s, [["render", ws]]), Es = f({
|
|
|
6331
6342
|
tableScrollX: s
|
|
6332
6343
|
};
|
|
6333
6344
|
}
|
|
6334
|
-
}),
|
|
6335
|
-
function
|
|
6345
|
+
}), js = { class: "uz-flex-1 uz-w-full" }, Ms = { class: "uz-flex uz-justify-between" }, Ns = { class: "uz-com-title" };
|
|
6346
|
+
function Ps(e, t, n, r, i, s) {
|
|
6336
6347
|
let c = O("NDataTable"), l = O("UzTableDrawer");
|
|
6337
|
-
return S(), a("div",
|
|
6338
|
-
o("div",
|
|
6348
|
+
return S(), a("div", js, [
|
|
6349
|
+
o("div", Ms, [o("div", Ns, A(e.item.label), 1)]),
|
|
6339
6350
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
6340
6351
|
u(c, {
|
|
6341
6352
|
columns: e.columns,
|
|
@@ -6357,7 +6368,7 @@ function As(e, t, n, r, i, s) {
|
|
|
6357
6368
|
u(l, { ref: "drawerRef" }, null, 512)
|
|
6358
6369
|
]);
|
|
6359
6370
|
}
|
|
6360
|
-
var
|
|
6371
|
+
var Fs = /*#__PURE__*/ W(As, [["render", Ps]]), Is = f({
|
|
6361
6372
|
name: "UzTableDrawer",
|
|
6362
6373
|
components: {
|
|
6363
6374
|
NButton: R,
|
|
@@ -6398,7 +6409,7 @@ var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
|
6398
6409
|
}), b = T(!1), x = T(), S = () => {
|
|
6399
6410
|
a.value?.restoreValidation(), c.value = {}, p.value = !1, f.value = !1, u.value = !1, t("update:show", !1);
|
|
6400
6411
|
}, C = () => {
|
|
6401
|
-
s.value === 2 ? S() :
|
|
6412
|
+
s.value === 2 ? S() : lr.info({
|
|
6402
6413
|
title: "提示",
|
|
6403
6414
|
content: "关闭后修改的数据将不保留,确定关闭?",
|
|
6404
6415
|
positiveText: "确定",
|
|
@@ -6429,11 +6440,11 @@ var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
|
6429
6440
|
linkFn: t
|
|
6430
6441
|
};
|
|
6431
6442
|
let r = e.split(".")[0];
|
|
6432
|
-
|
|
6443
|
+
qo(r).then((e) => {
|
|
6433
6444
|
g(async () => {
|
|
6434
6445
|
let t = rt.parse(e.viewJson);
|
|
6435
|
-
d.value =
|
|
6436
|
-
let { form: i } = await
|
|
6446
|
+
d.value = $o(t.option), u.value = !0;
|
|
6447
|
+
let { form: i } = await es(Yo(t.table), n);
|
|
6437
6448
|
y.value = t.trigger, n && w(n);
|
|
6438
6449
|
let a = Y(`tables_cache_link_${r}`, !1);
|
|
6439
6450
|
a && (c.value = a), g(() => {
|
|
@@ -6482,7 +6493,7 @@ var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
|
6482
6493
|
}
|
|
6483
6494
|
if (x.value) {
|
|
6484
6495
|
x.value(e, () => {
|
|
6485
|
-
|
|
6496
|
+
ur(`tables_cache_${o.value}`), S();
|
|
6486
6497
|
}, (e) => {
|
|
6487
6498
|
_.value = 1, h.value = e;
|
|
6488
6499
|
});
|
|
@@ -6490,11 +6501,11 @@ var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
|
6490
6501
|
}
|
|
6491
6502
|
{
|
|
6492
6503
|
let n = l.value.link.split(".")[0];
|
|
6493
|
-
|
|
6504
|
+
Ci({
|
|
6494
6505
|
tableId: n,
|
|
6495
6506
|
...e
|
|
6496
6507
|
}).then(() => {
|
|
6497
|
-
|
|
6508
|
+
Go(), Si({ tableId: n }).then((e) => {
|
|
6498
6509
|
let r = l.value.link.split("."), i;
|
|
6499
6510
|
if (l.value.linkFn) {
|
|
6500
6511
|
let t = l.value.linkFn;
|
|
@@ -6505,7 +6516,7 @@ var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
|
6505
6516
|
disabled: e?.status === "0",
|
|
6506
6517
|
params: e
|
|
6507
6518
|
}));
|
|
6508
|
-
p.value = !1,
|
|
6519
|
+
p.value = !1, ur(`tables_cache_link_${n}`), t("on-submit", i), S();
|
|
6509
6520
|
}).catch((e) => {
|
|
6510
6521
|
_.value = 1, h.value = e;
|
|
6511
6522
|
});
|
|
@@ -6527,11 +6538,11 @@ var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
|
6527
6538
|
}
|
|
6528
6539
|
};
|
|
6529
6540
|
}
|
|
6530
|
-
}),
|
|
6541
|
+
}), Ls = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, Rs = {
|
|
6531
6542
|
key: 0,
|
|
6532
6543
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
6533
|
-
},
|
|
6534
|
-
function
|
|
6544
|
+
}, zs = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, Bs = { class: "uz-flex uz-gap-2" };
|
|
6545
|
+
function Vs(t, n, c, d, f, p) {
|
|
6535
6546
|
let m = O("NSkeleton"), h = O("UzForm"), g = O("UzSpin"), _ = O("NSpin"), v = O("NButton"), y = O("NPopover"), b = O("NDrawerContent"), x = O("NDrawer"), C = O("UzOcr"), w = O("NModal");
|
|
6536
6547
|
return S(), a(e, null, [u(x, {
|
|
6537
6548
|
show: t.drawer,
|
|
@@ -6557,7 +6568,7 @@ function Ls(t, n, c, d, f, p) {
|
|
|
6557
6568
|
message: t.spinMsg,
|
|
6558
6569
|
status: t.spinStatus
|
|
6559
6570
|
}, {
|
|
6560
|
-
default: P(() => [o("div",
|
|
6571
|
+
default: P(() => [o("div", Ls, [t.skeletonShow ? (S(), a("div", Rs, [
|
|
6561
6572
|
u(m, {
|
|
6562
6573
|
size: "large",
|
|
6563
6574
|
style: { height: "156px" }
|
|
@@ -6620,7 +6631,7 @@ function Ls(t, n, c, d, f, p) {
|
|
|
6620
6631
|
_: 2
|
|
6621
6632
|
}, [t.formStatus === 2 ? void 0 : {
|
|
6622
6633
|
name: "footer",
|
|
6623
|
-
fn: P(() => [o("div",
|
|
6634
|
+
fn: P(() => [o("div", zs, [t.isMobile ? i("", !0) : (S(), r(v, {
|
|
6624
6635
|
key: 0,
|
|
6625
6636
|
loading: t.spinShow,
|
|
6626
6637
|
type: "success",
|
|
@@ -6629,7 +6640,7 @@ function Ls(t, n, c, d, f, p) {
|
|
|
6629
6640
|
}, {
|
|
6630
6641
|
default: P(() => [l(A(t.$t("OCR.ocr")), 1)]),
|
|
6631
6642
|
_: 1
|
|
6632
|
-
}, 8, ["loading"])), o("div",
|
|
6643
|
+
}, 8, ["loading"])), o("div", Bs, [
|
|
6633
6644
|
u(v, {
|
|
6634
6645
|
loading: t.spinShow,
|
|
6635
6646
|
class: "uz-drawer-button",
|
|
@@ -6697,7 +6708,7 @@ function Ls(t, n, c, d, f, p) {
|
|
|
6697
6708
|
_: 1
|
|
6698
6709
|
}, 8, ["show"])], 64);
|
|
6699
6710
|
}
|
|
6700
|
-
var
|
|
6711
|
+
var Hs = /*#__PURE__*/ W(Is, [["render", Vs]]), Us = f({
|
|
6701
6712
|
name: "UzTableMobileList",
|
|
6702
6713
|
props: {
|
|
6703
6714
|
tableData: {
|
|
@@ -6715,12 +6726,12 @@ var Rs = /*#__PURE__*/ W(Ms, [["render", Ls]]), zs = f({
|
|
|
6715
6726
|
},
|
|
6716
6727
|
emits: ["update:row-keys"],
|
|
6717
6728
|
setup() {}
|
|
6718
|
-
}),
|
|
6729
|
+
}), Ws = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Gs = {
|
|
6719
6730
|
key: 1,
|
|
6720
6731
|
class: "uz-table-mobile-group-txt"
|
|
6721
6732
|
};
|
|
6722
|
-
function
|
|
6723
|
-
return S(), a("div",
|
|
6733
|
+
function Ks(t, n, s, c, l, u) {
|
|
6734
|
+
return S(), a("div", Ws, [(S(!0), a(e, null, E(t.tableColumns, (n) => (S(), a("div", {
|
|
6724
6735
|
key: n.key,
|
|
6725
6736
|
class: _(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
|
|
6726
6737
|
style: v(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
|
|
@@ -6731,11 +6742,11 @@ function Hs(t, n, s, c, l, u) {
|
|
|
6731
6742
|
class: "mobile"
|
|
6732
6743
|
})) : i("", !0)], 64)) : (S(), a(e, { key: 1 }, [o("div", { class: _(["uz-table-mobile-group-title", n.lineBreak ? "line-break" : ""]) }, [o("div", null, A(typeof n.title == "string" ? n.title : n.title()), 1)], 2), o("div", { class: _(["uz-table-mobile-group-content", n.lineBreak ? "line-break" : ""]) }, [n.render ? (S(), r(ee(() => {
|
|
6733
6744
|
if (t.tableData) return n.render(t.tableData, t.tableIndex);
|
|
6734
|
-
}), { key: 0 })) : (S(), a("div",
|
|
6745
|
+
}), { key: 0 })) : (S(), a("div", Gs, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
6735
6746
|
}
|
|
6736
6747
|
//#endregion
|
|
6737
6748
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
6738
|
-
var
|
|
6749
|
+
var qs = f({
|
|
6739
6750
|
name: "UzTableMobile",
|
|
6740
6751
|
components: {
|
|
6741
6752
|
NCheckbox: ie,
|
|
@@ -6743,7 +6754,7 @@ var Us = f({
|
|
|
6743
6754
|
NPagination: Te,
|
|
6744
6755
|
NCheckboxGroup: z,
|
|
6745
6756
|
NRadioGroup: ke,
|
|
6746
|
-
UzTableMobileList: /* @__PURE__ */ W(
|
|
6757
|
+
UzTableMobileList: /* @__PURE__ */ W(Us, [["render", Ks], ["__scopeId", "data-v-84c394fe"]])
|
|
6747
6758
|
},
|
|
6748
6759
|
props: {
|
|
6749
6760
|
tableData: {
|
|
@@ -6790,17 +6801,17 @@ var Us = f({
|
|
|
6790
6801
|
}
|
|
6791
6802
|
};
|
|
6792
6803
|
}
|
|
6793
|
-
}),
|
|
6804
|
+
}), Js = {
|
|
6794
6805
|
key: 0,
|
|
6795
6806
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6796
|
-
},
|
|
6807
|
+
}, Ys = {
|
|
6797
6808
|
key: 0,
|
|
6798
6809
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6799
|
-
},
|
|
6810
|
+
}, Xs = {
|
|
6800
6811
|
key: 0,
|
|
6801
6812
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6802
6813
|
};
|
|
6803
|
-
function
|
|
6814
|
+
function Zs(t, n, o, s, c, l) {
|
|
6804
6815
|
let d = O("UzTableMobileList"), f = O("NCheckbox"), p = O("NPagination"), m = O("NCheckboxGroup"), h = O("NRadio"), g = O("NRadioGroup");
|
|
6805
6816
|
return t.selection === 2 ? (S(), r(m, {
|
|
6806
6817
|
key: 0,
|
|
@@ -6827,7 +6838,7 @@ function qs(t, n, o, s, c, l) {
|
|
|
6827
6838
|
"tableColumns"
|
|
6828
6839
|
])]),
|
|
6829
6840
|
_: 2
|
|
6830
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
6841
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Js, [u(p, {
|
|
6831
6842
|
page: t.tableQueries.query.page,
|
|
6832
6843
|
"onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6833
6844
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6869,7 +6880,7 @@ function qs(t, n, o, s, c, l) {
|
|
|
6869
6880
|
"tableColumns"
|
|
6870
6881
|
])]),
|
|
6871
6882
|
_: 2
|
|
6872
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
6883
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Ys, [u(p, {
|
|
6873
6884
|
page: t.tableQueries.query.page,
|
|
6874
6885
|
"onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6875
6886
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6904,7 +6915,7 @@ function qs(t, n, o, s, c, l) {
|
|
|
6904
6915
|
"tableData",
|
|
6905
6916
|
"tableIndex",
|
|
6906
6917
|
"tableColumns"
|
|
6907
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
6918
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Xs, [u(p, {
|
|
6908
6919
|
page: t.tableQueries.query.page,
|
|
6909
6920
|
"onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6910
6921
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6917,10 +6928,10 @@ function qs(t, n, o, s, c, l) {
|
|
|
6917
6928
|
"onUpdate:page"
|
|
6918
6929
|
])])) : i("", !0)], 4));
|
|
6919
6930
|
}
|
|
6920
|
-
var
|
|
6931
|
+
var Qs = /*#__PURE__*/ W(qs, [["render", Zs], ["__scopeId", "data-v-70b54e3b"]]), $s = f({
|
|
6921
6932
|
name: "UzTableFile",
|
|
6922
6933
|
components: {
|
|
6923
|
-
UzIcon:
|
|
6934
|
+
UzIcon: Bn,
|
|
6924
6935
|
NDropdown: fe,
|
|
6925
6936
|
NButton: R,
|
|
6926
6937
|
NModal: we,
|
|
@@ -6946,11 +6957,11 @@ var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6946
6957
|
let { t: n } = Ze(), r = Je(), i = Ue(), a = T(!1), o = T(!1), s = T(), c = T(""), l = T([{
|
|
6947
6958
|
label: n("Common.import"),
|
|
6948
6959
|
key: "import",
|
|
6949
|
-
icon: () => p(V, null, { default: () => p(
|
|
6960
|
+
icon: () => p(V, null, { default: () => p(Bn, { icon: "CloudUpload" }) })
|
|
6950
6961
|
}, {
|
|
6951
6962
|
label: n("Common.export"),
|
|
6952
6963
|
key: "export",
|
|
6953
|
-
icon: () => p(V, null, { default: () => p(
|
|
6964
|
+
icon: () => p(V, null, { default: () => p(Bn, { icon: "CloudDownload" }) })
|
|
6954
6965
|
}]), u = T([
|
|
6955
6966
|
{
|
|
6956
6967
|
title: "文件名称",
|
|
@@ -6993,14 +7004,14 @@ var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6993
7004
|
}), m = () => {
|
|
6994
7005
|
s.value = null;
|
|
6995
7006
|
}, h = () => {
|
|
6996
|
-
o.value || (o.value = !0,
|
|
7007
|
+
o.value || (o.value = !0, Oi(r.params.id).then((t) => {
|
|
6997
7008
|
let n = document.createElement("a");
|
|
6998
7009
|
n.download = e.title ? `${e.title}-导入模板.xlsx` : "导入模板.xlsx", n.target = "_blank", n.style.display = "none", n.href = URL.createObjectURL(new Blob([t.data], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" })), document.body.appendChild(n), n.click(), URL.revokeObjectURL(n.href), document.body.removeChild(n);
|
|
6999
7010
|
}).catch(() => null).finally(() => {
|
|
7000
7011
|
o.value = !1;
|
|
7001
7012
|
}));
|
|
7002
7013
|
}, g = () => {
|
|
7003
|
-
o.value || (o.value = !0,
|
|
7014
|
+
o.value || (o.value = !0, bi("excel/import", s.value).then(() => {
|
|
7004
7015
|
i.success({
|
|
7005
7016
|
content: "导入执行中...",
|
|
7006
7017
|
duration: 3e3
|
|
@@ -7014,7 +7025,7 @@ var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7014
7025
|
o.value = !1, _();
|
|
7015
7026
|
}));
|
|
7016
7027
|
}, _ = () => {
|
|
7017
|
-
o.value || (o.value = !0,
|
|
7028
|
+
o.value || (o.value = !0, ki(r.params.id).then((e) => {
|
|
7018
7029
|
d.value = e;
|
|
7019
7030
|
}).catch(() => null).finally(() => {
|
|
7020
7031
|
o.value = !1;
|
|
@@ -7032,7 +7043,7 @@ var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7032
7043
|
return;
|
|
7033
7044
|
}
|
|
7034
7045
|
if (t === "export") {
|
|
7035
|
-
|
|
7046
|
+
lr.info({
|
|
7036
7047
|
title: "提示",
|
|
7037
7048
|
content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
|
|
7038
7049
|
positiveText: "确定",
|
|
@@ -7040,7 +7051,7 @@ var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7040
7051
|
draggable: !0,
|
|
7041
7052
|
onPositiveClick: () => {
|
|
7042
7053
|
let t = e.query ?? {};
|
|
7043
|
-
|
|
7054
|
+
Ai({
|
|
7044
7055
|
tableKey: r.params.id,
|
|
7045
7056
|
...t
|
|
7046
7057
|
}).then(() => {
|
|
@@ -7066,11 +7077,11 @@ var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7066
7077
|
}
|
|
7067
7078
|
};
|
|
7068
7079
|
}
|
|
7069
|
-
}),
|
|
7080
|
+
}), ec = { class: "uz-file-port-modal" }, tc = {
|
|
7070
7081
|
key: 1,
|
|
7071
7082
|
class: "uz-file-port-panel"
|
|
7072
|
-
},
|
|
7073
|
-
function
|
|
7083
|
+
}, nc = { class: "uz-flex uz-justify-between" };
|
|
7084
|
+
function rc(t, n, i, s, c, d) {
|
|
7074
7085
|
let f = O("UzIcon"), p = O("NIcon"), m = O("NButton"), h = O("NDropdown"), g = O("NUpload"), _ = O("NSpace"), v = O("NDataTable"), y = O("NModal");
|
|
7075
7086
|
return S(), a(e, null, [u(h, {
|
|
7076
7087
|
trigger: "hover",
|
|
@@ -7105,8 +7116,8 @@ function $s(t, n, i, s, c, d) {
|
|
|
7105
7116
|
default: P(() => [...n[1] ||= [l(" 下载模板 ", -1)]]),
|
|
7106
7117
|
_: 1
|
|
7107
7118
|
}, 8, ["onClick"])]),
|
|
7108
|
-
default: P(() => [o("div",
|
|
7109
|
-
t.rawFile ? (S(), a("div",
|
|
7119
|
+
default: P(() => [o("div", ec, [
|
|
7120
|
+
t.rawFile ? (S(), a("div", tc, [
|
|
7110
7121
|
n[5] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
7111
7122
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7112
7123
|
viewBox: "0 0 24 24",
|
|
@@ -7153,7 +7164,7 @@ function $s(t, n, i, s, c, d) {
|
|
|
7153
7164
|
}, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])]), o("div", { class: "uz-file-port-subtitle" }, "拖拽或点击上传Excel文件")], -1)]]),
|
|
7154
7165
|
_: 1
|
|
7155
7166
|
}, 8, ["on-before-upload"])),
|
|
7156
|
-
o("div",
|
|
7167
|
+
o("div", nc, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), u(m, {
|
|
7157
7168
|
onClick: t.init,
|
|
7158
7169
|
loading: t.loading,
|
|
7159
7170
|
secondary: ""
|
|
@@ -7176,7 +7187,7 @@ function $s(t, n, i, s, c, d) {
|
|
|
7176
7187
|
_: 1
|
|
7177
7188
|
}, 8, ["show", "on-after-leave"])], 64);
|
|
7178
7189
|
}
|
|
7179
|
-
var
|
|
7190
|
+
var ic = /*#__PURE__*/ W($s, [["render", rc], ["__scopeId", "data-v-21238151"]]), $ = w({
|
|
7180
7191
|
page: {
|
|
7181
7192
|
label: "首页",
|
|
7182
7193
|
key: "/",
|
|
@@ -7187,7 +7198,7 @@ var ec = /*#__PURE__*/ W(Ys, [["render", $s], ["__scopeId", "data-v-21238151"]])
|
|
|
7187
7198
|
active: "/",
|
|
7188
7199
|
thumbnail: []
|
|
7189
7200
|
});
|
|
7190
|
-
function
|
|
7201
|
+
function ac(e) {
|
|
7191
7202
|
$.cache = e.cache, $.page = {
|
|
7192
7203
|
label: e.label,
|
|
7193
7204
|
key: e.key,
|
|
@@ -7202,35 +7213,35 @@ function tc(e) {
|
|
|
7202
7213
|
closable: !1
|
|
7203
7214
|
}];
|
|
7204
7215
|
}
|
|
7205
|
-
function
|
|
7206
|
-
$.active = e,
|
|
7216
|
+
function oc(e) {
|
|
7217
|
+
$.active = e, G.push(e), J($.cache, $, 0);
|
|
7207
7218
|
}
|
|
7208
|
-
function
|
|
7219
|
+
function sc(e, t) {
|
|
7209
7220
|
let n = $.thumbnail.find((t) => t.key === e);
|
|
7210
7221
|
n && (n.key = t, $.active = t, J($.cache, $, 0));
|
|
7211
7222
|
}
|
|
7212
|
-
function
|
|
7223
|
+
function cc(e) {
|
|
7213
7224
|
let t = $.thumbnail.find((t) => t.path === e.key);
|
|
7214
|
-
t ? ($.active = t.key, J($.cache, $, 0),
|
|
7225
|
+
t ? ($.active = t.key, J($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
|
|
7215
7226
|
...e,
|
|
7216
7227
|
path: e.key,
|
|
7217
7228
|
closable: !0
|
|
7218
|
-
}),
|
|
7229
|
+
}), G.push(e.key));
|
|
7219
7230
|
}
|
|
7220
|
-
function
|
|
7231
|
+
function lc(e) {
|
|
7221
7232
|
let t = $.thumbnail.findIndex((t) => t.key === e);
|
|
7222
7233
|
if ($.thumbnail.splice(t, 1), $.active === e) {
|
|
7223
7234
|
let e = $.thumbnail[t - 1]?.key || "";
|
|
7224
|
-
$.active = e,
|
|
7235
|
+
$.active = e, G.push(e);
|
|
7225
7236
|
}
|
|
7226
7237
|
J($.cache, $, 0);
|
|
7227
7238
|
}
|
|
7228
|
-
function
|
|
7229
|
-
$.active = $.page.path, $.thumbnail = [$.page],
|
|
7239
|
+
function uc() {
|
|
7240
|
+
$.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), J($.cache, $, 0);
|
|
7230
7241
|
}
|
|
7231
7242
|
//#endregion
|
|
7232
7243
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
7233
|
-
var
|
|
7244
|
+
var dc = f({
|
|
7234
7245
|
name: "UzThumbnail",
|
|
7235
7246
|
components: {
|
|
7236
7247
|
NTabs: Ie,
|
|
@@ -7251,29 +7262,29 @@ var sc = f({
|
|
|
7251
7262
|
setup(e, { slots: t }) {
|
|
7252
7263
|
let n = T(!!t.prefix), r = Je();
|
|
7253
7264
|
return b(() => {
|
|
7254
|
-
|
|
7265
|
+
ac(e.option), $.active !== r.path && sc(r.path, r.fullPath);
|
|
7255
7266
|
}), M(() => r, (e) => {
|
|
7256
|
-
$.active === r.path &&
|
|
7267
|
+
$.active === r.path && sc(e.path, e.fullPath);
|
|
7257
7268
|
}, { deep: !0 }), M(() => e.option, (e) => {
|
|
7258
|
-
|
|
7269
|
+
ac(e);
|
|
7259
7270
|
}, { deep: !0 }), {
|
|
7260
7271
|
thumbnailStore: $,
|
|
7261
7272
|
isSlotPrefix: n,
|
|
7262
7273
|
handleClose: (e) => {
|
|
7263
|
-
|
|
7274
|
+
lc(e);
|
|
7264
7275
|
},
|
|
7265
7276
|
handleChange: (e) => {
|
|
7266
|
-
|
|
7277
|
+
oc(e);
|
|
7267
7278
|
},
|
|
7268
7279
|
handleClear: () => {
|
|
7269
|
-
|
|
7280
|
+
uc();
|
|
7270
7281
|
}
|
|
7271
7282
|
};
|
|
7272
7283
|
}
|
|
7273
7284
|
});
|
|
7274
7285
|
//#endregion
|
|
7275
7286
|
//#region components/thumbnail/index.vue
|
|
7276
|
-
function
|
|
7287
|
+
function fc(t, n, i, o, c, d) {
|
|
7277
7288
|
let f = O("NTabPane"), p = O("UzIcon"), m = O("NIcon"), h = O("NButton"), g = O("NPopconfirm"), _ = O("NFlex"), v = O("NTabs");
|
|
7278
7289
|
return S(), r(v, {
|
|
7279
7290
|
value: t.thumbnailStore.active,
|
|
@@ -7322,33 +7333,33 @@ function cc(t, n, i, o, c, d) {
|
|
|
7322
7333
|
"on-update:value"
|
|
7323
7334
|
]);
|
|
7324
7335
|
}
|
|
7325
|
-
var
|
|
7326
|
-
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover =
|
|
7327
|
-
var
|
|
7336
|
+
var pc = /*#__PURE__*/ W(dc, [["render", fc]]), mc = "#007AFF", hc = "#0A84FF", gc = "#FF9500", _c = "#FF9F0A", vc = "#28CD41", yc = "#32D74B", bc = "#FFCC00", xc = "#FFD60A", Sc = "#FF3B30", Cc = "#FF453A";
|
|
7337
|
+
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = hc, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = _c, H.common.successColor = "#32D74B", H.common.successColorHover = yc, H.common.warningColor = "#FFD60A", H.common.successColorHover = xc, H.common.errorColor = "#FF453A", H.common.errorColorHover = Cc, H.common.borderRadius = "var(--borderRadius)", H.common.inputColor = "rgba(var(--input))", H.common.borderColor = "rgba(var(--border), 0.7)", H.DataTable.tdColor = "#2d2d31", H.Scrollbar.width = "8px", H.Scrollbar.height = "8px", H.Scrollbar.borderRadius = "8px", H.Scrollbar.color = "#686873";
|
|
7338
|
+
var wc = {
|
|
7328
7339
|
common: {
|
|
7329
7340
|
inputColor: "rgba(var(--input))",
|
|
7330
7341
|
borderColor: "rgba(var(--border), 0.7)",
|
|
7331
7342
|
borderRadius: "var(--borderRadius)",
|
|
7332
|
-
primaryColor:
|
|
7333
|
-
primaryColorHover:
|
|
7334
|
-
primaryColorPressed:
|
|
7335
|
-
primaryColorSuppl:
|
|
7336
|
-
infoColor:
|
|
7337
|
-
infoColorHover:
|
|
7338
|
-
infoColorPressed:
|
|
7339
|
-
infoColorSuppl:
|
|
7340
|
-
successColor:
|
|
7341
|
-
successColorHover:
|
|
7342
|
-
successColorPressed:
|
|
7343
|
-
successColorSuppl:
|
|
7344
|
-
warningColor:
|
|
7345
|
-
warningColorHover:
|
|
7346
|
-
warningColorPressed:
|
|
7347
|
-
warningColorSuppl:
|
|
7348
|
-
errorColor:
|
|
7349
|
-
errorColorHover:
|
|
7350
|
-
errorColorPressed:
|
|
7351
|
-
errorColorSuppl:
|
|
7343
|
+
primaryColor: mc,
|
|
7344
|
+
primaryColorHover: hc,
|
|
7345
|
+
primaryColorPressed: mc,
|
|
7346
|
+
primaryColorSuppl: mc,
|
|
7347
|
+
infoColor: gc,
|
|
7348
|
+
infoColorHover: _c,
|
|
7349
|
+
infoColorPressed: gc,
|
|
7350
|
+
infoColorSuppl: gc,
|
|
7351
|
+
successColor: vc,
|
|
7352
|
+
successColorHover: yc,
|
|
7353
|
+
successColorPressed: vc,
|
|
7354
|
+
successColorSuppl: vc,
|
|
7355
|
+
warningColor: bc,
|
|
7356
|
+
warningColorHover: xc,
|
|
7357
|
+
warningColorPressed: bc,
|
|
7358
|
+
warningColorSuppl: bc,
|
|
7359
|
+
errorColor: Sc,
|
|
7360
|
+
errorColorHover: Cc,
|
|
7361
|
+
errorColorPressed: Sc,
|
|
7362
|
+
errorColorSuppl: Sc,
|
|
7352
7363
|
cardColor: "#fff"
|
|
7353
7364
|
},
|
|
7354
7365
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -7362,7 +7373,7 @@ var bc = {
|
|
|
7362
7373
|
borderRadius: "8px",
|
|
7363
7374
|
color: "#c0c0c0"
|
|
7364
7375
|
}
|
|
7365
|
-
},
|
|
7376
|
+
}, Tc = H, Ec = f({
|
|
7366
7377
|
name: "UzWrap",
|
|
7367
7378
|
components: { NConfigProvider: oe },
|
|
7368
7379
|
setup() {
|
|
@@ -7370,14 +7381,14 @@ var bc = {
|
|
|
7370
7381
|
zhCN: We,
|
|
7371
7382
|
dateZhCN: He,
|
|
7372
7383
|
commonStore: K,
|
|
7373
|
-
lightTheme:
|
|
7374
|
-
darkTheme:
|
|
7384
|
+
lightTheme: wc,
|
|
7385
|
+
darkTheme: Tc
|
|
7375
7386
|
};
|
|
7376
7387
|
}
|
|
7377
7388
|
});
|
|
7378
7389
|
//#endregion
|
|
7379
7390
|
//#region components/wrap/index.vue
|
|
7380
|
-
function
|
|
7391
|
+
function Dc(e, t, n, i, a, o) {
|
|
7381
7392
|
let s = O("NConfigProvider");
|
|
7382
7393
|
return S(), r(s, {
|
|
7383
7394
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -7396,10 +7407,10 @@ function Cc(e, t, n, i, a, o) {
|
|
|
7396
7407
|
"date-locale"
|
|
7397
7408
|
]);
|
|
7398
7409
|
}
|
|
7399
|
-
var
|
|
7410
|
+
var Oc = /*#__PURE__*/ W(Ec, [["render", Dc]]);
|
|
7400
7411
|
//#endregion
|
|
7401
7412
|
//#region components/ocr/preprocess.ts
|
|
7402
|
-
function
|
|
7413
|
+
function kc(e) {
|
|
7403
7414
|
let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
|
|
7404
7415
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
7405
7416
|
let r = 0;
|
|
@@ -7414,7 +7425,7 @@ function Tc(e) {
|
|
|
7414
7425
|
}
|
|
7415
7426
|
return c;
|
|
7416
7427
|
}
|
|
7417
|
-
function
|
|
7428
|
+
function Ac(e, t) {
|
|
7418
7429
|
return new Promise((n, r) => {
|
|
7419
7430
|
let i = new Image();
|
|
7420
7431
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -7447,7 +7458,7 @@ function Ec(e, t) {
|
|
|
7447
7458
|
}
|
|
7448
7459
|
let u = t.threshold;
|
|
7449
7460
|
if (t.binarize) {
|
|
7450
|
-
t.autoThreshold && (u =
|
|
7461
|
+
t.autoThreshold && (u = kc(l));
|
|
7451
7462
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
7452
7463
|
let n = l[t] < u ? 0 : 255;
|
|
7453
7464
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -7470,7 +7481,7 @@ function Ec(e, t) {
|
|
|
7470
7481
|
}
|
|
7471
7482
|
//#endregion
|
|
7472
7483
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
7473
|
-
var
|
|
7484
|
+
var jc = f({
|
|
7474
7485
|
name: "UzOcr",
|
|
7475
7486
|
components: {
|
|
7476
7487
|
NButton: R,
|
|
@@ -7507,7 +7518,7 @@ var Dc = f({
|
|
|
7507
7518
|
tessedit_char_blacklist: "|"
|
|
7508
7519
|
}), a.value), v = async () => {
|
|
7509
7520
|
if (f.value) try {
|
|
7510
|
-
let e = await
|
|
7521
|
+
let e = await Ac(f.value, {
|
|
7511
7522
|
enabled: o.value,
|
|
7512
7523
|
scale: s.value,
|
|
7513
7524
|
grayscale: !0,
|
|
@@ -7544,7 +7555,7 @@ var Dc = f({
|
|
|
7544
7555
|
t.value = !0, r.value = e("OCR.analysis");
|
|
7545
7556
|
let a = n;
|
|
7546
7557
|
if (o.value || s.value > 1) try {
|
|
7547
|
-
let e = await
|
|
7558
|
+
let e = await Ac(n, {
|
|
7548
7559
|
enabled: o.value,
|
|
7549
7560
|
scale: s.value,
|
|
7550
7561
|
grayscale: !0,
|
|
@@ -7606,25 +7617,25 @@ var Dc = f({
|
|
|
7606
7617
|
t: e
|
|
7607
7618
|
};
|
|
7608
7619
|
}
|
|
7609
|
-
}),
|
|
7620
|
+
}), Mc = { class: "uz-ocr" }, Nc = { class: "uz-ocr-left-col" }, Pc = { class: "uz-ocr-upload-card" }, Fc = { class: "uz-ocr-upload-title" }, Ic = {
|
|
7610
7621
|
key: 1,
|
|
7611
7622
|
class: "uz-ocr-preview-panel"
|
|
7612
|
-
},
|
|
7623
|
+
}, Lc = { class: "uz-ocr-preview-box" }, Rc = ["src"], zc = {
|
|
7613
7624
|
key: 0,
|
|
7614
7625
|
class: "uz-ocr-threshold-badge"
|
|
7615
|
-
},
|
|
7626
|
+
}, Bc = { class: "uz-ocr-preview-box" }, Vc = ["src"], Hc = { class: "uz-ocr-settings-form" }, Uc = { class: "uz-settings-row" }, Wc = { class: "uz-settings-label" }, Gc = {
|
|
7616
7627
|
key: 0,
|
|
7617
7628
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
7618
|
-
},
|
|
7629
|
+
}, Kc = { class: "uz-settings-row" }, qc = { class: "uz-settings-label" }, Jc = { class: "uz-settings-row" }, Yc = { class: "uz-settings-label" }, Xc = { class: "uz-ocr-right-col" }, Zc = { class: "uz-ocr-result-header" }, Qc = { class: "uz-result-title" }, $c = {
|
|
7619
7630
|
key: 0,
|
|
7620
7631
|
class: "uz-ocr-empty-state"
|
|
7621
|
-
},
|
|
7632
|
+
}, el = { class: "uz-empty-text" }, tl = {
|
|
7622
7633
|
key: 1,
|
|
7623
7634
|
class: "uz-ocr-result-tabs"
|
|
7624
7635
|
};
|
|
7625
|
-
function
|
|
7636
|
+
function nl(e, t, n, s, c, d) {
|
|
7626
7637
|
let f = O("NUpload"), p = O("NTabPane"), m = O("NTabs"), h = O("NButton"), g = O("NSpace"), _ = O("NSwitch"), v = O("NSelect");
|
|
7627
|
-
return S(), a("div",
|
|
7638
|
+
return S(), a("div", Mc, [o("div", Nc, [e.rawImage ? (S(), a("div", Ic, [u(m, {
|
|
7628
7639
|
value: e.imagePreviewTab,
|
|
7629
7640
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
7630
7641
|
type: "segment",
|
|
@@ -7634,21 +7645,21 @@ function Qc(e, t, n, s, c, d) {
|
|
|
7634
7645
|
name: "processed",
|
|
7635
7646
|
tab: e.t("OCR.previewProcessed")
|
|
7636
7647
|
}, {
|
|
7637
|
-
default: P(() => [o("div",
|
|
7648
|
+
default: P(() => [o("div", Lc, [o("img", {
|
|
7638
7649
|
src: e.processedImage,
|
|
7639
7650
|
alt: "Processed Preview",
|
|
7640
7651
|
class: "uz-ocr-preview-img"
|
|
7641
|
-
}, null, 8,
|
|
7652
|
+
}, null, 8, Rc), e.preEnabled && e.preBinarize ? (S(), a("div", zc, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
|
|
7642
7653
|
_: 1
|
|
7643
7654
|
}, 8, ["tab"]), u(p, {
|
|
7644
7655
|
name: "raw",
|
|
7645
7656
|
tab: e.t("OCR.previewRaw")
|
|
7646
7657
|
}, {
|
|
7647
|
-
default: P(() => [o("div",
|
|
7658
|
+
default: P(() => [o("div", Bc, [o("img", {
|
|
7648
7659
|
src: e.rawImage,
|
|
7649
7660
|
alt: "Raw Preview",
|
|
7650
7661
|
class: "uz-ocr-preview-img"
|
|
7651
|
-
}, null, 8,
|
|
7662
|
+
}, null, 8, Vc)])]),
|
|
7652
7663
|
_: 1
|
|
7653
7664
|
}, 8, ["tab"])]),
|
|
7654
7665
|
_: 1
|
|
@@ -7682,7 +7693,7 @@ function Qc(e, t, n, s, c, d) {
|
|
|
7682
7693
|
"directory-dnd": "",
|
|
7683
7694
|
class: "uz-w-full"
|
|
7684
7695
|
}, {
|
|
7685
|
-
default: P(() => [o("div",
|
|
7696
|
+
default: P(() => [o("div", Pc, [
|
|
7686
7697
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
7687
7698
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7688
7699
|
viewBox: "0 0 24 24",
|
|
@@ -7690,79 +7701,79 @@ function Qc(e, t, n, s, c, d) {
|
|
|
7690
7701
|
height: "40",
|
|
7691
7702
|
fill: "currentColor"
|
|
7692
7703
|
}, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
|
|
7693
|
-
o("div",
|
|
7704
|
+
o("div", Fc, A(e.t("OCR.scan")), 1),
|
|
7694
7705
|
t[5] ||= o("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
7695
7706
|
])]),
|
|
7696
7707
|
_: 1
|
|
7697
|
-
}, 8, ["on-before-upload"])), o("div",
|
|
7708
|
+
}, 8, ["on-before-upload"])), o("div", Hc, [o("div", Uc, [o("span", Wc, A(e.t("OCR.preprocess")), 1), u(_, {
|
|
7698
7709
|
value: e.preEnabled,
|
|
7699
7710
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
7700
7711
|
size: "small"
|
|
7701
|
-
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div",
|
|
7712
|
+
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div", Gc, [o("div", Kc, [o("span", qc, A(e.t("OCR.scale")), 1), u(v, {
|
|
7702
7713
|
value: e.preScale,
|
|
7703
7714
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
7704
7715
|
options: e.scaleOptions,
|
|
7705
7716
|
size: "small",
|
|
7706
7717
|
class: "uz-settings-select"
|
|
7707
|
-
}, null, 8, ["value", "options"])]), o("div",
|
|
7718
|
+
}, null, 8, ["value", "options"])]), o("div", Jc, [o("span", Yc, A(e.t("OCR.contrast")), 1), u(_, {
|
|
7708
7719
|
value: e.preContrast,
|
|
7709
7720
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
7710
7721
|
size: "small"
|
|
7711
|
-
}, null, 8, ["value"])])])) : i("", !0)])]), o("div",
|
|
7722
|
+
}, null, 8, ["value"])])])) : i("", !0)])]), o("div", Xc, [o("div", Zc, [o("span", Qc, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (S(), a("div", tl, A(e.fullText), 1)) : (S(), a("div", $c, [t[7] ||= o("div", { class: "uz-empty-icon" }, "📝", -1), o("div", el, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
|
|
7712
7723
|
}
|
|
7713
|
-
var
|
|
7714
|
-
IconList: () =>
|
|
7715
|
-
ReIconList: () =>
|
|
7724
|
+
var rl = /*#__PURE__*/ W(jc, [["render", nl], ["__scopeId", "data-v-c7224ff5"]]), il = /* @__PURE__ */ dt({
|
|
7725
|
+
IconList: () => Vn,
|
|
7726
|
+
ReIconList: () => zn,
|
|
7716
7727
|
UzActionButton: () => ft,
|
|
7717
|
-
UzBack: () =>
|
|
7718
|
-
UzBom: () =>
|
|
7719
|
-
UzCamera: () =>
|
|
7720
|
-
UzCircle: () =>
|
|
7721
|
-
UzDraggableForm: () =>
|
|
7722
|
-
UzForm: () =>
|
|
7723
|
-
UzFormItem: () =>
|
|
7724
|
-
UzFormItemImage: () =>
|
|
7725
|
-
UzFormItemTimesPicker: () =>
|
|
7726
|
-
UzFormItemUpload: () =>
|
|
7727
|
-
UzIcon: () =>
|
|
7728
|
-
UzOcr: () =>
|
|
7729
|
-
UzSearchBar: () =>
|
|
7730
|
-
UzSearchMobileBar: () =>
|
|
7731
|
-
UzSpin: () =>
|
|
7732
|
-
UzTable: () =>
|
|
7733
|
-
UzTableChild: () =>
|
|
7734
|
-
UzTableDrawer: () =>
|
|
7735
|
-
UzTableFile: () =>
|
|
7736
|
-
UzTableMobile: () =>
|
|
7737
|
-
UzTableQuestChild: () =>
|
|
7738
|
-
UzThumbnail: () =>
|
|
7739
|
-
UzWrap: () =>
|
|
7728
|
+
UzBack: () => qi,
|
|
7729
|
+
UzBom: () => Aa,
|
|
7730
|
+
UzCamera: () => xo,
|
|
7731
|
+
UzCircle: () => mo,
|
|
7732
|
+
UzDraggableForm: () => oa,
|
|
7733
|
+
UzForm: () => ta,
|
|
7734
|
+
UzFormItem: () => Zi,
|
|
7735
|
+
UzFormItemImage: () => ga,
|
|
7736
|
+
UzFormItemTimesPicker: () => ba,
|
|
7737
|
+
UzFormItemUpload: () => fa,
|
|
7738
|
+
UzIcon: () => Bn,
|
|
7739
|
+
UzOcr: () => rl,
|
|
7740
|
+
UzSearchBar: () => jo,
|
|
7741
|
+
UzSearchMobileBar: () => Lo,
|
|
7742
|
+
UzSpin: () => is,
|
|
7743
|
+
UzTable: () => bs,
|
|
7744
|
+
UzTableChild: () => ks,
|
|
7745
|
+
UzTableDrawer: () => Hs,
|
|
7746
|
+
UzTableFile: () => ic,
|
|
7747
|
+
UzTableMobile: () => Qs,
|
|
7748
|
+
UzTableQuestChild: () => Fs,
|
|
7749
|
+
UzThumbnail: () => pc,
|
|
7750
|
+
UzWrap: () => Oc,
|
|
7740
7751
|
commonStore: () => K,
|
|
7741
|
-
fnActionReduction: () =>
|
|
7742
|
-
fnActionSimplify: () =>
|
|
7743
|
-
fnAddThumbnail: () =>
|
|
7744
|
-
fnClearAllThumbnail: () =>
|
|
7745
|
-
fnDeleteThumbnail: () =>
|
|
7746
|
-
fnGetTableData: () =>
|
|
7747
|
-
fnOptionReduction: () =>
|
|
7748
|
-
fnOptionSimplify: () =>
|
|
7749
|
-
fnPrepareFormData: () =>
|
|
7750
|
-
fnPrepareTableData: () =>
|
|
7751
|
-
fnRenderAction: () =>
|
|
7752
|
-
fnSetLang: () =>
|
|
7753
|
-
fnSetTheme: () =>
|
|
7754
|
-
fnSetThumbnail: () =>
|
|
7755
|
-
fnTableReduction: () =>
|
|
7756
|
-
fnTableSimplify: () =>
|
|
7757
|
-
fnTriggersReduction: () =>
|
|
7758
|
-
fnTriggersSimplify: () =>
|
|
7759
|
-
i18n: () =>
|
|
7760
|
-
}),
|
|
7761
|
-
function
|
|
7762
|
-
|
|
7752
|
+
fnActionReduction: () => Wi,
|
|
7753
|
+
fnActionSimplify: () => Ui,
|
|
7754
|
+
fnAddThumbnail: () => cc,
|
|
7755
|
+
fnClearAllThumbnail: () => uc,
|
|
7756
|
+
fnDeleteThumbnail: () => lc,
|
|
7757
|
+
fnGetTableData: () => qo,
|
|
7758
|
+
fnOptionReduction: () => $o,
|
|
7759
|
+
fnOptionSimplify: () => Qo,
|
|
7760
|
+
fnPrepareFormData: () => es,
|
|
7761
|
+
fnPrepareTableData: () => ts,
|
|
7762
|
+
fnRenderAction: () => Ii,
|
|
7763
|
+
fnSetLang: () => Gn,
|
|
7764
|
+
fnSetTheme: () => Kn,
|
|
7765
|
+
fnSetThumbnail: () => oc,
|
|
7766
|
+
fnTableReduction: () => Yo,
|
|
7767
|
+
fnTableSimplify: () => Jo,
|
|
7768
|
+
fnTriggersReduction: () => Zo,
|
|
7769
|
+
fnTriggersSimplify: () => Xo,
|
|
7770
|
+
i18n: () => Un
|
|
7771
|
+
}), al = 3840, ol = 2160, sl = w({ scale: 1 });
|
|
7772
|
+
function cl(e, t) {
|
|
7773
|
+
al = e, ol = t;
|
|
7763
7774
|
}
|
|
7764
|
-
function
|
|
7765
|
-
let e = 1, t = window.innerWidth, n = window.innerHeight, r =
|
|
7775
|
+
function ll() {
|
|
7776
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = al, i = ol, a = parseFloat((r / i).toFixed(5));
|
|
7766
7777
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
7767
7778
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
7768
7779
|
e = t > 1 ? 1 : t;
|
|
@@ -7770,17 +7781,17 @@ function al() {
|
|
|
7770
7781
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
7771
7782
|
e = n > 1 ? 1 : n;
|
|
7772
7783
|
}
|
|
7773
|
-
|
|
7784
|
+
sl.scale = e;
|
|
7774
7785
|
}
|
|
7775
|
-
function
|
|
7776
|
-
let e = $e(
|
|
7786
|
+
function ul() {
|
|
7787
|
+
let e = $e(ll, 200);
|
|
7777
7788
|
return e(), window.addEventListener("resize", e), () => {
|
|
7778
|
-
|
|
7789
|
+
al = 3840, ol = 2160, window.removeEventListener("resize", e);
|
|
7779
7790
|
};
|
|
7780
7791
|
}
|
|
7781
7792
|
//#endregion
|
|
7782
7793
|
//#region components/hooks/useThrottleFn.ts
|
|
7783
|
-
function
|
|
7794
|
+
function dl(e, t = 1e3) {
|
|
7784
7795
|
let r = T(e), i = n(() => et((...e) => r.value([...e]), t));
|
|
7785
7796
|
return x(() => {
|
|
7786
7797
|
i.value.cancel();
|
|
@@ -7792,16 +7803,16 @@ function sl(e, t = 1e3) {
|
|
|
7792
7803
|
}
|
|
7793
7804
|
//#endregion
|
|
7794
7805
|
//#region components/hooks/useLocalStorage.ts
|
|
7795
|
-
function
|
|
7806
|
+
function fl(e, t) {
|
|
7796
7807
|
return [T(Y(e, t?.defaultValue)), (n) => {
|
|
7797
|
-
n === void 0 ?
|
|
7808
|
+
n === void 0 ? ur(e) : J(e, n, t?.expired || "1 Day");
|
|
7798
7809
|
}];
|
|
7799
7810
|
}
|
|
7800
7811
|
//#endregion
|
|
7801
7812
|
//#region components/hooks/useQuery.ts
|
|
7802
|
-
function
|
|
7813
|
+
function pl(e, t, n) {
|
|
7803
7814
|
let r = `useQuery-${e}`, i = T(), a = T(), o = T(), s = T(!1), c = T("idle"), l = T(), u = T(0), d = T(0), f = () => {
|
|
7804
|
-
|
|
7815
|
+
gi(), clearInterval(o.value), o.value = null;
|
|
7805
7816
|
}, p = async () => {
|
|
7806
7817
|
if (!s.value) {
|
|
7807
7818
|
h(!0, "loading");
|
|
@@ -7837,7 +7848,7 @@ function ll(e, t, n) {
|
|
|
7837
7848
|
}, g = (e) => {
|
|
7838
7849
|
l.value = e;
|
|
7839
7850
|
}, _ = () => {
|
|
7840
|
-
|
|
7851
|
+
gi(), i.value && i.value();
|
|
7841
7852
|
}, v = () => {
|
|
7842
7853
|
_(), p(), n?.pollingInterval && (f(), o.value = setInterval(() => {
|
|
7843
7854
|
p();
|
|
@@ -7865,26 +7876,26 @@ function ll(e, t, n) {
|
|
|
7865
7876
|
}
|
|
7866
7877
|
//#endregion
|
|
7867
7878
|
//#region package.json
|
|
7868
|
-
var
|
|
7869
|
-
async function
|
|
7879
|
+
var ml = "0.1.114", hl;
|
|
7880
|
+
async function gl() {
|
|
7870
7881
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7871
7882
|
method: "HEAD",
|
|
7872
7883
|
cache: "no-cache"
|
|
7873
7884
|
});
|
|
7874
7885
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
7875
7886
|
}
|
|
7876
|
-
async function
|
|
7877
|
-
let e = await
|
|
7878
|
-
|
|
7887
|
+
async function _l() {
|
|
7888
|
+
let e = await gl();
|
|
7889
|
+
hl !== e && qn(!0);
|
|
7879
7890
|
}
|
|
7880
|
-
async function
|
|
7881
|
-
|
|
7882
|
-
|
|
7891
|
+
async function vl() {
|
|
7892
|
+
hl = await gl(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
7893
|
+
_l();
|
|
7883
7894
|
}, 6e4);
|
|
7884
7895
|
}
|
|
7885
7896
|
//#endregion
|
|
7886
7897
|
//#region components/create.ts
|
|
7887
|
-
function
|
|
7898
|
+
function yl({ components: e = [] } = {}) {
|
|
7888
7899
|
let t = [];
|
|
7889
7900
|
function n(e, t, n) {
|
|
7890
7901
|
e.component(t) || e.component(t, n);
|
|
@@ -7897,16 +7908,16 @@ function hl({ components: e = [] } = {}) {
|
|
|
7897
7908
|
});
|
|
7898
7909
|
}), i)) {
|
|
7899
7910
|
let { title: e = "杭州宇臻智能", monitor: t = !1, monitorInfo: n, version: a = !0, language: o = !1, local: s = "zh-CN" } = i, c = Y("theme", !1), l = Y("lang", s);
|
|
7900
|
-
|
|
7911
|
+
Jn(e), Wn(o), Gn(l), Kn(c), Un.global.locale.value = l, a && vl(), t && oi(r, t, n);
|
|
7901
7912
|
}
|
|
7902
7913
|
}
|
|
7903
7914
|
return {
|
|
7904
|
-
version:
|
|
7915
|
+
version: ml,
|
|
7905
7916
|
install: r
|
|
7906
7917
|
};
|
|
7907
7918
|
}
|
|
7908
7919
|
//#endregion
|
|
7909
7920
|
//#region components/preset.ts
|
|
7910
|
-
var
|
|
7921
|
+
var bl = yl({ components: Object.keys(il).map((e) => il[e]) }), xl = bl.install;
|
|
7911
7922
|
//#endregion
|
|
7912
|
-
export {
|
|
7923
|
+
export { vi as BLOB, yi as CUSTOM, bi as FILE, _i as GET, Vn as IconList, Z as POST, zn as ReIconList, ft as UzActionButton, qi as UzBack, Aa as UzBom, xo as UzCamera, mo as UzCircle, oa as UzDraggableForm, ta as UzForm, Zi as UzFormItem, ga as UzFormItemImage, ba as UzFormItemTimesPicker, fa as UzFormItemUpload, Bn as UzIcon, rl as UzOcr, jo as UzSearchBar, Lo as UzSearchMobileBar, is as UzSpin, bs as UzTable, ks as UzTableChild, Hs as UzTableDrawer, ic as UzTableFile, Qs as UzTableMobile, Fs as UzTableQuestChild, pc as UzThumbnail, Oc as UzWrap, K as commonStore, yl as create, Tc as darkTheme, bl as default, Wi as fnActionReduction, Ui as fnActionSimplify, cc as fnAddThumbnail, gi as fnCancelFetch, uc as fnClearAllThumbnail, ll as fnComputedScale, Hn as fnCreateRouter, ur as fnDelStorage, fr as fnDelStorageAll, dr as fnDelStorageByPrefix, lc as fnDeleteThumbnail, lr as fnDialog, q as fnErrorLog, Sr as fnFilterByPinyinInitials, hr as fnFormatTime, yr as fnFormatUnits, vr as fnFullScreen, Y as fnGetStorage, qo as fnGetTableData, ul as fnListenerScale, cr as fnNotification, $o as fnOptionReduction, Qo as fnOptionSimplify, mr as fnPageModel2Naive, es as fnPrepareFormData, ts as fnPrepareTableData, Ii as fnRenderAction, pr as fnScrollTop, Gn as fnSetLang, cl as fnSetNormalWidthAndHeight, J as fnSetStorage, Kn as fnSetTheme, oc as fnSetThumbnail, Yo as fnTableReduction, Jo as fnTableSimplify, _r as fnThrottle, gr as fnTitle, Zo as fnTriggersReduction, Xo as fnTriggersSimplify, Un as i18n, xl as install, wc as lightTheme, Cr as mergeColumns, G as router, sl as scaleStore, xa as useDebounceFn, fl as useLocalStorage, pl as useQuery, dl as useThrottleFn };
|