@unizhen/ui 0.1.112 → 0.1.113
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/components/icon/reicon/Copy.vue.d.ts +4 -0
- package/lib/ui.js +708 -701
- package/package.json +1 -1
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: {
|
|
@@ -406,7 +413,7 @@ var Fn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
406
413
|
let t = T(!0), n = T(), r = (r) => {
|
|
407
414
|
if (t.value = !1, r && typeof r == "string") {
|
|
408
415
|
try {
|
|
409
|
-
Object.keys(e.extendIcons).length > 0 ? n.value = e.extendIcons[r] : n.value =
|
|
416
|
+
Object.keys(e.extendIcons).length > 0 ? n.value = e.extendIcons[r] : n.value = Vn[r];
|
|
410
417
|
} catch {}
|
|
411
418
|
g(() => {
|
|
412
419
|
t.value = !0;
|
|
@@ -419,18 +426,18 @@ var Fn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
419
426
|
r(e);
|
|
420
427
|
}), () => t.value ? n.value && n.value.render(null, []) : null;
|
|
421
428
|
}
|
|
422
|
-
}),
|
|
423
|
-
function
|
|
424
|
-
return
|
|
429
|
+
}), Vn = zn, G;
|
|
430
|
+
function Hn(e, t = "/") {
|
|
431
|
+
return G = Ke({
|
|
425
432
|
history: qe(t),
|
|
426
433
|
routes: e,
|
|
427
434
|
scrollBehavior: () => ({
|
|
428
435
|
left: 0,
|
|
429
436
|
top: 0
|
|
430
437
|
})
|
|
431
|
-
}),
|
|
438
|
+
}), G;
|
|
432
439
|
}
|
|
433
|
-
var
|
|
440
|
+
var Un = Xe({
|
|
434
441
|
legacy: !1,
|
|
435
442
|
locale: "zh-CN",
|
|
436
443
|
messages: {
|
|
@@ -530,16 +537,16 @@ var G = Xe({
|
|
|
530
537
|
language: !1,
|
|
531
538
|
lang: "zh-CN"
|
|
532
539
|
});
|
|
533
|
-
function
|
|
540
|
+
function Wn(e) {
|
|
534
541
|
K.language = e;
|
|
535
542
|
}
|
|
536
|
-
function
|
|
543
|
+
function Gn(e) {
|
|
537
544
|
let t;
|
|
538
545
|
t = e || (K.lang === "zh-CN" ? "en-US" : "zh-CN"), J("lang", t, 0), K.lang = t;
|
|
539
546
|
let n = document.body;
|
|
540
|
-
n.dataset.lang = t,
|
|
547
|
+
n.dataset.lang = t, Un.global.locale.value = t;
|
|
541
548
|
}
|
|
542
|
-
function
|
|
549
|
+
function Kn(e) {
|
|
543
550
|
let t = document.body;
|
|
544
551
|
t.classList.add("remove-all-transition");
|
|
545
552
|
let n = document.querySelector("meta[name=theme-color]");
|
|
@@ -547,45 +554,45 @@ function Hn(e) {
|
|
|
547
554
|
t.classList.remove("remove-all-transition");
|
|
548
555
|
}, 0);
|
|
549
556
|
}
|
|
550
|
-
function
|
|
557
|
+
function qn(e) {
|
|
551
558
|
K.needUpdate = e;
|
|
552
559
|
}
|
|
553
|
-
function
|
|
560
|
+
function Jn(e) {
|
|
554
561
|
K.title = e;
|
|
555
562
|
}
|
|
556
|
-
var
|
|
563
|
+
var Yn = () => {
|
|
557
564
|
K.isMobile = window.screen.availWidth < 769;
|
|
558
565
|
};
|
|
559
|
-
window.addEventListener("resize",
|
|
566
|
+
window.addEventListener("resize", Yn), Yn();
|
|
560
567
|
//#endregion
|
|
561
568
|
//#region components/localStorage.ts
|
|
562
|
-
var
|
|
563
|
-
function
|
|
564
|
-
|
|
569
|
+
var Xn = window.localStorage;
|
|
570
|
+
function Zn(e, t) {
|
|
571
|
+
Xn.setItem(e, JSON.stringify(t));
|
|
565
572
|
}
|
|
566
|
-
function
|
|
567
|
-
let t =
|
|
573
|
+
function Qn(e) {
|
|
574
|
+
let t = Xn.getItem(e);
|
|
568
575
|
if (t) return JSON.parse(t);
|
|
569
576
|
}
|
|
570
|
-
function
|
|
571
|
-
|
|
577
|
+
function $n(e) {
|
|
578
|
+
Xn.removeItem(e);
|
|
572
579
|
}
|
|
573
|
-
function
|
|
580
|
+
function er() {
|
|
574
581
|
return Date.parse(String(/* @__PURE__ */ new Date()));
|
|
575
582
|
}
|
|
576
|
-
var
|
|
583
|
+
var tr = "local-", nr = new class {
|
|
577
584
|
namespace;
|
|
578
585
|
mapKey;
|
|
579
586
|
map;
|
|
580
587
|
constructor(e = "") {
|
|
581
|
-
this.namespace = e, this.mapKey =
|
|
588
|
+
this.namespace = e, this.mapKey = tr + this.namespace, this.map = Qn(this.mapKey) || {};
|
|
582
589
|
}
|
|
583
590
|
set(e, t, n = 0) {
|
|
584
591
|
let r = this.getReallyKey(e), i = {
|
|
585
592
|
expires: n,
|
|
586
|
-
time:
|
|
593
|
+
time: er()
|
|
587
594
|
};
|
|
588
|
-
|
|
595
|
+
Zn(r, t), this.map[e] = i, Zn(this.mapKey, this.map);
|
|
589
596
|
}
|
|
590
597
|
getReallyKey(e) {
|
|
591
598
|
return this.namespace + "-" + e;
|
|
@@ -593,9 +600,9 @@ var Zn = "local-", Qn = new class {
|
|
|
593
600
|
get(e, t) {
|
|
594
601
|
let n = this.getReallyKey(e), r = this.map[e];
|
|
595
602
|
if (r) {
|
|
596
|
-
let i =
|
|
603
|
+
let i = Qn(n);
|
|
597
604
|
if (r.expires > 0) {
|
|
598
|
-
if (
|
|
605
|
+
if (er() - r.time <= r.expires) return i === !1 || i ? i : t;
|
|
599
606
|
this.delete(e);
|
|
600
607
|
} else return i === !1 || i ? i : t;
|
|
601
608
|
}
|
|
@@ -603,7 +610,7 @@ var Zn = "local-", Qn = new class {
|
|
|
603
610
|
}
|
|
604
611
|
delete(e) {
|
|
605
612
|
let t = this.getReallyKey(e);
|
|
606
|
-
delete this.map[e],
|
|
613
|
+
delete this.map[e], Zn(this.mapKey, this.map), $n(t);
|
|
607
614
|
}
|
|
608
615
|
deleteByPrefix(e) {
|
|
609
616
|
for (let t in this.map) t.indexOf(e) > -1 && this.delete(t);
|
|
@@ -611,12 +618,12 @@ var Zn = "local-", Qn = new class {
|
|
|
611
618
|
deleteAll() {
|
|
612
619
|
for (let e in this.map) this.delete(e);
|
|
613
620
|
}
|
|
614
|
-
}("uz"),
|
|
621
|
+
}("uz"), rr = new Intl.Collator("zh-Hans-u-co-pinyin"), ir = [..."阿八嚓哒妸发旮哈讥咔垃妈拏噢妑七呥仨他屲夕丫帀"], ar = [..."ABCDEFGHJKLMNOPQRSTWXYZ"], { notification: or, dialog: sr } = Ve(["notification", "dialog"], {
|
|
615
622
|
configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
|
|
616
623
|
notificationProviderProps: { placement: "bottom-right" }
|
|
617
|
-
}),
|
|
624
|
+
}), cr = or, lr = sr;
|
|
618
625
|
function q(e) {
|
|
619
|
-
console.log(e),
|
|
626
|
+
console.log(e), or.error({
|
|
620
627
|
content: e.message,
|
|
621
628
|
duration: 3e3
|
|
622
629
|
});
|
|
@@ -638,18 +645,18 @@ function J(e, t, n = "1 Day") {
|
|
|
638
645
|
}
|
|
639
646
|
n = Number(t[0]) * e;
|
|
640
647
|
}
|
|
641
|
-
|
|
648
|
+
nr.set(e, t, n);
|
|
642
649
|
}
|
|
643
650
|
function Y(e, t) {
|
|
644
|
-
return
|
|
651
|
+
return nr.get(e, t);
|
|
645
652
|
}
|
|
646
|
-
var
|
|
647
|
-
|
|
648
|
-
},
|
|
649
|
-
|
|
650
|
-
},
|
|
651
|
-
|
|
652
|
-
},
|
|
653
|
+
var ur = (e) => {
|
|
654
|
+
nr.delete(e);
|
|
655
|
+
}, dr = (e) => {
|
|
656
|
+
nr.deleteByPrefix(e);
|
|
657
|
+
}, fr = () => {
|
|
658
|
+
nr.deleteAll();
|
|
659
|
+
}, pr = (e = 0) => {
|
|
653
660
|
let t = document.documentElement, n = document.querySelectorAll(".uz-table-m-content");
|
|
654
661
|
t && (t.scrollTop = e, setTimeout(() => {
|
|
655
662
|
t.scrollTop = e;
|
|
@@ -657,7 +664,7 @@ var or = (e) => {
|
|
|
657
664
|
t.scrollTop = e;
|
|
658
665
|
});
|
|
659
666
|
};
|
|
660
|
-
function
|
|
667
|
+
function mr(e) {
|
|
661
668
|
if (!e.records) {
|
|
662
669
|
let t = e;
|
|
663
670
|
return {
|
|
@@ -701,7 +708,7 @@ function ur(e) {
|
|
|
701
708
|
records: e.records
|
|
702
709
|
};
|
|
703
710
|
}
|
|
704
|
-
var
|
|
711
|
+
var hr = (e, t = "yyyy-MM-dd") => {
|
|
705
712
|
if (!e) return "";
|
|
706
713
|
typeof e == "string" && (e = e.replace(/年/g, "-").replace(/月/g, "-").replace(/日/g, ""));
|
|
707
714
|
let n = new Date(e);
|
|
@@ -719,9 +726,9 @@ var dr = (e, t = "yyyy-MM-dd") => {
|
|
|
719
726
|
RegExp.$1.length !== 1 && (n = ("00" + r[e]).substr(("" + r[e]).length)), t = t.replace(RegExp.$1, n);
|
|
720
727
|
}
|
|
721
728
|
return t;
|
|
722
|
-
},
|
|
729
|
+
}, gr = (e) => {
|
|
723
730
|
document.title = `${e} - ${K.title}`;
|
|
724
|
-
},
|
|
731
|
+
}, _r = (e, t = 500) => {
|
|
725
732
|
let n = e, r, i = !1, a = function(...e) {
|
|
726
733
|
if (i) {
|
|
727
734
|
n.apply(a, e), i = !1;
|
|
@@ -733,10 +740,10 @@ var dr = (e, t = "yyyy-MM-dd") => {
|
|
|
733
740
|
};
|
|
734
741
|
return a;
|
|
735
742
|
};
|
|
736
|
-
function
|
|
743
|
+
function vr(e, t) {
|
|
737
744
|
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
745
|
}
|
|
739
|
-
function
|
|
746
|
+
function yr(e, t = 0) {
|
|
740
747
|
let n = [
|
|
741
748
|
"",
|
|
742
749
|
"k",
|
|
@@ -746,20 +753,20 @@ function hr(e, t = 0) {
|
|
|
746
753
|
], r = Math.floor(Math.log10(Math.abs(e)) / 3), i = Math.max(0, Math.min(r, n.length - 1)), a = n[i];
|
|
747
754
|
return a ? (e / 10 ** (i * 3)).toFixed(t) + a : (e / 10 ** (i * 3)).toFixed(0);
|
|
748
755
|
}
|
|
749
|
-
function
|
|
756
|
+
function br(e) {
|
|
750
757
|
if (/^[a-z0-9]$/i.test(e)) return e.toLowerCase();
|
|
751
758
|
if (!/^[\u4e00-\u9fff]$/.test(e)) return "";
|
|
752
|
-
for (let t =
|
|
759
|
+
for (let t = ir.length - 1; t >= 0; --t) if (rr.compare(e, ir[t]) >= 0) return ar[t].toLowerCase();
|
|
753
760
|
return "";
|
|
754
761
|
}
|
|
755
|
-
function
|
|
756
|
-
return [...String(e)].map(
|
|
762
|
+
function xr(e) {
|
|
763
|
+
return [...String(e)].map(br).join("");
|
|
757
764
|
}
|
|
758
|
-
function
|
|
765
|
+
function Sr(e, t) {
|
|
759
766
|
let n = String(t).trim().toLowerCase();
|
|
760
|
-
return n === "" || e.toLowerCase().includes(n) ||
|
|
767
|
+
return n === "" || e.toLowerCase().includes(n) || xr(e).includes(n);
|
|
761
768
|
}
|
|
762
|
-
function
|
|
769
|
+
function Cr(e, t) {
|
|
763
770
|
e.forEach((e) => {
|
|
764
771
|
let n = t.find((t) => t.key === e.key);
|
|
765
772
|
n && (e.hide = n.hide, e.show = n.show, e.width = n.width);
|
|
@@ -772,8 +779,8 @@ function yr(e, t) {
|
|
|
772
779
|
}
|
|
773
780
|
//#endregion
|
|
774
781
|
//#region components/monitor.ts
|
|
775
|
-
var
|
|
776
|
-
let e =
|
|
782
|
+
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 = () => {
|
|
783
|
+
let e = Lr(), t = /ANDROID ([\d.]+)/.exec(e);
|
|
777
784
|
if (t) return `Android ${t[1]}`;
|
|
778
785
|
let n = /(?:IPHONE|IPAD).*OS ([\d_]+)/.exec(e);
|
|
779
786
|
if (n) return `${e.includes("IPAD") ? "iPad" : "iPhone"} ${n[1].replace(/_/g, ".")}`;
|
|
@@ -788,8 +795,8 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
788
795
|
}[r[1]] ?? `Windows NT ${r[1]}`;
|
|
789
796
|
let i = /MAC OS X ([\d_]+)/.exec(e);
|
|
790
797
|
return i ? `macOS ${i[1].replace(/_/g, ".")}` : "Other Platform";
|
|
791
|
-
},
|
|
792
|
-
let e =
|
|
798
|
+
}, zr = () => {
|
|
799
|
+
let e = Lr();
|
|
793
800
|
for (let [t, n] of [
|
|
794
801
|
[/EDG(?:A|IOS)?\/([\d.]+)/, "Edge"],
|
|
795
802
|
[/OPR\/([\d.]+)/, "Opera"],
|
|
@@ -804,7 +811,7 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
804
811
|
if (r) return `${n} ${r[1]}`;
|
|
805
812
|
}
|
|
806
813
|
return "Others";
|
|
807
|
-
},
|
|
814
|
+
}, 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
815
|
let t = /* @__PURE__ */ new WeakSet();
|
|
809
816
|
try {
|
|
810
817
|
return JSON.stringify(e, (e, n) => {
|
|
@@ -818,7 +825,7 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
818
825
|
} catch {
|
|
819
826
|
return String(e);
|
|
820
827
|
}
|
|
821
|
-
},
|
|
828
|
+
}, 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
829
|
let t = String(e || "");
|
|
823
830
|
if (!t) return "";
|
|
824
831
|
try {
|
|
@@ -827,7 +834,7 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
827
834
|
} catch {
|
|
828
835
|
return t.split(/[?#]/, 1)[0];
|
|
829
836
|
}
|
|
830
|
-
},
|
|
837
|
+
}, Gr = (e, t) => {
|
|
831
838
|
let n = [];
|
|
832
839
|
try {
|
|
833
840
|
let t = new URL(e, location.href).searchParams.toString();
|
|
@@ -844,8 +851,8 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
844
851
|
}), n.push(e.join("&"));
|
|
845
852
|
} 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
853
|
}
|
|
847
|
-
return
|
|
848
|
-
},
|
|
854
|
+
return Br(Vr(n.filter(Boolean).join(" | ")), Tr);
|
|
855
|
+
}, Kr = (e) => {
|
|
849
856
|
let t;
|
|
850
857
|
if (typeof TextEncoder < "u") {
|
|
851
858
|
let n = new TextEncoder().encode(e);
|
|
@@ -860,8 +867,8 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
860
867
|
t = n.map((e) => String.fromCharCode(e)).join("");
|
|
861
868
|
}
|
|
862
869
|
return window.btoa(t);
|
|
863
|
-
},
|
|
864
|
-
let n =
|
|
870
|
+
}, qr = (e, t) => {
|
|
871
|
+
let n = Kr(t), r = () => {
|
|
865
872
|
let t = new XMLHttpRequest();
|
|
866
873
|
t.open("POST", e, !0), t.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"), t.send(n);
|
|
867
874
|
}, i = () => {
|
|
@@ -871,7 +878,7 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
871
878
|
try {
|
|
872
879
|
r();
|
|
873
880
|
} catch {}
|
|
874
|
-
}, a =
|
|
881
|
+
}, a = Mr ?? window.fetch;
|
|
875
882
|
if (typeof a == "function") {
|
|
876
883
|
a.call(window, e, {
|
|
877
884
|
method: "POST",
|
|
@@ -885,87 +892,87 @@ var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__
|
|
|
885
892
|
return;
|
|
886
893
|
}
|
|
887
894
|
i();
|
|
888
|
-
},
|
|
889
|
-
if (!
|
|
890
|
-
|
|
895
|
+
}, Jr = (e, t) => (n, r, i) => {
|
|
896
|
+
if (!Ir) {
|
|
897
|
+
Ir = !0;
|
|
891
898
|
try {
|
|
892
|
-
let a =
|
|
893
|
-
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 &&
|
|
899
|
+
let a = Ur(i);
|
|
900
|
+
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 && qr(e, Hr({
|
|
894
901
|
type: n,
|
|
895
902
|
time: Date.now(),
|
|
896
|
-
url:
|
|
897
|
-
browser:
|
|
898
|
-
platform:
|
|
903
|
+
url: Wr(r) || Wr(location.href),
|
|
904
|
+
browser: zr(),
|
|
905
|
+
platform: Rr(),
|
|
899
906
|
message: `[${n}] [${window.document.title}] [${a}]`,
|
|
900
907
|
info: t ? t() : ""
|
|
901
908
|
}));
|
|
902
909
|
} catch {} finally {
|
|
903
|
-
|
|
910
|
+
Ir = !1;
|
|
904
911
|
}
|
|
905
912
|
}
|
|
906
|
-
},
|
|
907
|
-
for (let r of
|
|
908
|
-
},
|
|
909
|
-
let t =
|
|
910
|
-
return
|
|
911
|
-
},
|
|
912
|
-
|
|
913
|
-
let t =
|
|
914
|
-
t && !
|
|
913
|
+
}, Yr = (e, t, n) => {
|
|
914
|
+
for (let r of Er) r.report(e, t, n);
|
|
915
|
+
}, Xr = (e) => {
|
|
916
|
+
let t = Wr(e);
|
|
917
|
+
return Er.some((e) => e.endpoint === t);
|
|
918
|
+
}, Zr = (e) => {
|
|
919
|
+
kr.has(e) || (kr.add(e), e.addEventListener("error", () => {
|
|
920
|
+
let t = Or.get(e);
|
|
921
|
+
t && !Xr(t.url) && Yr(3, t.url, `${t.method} network error`);
|
|
915
922
|
}), e.addEventListener("timeout", () => {
|
|
916
|
-
let t =
|
|
917
|
-
t && !
|
|
923
|
+
let t = Or.get(e);
|
|
924
|
+
t && !Xr(t.url) && Yr(3, t.url, `${t.method} timeout`);
|
|
918
925
|
}), e.addEventListener("loadend", () => {
|
|
919
|
-
let t =
|
|
920
|
-
if (!t || e.status < 400 ||
|
|
926
|
+
let t = Or.get(e);
|
|
927
|
+
if (!t || e.status < 400 || Xr(t.url)) return;
|
|
921
928
|
let n = Date.now() - t.startTime;
|
|
922
|
-
|
|
929
|
+
Yr(3, t.url, `${t.method} ${e.status} (${n}ms)`);
|
|
923
930
|
}));
|
|
924
|
-
},
|
|
925
|
-
|
|
926
|
-
|
|
931
|
+
}, Qr = () => {
|
|
932
|
+
Ar || jr || Nr || Pr || typeof XMLHttpRequest > "u" || (Ar = XMLHttpRequest.prototype.open, jr = XMLHttpRequest.prototype.send, Nr = function(e, t, ...n) {
|
|
933
|
+
Or.set(this, {
|
|
927
934
|
method: String(e).toUpperCase(),
|
|
928
935
|
url: String(t),
|
|
929
936
|
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 (
|
|
937
|
+
}), Zr(this), Ar?.call(this, e, t, n[0] ?? !0, n[1] ?? null, n[2] ?? null);
|
|
938
|
+
}, XMLHttpRequest.prototype.open = Nr, Pr = function(e) {
|
|
939
|
+
let t = Or.get(this);
|
|
940
|
+
t && (t.startTime = Date.now()), jr?.call(this, e ?? null);
|
|
941
|
+
}, XMLHttpRequest.prototype.send = Pr);
|
|
942
|
+
}, $r = () => {
|
|
943
|
+
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);
|
|
944
|
+
}, ei = () => {
|
|
945
|
+
if (Mr || typeof window.fetch != "function") return;
|
|
939
946
|
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 =
|
|
947
|
+
Mr = e, Fr = async function(t, n) {
|
|
948
|
+
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
949
|
try {
|
|
943
950
|
let r = await e.call(this, t, n);
|
|
944
|
-
return !r.ok && !
|
|
951
|
+
return !r.ok && !Xr(i) && Yr(3, i, `${a} ${r.status} (${Date.now() - c}ms)${s}`), r;
|
|
945
952
|
} catch (e) {
|
|
946
|
-
throw
|
|
953
|
+
throw Xr(i) || Yr(3, i, `${a} network error: ${Ur(e)}${s}`), e;
|
|
947
954
|
}
|
|
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));
|
|
955
|
+
}, window.fetch = Fr;
|
|
957
956
|
}, ti = () => {
|
|
958
|
-
|
|
957
|
+
Mr && window.fetch === Fr && (window.fetch = Mr, Mr = void 0, Fr = void 0);
|
|
958
|
+
}, ni = (e) => {
|
|
959
|
+
Yr(1, e.filename || location.href, e.error || e.message);
|
|
960
|
+
}, ri = (e) => {
|
|
961
|
+
Yr(1, location.href, `Promise: ${Ur(e.reason)}`);
|
|
962
|
+
}, ii = () => {
|
|
963
|
+
Er.length === 1 && (Qr(), ei(), window.addEventListener("error", ni), window.addEventListener("unhandledrejection", ri));
|
|
964
|
+
}, ai = () => {
|
|
965
|
+
Er.length > 0 || ($r(), ti(), window.removeEventListener("error", ni), window.removeEventListener("unhandledrejection", ri));
|
|
959
966
|
};
|
|
960
|
-
function
|
|
967
|
+
function oi(e, t, n) {
|
|
961
968
|
if (!t || typeof window > "u" || typeof navigator > "u") return;
|
|
962
|
-
let r =
|
|
969
|
+
let r = Dr.get(e);
|
|
963
970
|
if (r) return r;
|
|
964
|
-
let i =
|
|
965
|
-
endpoint:
|
|
971
|
+
let i = Jr(t, n), a = {
|
|
972
|
+
endpoint: Wr(t),
|
|
966
973
|
report: i
|
|
967
974
|
};
|
|
968
|
-
|
|
975
|
+
Er.push(a), ii();
|
|
969
976
|
let o = e.config.errorHandler, s = (e, t, n) => {
|
|
970
977
|
i(2, location.href, e), o?.(e, t, n);
|
|
971
978
|
};
|
|
@@ -973,14 +980,14 @@ function ni(e, t, n) {
|
|
|
973
980
|
let c = !1, l = () => {
|
|
974
981
|
if (c) return;
|
|
975
982
|
c = !0, e.config.errorHandler === s && (e.config.errorHandler = o);
|
|
976
|
-
let t =
|
|
977
|
-
t >= 0 &&
|
|
983
|
+
let t = Er.indexOf(a);
|
|
984
|
+
t >= 0 && Er.splice(t, 1), Dr.delete(e), ai();
|
|
978
985
|
};
|
|
979
|
-
return
|
|
986
|
+
return Dr.set(e, l), e.onUnmount(l), l;
|
|
980
987
|
}
|
|
981
|
-
var
|
|
982
|
-
|
|
983
|
-
}, X = /* @__PURE__ */ new Map(),
|
|
988
|
+
var si = (e, t, n) => {
|
|
989
|
+
Yr(e, t, n);
|
|
990
|
+
}, X = /* @__PURE__ */ new Map(), ci = Object.prototype.hasOwnProperty, li = 300, ui = (e) => {
|
|
984
991
|
if (e == null) return "";
|
|
985
992
|
let t;
|
|
986
993
|
if (typeof e == "string") t = e;
|
|
@@ -989,44 +996,44 @@ var ri = (e, t, n) => {
|
|
|
989
996
|
} catch {
|
|
990
997
|
t = String(e);
|
|
991
998
|
}
|
|
992
|
-
return t.length >
|
|
999
|
+
return t.length > li ? `${t.slice(0, li)}…` : t;
|
|
993
1000
|
};
|
|
994
|
-
function
|
|
1001
|
+
function di(e, t) {
|
|
995
1002
|
let n = [];
|
|
996
1003
|
for (let r in e) {
|
|
997
|
-
if (!
|
|
1004
|
+
if (!ci.call(e, r)) continue;
|
|
998
1005
|
let i = e[r], a = encodeURIComponent(r), o;
|
|
999
|
-
o = typeof i == "object" ?
|
|
1006
|
+
o = typeof i == "object" ? di(i, t ? t + "[" + a + "]" : a) : (t ? t + "[" + a + "]" : a) + "=" + encodeURIComponent(i), n.push(o);
|
|
1000
1007
|
}
|
|
1001
1008
|
return n.join("&");
|
|
1002
1009
|
}
|
|
1003
|
-
var
|
|
1010
|
+
var fi = (e) => {
|
|
1004
1011
|
let t = e["content-disposition"];
|
|
1005
1012
|
if (t) {
|
|
1006
1013
|
let e = t.match(/filename=(?<fileName>.+)/);
|
|
1007
1014
|
return e && e.groups && e.groups.fileName;
|
|
1008
1015
|
}
|
|
1009
1016
|
return "";
|
|
1010
|
-
},
|
|
1017
|
+
}, pi = Ge.create({
|
|
1011
1018
|
timeout: 3e5,
|
|
1012
1019
|
responseType: "json",
|
|
1013
1020
|
headers: { "Content-Type": "application/json" }
|
|
1014
1021
|
});
|
|
1015
|
-
|
|
1016
|
-
var
|
|
1017
|
-
|
|
1018
|
-
e.cancelToken =
|
|
1022
|
+
pi.defaults.timeout = 3e5;
|
|
1023
|
+
var mi = Ge.CancelToken.source();
|
|
1024
|
+
pi.interceptors.request.use((e) => {
|
|
1025
|
+
e.cancelToken = mi.token, e.headers.Language = K.lang, e.headers.Platform = K.isMobile ? "mobile" : "pc";
|
|
1019
1026
|
let t = Y("token", !1);
|
|
1020
1027
|
if (e.headers && t && (e.headers.token = t), e.method?.toLocaleUpperCase() === "GET") {
|
|
1021
|
-
let t =
|
|
1028
|
+
let t = di(e.data);
|
|
1022
1029
|
t && (e.url = `${e.url}?${t}`);
|
|
1023
1030
|
}
|
|
1024
1031
|
return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
|
|
1025
|
-
}, (e) => Promise.reject(e)),
|
|
1032
|
+
}, (e) => Promise.reject(e)), pi.interceptors.response.use((e) => {
|
|
1026
1033
|
let t = e.data;
|
|
1027
|
-
if (t.code === 401) return
|
|
1034
|
+
if (t.code === 401) return ur("token"), G.replace("/login"), Promise.reject(!1);
|
|
1028
1035
|
if (e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
|
|
1029
|
-
let t =
|
|
1036
|
+
let t = fi(e.headers);
|
|
1030
1037
|
return Promise.resolve({
|
|
1031
1038
|
fileName: decodeURIComponent(t),
|
|
1032
1039
|
data: e.data
|
|
@@ -1037,30 +1044,30 @@ li.interceptors.request.use((e) => {
|
|
|
1037
1044
|
return Promise.resolve(e);
|
|
1038
1045
|
}
|
|
1039
1046
|
{
|
|
1040
|
-
|
|
1041
|
-
let n = t.message, r =
|
|
1042
|
-
return
|
|
1043
|
-
content: n ||
|
|
1047
|
+
cr.destroyAll();
|
|
1048
|
+
let n = t.message, r = ui(e.config.data ?? e.config.params);
|
|
1049
|
+
return si(3, e.config.url || location.href, `Fetch ${t.code ?? "error"}: ${n || "Unknown error"}${r ? ` | Params: ${r}` : ""}`), cr.error({
|
|
1050
|
+
content: n || Un.global.t("Notice.error"),
|
|
1044
1051
|
duration: 3e3
|
|
1045
1052
|
}), Promise.reject(n);
|
|
1046
1053
|
}
|
|
1047
|
-
}, (e) => e ? (
|
|
1048
|
-
content:
|
|
1054
|
+
}, (e) => e ? (cr.destroyAll(), e.code === "ERR_NETWORK" ? (cr.error({
|
|
1055
|
+
content: Un.global.t("Notice.network"),
|
|
1049
1056
|
duration: 3e3
|
|
1050
|
-
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (
|
|
1051
|
-
content:
|
|
1057
|
+
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (ur("token"), window.location.href = "/mom/login"), cr.error({
|
|
1058
|
+
content: Un.global.t("Notice.error"),
|
|
1052
1059
|
duration: 3e3
|
|
1053
|
-
}), Promise.reject(
|
|
1054
|
-
var
|
|
1055
|
-
|
|
1056
|
-
},
|
|
1060
|
+
}), Promise.reject(Un.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(Un.global.t("Notice.error")));
|
|
1061
|
+
var hi = "/apiserver/", gi = () => {
|
|
1062
|
+
mi.cancel(), mi = Ge.CancelToken.source();
|
|
1063
|
+
}, _i = (e, t, n = "json", r = 3e5) => {
|
|
1057
1064
|
let i = JSON.stringify({
|
|
1058
1065
|
fetchUri: e,
|
|
1059
1066
|
...t
|
|
1060
1067
|
});
|
|
1061
1068
|
if (X.has(i)) return X.get(i);
|
|
1062
|
-
let a =
|
|
1063
|
-
url: `${
|
|
1069
|
+
let a = pi({
|
|
1070
|
+
url: `${hi}${e}`,
|
|
1064
1071
|
method: "GET",
|
|
1065
1072
|
data: t,
|
|
1066
1073
|
responseType: n,
|
|
@@ -1075,53 +1082,53 @@ var di = "/apiserver/", fi = () => {
|
|
|
1075
1082
|
...t
|
|
1076
1083
|
});
|
|
1077
1084
|
if (X.has(i)) return X.get(i);
|
|
1078
|
-
let a =
|
|
1079
|
-
url: `${
|
|
1085
|
+
let a = pi({
|
|
1086
|
+
url: `${hi}${e}`,
|
|
1080
1087
|
method: "POST",
|
|
1081
1088
|
data: t,
|
|
1082
1089
|
responseType: n,
|
|
1083
1090
|
timeout: r
|
|
1084
1091
|
}).then((e) => (X.delete(i), Promise.resolve(e))).catch((e) => (X.delete(i), Promise.reject(e)));
|
|
1085
1092
|
return X.set(i, a), a;
|
|
1086
|
-
},
|
|
1087
|
-
url: `${
|
|
1093
|
+
}, vi = (e, t = {}, n = "blob", r = 3e5) => pi({
|
|
1094
|
+
url: `${hi}${e}`,
|
|
1088
1095
|
method: "POST",
|
|
1089
1096
|
data: t,
|
|
1090
1097
|
responseType: n,
|
|
1091
1098
|
timeout: r
|
|
1092
|
-
}),
|
|
1099
|
+
}), yi = (e) => pi(e), bi = (e, t) => pi({
|
|
1093
1100
|
headers: { "Content-Type": "multipart/form-data" },
|
|
1094
|
-
url: `${
|
|
1101
|
+
url: `${hi}${e}`,
|
|
1095
1102
|
method: "POST",
|
|
1096
1103
|
data: t
|
|
1097
|
-
}),
|
|
1104
|
+
}), xi = (e, t) => Z("dynamic-table/createTime", {
|
|
1098
1105
|
id: e,
|
|
1099
1106
|
createTime: t
|
|
1100
|
-
}),
|
|
1107
|
+
}), 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
1108
|
calculationIds: e,
|
|
1102
1109
|
linkId: t,
|
|
1103
1110
|
...n
|
|
1104
|
-
}),
|
|
1111
|
+
}), Oi = (e) => vi("excel/template", { tableKey: e }, "arraybuffer"), ki = (e) => Z("excel/record/query", {
|
|
1105
1112
|
recordType: "import",
|
|
1106
1113
|
tableKey: e
|
|
1107
|
-
}),
|
|
1114
|
+
}), Ai = (e) => Z("excel/exportData", e), ji = (e, t) => p(Re, { style: { "max-width": "300px" } }, {
|
|
1108
1115
|
trigger: () => e,
|
|
1109
1116
|
default: () => typeof t == "function" ? t() : t
|
|
1110
|
-
}),
|
|
1117
|
+
}), Mi = (e, t, n, r) => {
|
|
1111
1118
|
try {
|
|
1112
1119
|
Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
|
|
1113
1120
|
n && n();
|
|
1114
|
-
}, (e) =>
|
|
1121
|
+
}, (e) => Si({
|
|
1115
1122
|
id: e,
|
|
1116
1123
|
tableId: r
|
|
1117
|
-
}), (e) =>
|
|
1124
|
+
}), (e) => Ci({
|
|
1118
1125
|
tableId: r,
|
|
1119
1126
|
...e
|
|
1120
|
-
}),
|
|
1127
|
+
}), cr, Z);
|
|
1121
1128
|
} catch (e) {
|
|
1122
1129
|
q(e);
|
|
1123
1130
|
}
|
|
1124
|
-
},
|
|
1131
|
+
}, Ni = (e, t, n, r, i) => {
|
|
1125
1132
|
let a = {
|
|
1126
1133
|
secondary: i?.secondary || !1,
|
|
1127
1134
|
tertiary: i?.tertiary || !1,
|
|
@@ -1136,36 +1143,36 @@ var di = "/apiserver/", fi = () => {
|
|
|
1136
1143
|
if (!e.confirmText) {
|
|
1137
1144
|
if (e.onClick && typeof e.onClick == "string") {
|
|
1138
1145
|
let i = e.onClick;
|
|
1139
|
-
a.onClick = () =>
|
|
1146
|
+
a.onClick = () => Mi(i, t, n, r);
|
|
1140
1147
|
}
|
|
1141
1148
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
1142
1149
|
}
|
|
1143
|
-
return e.icon && (o.icon = () => p(V, {}, { default: () => p(
|
|
1144
|
-
},
|
|
1150
|
+
return e.icon && (o.icon = () => p(V, {}, { default: () => p(Bn, { icon: e.icon }, { default: () => null }) })), p(R, a, o);
|
|
1151
|
+
}, Pi = (e, t, n, r, i) => {
|
|
1145
1152
|
let a = { placement: "left" };
|
|
1146
1153
|
if (typeof t.onClick == "string") {
|
|
1147
1154
|
let e = t.onClick;
|
|
1148
|
-
a["on-positive-click"] = () =>
|
|
1155
|
+
a["on-positive-click"] = () => Mi(e, n, r, i);
|
|
1149
1156
|
} else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
|
|
1150
1157
|
return p(Ee, a, {
|
|
1151
1158
|
default: () => p("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
|
|
1152
1159
|
trigger: () => e
|
|
1153
1160
|
});
|
|
1154
|
-
},
|
|
1155
|
-
let a =
|
|
1156
|
-
return e.confirmText && (a =
|
|
1157
|
-
},
|
|
1161
|
+
}, Fi = (e, t, n, r, i) => {
|
|
1162
|
+
let a = Ni(e, t, n, r, i);
|
|
1163
|
+
return e.confirmText && (a = Pi(a, e, t, n, r)), !e.confirmText && e.tooltipText && (a = ji(a, e.tooltipText)), a;
|
|
1164
|
+
}, Ii = ({ buttons: e, rowData: t = {}, callback: n, tableId: r, hProps: i }) => {
|
|
1158
1165
|
let a = [];
|
|
1159
1166
|
return e.forEach((e) => {
|
|
1160
1167
|
if (e.type === "group") {
|
|
1161
1168
|
let o = [];
|
|
1162
1169
|
e.children && e.children.length > 0 && e.children.forEach((a, s) => {
|
|
1163
|
-
o.push(
|
|
1170
|
+
o.push(Fi({
|
|
1164
1171
|
...a,
|
|
1165
1172
|
tooltipText: void 0
|
|
1166
1173
|
}, t, n, r, i)), s < e.children.length - 1 && o.push(p("div", { class: "uz-action-split" }, { default: () => "" }));
|
|
1167
1174
|
}), a.push(p(De, { trigger: "click" }, {
|
|
1168
|
-
trigger: () =>
|
|
1175
|
+
trigger: () => Ni({
|
|
1169
1176
|
type: "normal",
|
|
1170
1177
|
key: e.key,
|
|
1171
1178
|
icon: e.icon,
|
|
@@ -1181,11 +1188,11 @@ var di = "/apiserver/", fi = () => {
|
|
|
1181
1188
|
}));
|
|
1182
1189
|
}
|
|
1183
1190
|
if (e.type === "normal") {
|
|
1184
|
-
let o =
|
|
1191
|
+
let o = Fi(e, t, n, r, i);
|
|
1185
1192
|
a.push(o);
|
|
1186
1193
|
}
|
|
1187
1194
|
}), p("div", { class: "uz-action-flex" }, { default: () => a });
|
|
1188
|
-
},
|
|
1195
|
+
}, Li = (e) => {
|
|
1189
1196
|
switch (e) {
|
|
1190
1197
|
case "tertiary": return 1;
|
|
1191
1198
|
case "primary": return 2;
|
|
@@ -1195,7 +1202,7 @@ var di = "/apiserver/", fi = () => {
|
|
|
1195
1202
|
case "error": return 6;
|
|
1196
1203
|
default: return 0;
|
|
1197
1204
|
}
|
|
1198
|
-
},
|
|
1205
|
+
}, Ri = (e) => {
|
|
1199
1206
|
switch (e) {
|
|
1200
1207
|
case 1: return "tertiary";
|
|
1201
1208
|
case 2: return "primary";
|
|
@@ -1205,7 +1212,7 @@ var di = "/apiserver/", fi = () => {
|
|
|
1205
1212
|
case 6: return "error";
|
|
1206
1213
|
default: return "default";
|
|
1207
1214
|
}
|
|
1208
|
-
},
|
|
1215
|
+
}, zi = (e) => {
|
|
1209
1216
|
switch (e) {
|
|
1210
1217
|
case "detailInside": return 0;
|
|
1211
1218
|
case "editInside": return 1;
|
|
@@ -1214,7 +1221,7 @@ var di = "/apiserver/", fi = () => {
|
|
|
1214
1221
|
case "enabledInside": return 4;
|
|
1215
1222
|
default: return e;
|
|
1216
1223
|
}
|
|
1217
|
-
},
|
|
1224
|
+
}, Bi = (e) => {
|
|
1218
1225
|
switch (e) {
|
|
1219
1226
|
case 0: return "detailInside";
|
|
1220
1227
|
case 1: return "editInside";
|
|
@@ -1223,66 +1230,66 @@ var di = "/apiserver/", fi = () => {
|
|
|
1223
1230
|
case 4: return "enabledInside";
|
|
1224
1231
|
default: return e;
|
|
1225
1232
|
}
|
|
1226
|
-
},
|
|
1233
|
+
}, Vi = (e) => ({
|
|
1227
1234
|
t: 0,
|
|
1228
1235
|
k: e.key,
|
|
1229
1236
|
d: e?.disabled,
|
|
1230
1237
|
l: e?.loading,
|
|
1231
1238
|
i: e?.icon,
|
|
1232
|
-
c:
|
|
1239
|
+
c: Li(e?.color),
|
|
1233
1240
|
b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
|
|
1234
1241
|
o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
|
|
1235
1242
|
p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
|
|
1236
1243
|
s: e?.optionsType,
|
|
1237
1244
|
u: e?.optionsSource,
|
|
1238
|
-
a:
|
|
1245
|
+
a: zi(e?.action),
|
|
1239
1246
|
r: +!!e.footer,
|
|
1240
1247
|
g: +!!e.main,
|
|
1241
1248
|
h: +!!e.sub,
|
|
1242
1249
|
w: e?.width,
|
|
1243
1250
|
z: e?.onClick
|
|
1244
|
-
}),
|
|
1251
|
+
}), Hi = (e) => ({
|
|
1245
1252
|
type: "normal",
|
|
1246
1253
|
key: e.k,
|
|
1247
1254
|
disabled: e?.d,
|
|
1248
1255
|
loading: e?.l,
|
|
1249
1256
|
icon: e?.i,
|
|
1250
|
-
color:
|
|
1257
|
+
color: Ri(e?.c),
|
|
1251
1258
|
buttonText: e?.b ? decodeURIComponent(e?.b) : "",
|
|
1252
1259
|
confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
|
|
1253
1260
|
tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
|
|
1254
1261
|
optionsType: e?.s,
|
|
1255
1262
|
optionsSource: e?.u,
|
|
1256
|
-
action:
|
|
1263
|
+
action: Bi(e?.a),
|
|
1257
1264
|
footer: !!e.r,
|
|
1258
1265
|
sub: !!e.h,
|
|
1259
1266
|
main: !!e.g,
|
|
1260
1267
|
width: e?.w,
|
|
1261
1268
|
onClick: e?.z
|
|
1262
|
-
}),
|
|
1269
|
+
}), Ui = (e) => {
|
|
1263
1270
|
let t = [];
|
|
1264
|
-
for (let n of e) n.type === "normal" && t.push(
|
|
1271
|
+
for (let n of e) n.type === "normal" && t.push(Vi(n)), n.type === "group" && t.push({
|
|
1265
1272
|
t: 1,
|
|
1266
1273
|
k: n.key,
|
|
1267
1274
|
i: n?.icon,
|
|
1268
|
-
x:
|
|
1275
|
+
x: Li(n?.color),
|
|
1269
1276
|
b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
|
|
1270
|
-
c: n.children.map((e) =>
|
|
1277
|
+
c: n.children.map((e) => Vi(e))
|
|
1271
1278
|
});
|
|
1272
1279
|
return t;
|
|
1273
|
-
},
|
|
1280
|
+
}, Wi = (e) => {
|
|
1274
1281
|
if (e && e[0] && e[0].type) return e;
|
|
1275
1282
|
let t = [];
|
|
1276
|
-
for (let n of e) n.t === 0 && t.push(
|
|
1283
|
+
for (let n of e) n.t === 0 && t.push(Hi(n)), n.t === 1 && t.push({
|
|
1277
1284
|
type: "group",
|
|
1278
1285
|
key: n.k,
|
|
1279
1286
|
icon: n?.i,
|
|
1280
|
-
color:
|
|
1287
|
+
color: Ri(n?.x),
|
|
1281
1288
|
buttonText: n?.b ? decodeURIComponent(n?.b) : "",
|
|
1282
|
-
children: n.c.map((e) =>
|
|
1289
|
+
children: n.c.map((e) => Hi(e))
|
|
1283
1290
|
});
|
|
1284
1291
|
return t;
|
|
1285
|
-
},
|
|
1292
|
+
}, Gi = f({
|
|
1286
1293
|
name: "UzBack",
|
|
1287
1294
|
components: {
|
|
1288
1295
|
NButton: R,
|
|
@@ -1307,7 +1314,7 @@ var di = "/apiserver/", fi = () => {
|
|
|
1307
1314
|
});
|
|
1308
1315
|
//#endregion
|
|
1309
1316
|
//#region components/back/index.vue
|
|
1310
|
-
function
|
|
1317
|
+
function Ki(e, t, n, i, a, s) {
|
|
1311
1318
|
let c = O("UzIcon"), l = O("NIcon"), d = O("NButton");
|
|
1312
1319
|
return S(), r(d, {
|
|
1313
1320
|
quaternary: "",
|
|
@@ -1321,7 +1328,7 @@ function Hi(e, t, n, i, a, s) {
|
|
|
1321
1328
|
_: 1
|
|
1322
1329
|
}, 8, ["onClick"]);
|
|
1323
1330
|
}
|
|
1324
|
-
var
|
|
1331
|
+
var qi = /*#__PURE__*/ W(Gi, [["render", Ki]]), Ji = f({
|
|
1325
1332
|
name: "UzFormItem",
|
|
1326
1333
|
components: {
|
|
1327
1334
|
NIcon: V,
|
|
@@ -1499,11 +1506,11 @@ var Ui = /*#__PURE__*/ W(Vi, [["render", Hi]]), Wi = f({
|
|
|
1499
1506
|
checkNumberMax: (t) => {
|
|
1500
1507
|
if (e.status !== 2) return t.params.maxKey ? Number(e.formValue[t.params.maxKey]) : t.params.max;
|
|
1501
1508
|
},
|
|
1502
|
-
selectFilter: (e, t) =>
|
|
1509
|
+
selectFilter: (e, t) => Sr(t.label, e)
|
|
1503
1510
|
};
|
|
1504
1511
|
}
|
|
1505
|
-
}),
|
|
1506
|
-
function
|
|
1512
|
+
}), Yi = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
1513
|
+
function Xi(t, n, i, c, d, f) {
|
|
1507
1514
|
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
1515
|
return t.item.input === "input" ? (S(), r(p, {
|
|
1509
1516
|
key: 0,
|
|
@@ -1808,7 +1815,7 @@ function Ki(t, n, i, c, d, f) {
|
|
|
1808
1815
|
value: t.formValue[t.item.key],
|
|
1809
1816
|
disabled: t.checkDisabled()
|
|
1810
1817
|
}, {
|
|
1811
|
-
default: P(() => [o("div",
|
|
1818
|
+
default: P(() => [o("div", Yi, [(S(!0), a(e, null, E(t.item.params.options, (e) => (S(), r(x, {
|
|
1812
1819
|
key: e.value,
|
|
1813
1820
|
label: e.label,
|
|
1814
1821
|
value: e.value
|
|
@@ -1877,7 +1884,7 @@ function Ki(t, n, i, c, d, f) {
|
|
|
1877
1884
|
"status"
|
|
1878
1885
|
])) : (S(), a(e, { key: 14 }, [], 64));
|
|
1879
1886
|
}
|
|
1880
|
-
var
|
|
1887
|
+
var Zi = /*#__PURE__*/ W(Ji, [["render", Xi]]), Qi = f({
|
|
1881
1888
|
name: "UzForm",
|
|
1882
1889
|
components: {
|
|
1883
1890
|
NForm: me,
|
|
@@ -1885,7 +1892,7 @@ var qi = /*#__PURE__*/ W(Wi, [["render", Ki]]), Ji = f({
|
|
|
1885
1892
|
NDivider: le,
|
|
1886
1893
|
NButton: R,
|
|
1887
1894
|
NIcon: V,
|
|
1888
|
-
UzFormItem:
|
|
1895
|
+
UzFormItem: Zi
|
|
1889
1896
|
},
|
|
1890
1897
|
props: {
|
|
1891
1898
|
items: {
|
|
@@ -1962,12 +1969,12 @@ var qi = /*#__PURE__*/ W(Wi, [["render", Ki]]), Ji = f({
|
|
|
1962
1969
|
}, p = (e, t) => {
|
|
1963
1970
|
switch (e) {
|
|
1964
1971
|
case "datetime":
|
|
1965
|
-
case "datetimerange": return
|
|
1972
|
+
case "datetimerange": return hr(t, "yyyy-MM-dd hh:mm:ss");
|
|
1966
1973
|
case "month":
|
|
1967
|
-
case "monthrange": return
|
|
1974
|
+
case "monthrange": return hr(t, "yyyy-MM");
|
|
1968
1975
|
case "year":
|
|
1969
|
-
case "yearrange": return
|
|
1970
|
-
default: return
|
|
1976
|
+
case "yearrange": return hr(t, "yyyy");
|
|
1977
|
+
default: return hr(t);
|
|
1971
1978
|
}
|
|
1972
1979
|
}, h = (e, t = !1) => {
|
|
1973
1980
|
let n = tt(e).startOf("day").diff(tt().startOf("day"), "day");
|
|
@@ -2090,8 +2097,8 @@ var qi = /*#__PURE__*/ W(Wi, [["render", Ki]]), Ji = f({
|
|
|
2090
2097
|
}
|
|
2091
2098
|
};
|
|
2092
2099
|
}
|
|
2093
|
-
}),
|
|
2094
|
-
function
|
|
2100
|
+
}), $i = ["onClick"];
|
|
2101
|
+
function ea(t, n, s, c, d, f) {
|
|
2095
2102
|
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
2103
|
return S(), a(e, null, [u(C, {
|
|
2097
2104
|
ref: "formRef",
|
|
@@ -2119,7 +2126,7 @@ function Xi(t, n, s, c, d, f) {
|
|
|
2119
2126
|
}, [u(m, null, {
|
|
2120
2127
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
2121
2128
|
_: 1
|
|
2122
|
-
}), n[0] ||= l(" 新增 ", -1)], 8,
|
|
2129
|
+
}), n[0] ||= l(" 新增 ", -1)], 8, $i)) : i("", !0),
|
|
2123
2130
|
s.form.showDays ? (S(), a("span", {
|
|
2124
2131
|
key: 1,
|
|
2125
2132
|
class: _(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
@@ -2180,7 +2187,7 @@ function Xi(t, n, s, c, d, f) {
|
|
|
2180
2187
|
onOnSubmit: t.refreshOption
|
|
2181
2188
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
2182
2189
|
}
|
|
2183
|
-
var
|
|
2190
|
+
var ta = /*#__PURE__*/ W(Qi, [["render", ea]]), na = f({
|
|
2184
2191
|
name: "UzDraggableForm",
|
|
2185
2192
|
components: {
|
|
2186
2193
|
NForm: me,
|
|
@@ -2188,7 +2195,7 @@ var Zi = /*#__PURE__*/ W(Ji, [["render", Xi]]), Qi = f({
|
|
|
2188
2195
|
NButton: R,
|
|
2189
2196
|
NIcon: V,
|
|
2190
2197
|
NDivider: le,
|
|
2191
|
-
UzFormItem:
|
|
2198
|
+
UzFormItem: Zi,
|
|
2192
2199
|
VueDraggable: nt
|
|
2193
2200
|
},
|
|
2194
2201
|
props: {
|
|
@@ -2286,14 +2293,14 @@ var Zi = /*#__PURE__*/ W(Ji, [["render", Xi]]), Qi = f({
|
|
|
2286
2293
|
}
|
|
2287
2294
|
};
|
|
2288
2295
|
}
|
|
2289
|
-
}),
|
|
2296
|
+
}), ra = {
|
|
2290
2297
|
key: 0,
|
|
2291
2298
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
|
|
2292
|
-
},
|
|
2299
|
+
}, ia = {
|
|
2293
2300
|
key: 1,
|
|
2294
2301
|
class: "uz-form-item-add"
|
|
2295
2302
|
};
|
|
2296
|
-
function
|
|
2303
|
+
function aa(t, n, s, c, d, f) {
|
|
2297
2304
|
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
2305
|
return S(), r(w, {
|
|
2299
2306
|
ref: "formRef",
|
|
@@ -2331,11 +2338,11 @@ function ta(t, n, s, c, d, f) {
|
|
|
2331
2338
|
}, {
|
|
2332
2339
|
label: P(() => [
|
|
2333
2340
|
o("div", null, A(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
2334
|
-
s.source && s.form.createButton ? (S(), a("a",
|
|
2341
|
+
s.source && s.form.createButton ? (S(), a("a", ra, [u(m, null, {
|
|
2335
2342
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
2336
2343
|
_: 1
|
|
2337
2344
|
}), n[1] ||= l(" 新增 ", -1)])) : i("", !0),
|
|
2338
|
-
s.form.showDays ? (S(), a("span",
|
|
2345
|
+
s.form.showDays ? (S(), a("span", ia, " showDays ")) : i("", !0)
|
|
2339
2346
|
]),
|
|
2340
2347
|
default: P(() => [t.formItemIndex[0] === c && t.formItemIndex[1] === -1 ? (S(), r(h, {
|
|
2341
2348
|
key: 0,
|
|
@@ -2462,7 +2469,7 @@ function ta(t, n, s, c, d, f) {
|
|
|
2462
2469
|
"onClick"
|
|
2463
2470
|
]);
|
|
2464
2471
|
}
|
|
2465
|
-
var
|
|
2472
|
+
var oa = /*#__PURE__*/ W(na, [["render", aa]]), sa = f({
|
|
2466
2473
|
name: "UzFormItemUpload",
|
|
2467
2474
|
components: {
|
|
2468
2475
|
NUpload: ze,
|
|
@@ -2507,7 +2514,7 @@ var na = /*#__PURE__*/ W(Qi, [["render", ta]]), ra = f({
|
|
|
2507
2514
|
}), r.value = !1, o();
|
|
2508
2515
|
else {
|
|
2509
2516
|
let s = new FormData();
|
|
2510
|
-
s.append("file", e.file.file), s.append("name", e.file.name),
|
|
2517
|
+
s.append("file", e.file.file), s.append("name", e.file.name), bi("file/cos/upload", s).then((o) => {
|
|
2511
2518
|
i.value.push({
|
|
2512
2519
|
id: e.file.id,
|
|
2513
2520
|
name: e.file.name,
|
|
@@ -2574,8 +2581,8 @@ var na = /*#__PURE__*/ W(Qi, [["render", ta]]), ra = f({
|
|
|
2574
2581
|
}
|
|
2575
2582
|
};
|
|
2576
2583
|
}
|
|
2577
|
-
}),
|
|
2578
|
-
function
|
|
2584
|
+
}), ca = { class: "uz-form-upload-item-inner" }, la = ["title"], ua = { key: 0 };
|
|
2585
|
+
function da(t, n, s, c, d, f) {
|
|
2579
2586
|
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
2587
|
return S(), r(b, {
|
|
2581
2588
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
@@ -2629,10 +2636,10 @@ function sa(t, n, s, c, d, f) {
|
|
|
2629
2636
|
}, {
|
|
2630
2637
|
default: P(() => [u(p, { icon: "Document" })]),
|
|
2631
2638
|
_: 1
|
|
2632
|
-
}, 8, ["onClick"])), o("div",
|
|
2639
|
+
}, 8, ["onClick"])), o("div", ca, [o("div", {
|
|
2633
2640
|
class: "uz-form-upload-title uz-truncate",
|
|
2634
2641
|
title: e.name
|
|
2635
|
-
}, A(e.name), 9,
|
|
2642
|
+
}, A(e.name), 9, la), t.status === 2 ? i("", !0) : (S(), a("div", ua, [u(y, { onPositiveClick: (e) => t.doDelete(s) }, {
|
|
2636
2643
|
trigger: P(() => [u(v, {
|
|
2637
2644
|
size: "small",
|
|
2638
2645
|
tertiary: ""
|
|
@@ -2661,7 +2668,7 @@ function sa(t, n, s, c, d, f) {
|
|
|
2661
2668
|
_: 1
|
|
2662
2669
|
}, 8, ["show"]);
|
|
2663
2670
|
}
|
|
2664
|
-
var
|
|
2671
|
+
var fa = /*#__PURE__*/ W(sa, [["render", da], ["__scopeId", "data-v-79565a09"]]), pa = f({
|
|
2665
2672
|
name: "UzFormItemImage",
|
|
2666
2673
|
components: {
|
|
2667
2674
|
NImageGroup: ye,
|
|
@@ -2705,11 +2712,11 @@ var ca = /*#__PURE__*/ W(ra, [["render", sa], ["__scopeId", "data-v-79565a09"]])
|
|
|
2705
2712
|
}
|
|
2706
2713
|
};
|
|
2707
2714
|
}
|
|
2708
|
-
}),
|
|
2709
|
-
function
|
|
2715
|
+
}), ma = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
|
|
2716
|
+
function ha(t, n, i, s, c, d) {
|
|
2710
2717
|
let f = O("UzIcon"), p = O("NIcon"), m = O("NImage"), h = O("NPopover"), g = O("NImageGroup");
|
|
2711
2718
|
return S(), r(g, null, {
|
|
2712
|
-
default: P(() => [o("div",
|
|
2719
|
+
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
2720
|
key: 0,
|
|
2714
2721
|
width: "40",
|
|
2715
2722
|
src: n
|
|
@@ -2741,7 +2748,7 @@ function da(t, n, i, s, c, d) {
|
|
|
2741
2748
|
_: 1
|
|
2742
2749
|
});
|
|
2743
2750
|
}
|
|
2744
|
-
var
|
|
2751
|
+
var ga = /*#__PURE__*/ W(pa, [["render", ha]]), _a = f({
|
|
2745
2752
|
name: "UzFormItemTimesPicker",
|
|
2746
2753
|
components: { NSelect: Ae },
|
|
2747
2754
|
props: {
|
|
@@ -2791,10 +2798,10 @@ var fa = /*#__PURE__*/ W(la, [["render", da]]), pa = f({
|
|
|
2791
2798
|
}
|
|
2792
2799
|
};
|
|
2793
2800
|
}
|
|
2794
|
-
}),
|
|
2795
|
-
function
|
|
2801
|
+
}), va = { class: "times-picker" };
|
|
2802
|
+
function ya(e, t, n, r, i, o) {
|
|
2796
2803
|
let s = O("NSelect");
|
|
2797
|
-
return S(), a("div",
|
|
2804
|
+
return S(), a("div", va, [
|
|
2798
2805
|
u(s, {
|
|
2799
2806
|
value: e.h,
|
|
2800
2807
|
options: e.times,
|
|
@@ -2842,10 +2849,10 @@ function ha(e, t, n, r, i, o) {
|
|
|
2842
2849
|
])
|
|
2843
2850
|
]);
|
|
2844
2851
|
}
|
|
2845
|
-
var
|
|
2852
|
+
var ba = /*#__PURE__*/ W(_a, [["render", ya], ["__scopeId", "data-v-12b4d7e3"]]);
|
|
2846
2853
|
//#endregion
|
|
2847
2854
|
//#region components/hooks/useDebounceFn.ts
|
|
2848
|
-
function
|
|
2855
|
+
function xa(e, t = 1e3) {
|
|
2849
2856
|
let n = $e(e, t);
|
|
2850
2857
|
return {
|
|
2851
2858
|
run: n,
|
|
@@ -2855,24 +2862,24 @@ function _a(e, t = 1e3) {
|
|
|
2855
2862
|
}
|
|
2856
2863
|
//#endregion
|
|
2857
2864
|
//#region components/bom/index.vue?vue&type=script&lang.ts
|
|
2858
|
-
var
|
|
2865
|
+
var Sa = [
|
|
2859
2866
|
"var(--primary)",
|
|
2860
2867
|
"var(--green)",
|
|
2861
2868
|
"var(--yellow)",
|
|
2862
2869
|
"var(--purple)"
|
|
2863
|
-
],
|
|
2870
|
+
], Ca = (e) => {
|
|
2864
2871
|
if (e == null || e === "") return null;
|
|
2865
2872
|
if (typeof e == "string") {
|
|
2866
2873
|
let t = Number.parseFloat(e);
|
|
2867
2874
|
return Number.isFinite(t) ? e.includes("%") || t > 1 ? t / 100 : t : null;
|
|
2868
2875
|
}
|
|
2869
2876
|
return Number.isFinite(e) ? e > 1 ? e / 100 : e : null;
|
|
2870
|
-
},
|
|
2871
|
-
let t = Number(e.quantity), n =
|
|
2877
|
+
}, wa = (e) => {
|
|
2878
|
+
let t = Number(e.quantity), n = Ca(e.lossRate);
|
|
2872
2879
|
if (!Number.isFinite(t) || n === null || n < 0) return null;
|
|
2873
2880
|
let r = 1 - n;
|
|
2874
2881
|
return r > 0 ? Math.ceil(t / r) : null;
|
|
2875
|
-
},
|
|
2882
|
+
}, Ta = (e) => e === null ? "—" : e.toLocaleString("zh-CN"), Ea = [
|
|
2876
2883
|
{
|
|
2877
2884
|
title: "编码",
|
|
2878
2885
|
key: "code",
|
|
@@ -2917,7 +2924,7 @@ var va = [
|
|
|
2917
2924
|
title: "含损耗用量",
|
|
2918
2925
|
key: "required_quantity",
|
|
2919
2926
|
width: 120,
|
|
2920
|
-
render: (e) =>
|
|
2927
|
+
render: (e) => Ta(wa(e))
|
|
2921
2928
|
},
|
|
2922
2929
|
{
|
|
2923
2930
|
title: "备注",
|
|
@@ -2925,7 +2932,7 @@ var va = [
|
|
|
2925
2932
|
width: 220,
|
|
2926
2933
|
ellipsis: { tooltip: !0 }
|
|
2927
2934
|
}
|
|
2928
|
-
],
|
|
2935
|
+
], Da = f({
|
|
2929
2936
|
name: "UzBom",
|
|
2930
2937
|
components: { NDataTable: se },
|
|
2931
2938
|
props: {
|
|
@@ -2971,7 +2978,7 @@ var va = [
|
|
|
2971
2978
|
}
|
|
2972
2979
|
let n = new Set(t), r = o.value.map((t) => e.get(t) ?? t).filter((e) => n.has(e));
|
|
2973
2980
|
(r.length !== o.value.length || r.some((e, t) => e !== o.value[t])) && (o.value = r);
|
|
2974
|
-
}, { run: h, flush: g, cancel: _ } =
|
|
2981
|
+
}, { run: h, flush: g, cancel: _ } = xa(() => m(u(a.value)), 200), v = /* @__PURE__ */ new WeakMap(), b = (e) => {
|
|
2975
2982
|
let t = v.get(e);
|
|
2976
2983
|
if (t) return t;
|
|
2977
2984
|
let n = new Proxy(e, { set(e, t, n) {
|
|
@@ -3066,7 +3073,7 @@ var va = [
|
|
|
3066
3073
|
align: "center",
|
|
3067
3074
|
titleAlign: "center",
|
|
3068
3075
|
className: "uz-bom-action-cell",
|
|
3069
|
-
render: (e) =>
|
|
3076
|
+
render: (e) => Ii({
|
|
3070
3077
|
buttons: [{
|
|
3071
3078
|
type: "normal",
|
|
3072
3079
|
key: "add",
|
|
@@ -3095,14 +3102,14 @@ var va = [
|
|
|
3095
3102
|
title: e.label,
|
|
3096
3103
|
key: e.key,
|
|
3097
3104
|
width: 160,
|
|
3098
|
-
render: (t, n) => p(
|
|
3105
|
+
render: (t, n) => p(Zi, {
|
|
3099
3106
|
item: e,
|
|
3100
3107
|
formValue: b(t),
|
|
3101
3108
|
status: 1,
|
|
3102
3109
|
itemIndex: n
|
|
3103
3110
|
})
|
|
3104
3111
|
}))), k = n(() => {
|
|
3105
|
-
let [e, ...t] =
|
|
3112
|
+
let [e, ...t] = Ea;
|
|
3106
3113
|
return [
|
|
3107
3114
|
E,
|
|
3108
3115
|
e,
|
|
@@ -3120,7 +3127,7 @@ var va = [
|
|
|
3120
3127
|
if (!Number.isFinite(t) || t < 1) return null;
|
|
3121
3128
|
let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
|
|
3122
3129
|
return {
|
|
3123
|
-
color:
|
|
3130
|
+
color: Sa[n - 1],
|
|
3124
3131
|
opacity: Math.min(.1 + r * .05, .4)
|
|
3125
3132
|
};
|
|
3126
3133
|
};
|
|
@@ -3139,10 +3146,10 @@ var va = [
|
|
|
3139
3146
|
handleExpandedRowKeysChange: A
|
|
3140
3147
|
};
|
|
3141
3148
|
}
|
|
3142
|
-
}),
|
|
3143
|
-
function
|
|
3149
|
+
}), Oa = { class: "uz-bom" };
|
|
3150
|
+
function ka(e, t, n, r, i, o) {
|
|
3144
3151
|
let s = O("NDataTable");
|
|
3145
|
-
return S(), a("div",
|
|
3152
|
+
return S(), a("div", Oa, [u(s, {
|
|
3146
3153
|
columns: e.tableColumns,
|
|
3147
3154
|
data: e.innerData,
|
|
3148
3155
|
"row-props": e.getRowProps,
|
|
@@ -3169,13 +3176,13 @@ function Ta(e, t, n, r, i, o) {
|
|
|
3169
3176
|
"onUpdate:expandedRowKeys"
|
|
3170
3177
|
])]);
|
|
3171
3178
|
}
|
|
3172
|
-
var
|
|
3179
|
+
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
3180
|
let i = r * Math.PI / 180;
|
|
3174
3181
|
return {
|
|
3175
3182
|
x: e + n * Math.cos(i),
|
|
3176
3183
|
y: t + n * Math.sin(i)
|
|
3177
3184
|
};
|
|
3178
|
-
},
|
|
3185
|
+
}, Ga = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, Ka = (e, t, n, r, i, a) => {
|
|
3179
3186
|
if (a <= 0) return "";
|
|
3180
3187
|
let o = n + r / 2, s = n - r / 2;
|
|
3181
3188
|
if (a >= 359.999) {
|
|
@@ -3187,16 +3194,16 @@ var Ea = /*#__PURE__*/ W(Ca, [["render", Ta]]), Da = 46, Oa = 8, Q = 2 * Math.PI
|
|
|
3187
3194
|
`A ${s} ${s} 0 1 0 ${i}`
|
|
3188
3195
|
].join(" ");
|
|
3189
3196
|
}
|
|
3190
|
-
let c = i + a, l =
|
|
3197
|
+
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
3198
|
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 ${
|
|
3199
|
+
`M ${Ga(l)}`,
|
|
3200
|
+
`A ${o} ${o} 0 ${m} 1 ${Ga(u)}`,
|
|
3201
|
+
`A ${p} ${p} 0 0 1 ${Ga(d)}`,
|
|
3202
|
+
`A ${s} ${s} 0 ${m} 0 ${Ga(f)}`,
|
|
3203
|
+
`A ${p} ${p} 0 0 1 ${Ga(l)}`,
|
|
3197
3204
|
"Z"
|
|
3198
3205
|
].join(" ");
|
|
3199
|
-
},
|
|
3206
|
+
}, qa = (e) => {
|
|
3200
3207
|
if (!e) return "";
|
|
3201
3208
|
let t = e.toLowerCase();
|
|
3202
3209
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -3210,7 +3217,7 @@ var Ea = /*#__PURE__*/ W(Ca, [["render", Ta]]), Da = 46, Oa = 8, Q = 2 * Math.PI
|
|
|
3210
3217
|
return e.join(",");
|
|
3211
3218
|
}
|
|
3212
3219
|
return "0,0,0";
|
|
3213
|
-
},
|
|
3220
|
+
}, Ja = f({
|
|
3214
3221
|
name: "UzCircle",
|
|
3215
3222
|
components: { UzNumberFlow: it },
|
|
3216
3223
|
props: {
|
|
@@ -3233,10 +3240,10 @@ var Ea = /*#__PURE__*/ W(Ca, [["render", Ta]]), Da = 46, Oa = 8, Q = 2 * Math.PI
|
|
|
3233
3240
|
}
|
|
3234
3241
|
},
|
|
3235
3242
|
setup(e) {
|
|
3236
|
-
let t = te(), r = `uz-blurs-${t}`, i = n(() => `rgba(${
|
|
3243
|
+
let t = te(), r = `uz-blurs-${t}`, i = n(() => `rgba(${qa(e.color).split(",").map((e) => {
|
|
3237
3244
|
let t = Number(e) - 50;
|
|
3238
3245
|
return t < 0 && (t = 0), t;
|
|
3239
|
-
})},1)`), a = n(() => `rgba(${
|
|
3246
|
+
})},1)`), a = n(() => `rgba(${qa(e.color)},1)`), o = n(() => {
|
|
3240
3247
|
let t = Number(e.circle);
|
|
3241
3248
|
return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
|
|
3242
3249
|
}), s = T(o.value), c;
|
|
@@ -3268,49 +3275,49 @@ var Ea = /*#__PURE__*/ W(Ca, [["render", Ta]]), Da = 46, Oa = 8, Q = 2 * Math.PI
|
|
|
3268
3275
|
remainingLength: 0,
|
|
3269
3276
|
remainingStart: 0
|
|
3270
3277
|
};
|
|
3271
|
-
let n = Math.min(1, Math.min(e, t) /
|
|
3278
|
+
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
3279
|
return {
|
|
3273
3280
|
activeLength: a,
|
|
3274
3281
|
activeStart: r / 2,
|
|
3275
3282
|
remainingLength: o,
|
|
3276
3283
|
remainingStart: r / 2 + a + r
|
|
3277
3284
|
};
|
|
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 =
|
|
3285
|
+
}), 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(() => {
|
|
3286
|
+
let e = Va * (s.value / 100), t = Va - e;
|
|
3280
3287
|
if (e === 0) return {
|
|
3281
3288
|
activeLength: 0,
|
|
3282
|
-
remainingLength:
|
|
3289
|
+
remainingLength: Va,
|
|
3283
3290
|
remainingStart: 0
|
|
3284
3291
|
};
|
|
3285
3292
|
if (t === 0) return {
|
|
3286
|
-
activeLength:
|
|
3293
|
+
activeLength: Va,
|
|
3287
3294
|
remainingLength: 0,
|
|
3288
3295
|
remainingStart: 0
|
|
3289
3296
|
};
|
|
3290
|
-
let n = Math.min(
|
|
3297
|
+
let n = Math.min(Ha, e, t);
|
|
3291
3298
|
return {
|
|
3292
3299
|
activeLength: e - n / 2,
|
|
3293
3300
|
remainingLength: t - n / 2,
|
|
3294
3301
|
remainingStart: e + n / 2
|
|
3295
3302
|
};
|
|
3296
|
-
}), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), v = n(() => h.value.remainingStart), b = n(() =>
|
|
3303
|
+
}), 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
3304
|
return {
|
|
3298
3305
|
color: n(() => e.color),
|
|
3299
3306
|
colorA: i,
|
|
3300
3307
|
colorB: a,
|
|
3301
|
-
fullRadius:
|
|
3302
|
-
fullStrokeWidth:
|
|
3308
|
+
fullRadius: ja,
|
|
3309
|
+
fullStrokeWidth: Ma,
|
|
3303
3310
|
fullCircumference: Q,
|
|
3304
3311
|
fullActiveLength: u,
|
|
3305
3312
|
fullActiveStart: d,
|
|
3306
3313
|
fullRemainingLength: f,
|
|
3307
3314
|
fullRemainingStart: p,
|
|
3308
3315
|
fullRemainingPath: m,
|
|
3309
|
-
gaugeCenterY:
|
|
3310
|
-
gaugeRadius:
|
|
3311
|
-
gaugeStrokeWidth:
|
|
3312
|
-
gaugeCircumference:
|
|
3313
|
-
gaugeTransform:
|
|
3316
|
+
gaugeCenterY: Fa,
|
|
3317
|
+
gaugeRadius: Ia,
|
|
3318
|
+
gaugeStrokeWidth: La,
|
|
3319
|
+
gaugeCircumference: Ba,
|
|
3320
|
+
gaugeTransform: Ua,
|
|
3314
3321
|
gaugeActiveLength: g,
|
|
3315
3322
|
gaugeRemainingLength: _,
|
|
3316
3323
|
gaugeRemainingStart: v,
|
|
@@ -3319,31 +3326,31 @@ var Ea = /*#__PURE__*/ W(Ca, [["render", Ta]]), Da = 46, Oa = 8, Q = 2 * Math.PI
|
|
|
3319
3326
|
blurFilterId: r
|
|
3320
3327
|
};
|
|
3321
3328
|
}
|
|
3322
|
-
}),
|
|
3329
|
+
}), Ya = { class: "uz-circle" }, Xa = {
|
|
3323
3330
|
key: 0,
|
|
3324
3331
|
viewBox: "0 0 120 120",
|
|
3325
3332
|
"aria-hidden": "true"
|
|
3326
|
-
},
|
|
3333
|
+
}, Za = ["id"], Qa = ["stop-color"], $a = ["stop-color"], eo = ["id"], to = [
|
|
3327
3334
|
"r",
|
|
3328
3335
|
"stroke-width",
|
|
3329
3336
|
"stroke-dasharray",
|
|
3330
3337
|
"stroke-dashoffset",
|
|
3331
3338
|
"filter",
|
|
3332
3339
|
"stroke"
|
|
3333
|
-
],
|
|
3340
|
+
], no = [
|
|
3334
3341
|
"d",
|
|
3335
3342
|
"fill",
|
|
3336
3343
|
"filter"
|
|
3337
|
-
],
|
|
3344
|
+
], ro = {
|
|
3338
3345
|
class: "uz-circle__unit",
|
|
3339
3346
|
x: "60",
|
|
3340
3347
|
y: "82",
|
|
3341
3348
|
"text-anchor": "middle"
|
|
3342
|
-
},
|
|
3349
|
+
}, io = {
|
|
3343
3350
|
key: 1,
|
|
3344
3351
|
viewBox: "0 0 120 120",
|
|
3345
3352
|
"aria-hidden": "true"
|
|
3346
|
-
},
|
|
3353
|
+
}, ao = ["id"], oo = ["stop-color"], so = ["stop-color"], co = ["id"], lo = [
|
|
3347
3354
|
"cy",
|
|
3348
3355
|
"r",
|
|
3349
3356
|
"stroke-width",
|
|
@@ -3351,19 +3358,19 @@ var Ea = /*#__PURE__*/ W(Ca, [["render", Ta]]), Da = 46, Oa = 8, Q = 2 * Math.PI
|
|
|
3351
3358
|
"transform",
|
|
3352
3359
|
"filter",
|
|
3353
3360
|
"stroke"
|
|
3354
|
-
],
|
|
3361
|
+
], uo = [
|
|
3355
3362
|
"d",
|
|
3356
3363
|
"fill",
|
|
3357
3364
|
"filter"
|
|
3358
|
-
],
|
|
3365
|
+
], fo = {
|
|
3359
3366
|
class: "uz-circle__unit uz-circle__unit--gauge",
|
|
3360
3367
|
x: "60",
|
|
3361
3368
|
y: "90",
|
|
3362
3369
|
"text-anchor": "middle"
|
|
3363
3370
|
};
|
|
3364
|
-
function
|
|
3371
|
+
function po(e, t, n, r, s, c) {
|
|
3365
3372
|
let l = O("UzNumberFlow");
|
|
3366
|
-
return S(), a("div",
|
|
3373
|
+
return S(), a("div", Ya, [e.mode === 0 ? (S(), a("svg", Xa, [
|
|
3367
3374
|
o("defs", null, [o("linearGradient", {
|
|
3368
3375
|
id: `uz-progress-grad-${e.uniqueId}`,
|
|
3369
3376
|
x1: "1",
|
|
@@ -3373,10 +3380,10 @@ function co(e, t, n, r, s, c) {
|
|
|
3373
3380
|
}, [o("stop", {
|
|
3374
3381
|
offset: "0%",
|
|
3375
3382
|
"stop-color": e.colorA
|
|
3376
|
-
}, null, 8,
|
|
3383
|
+
}, null, 8, Qa), o("stop", {
|
|
3377
3384
|
offset: "50%",
|
|
3378
3385
|
"stop-color": e.colorB
|
|
3379
|
-
}, null, 8,
|
|
3386
|
+
}, null, 8, $a)], 8, Za), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
|
|
3380
3387
|
o("feOffset", {
|
|
3381
3388
|
result: "offOut",
|
|
3382
3389
|
in: "SourceGraphic",
|
|
@@ -3393,7 +3400,7 @@ function co(e, t, n, r, s, c) {
|
|
|
3393
3400
|
in2: "blurOut",
|
|
3394
3401
|
mode: "normal"
|
|
3395
3402
|
}, null, -1)
|
|
3396
|
-
]], 8,
|
|
3403
|
+
]], 8, eo)]),
|
|
3397
3404
|
e.fullActiveLength > 0 ? (S(), a("circle", {
|
|
3398
3405
|
key: 0,
|
|
3399
3406
|
class: "uz-circle__progress",
|
|
@@ -3408,7 +3415,7 @@ function co(e, t, n, r, s, c) {
|
|
|
3408
3415
|
transform: "rotate(-90 60 60)",
|
|
3409
3416
|
filter: `url(#${e.blurFilterId})`,
|
|
3410
3417
|
stroke: `url(#uz-progress-grad-${e.uniqueId})`
|
|
3411
|
-
}, null, 8,
|
|
3418
|
+
}, null, 8, to)) : i("", !0),
|
|
3412
3419
|
e.fullRemainingPath ? (S(), a("path", {
|
|
3413
3420
|
key: 1,
|
|
3414
3421
|
class: "uz-circle__progress",
|
|
@@ -3416,9 +3423,9 @@ function co(e, t, n, r, s, c) {
|
|
|
3416
3423
|
fill: e.color,
|
|
3417
3424
|
"fill-opacity": "0.1",
|
|
3418
3425
|
filter: `url(#${e.blurFilterId})`
|
|
3419
|
-
}, null, 8,
|
|
3420
|
-
o("text",
|
|
3421
|
-
])) : (S(), a("svg",
|
|
3426
|
+
}, null, 8, no)) : i("", !0),
|
|
3427
|
+
o("text", ro, A(e.circleUnit), 1)
|
|
3428
|
+
])) : (S(), a("svg", io, [
|
|
3422
3429
|
o("defs", null, [o("linearGradient", {
|
|
3423
3430
|
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
3424
3431
|
x1: "1",
|
|
@@ -3428,10 +3435,10 @@ function co(e, t, n, r, s, c) {
|
|
|
3428
3435
|
}, [o("stop", {
|
|
3429
3436
|
offset: "0%",
|
|
3430
3437
|
"stop-color": e.colorA
|
|
3431
|
-
}, null, 8,
|
|
3438
|
+
}, null, 8, oo), o("stop", {
|
|
3432
3439
|
offset: "50%",
|
|
3433
3440
|
"stop-color": e.colorB
|
|
3434
|
-
}, null, 8,
|
|
3441
|
+
}, null, 8, so)], 8, ao), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
|
|
3435
3442
|
o("feOffset", {
|
|
3436
3443
|
result: "offOut",
|
|
3437
3444
|
in: "SourceGraphic",
|
|
@@ -3448,7 +3455,7 @@ function co(e, t, n, r, s, c) {
|
|
|
3448
3455
|
in2: "blurOut",
|
|
3449
3456
|
mode: "normal"
|
|
3450
3457
|
}, null, -1)
|
|
3451
|
-
]], 8,
|
|
3458
|
+
]], 8, co)]),
|
|
3452
3459
|
e.gaugeActiveLength > 0 ? (S(), a("circle", {
|
|
3453
3460
|
key: 0,
|
|
3454
3461
|
class: "uz-circle__progress",
|
|
@@ -3462,7 +3469,7 @@ function co(e, t, n, r, s, c) {
|
|
|
3462
3469
|
transform: e.gaugeTransform,
|
|
3463
3470
|
filter: `url(#${e.blurFilterId})`,
|
|
3464
3471
|
stroke: `url(#uz-progress-grad-1-${e.uniqueId})`
|
|
3465
|
-
}, null, 8,
|
|
3472
|
+
}, null, 8, lo)) : i("", !0),
|
|
3466
3473
|
e.gaugeRemainingPath ? (S(), a("path", {
|
|
3467
3474
|
key: 1,
|
|
3468
3475
|
class: "uz-circle__progress",
|
|
@@ -3470,11 +3477,11 @@ function co(e, t, n, r, s, c) {
|
|
|
3470
3477
|
fill: e.color,
|
|
3471
3478
|
"fill-opacity": "0.1",
|
|
3472
3479
|
filter: `url(#${e.blurFilterId})`
|
|
3473
|
-
}, null, 8,
|
|
3474
|
-
o("text",
|
|
3480
|
+
}, null, 8, uo)) : i("", !0),
|
|
3481
|
+
o("text", fo, A(e.circleUnit), 1)
|
|
3475
3482
|
])), 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
3483
|
}
|
|
3477
|
-
var
|
|
3484
|
+
var mo = /*#__PURE__*/ W(Ja, [["render", po]]), ho = f({
|
|
3478
3485
|
name: "UzCamera",
|
|
3479
3486
|
components: {
|
|
3480
3487
|
NButton: R,
|
|
@@ -3566,11 +3573,11 @@ var lo = /*#__PURE__*/ W(Wa, [["render", co]]), uo = f({
|
|
|
3566
3573
|
closeAll: d
|
|
3567
3574
|
};
|
|
3568
3575
|
}
|
|
3569
|
-
}),
|
|
3576
|
+
}), go = ["width", "height"], _o = ["width", "height"], vo = { class: "uz-scan-video" }, yo = {
|
|
3570
3577
|
ref: "videoRef",
|
|
3571
3578
|
playsInline: ""
|
|
3572
3579
|
};
|
|
3573
|
-
function
|
|
3580
|
+
function bo(t, n, s, c, u, d) {
|
|
3574
3581
|
let f = O("NButton"), p = O("NModal");
|
|
3575
3582
|
return S(), a(e, null, [
|
|
3576
3583
|
t.mode === "button" ? (S(), r(f, {
|
|
@@ -3602,7 +3609,7 @@ function go(t, n, s, c, u, d) {
|
|
|
3602
3609
|
id: "uz-scan-canvas",
|
|
3603
3610
|
width: t.width,
|
|
3604
3611
|
height: t.height
|
|
3605
|
-
}, null, 8,
|
|
3612
|
+
}, null, 8, go)], 4)]),
|
|
3606
3613
|
_: 1
|
|
3607
3614
|
}, 8, [
|
|
3608
3615
|
"show",
|
|
@@ -3620,11 +3627,11 @@ function go(t, n, s, c, u, d) {
|
|
|
3620
3627
|
id: "uz-scan-canvas",
|
|
3621
3628
|
width: t.width,
|
|
3622
3629
|
height: t.height
|
|
3623
|
-
}, null, 8,
|
|
3624
|
-
o("div",
|
|
3630
|
+
}, null, 8, _o)], 4)) : i("", !0),
|
|
3631
|
+
o("div", vo, [o("video", yo, null, 512)])
|
|
3625
3632
|
], 64);
|
|
3626
3633
|
}
|
|
3627
|
-
var
|
|
3634
|
+
var xo = /*#__PURE__*/ W(ho, [["render", bo]]), So = /* @__PURE__ */ new WeakMap(), Co = f({
|
|
3628
3635
|
name: "UzSearchBar",
|
|
3629
3636
|
components: {
|
|
3630
3637
|
NIcon: V,
|
|
@@ -3635,7 +3642,7 @@ var _o = /*#__PURE__*/ W(uo, [["render", go]]), vo = /* @__PURE__ */ new WeakMap
|
|
|
3635
3642
|
NInputGroup: xe,
|
|
3636
3643
|
NInputGroupLabel: Se,
|
|
3637
3644
|
NPopover: De,
|
|
3638
|
-
UzFormItem:
|
|
3645
|
+
UzFormItem: Zi
|
|
3639
3646
|
},
|
|
3640
3647
|
props: {
|
|
3641
3648
|
data: {
|
|
@@ -3673,10 +3680,10 @@ var _o = /*#__PURE__*/ W(uo, [["render", go]]), vo = /* @__PURE__ */ new WeakMap
|
|
|
3673
3680
|
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
3681
|
}
|
|
3675
3682
|
});
|
|
3676
|
-
n.observe(e),
|
|
3683
|
+
n.observe(e), So.set(e, n);
|
|
3677
3684
|
},
|
|
3678
3685
|
unmounted: (e) => {
|
|
3679
|
-
|
|
3686
|
+
So.get(e)?.disconnect(), So.delete(e);
|
|
3680
3687
|
}
|
|
3681
3688
|
} },
|
|
3682
3689
|
emits: ["update:loading", "on-update:value"],
|
|
@@ -3791,24 +3798,24 @@ var _o = /*#__PURE__*/ W(uo, [["render", go]]), vo = /* @__PURE__ */ new WeakMap
|
|
|
3791
3798
|
tabButtonType: b
|
|
3792
3799
|
};
|
|
3793
3800
|
}
|
|
3794
|
-
}),
|
|
3801
|
+
}), wo = { class: "uz-flex uz-justify-between uz-gap-2" }, To = {
|
|
3795
3802
|
key: 0,
|
|
3796
3803
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-2 uz-w-full"
|
|
3797
|
-
},
|
|
3804
|
+
}, Eo = { key: 0 }, Do = { class: "uz-flex-1" }, Oo = {
|
|
3798
3805
|
key: 1,
|
|
3799
3806
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
3800
|
-
},
|
|
3807
|
+
}, ko = {
|
|
3801
3808
|
key: 0,
|
|
3802
3809
|
class: "uz-search-fields-collapse"
|
|
3803
3810
|
};
|
|
3804
|
-
function
|
|
3811
|
+
function Ao(n, s, c, d, f, p) {
|
|
3805
3812
|
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
3813
|
return S(), a("div", {
|
|
3807
3814
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
3808
3815
|
onKeyup: s[1] ||= I((e) => n.doSearch(!1), ["enter"])
|
|
3809
|
-
}, [o("div",
|
|
3816
|
+
}, [o("div", wo, [n.enableHeader ? (S(), a("div", To, [
|
|
3810
3817
|
D(n.$slots, "header"),
|
|
3811
|
-
n.tabList && n.tabList.length > 0 ? (S(), a("div",
|
|
3818
|
+
n.tabList && n.tabList.length > 0 ? (S(), a("div", Eo, [u(h, null, {
|
|
3812
3819
|
default: P(() => [(S(!0), a(e, null, E(n.tabList, (e) => (S(), r(m, {
|
|
3813
3820
|
key: e.value,
|
|
3814
3821
|
type: n.tabButtonType(e),
|
|
@@ -3820,7 +3827,7 @@ function Eo(n, s, c, d, f, p) {
|
|
|
3820
3827
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
3821
3828
|
_: 1
|
|
3822
3829
|
})])) : i("", !0),
|
|
3823
|
-
F((S(), a("div",
|
|
3830
|
+
F((S(), a("div", Do, [u(C, {
|
|
3824
3831
|
"x-gap": "8",
|
|
3825
3832
|
"y-gap": "8",
|
|
3826
3833
|
cols: n.cols,
|
|
@@ -3857,7 +3864,7 @@ function Eo(n, s, c, d, f, p) {
|
|
|
3857
3864
|
}, 1032, ["span"]))), 128)) : i("", !0)]),
|
|
3858
3865
|
_: 1
|
|
3859
3866
|
}, 8, ["cols"])])), [[ee]])
|
|
3860
|
-
])) : i("", !0), n.enableHeader ? (S(), a("div",
|
|
3867
|
+
])) : i("", !0), n.enableHeader ? (S(), a("div", Oo, [
|
|
3861
3868
|
n.more ? (S(), r(m, {
|
|
3862
3869
|
key: 0,
|
|
3863
3870
|
secondary: "",
|
|
@@ -3907,7 +3914,7 @@ function Eo(n, s, c, d, f, p) {
|
|
|
3907
3914
|
})) : i("", !0),
|
|
3908
3915
|
D(n.$slots, "action")
|
|
3909
3916
|
])) : i("", !0)]), u(t, { name: "uz-search-fields" }, {
|
|
3910
|
-
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div",
|
|
3917
|
+
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div", ko, [u(C, {
|
|
3911
3918
|
"x-gap": "8",
|
|
3912
3919
|
"y-gap": "8",
|
|
3913
3920
|
cols: 4
|
|
@@ -3942,7 +3949,7 @@ function Eo(n, s, c, d, f, p) {
|
|
|
3942
3949
|
_: 1
|
|
3943
3950
|
})], 32);
|
|
3944
3951
|
}
|
|
3945
|
-
var
|
|
3952
|
+
var jo = /*#__PURE__*/ W(Co, [["render", Ao]]), Mo = f({
|
|
3946
3953
|
name: "UzSearchMobileBar",
|
|
3947
3954
|
components: {
|
|
3948
3955
|
NIcon: V,
|
|
@@ -3953,7 +3960,7 @@ var Do = /*#__PURE__*/ W(yo, [["render", Eo]]), Oo = f({
|
|
|
3953
3960
|
NGridItem: _e,
|
|
3954
3961
|
NInputGroup: xe,
|
|
3955
3962
|
NInputGroupLabel: Se,
|
|
3956
|
-
UzFormItem:
|
|
3963
|
+
UzFormItem: Zi
|
|
3957
3964
|
},
|
|
3958
3965
|
props: {
|
|
3959
3966
|
data: {
|
|
@@ -4031,10 +4038,10 @@ var Do = /*#__PURE__*/ W(yo, [["render", Eo]]), Oo = f({
|
|
|
4031
4038
|
clearAll: l
|
|
4032
4039
|
};
|
|
4033
4040
|
}
|
|
4034
|
-
}),
|
|
4035
|
-
function
|
|
4041
|
+
}), 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" };
|
|
4042
|
+
function Io(t, n, s, c, d, f) {
|
|
4036
4043
|
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",
|
|
4044
|
+
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
4045
|
key: 0,
|
|
4039
4046
|
secondary: "",
|
|
4040
4047
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
@@ -4059,7 +4066,7 @@ function Mo(t, n, s, c, d, f) {
|
|
|
4059
4066
|
title: "查询",
|
|
4060
4067
|
closable: ""
|
|
4061
4068
|
}, {
|
|
4062
|
-
footer: P(() => [o("div",
|
|
4069
|
+
footer: P(() => [o("div", Fo, [u(h, {
|
|
4063
4070
|
secondary: "",
|
|
4064
4071
|
loading: t.loading,
|
|
4065
4072
|
onClick: t.clearAll,
|
|
@@ -4114,7 +4121,7 @@ function Mo(t, n, s, c, d, f) {
|
|
|
4114
4121
|
_: 1
|
|
4115
4122
|
}, 8, ["show"])], 64);
|
|
4116
4123
|
}
|
|
4117
|
-
var
|
|
4124
|
+
var Lo = /*#__PURE__*/ W(Mo, [["render", Io]]), Ro = /(?<=\[)(.+?)(?=\])/g, zo = {
|
|
4118
4125
|
index: 1,
|
|
4119
4126
|
selection: 0,
|
|
4120
4127
|
pagination: 1,
|
|
@@ -4132,10 +4139,10 @@ var No = /*#__PURE__*/ W(Oo, [["render", Mo]]), Po = /(?<=\[)(.+?)(?=\])/g, Fo =
|
|
|
4132
4139
|
placement: "right",
|
|
4133
4140
|
summary: ""
|
|
4134
4141
|
};
|
|
4135
|
-
function
|
|
4142
|
+
function Bo(e) {
|
|
4136
4143
|
return Function("return " + e)();
|
|
4137
4144
|
}
|
|
4138
|
-
var
|
|
4145
|
+
var Vo = () => new Promise((e) => {
|
|
4139
4146
|
let t = window.localStorage.getItem("city");
|
|
4140
4147
|
if (t) e(JSON.parse(t));
|
|
4141
4148
|
else {
|
|
@@ -4148,12 +4155,12 @@ var Lo = () => new Promise((e) => {
|
|
|
4148
4155
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
4149
4156
|
}, 500);
|
|
4150
4157
|
}
|
|
4151
|
-
}),
|
|
4158
|
+
}), Ho = async (e, t, n) => {
|
|
4152
4159
|
if (t && typeof t == "string") {
|
|
4153
|
-
let r = t.match(
|
|
4160
|
+
let r = t.match(Ro);
|
|
4154
4161
|
if (r && t.indexOf("return") === -1) {
|
|
4155
4162
|
let t = r[0].split(":");
|
|
4156
|
-
if (t[0] === "date") return (t) =>
|
|
4163
|
+
if (t[0] === "date") return (t) => hr(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
4157
4164
|
if (t[0] === "city") return (t) => t[`${e}Str`];
|
|
4158
4165
|
if (t[0] === "modules" && n && Object.keys(n).length > 0) {
|
|
4159
4166
|
let e = r[0].replace("modules:", ""), t = Object.keys(n).find((t) => t.includes(e));
|
|
@@ -4171,7 +4178,7 @@ var Lo = () => new Promise((e) => {
|
|
|
4171
4178
|
}
|
|
4172
4179
|
}
|
|
4173
4180
|
return t && typeof t == "function" ? (e, n) => t(e, n, p) : "";
|
|
4174
|
-
},
|
|
4181
|
+
}, Uo = (e, t, n) => {
|
|
4175
4182
|
let r = t.map((t) => {
|
|
4176
4183
|
let r = [], i = t.id;
|
|
4177
4184
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -4184,35 +4191,35 @@ var Lo = () => new Promise((e) => {
|
|
|
4184
4191
|
};
|
|
4185
4192
|
});
|
|
4186
4193
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
4187
|
-
},
|
|
4188
|
-
function
|
|
4189
|
-
|
|
4194
|
+
}, Wo = /* @__PURE__ */ new Map();
|
|
4195
|
+
function Go() {
|
|
4196
|
+
Wo.clear();
|
|
4190
4197
|
}
|
|
4191
|
-
async function
|
|
4198
|
+
async function Ko(e, t = !1) {
|
|
4192
4199
|
let n = e.split("."), r = !1;
|
|
4193
|
-
return n.length > 1 && (
|
|
4200
|
+
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
4201
|
sourceData: r,
|
|
4195
4202
|
n
|
|
4196
4203
|
};
|
|
4197
4204
|
}
|
|
4198
|
-
async function
|
|
4205
|
+
async function qo(e) {
|
|
4199
4206
|
return new Promise((t, n) => {
|
|
4200
4207
|
let r = Y(`dynamicTable_${e}`, !1);
|
|
4201
|
-
r &&
|
|
4208
|
+
r && Wo.has(`dynamicTable_${e}`) ? t(r) : xi(e, r ? r.createTime : null).then((n) => {
|
|
4202
4209
|
if (n) {
|
|
4203
4210
|
let r = {
|
|
4204
4211
|
createTime: n.createTime,
|
|
4205
4212
|
tableTitle: n.tableTitle,
|
|
4206
4213
|
viewJson: n.viewJson
|
|
4207
4214
|
};
|
|
4208
|
-
J(`dynamicTable_${e}`, r, 0),
|
|
4209
|
-
} else
|
|
4215
|
+
J(`dynamicTable_${e}`, r, 0), Wo.set(`dynamicTable_${e}`, !0), dr("tables_"), t(n);
|
|
4216
|
+
} else Wo.set(`dynamicTable_${e}`, !0), t(r);
|
|
4210
4217
|
}).catch(() => {
|
|
4211
4218
|
n();
|
|
4212
4219
|
});
|
|
4213
4220
|
});
|
|
4214
4221
|
}
|
|
4215
|
-
var
|
|
4222
|
+
var Jo = (e) => e.map((e) => {
|
|
4216
4223
|
let t = {};
|
|
4217
4224
|
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
4225
|
i: e.input,
|
|
@@ -4287,7 +4294,7 @@ var Wo = (e) => e.map((e) => {
|
|
|
4287
4294
|
p: { s: +!!e.form.expand.show }
|
|
4288
4295
|
}
|
|
4289
4296
|
};
|
|
4290
|
-
}),
|
|
4297
|
+
}), Yo = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
4291
4298
|
let t = {};
|
|
4292
4299
|
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
4300
|
input: e.i,
|
|
@@ -4362,12 +4369,12 @@ var Wo = (e) => e.map((e) => {
|
|
|
4362
4369
|
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
4363
4370
|
}
|
|
4364
4371
|
};
|
|
4365
|
-
}),
|
|
4372
|
+
}), Xo = (e) => ({
|
|
4366
4373
|
f: e.fetch,
|
|
4367
4374
|
n: e.fetchFn,
|
|
4368
4375
|
o: e.when_drawer_open,
|
|
4369
4376
|
b: e.when_before_save
|
|
4370
|
-
}),
|
|
4377
|
+
}), Zo = (e) => e ? e.fetch ? e : {
|
|
4371
4378
|
fetch: e.f,
|
|
4372
4379
|
fetchFn: e.n,
|
|
4373
4380
|
when_drawer_open: e.o,
|
|
@@ -4377,7 +4384,7 @@ var Wo = (e) => e.map((e) => {
|
|
|
4377
4384
|
fetchFn: "",
|
|
4378
4385
|
when_drawer_open: "",
|
|
4379
4386
|
when_before_save: ""
|
|
4380
|
-
},
|
|
4387
|
+
}, Qo = (e) => ({
|
|
4381
4388
|
i: e.index,
|
|
4382
4389
|
s: e.selection,
|
|
4383
4390
|
p: e.pagination,
|
|
@@ -4393,7 +4400,7 @@ var Wo = (e) => e.map((e) => {
|
|
|
4393
4400
|
h: e.drawerHeight,
|
|
4394
4401
|
l: e.placement,
|
|
4395
4402
|
r: e.summary
|
|
4396
|
-
}),
|
|
4403
|
+
}), $o = (e) => {
|
|
4397
4404
|
let t = {};
|
|
4398
4405
|
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
4406
|
index: e.i,
|
|
@@ -4411,9 +4418,9 @@ var Wo = (e) => e.map((e) => {
|
|
|
4411
4418
|
drawerHeight: e.h,
|
|
4412
4419
|
placement: e.l,
|
|
4413
4420
|
summary: e.r
|
|
4414
|
-
}), Object.assign({},
|
|
4421
|
+
}), Object.assign({}, zo, U(t));
|
|
4415
4422
|
};
|
|
4416
|
-
function
|
|
4423
|
+
function es(e, t, n, r) {
|
|
4417
4424
|
return new Promise(async (i, a) => {
|
|
4418
4425
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
|
|
4419
4426
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -4448,21 +4455,21 @@ function Xo(e, t, n, r) {
|
|
|
4448
4455
|
disabled: !0
|
|
4449
4456
|
}];
|
|
4450
4457
|
if (e.params.immediately || r) {
|
|
4451
|
-
let { sourceData: t, n: r } = await
|
|
4458
|
+
let { sourceData: t, n: r } = await Ko(e.source);
|
|
4452
4459
|
if (t && Array.isArray(t)) {
|
|
4453
4460
|
if (e.sourceFn) {
|
|
4454
4461
|
let r = e.sourceFn;
|
|
4455
4462
|
n = Function("sourceData", r)(t);
|
|
4456
|
-
} else n =
|
|
4463
|
+
} else n = Uo(e, t, r);
|
|
4457
4464
|
}
|
|
4458
4465
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
4459
|
-
let { sourceData: t, n } = await
|
|
4466
|
+
let { sourceData: t, n } = await Ko(e.source);
|
|
4460
4467
|
if (t && Array.isArray(t)) {
|
|
4461
4468
|
if (e.sourceFn) {
|
|
4462
4469
|
let n = e.sourceFn;
|
|
4463
4470
|
return Function("sourceData", n)(t);
|
|
4464
4471
|
}
|
|
4465
|
-
return
|
|
4472
|
+
return Uo(e, t, n);
|
|
4466
4473
|
}
|
|
4467
4474
|
};
|
|
4468
4475
|
if (e.params.options = n, e.form.backfill && t) {
|
|
@@ -4496,27 +4503,27 @@ function Xo(e, t, n, r) {
|
|
|
4496
4503
|
q(e);
|
|
4497
4504
|
}
|
|
4498
4505
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
4499
|
-
let t = await
|
|
4506
|
+
let t = await Vo();
|
|
4500
4507
|
e.params.options = t;
|
|
4501
4508
|
}
|
|
4502
4509
|
if (e.input === "subTable" && e.params.link) {
|
|
4503
|
-
let t = await
|
|
4510
|
+
let t = await qo(e.params.link).catch(() => {
|
|
4504
4511
|
a();
|
|
4505
4512
|
});
|
|
4506
4513
|
if (t) try {
|
|
4507
4514
|
let n = rt.parse(t.viewJson);
|
|
4508
|
-
n.suffix && (e._suffix =
|
|
4509
|
-
let r =
|
|
4515
|
+
n.suffix && (e._suffix = Wi(n.suffix));
|
|
4516
|
+
let r = Yo(n.table);
|
|
4510
4517
|
r.forEach((e) => {
|
|
4511
4518
|
e.table.sorter = !1;
|
|
4512
4519
|
});
|
|
4513
4520
|
let i = r.filter((e) => e.input === "subTable");
|
|
4514
4521
|
if (i) for await (let e of i) {
|
|
4515
|
-
let t = await
|
|
4522
|
+
let t = await qo(e.params.link).catch(() => {
|
|
4516
4523
|
a();
|
|
4517
4524
|
});
|
|
4518
4525
|
if (t) try {
|
|
4519
|
-
let n = rt.parse(t.viewJson), r =
|
|
4526
|
+
let n = rt.parse(t.viewJson), r = Yo(n.table);
|
|
4520
4527
|
r.forEach((e) => {
|
|
4521
4528
|
e.table.sorter = !1;
|
|
4522
4529
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -4550,7 +4557,7 @@ function Xo(e, t, n, r) {
|
|
|
4550
4557
|
});
|
|
4551
4558
|
});
|
|
4552
4559
|
}
|
|
4553
|
-
async function
|
|
4560
|
+
async function ts(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
4554
4561
|
let s = 0, c = [], l = [], u = {
|
|
4555
4562
|
key: "",
|
|
4556
4563
|
link: "",
|
|
@@ -4565,25 +4572,25 @@ async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4565
4572
|
for await (let [e, s] of m.entries()) {
|
|
4566
4573
|
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
|
|
4567
4574
|
if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
4568
|
-
let { sourceData: t, n } = await
|
|
4575
|
+
let { sourceData: t, n } = await Ko(s.source, a && e === 0);
|
|
4569
4576
|
if (t && Array.isArray(t)) {
|
|
4570
4577
|
if (s.sourceFn) {
|
|
4571
4578
|
let e = s.sourceFn, n = Function("sourceData", e);
|
|
4572
4579
|
s.params.options = n(t);
|
|
4573
|
-
} else s.params.options =
|
|
4580
|
+
} else s.params.options = Uo(s, t, n);
|
|
4574
4581
|
}
|
|
4575
4582
|
} else s.params.options = [{
|
|
4576
4583
|
label: "加载中......",
|
|
4577
4584
|
value: "loading",
|
|
4578
4585
|
disabled: !0
|
|
4579
4586
|
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4580
|
-
let { sourceData: e, n: t } = await
|
|
4587
|
+
let { sourceData: e, n: t } = await Ko(s.source);
|
|
4581
4588
|
if (e && Array.isArray(e)) {
|
|
4582
4589
|
if (s.sourceFn) {
|
|
4583
4590
|
let t = s.sourceFn;
|
|
4584
4591
|
return Function("sourceData", t)(e);
|
|
4585
4592
|
}
|
|
4586
|
-
return
|
|
4593
|
+
return Uo(s, e, t);
|
|
4587
4594
|
}
|
|
4588
4595
|
};
|
|
4589
4596
|
}
|
|
@@ -4591,7 +4598,7 @@ async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4591
4598
|
let t = s.params.options.find((t) => t.value === e[s.key]);
|
|
4592
4599
|
if (t) return t.label;
|
|
4593
4600
|
}), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
|
|
4594
|
-
return p(
|
|
4601
|
+
return p(ga, { value: e[s.key] }, { default: () => null });
|
|
4595
4602
|
});
|
|
4596
4603
|
let f = {
|
|
4597
4604
|
input: s.input,
|
|
@@ -4606,7 +4613,7 @@ async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4606
4613
|
tooltip: !0,
|
|
4607
4614
|
"line-clamp": s.table.clamp ?? 0
|
|
4608
4615
|
} : !1,
|
|
4609
|
-
render: s.table.render ? await
|
|
4616
|
+
render: s.table.render ? await Ho(s.key, s.table.render, i) : void 0,
|
|
4610
4617
|
show: K.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
4611
4618
|
pin: !!s.table.fixed,
|
|
4612
4619
|
fixTemp: s.table.fixed
|
|
@@ -4628,7 +4635,7 @@ async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4628
4635
|
...s.form.rule,
|
|
4629
4636
|
index: t
|
|
4630
4637
|
} : void 0
|
|
4631
|
-
}, { default: () => p(
|
|
4638
|
+
}, { default: () => p(Zi, {
|
|
4632
4639
|
item: s,
|
|
4633
4640
|
formValue: e,
|
|
4634
4641
|
status: n,
|
|
@@ -4641,34 +4648,34 @@ async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4641
4648
|
if (s.search.title && (s.label = s.search.title), s.search.source) {
|
|
4642
4649
|
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
4650
|
else if (s.params.immediately || s.search.defaultValue) {
|
|
4644
|
-
let { sourceData: e, n: t } = await
|
|
4651
|
+
let { sourceData: e, n: t } = await Ko(s.search.source);
|
|
4645
4652
|
if (e && Array.isArray(e)) {
|
|
4646
4653
|
if (s.sourceFn) {
|
|
4647
4654
|
let t = s.sourceFn, n = Function("sourceData", t);
|
|
4648
4655
|
s.params.options = n(e);
|
|
4649
|
-
} else s.params.options =
|
|
4656
|
+
} else s.params.options = Uo(s, e, t);
|
|
4650
4657
|
}
|
|
4651
4658
|
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4652
|
-
let { sourceData: e, n: t } = await
|
|
4659
|
+
let { sourceData: e, n: t } = await Ko(s.search.source);
|
|
4653
4660
|
if (e && Array.isArray(e)) {
|
|
4654
4661
|
if (s.sourceFn) {
|
|
4655
4662
|
let t = s.sourceFn;
|
|
4656
4663
|
return Function("sourceData", t)(e);
|
|
4657
4664
|
}
|
|
4658
|
-
return
|
|
4665
|
+
return Uo(s, e, t);
|
|
4659
4666
|
}
|
|
4660
4667
|
};
|
|
4661
4668
|
}
|
|
4662
|
-
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue =
|
|
4669
|
+
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = Bo(s.search.defaultValue))), s.search.show) {
|
|
4663
4670
|
let e = U(s);
|
|
4664
4671
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
4665
|
-
let { sourceData: t, n } = await
|
|
4672
|
+
let { sourceData: t, n } = await Ko(e.source || e.search.source);
|
|
4666
4673
|
if (t && Array.isArray(t)) {
|
|
4667
4674
|
if (e.sourceFn) {
|
|
4668
4675
|
let n = e.sourceFn;
|
|
4669
4676
|
return Function("sourceData", n)(t);
|
|
4670
4677
|
}
|
|
4671
|
-
return
|
|
4678
|
+
return Uo(e, t, n);
|
|
4672
4679
|
}
|
|
4673
4680
|
}), c.push({
|
|
4674
4681
|
input: e.input,
|
|
@@ -4722,7 +4729,7 @@ async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4722
4729
|
}
|
|
4723
4730
|
//#endregion
|
|
4724
4731
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
4725
|
-
var
|
|
4732
|
+
var ns = f({
|
|
4726
4733
|
name: "UzSpin",
|
|
4727
4734
|
components: {
|
|
4728
4735
|
NButton: R,
|
|
@@ -4768,7 +4775,7 @@ var Qo = f({
|
|
|
4768
4775
|
});
|
|
4769
4776
|
//#endregion
|
|
4770
4777
|
//#region components/spin/index.vue
|
|
4771
|
-
function
|
|
4778
|
+
function rs(e, t, n, i, a, s) {
|
|
4772
4779
|
let c = O("NEllipsis"), d = O("NButton"), f = O("NSpin");
|
|
4773
4780
|
return S(), r(f, { show: e.value }, {
|
|
4774
4781
|
description: P(() => [
|
|
@@ -4796,7 +4803,7 @@ function $o(e, t, n, i, a, s) {
|
|
|
4796
4803
|
_: 3
|
|
4797
4804
|
}, 8, ["show"]);
|
|
4798
4805
|
}
|
|
4799
|
-
var
|
|
4806
|
+
var is = /*#__PURE__*/ W(ns, [["render", rs]]), as = f({
|
|
4800
4807
|
name: "UzTableExpand",
|
|
4801
4808
|
components: {
|
|
4802
4809
|
NDataTable: se,
|
|
@@ -4822,8 +4829,8 @@ var es = /*#__PURE__*/ W(Qo, [["render", $o]]), ts = f({
|
|
|
4822
4829
|
} catch (e) {
|
|
4823
4830
|
q(e);
|
|
4824
4831
|
}
|
|
4825
|
-
|
|
4826
|
-
let { tableColumns: r } = await
|
|
4832
|
+
qo(e.data.link).then(async (e) => {
|
|
4833
|
+
let { tableColumns: r } = await ts(Yo(rt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
|
|
4827
4834
|
...e,
|
|
4828
4835
|
sorter: !1,
|
|
4829
4836
|
resizable: !1
|
|
@@ -4844,7 +4851,7 @@ var es = /*#__PURE__*/ W(Qo, [["render", $o]]), ts = f({
|
|
|
4844
4851
|
});
|
|
4845
4852
|
//#endregion
|
|
4846
4853
|
//#region components/table/components/expand.vue
|
|
4847
|
-
function
|
|
4854
|
+
function os(e, t, n, i, a, o) {
|
|
4848
4855
|
let s = O("NDataTable");
|
|
4849
4856
|
return S(), r(s, {
|
|
4850
4857
|
columns: e.columns,
|
|
@@ -4863,18 +4870,18 @@ function ns(e, t, n, i, a, o) {
|
|
|
4863
4870
|
"scroll-x"
|
|
4864
4871
|
]);
|
|
4865
4872
|
}
|
|
4866
|
-
var
|
|
4873
|
+
var ss = /*#__PURE__*/ W(as, [["render", os]]), cs = f({
|
|
4867
4874
|
components: { NSkeleton: je },
|
|
4868
4875
|
setup() {
|
|
4869
4876
|
return {};
|
|
4870
4877
|
}
|
|
4871
|
-
}),
|
|
4872
|
-
function
|
|
4878
|
+
}), 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" };
|
|
4879
|
+
function fs(e, t, n, r, i, s) {
|
|
4873
4880
|
let c = O("NSkeleton");
|
|
4874
|
-
return S(), a("div",
|
|
4881
|
+
return S(), a("div", ls, [o("div", us, [u(c, {
|
|
4875
4882
|
width: 120,
|
|
4876
4883
|
size: "medium"
|
|
4877
|
-
}), o("div",
|
|
4884
|
+
}), o("div", ds, [
|
|
4878
4885
|
u(c, {
|
|
4879
4886
|
width: 180,
|
|
4880
4887
|
size: "medium"
|
|
@@ -4907,7 +4914,7 @@ function cs(e, t, n, r, i, s) {
|
|
|
4907
4914
|
}
|
|
4908
4915
|
//#endregion
|
|
4909
4916
|
//#region components/table/index.vue?vue&type=script&lang.ts
|
|
4910
|
-
var
|
|
4917
|
+
var ps = f({
|
|
4911
4918
|
name: "UzTable",
|
|
4912
4919
|
components: {
|
|
4913
4920
|
NDataTable: se,
|
|
@@ -4917,9 +4924,9 @@ var ls = f({
|
|
|
4917
4924
|
NCheckbox: ie,
|
|
4918
4925
|
NSpin: Ne,
|
|
4919
4926
|
VueDraggable: nt,
|
|
4920
|
-
UzSpin:
|
|
4921
|
-
TableExpand:
|
|
4922
|
-
SkeletonLoading: /* @__PURE__ */ W(
|
|
4927
|
+
UzSpin: is,
|
|
4928
|
+
TableExpand: ss,
|
|
4929
|
+
SkeletonLoading: /* @__PURE__ */ W(cs, [["render", fs]])
|
|
4923
4930
|
},
|
|
4924
4931
|
props: {
|
|
4925
4932
|
id: {
|
|
@@ -5059,7 +5066,7 @@ var ls = f({
|
|
|
5059
5066
|
fetchFn: "",
|
|
5060
5067
|
when_drawer_open: "",
|
|
5061
5068
|
when_before_save: ""
|
|
5062
|
-
}), L = T(
|
|
5069
|
+
}), L = T($o()), ne = T(""), re = T(!1), ie = T([]), z = T([]), ae = m("modules"), oe = (e) => e.id, se = (e, n) => {
|
|
5063
5070
|
t("update:rowKeys", {
|
|
5064
5071
|
keys: e,
|
|
5065
5072
|
rows: U(n)
|
|
@@ -5093,7 +5100,7 @@ var ls = f({
|
|
|
5093
5100
|
else if (I.value.fetchFn) {
|
|
5094
5101
|
let e = I.value.fetchFn;
|
|
5095
5102
|
r = Function("POST", "queryData", e)(Z, { ...t });
|
|
5096
|
-
} else r =
|
|
5103
|
+
} else r = Si({
|
|
5097
5104
|
...t,
|
|
5098
5105
|
tableId: n
|
|
5099
5106
|
});
|
|
@@ -5107,7 +5114,7 @@ var ls = f({
|
|
|
5107
5114
|
else if (I.value.fetchFn) {
|
|
5108
5115
|
let e = I.value.fetchFn;
|
|
5109
5116
|
r = Function("POST", "queryData", e)(Z, { id: t.id });
|
|
5110
|
-
} else r =
|
|
5117
|
+
} else r = Si({
|
|
5111
5118
|
id: t.id,
|
|
5112
5119
|
tableId: n
|
|
5113
5120
|
});
|
|
@@ -5116,24 +5123,24 @@ var ls = f({
|
|
|
5116
5123
|
let r = e.id || o.params.id;
|
|
5117
5124
|
e.enableLoading && (_.value = !0, t("update:loading", !0));
|
|
5118
5125
|
let i = U(k.value);
|
|
5119
|
-
n && delete i.orderby, I.value.fetch ?
|
|
5120
|
-
let n =
|
|
5126
|
+
n && delete i.orderby, I.value.fetch ? Di([I.value.fetch], "", i).then((e) => {
|
|
5127
|
+
let n = mr(e);
|
|
5121
5128
|
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
5129
|
}).catch(() => {
|
|
5123
5130
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5124
5131
|
}) : de(i).then((e) => {
|
|
5125
|
-
let n =
|
|
5132
|
+
let n = mr(e);
|
|
5126
5133
|
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
5134
|
}).catch(() => {
|
|
5128
5135
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5129
5136
|
});
|
|
5130
5137
|
}, pe = (e) => {
|
|
5131
|
-
k.value.query.page = e, u.value && (u.value.scrollTop = 0),
|
|
5138
|
+
k.value.query.page = e, u.value && (u.value.scrollTop = 0), pr(), B();
|
|
5132
5139
|
}, me = () => {
|
|
5133
5140
|
let e = k.value.query.page + 1;
|
|
5134
5141
|
e > k.value.query.pageMax && (e = 1), k.value.query.page = e, u.value && (u.value.scrollTop = 0), B();
|
|
5135
5142
|
}, he = (e) => {
|
|
5136
|
-
k.value.query.pageSize = e, k.value.query.page = 1,
|
|
5143
|
+
k.value.query.pageSize = e, k.value.query.page = 1, pr(), B();
|
|
5137
5144
|
}, ge = (e) => {
|
|
5138
5145
|
e && e.order ? k.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete k.value.orderby, B();
|
|
5139
5146
|
}, _e = () => {
|
|
@@ -5157,7 +5164,7 @@ var ls = f({
|
|
|
5157
5164
|
show: !0,
|
|
5158
5165
|
ellipsis: !1,
|
|
5159
5166
|
width: 180,
|
|
5160
|
-
render: (e) => [p("div", {}, { default: () => e.createBy }), p("div", {}, { default: () =>
|
|
5167
|
+
render: (e) => [p("div", {}, { default: () => e.createBy }), p("div", {}, { default: () => hr(e.createTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5161
5168
|
}, {
|
|
5162
5169
|
title: "更新人/时间",
|
|
5163
5170
|
key: "updateTime",
|
|
@@ -5166,9 +5173,9 @@ var ls = f({
|
|
|
5166
5173
|
show: !0,
|
|
5167
5174
|
ellipsis: !0,
|
|
5168
5175
|
width: 180,
|
|
5169
|
-
render: (e) => [p("div", {}, { default: () => e.updateBy }), p("div", {}, { default: () =>
|
|
5176
|
+
render: (e) => [p("div", {}, { default: () => e.updateBy }), p("div", {}, { default: () => hr(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5170
5177
|
}], 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
|
|
5178
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await es(N.value, e, () => f.value?.getFormValues());
|
|
5172
5179
|
return x.value = t, {
|
|
5173
5180
|
form: t,
|
|
5174
5181
|
fillingDefaultValue: n,
|
|
@@ -5257,7 +5264,7 @@ var ls = f({
|
|
|
5257
5264
|
...n,
|
|
5258
5265
|
tableId: a,
|
|
5259
5266
|
sub_table_ids: r
|
|
5260
|
-
}) :
|
|
5267
|
+
}) : wi({
|
|
5261
5268
|
...n,
|
|
5262
5269
|
tableId: a,
|
|
5263
5270
|
sub_table_ids: r
|
|
@@ -5275,7 +5282,7 @@ var ls = f({
|
|
|
5275
5282
|
});
|
|
5276
5283
|
};
|
|
5277
5284
|
} else if (n.type !== "group" && n.action === "disabledInside") n.onClick = (t) => {
|
|
5278
|
-
|
|
5285
|
+
Ci({
|
|
5279
5286
|
tableId: e.id || o.params.id,
|
|
5280
5287
|
...t,
|
|
5281
5288
|
is_disabled: "1"
|
|
@@ -5284,7 +5291,7 @@ var ls = f({
|
|
|
5284
5291
|
}).catch(() => null);
|
|
5285
5292
|
};
|
|
5286
5293
|
else if (n.type !== "group" && n.action === "enabledInside") n.onClick = (t) => {
|
|
5287
|
-
|
|
5294
|
+
Ci({
|
|
5288
5295
|
tableId: e.id || o.params.id,
|
|
5289
5296
|
...t,
|
|
5290
5297
|
is_disabled: "0"
|
|
@@ -5297,7 +5304,7 @@ var ls = f({
|
|
|
5297
5304
|
n.onClick = (t) => {
|
|
5298
5305
|
fe(t).then((t) => {
|
|
5299
5306
|
let r = t && t[0];
|
|
5300
|
-
|
|
5307
|
+
Di([n.action], r.id, r).then((t) => {
|
|
5301
5308
|
if (e && typeof e == "string") {
|
|
5302
5309
|
try {
|
|
5303
5310
|
Function("rowData", "res", e)(r, t).then((e) => {
|
|
@@ -5336,8 +5343,8 @@ var ls = f({
|
|
|
5336
5343
|
};
|
|
5337
5344
|
}
|
|
5338
5345
|
}, Te = async () => {
|
|
5339
|
-
re.value = !1,
|
|
5340
|
-
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await
|
|
5346
|
+
re.value = !1, Go();
|
|
5347
|
+
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await ts(N.value, e.child, 0, () => ({}), ae);
|
|
5341
5348
|
!l.value && L.value.index && n.unshift({
|
|
5342
5349
|
title: "#",
|
|
5343
5350
|
key: "index",
|
|
@@ -5379,7 +5386,7 @@ var ls = f({
|
|
|
5379
5386
|
hide: !0,
|
|
5380
5387
|
width: Number(typeof L.value.actionWidth == "string" ? L.value.actionWidth.replace("px", "") : L.value.actionWidth),
|
|
5381
5388
|
render(t) {
|
|
5382
|
-
return
|
|
5389
|
+
return Ii({
|
|
5383
5390
|
buttons: e,
|
|
5384
5391
|
rowData: t,
|
|
5385
5392
|
callback: B,
|
|
@@ -5393,8 +5400,8 @@ var ls = f({
|
|
|
5393
5400
|
if (c) {
|
|
5394
5401
|
let e = Y(`tables_filter_${c}`, !1);
|
|
5395
5402
|
if (e) try {
|
|
5396
|
-
let t = await
|
|
5397
|
-
t && (e = JSON.parse(t), u =
|
|
5403
|
+
let t = await Ti(c);
|
|
5404
|
+
t && (e = JSON.parse(t), u = Cr(n, e));
|
|
5398
5405
|
} catch {}
|
|
5399
5406
|
}
|
|
5400
5407
|
a.link && u.unshift({
|
|
@@ -5406,7 +5413,7 @@ var ls = f({
|
|
|
5406
5413
|
filter: "default",
|
|
5407
5414
|
filterOptionValue: null,
|
|
5408
5415
|
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(
|
|
5416
|
+
renderExpand: (e) => p(ss, {
|
|
5410
5417
|
data: a,
|
|
5411
5418
|
value: e
|
|
5412
5419
|
})
|
|
@@ -5427,12 +5434,12 @@ var ls = f({
|
|
|
5427
5434
|
let e = 0;
|
|
5428
5435
|
S.value.forEach((t) => {
|
|
5429
5436
|
t.show && (e += Number(t.width || 140));
|
|
5430
|
-
}), D.value = e, J(`tables_filter_${n}`, t.filter((e) => e.key)),
|
|
5437
|
+
}), D.value = e, J(`tables_filter_${n}`, t.filter((e) => e.key)), Ei({
|
|
5431
5438
|
table_id: n,
|
|
5432
5439
|
data: JSON.stringify(t)
|
|
5433
5440
|
}).catch(() => null);
|
|
5434
5441
|
}
|
|
5435
|
-
}, { run: ke } =
|
|
5442
|
+
}, { run: ke } = xa(Oe), { run: Ae } = xa((e, t) => {
|
|
5436
5443
|
let n = [];
|
|
5437
5444
|
S.value.forEach((r) => {
|
|
5438
5445
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -5459,7 +5466,7 @@ var ls = f({
|
|
|
5459
5466
|
i = e.formFetch ? e.formFetch({
|
|
5460
5467
|
tableId: a,
|
|
5461
5468
|
...t
|
|
5462
|
-
}) :
|
|
5469
|
+
}) : Ci({
|
|
5463
5470
|
tableId: a,
|
|
5464
5471
|
...t
|
|
5465
5472
|
}), i.then(() => {
|
|
@@ -5473,14 +5480,14 @@ var ls = f({
|
|
|
5473
5480
|
fetchFn: "",
|
|
5474
5481
|
when_drawer_open: "",
|
|
5475
5482
|
when_before_save: ""
|
|
5476
|
-
}, L.value =
|
|
5483
|
+
}, L.value = $o();
|
|
5477
5484
|
}, Pe = (t) => {
|
|
5478
5485
|
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 &&
|
|
5486
|
+
y.value = t.tableTitle, N.value = Yo(n.table), P.value = Wi(e.actions || n.action);
|
|
5487
|
+
let r = Wi(n.suffix || []);
|
|
5488
|
+
F.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value = Zo(n.trigger);
|
|
5489
|
+
let i = $o(e.options ?? n.option);
|
|
5490
|
+
t.tableTitle && i.title && gr(t.tableTitle), L.value = i;
|
|
5484
5491
|
}, Fe = async () => {
|
|
5485
5492
|
v.value = !1, Ne();
|
|
5486
5493
|
let t = e.id || o.params.id;
|
|
@@ -5497,7 +5504,7 @@ var ls = f({
|
|
|
5497
5504
|
ne.value = s("Notice.network"), re.value = !0;
|
|
5498
5505
|
return;
|
|
5499
5506
|
}
|
|
5500
|
-
De(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], L.value =
|
|
5507
|
+
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
5508
|
Pe(e), await Te();
|
|
5502
5509
|
}).catch((e) => {
|
|
5503
5510
|
ne.value = e?.message || s("Notice.network"), re.value = !0;
|
|
@@ -5538,7 +5545,7 @@ var ls = f({
|
|
|
5538
5545
|
if (_.value) return;
|
|
5539
5546
|
_.value = !0;
|
|
5540
5547
|
let t = e.id || o.params.id;
|
|
5541
|
-
t && (
|
|
5548
|
+
t && (ur(`tables_filter_${t}`), Ei({
|
|
5542
5549
|
table_id: t,
|
|
5543
5550
|
data: null
|
|
5544
5551
|
}).catch(() => null).finally(() => {
|
|
@@ -5565,7 +5572,7 @@ var ls = f({
|
|
|
5565
5572
|
}), M(() => e.height, () => {
|
|
5566
5573
|
De();
|
|
5567
5574
|
}), M([() => o.params.id, () => e.id], async () => {
|
|
5568
|
-
|
|
5575
|
+
pr(), await Fe();
|
|
5569
5576
|
}), M(() => e.defaultCheckedRowKeys, (e) => {
|
|
5570
5577
|
let t = e || [], n = z.value.filter((e) => t.includes(e.id));
|
|
5571
5578
|
ie.value = t, z.value = n;
|
|
@@ -5616,14 +5623,14 @@ var ls = f({
|
|
|
5616
5623
|
}
|
|
5617
5624
|
};
|
|
5618
5625
|
}
|
|
5619
|
-
}),
|
|
5626
|
+
}), ms = { class: "uz-com-title" }, hs = {
|
|
5620
5627
|
ref: "mRef",
|
|
5621
5628
|
class: "uz-table-m-content"
|
|
5622
|
-
},
|
|
5629
|
+
}, gs = {
|
|
5623
5630
|
key: 1,
|
|
5624
5631
|
class: "uz-transform-fade-in"
|
|
5625
|
-
},
|
|
5626
|
-
function
|
|
5632
|
+
}, _s = { class: "uz-com-title" }, vs = ["data-index"];
|
|
5633
|
+
function ys(t, n, c, d, f, p) {
|
|
5627
5634
|
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
5635
|
return S(), a("div", {
|
|
5629
5636
|
class: "uz-table",
|
|
@@ -5688,7 +5695,7 @@ function hs(t, n, c, d, f, p) {
|
|
|
5688
5695
|
key: "0"
|
|
5689
5696
|
} : {
|
|
5690
5697
|
name: "header",
|
|
5691
|
-
fn: P(() => [o("div",
|
|
5698
|
+
fn: P(() => [o("div", ms, A(t.title), 1)]),
|
|
5692
5699
|
key: "1"
|
|
5693
5700
|
}]), 1032, [
|
|
5694
5701
|
"data",
|
|
@@ -5696,7 +5703,7 @@ function hs(t, n, c, d, f, p) {
|
|
|
5696
5703
|
"cache",
|
|
5697
5704
|
"loading",
|
|
5698
5705
|
"onOnUpdate:value"
|
|
5699
|
-
]), o("div",
|
|
5706
|
+
]), o("div", hs, [u(C, {
|
|
5700
5707
|
tableColumns: t.tableCols,
|
|
5701
5708
|
tableData: t.tableData,
|
|
5702
5709
|
tableQueries: t.tableQueries,
|
|
@@ -5714,7 +5721,7 @@ function hs(t, n, c, d, f, p) {
|
|
|
5714
5721
|
"minH",
|
|
5715
5722
|
"maxH",
|
|
5716
5723
|
"onUpdate:rowKeys"
|
|
5717
|
-
])], 512)], 2)) : (S(), a("div",
|
|
5724
|
+
])], 512)], 2)) : (S(), a("div", gs, [u(te, {
|
|
5718
5725
|
data: t.searchData,
|
|
5719
5726
|
id: t.id || t.route.params.id,
|
|
5720
5727
|
cache: t.tableOption.cache,
|
|
@@ -5769,7 +5776,7 @@ function hs(t, n, c, d, f, p) {
|
|
|
5769
5776
|
_: 1
|
|
5770
5777
|
})]),
|
|
5771
5778
|
_: 1
|
|
5772
|
-
})], 8,
|
|
5779
|
+
})], 8, vs)), [[j, !e.hide]])), 128)), u(h, {
|
|
5773
5780
|
block: "",
|
|
5774
5781
|
tertiary: "",
|
|
5775
5782
|
loading: t.loading,
|
|
@@ -5823,7 +5830,7 @@ function hs(t, n, c, d, f, p) {
|
|
|
5823
5830
|
key: "0"
|
|
5824
5831
|
} : {
|
|
5825
5832
|
name: "header",
|
|
5826
|
-
fn: P(() => [o("div",
|
|
5833
|
+
fn: P(() => [o("div", _s, A(t.title), 1)]),
|
|
5827
5834
|
key: "1"
|
|
5828
5835
|
}]), 1032, [
|
|
5829
5836
|
"data",
|
|
@@ -5884,10 +5891,10 @@ function hs(t, n, c, d, f, p) {
|
|
|
5884
5891
|
u(I, { ref: "drawerRef" }, null, 512)
|
|
5885
5892
|
], 4);
|
|
5886
5893
|
}
|
|
5887
|
-
var
|
|
5894
|
+
var bs = /*#__PURE__*/ W(ps, [["render", ys]]), xs = f({
|
|
5888
5895
|
name: "UzTableChild",
|
|
5889
5896
|
components: {
|
|
5890
|
-
UzIcon:
|
|
5897
|
+
UzIcon: Bn,
|
|
5891
5898
|
NSpin: Ne,
|
|
5892
5899
|
NButton: R,
|
|
5893
5900
|
NIcon: V,
|
|
@@ -5913,7 +5920,7 @@ var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
|
5913
5920
|
emits: ["update:value"],
|
|
5914
5921
|
setup(e, { emit: t, expose: r }) {
|
|
5915
5922
|
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
|
|
5923
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await es(U(n ?? e.item.params.columns), t, void 0, !0);
|
|
5917
5924
|
return S.value = r, i;
|
|
5918
5925
|
}, D = async (t) => {
|
|
5919
5926
|
if (h.value) return;
|
|
@@ -5944,7 +5951,7 @@ var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
|
5944
5951
|
});
|
|
5945
5952
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
5946
5953
|
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
5947
|
-
let { tableColumns: r, tableWidth: i } = await
|
|
5954
|
+
let { tableColumns: r, tableWidth: i } = await ts(U(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
|
|
5948
5955
|
r.unshift({
|
|
5949
5956
|
title: " ",
|
|
5950
5957
|
key: "index",
|
|
@@ -5963,7 +5970,7 @@ var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
|
5963
5970
|
hide: !0,
|
|
5964
5971
|
show: !0,
|
|
5965
5972
|
render() {
|
|
5966
|
-
return p("div", { class: "flex justify-center" }, p(V, {}, { default: () => p(
|
|
5973
|
+
return p("div", { class: "flex justify-center" }, p(V, {}, { default: () => p(Bn, { icon: "Add" }) }));
|
|
5967
5974
|
}
|
|
5968
5975
|
}), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
|
|
5969
5976
|
title: () => l("Common.action"),
|
|
@@ -5977,7 +5984,7 @@ var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
|
5977
5984
|
width: 60,
|
|
5978
5985
|
render(t, n) {
|
|
5979
5986
|
let r = [];
|
|
5980
|
-
return e.item.params.childActions && e.item.params.actions &&
|
|
5987
|
+
return e.item.params.childActions && e.item.params.actions && Wi(e.item.params.actions).forEach((e) => {
|
|
5981
5988
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
5982
5989
|
}), 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
5990
|
type: "normal",
|
|
@@ -5989,7 +5996,7 @@ var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
|
5989
5996
|
let n = e.item.params.deleteFn;
|
|
5990
5997
|
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
|
|
5991
5998
|
}
|
|
5992
|
-
}),
|
|
5999
|
+
}), Ii({
|
|
5993
6000
|
buttons: r,
|
|
5994
6001
|
rowData: t
|
|
5995
6002
|
});
|
|
@@ -6120,14 +6127,14 @@ var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
|
6120
6127
|
}
|
|
6121
6128
|
};
|
|
6122
6129
|
}
|
|
6123
|
-
}),
|
|
6130
|
+
}), Ss = { class: "uz-flex-1 uz-w-full" }, Cs = { class: "uz-flex uz-justify-between" }, ws = { class: "uz-com-title" }, Ts = {
|
|
6124
6131
|
key: 0,
|
|
6125
6132
|
class: "uz-table-asterisk"
|
|
6126
|
-
},
|
|
6127
|
-
function
|
|
6133
|
+
}, Es = { class: "uz-flex uz-gap-2" }, Ds = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
6134
|
+
function Os(t, n, c, d, f, p) {
|
|
6128
6135
|
let m = O("UzIcon"), h = O("NIcon"), g = O("NButton"), v = O("NDataTable"), y = O("NForm");
|
|
6129
|
-
return S(), a("div",
|
|
6130
|
-
o("div",
|
|
6136
|
+
return S(), a("div", Ss, [
|
|
6137
|
+
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
6138
|
t.status === 2 ? i("", !0) : (S(!0), a(e, { key: 0 }, E(t.suffixes, (e) => (S(), r(g, {
|
|
6132
6139
|
key: e.key,
|
|
6133
6140
|
type: e.color,
|
|
@@ -6200,7 +6207,7 @@ function ws(t, n, c, d, f, p) {
|
|
|
6200
6207
|
"scroll-x",
|
|
6201
6208
|
"class",
|
|
6202
6209
|
"row-class-name"
|
|
6203
|
-
])) : i("", !0), o("div",
|
|
6210
|
+
])) : 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
6211
|
key: 0,
|
|
6205
6212
|
type: "success",
|
|
6206
6213
|
secondary: "",
|
|
@@ -6229,7 +6236,7 @@ function ws(t, n, c, d, f, p) {
|
|
|
6229
6236
|
}, 8, ["model"])
|
|
6230
6237
|
]);
|
|
6231
6238
|
}
|
|
6232
|
-
var
|
|
6239
|
+
var ks = /*#__PURE__*/ W(xs, [["render", Os]]), As = f({
|
|
6233
6240
|
name: "UzTableQuestChild",
|
|
6234
6241
|
components: { NDataTable: se },
|
|
6235
6242
|
props: {
|
|
@@ -6257,7 +6264,7 @@ var Ts = /*#__PURE__*/ W(_s, [["render", ws]]), Es = f({
|
|
|
6257
6264
|
}), o.value = t, i.value = !1;
|
|
6258
6265
|
}
|
|
6259
6266
|
}, l = async (i) => {
|
|
6260
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
6267
|
+
let { tableColumns: c, tableWidth: l } = await ts(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
6261
6268
|
c.unshift({
|
|
6262
6269
|
title: " ",
|
|
6263
6270
|
key: "index",
|
|
@@ -6276,7 +6283,7 @@ var Ts = /*#__PURE__*/ W(_s, [["render", ws]]), Es = f({
|
|
|
6276
6283
|
hide: !0,
|
|
6277
6284
|
width: 60,
|
|
6278
6285
|
render(t) {
|
|
6279
|
-
return
|
|
6286
|
+
return Ii({ buttons: [{
|
|
6280
6287
|
type: "normal",
|
|
6281
6288
|
color: "primary",
|
|
6282
6289
|
key: "detail",
|
|
@@ -6297,7 +6304,7 @@ var Ts = /*#__PURE__*/ W(_s, [["render", ws]]), Es = f({
|
|
|
6297
6304
|
}), N(async () => {
|
|
6298
6305
|
try {
|
|
6299
6306
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
6300
|
-
let t = await
|
|
6307
|
+
let t = await Si({
|
|
6301
6308
|
tableId: e.item.params.link,
|
|
6302
6309
|
params: [{
|
|
6303
6310
|
key: e.item.params.searchKey,
|
|
@@ -6331,11 +6338,11 @@ var Ts = /*#__PURE__*/ W(_s, [["render", ws]]), Es = f({
|
|
|
6331
6338
|
tableScrollX: s
|
|
6332
6339
|
};
|
|
6333
6340
|
}
|
|
6334
|
-
}),
|
|
6335
|
-
function
|
|
6341
|
+
}), js = { class: "uz-flex-1 uz-w-full" }, Ms = { class: "uz-flex uz-justify-between" }, Ns = { class: "uz-com-title" };
|
|
6342
|
+
function Ps(e, t, n, r, i, s) {
|
|
6336
6343
|
let c = O("NDataTable"), l = O("UzTableDrawer");
|
|
6337
|
-
return S(), a("div",
|
|
6338
|
-
o("div",
|
|
6344
|
+
return S(), a("div", js, [
|
|
6345
|
+
o("div", Ms, [o("div", Ns, A(e.item.label), 1)]),
|
|
6339
6346
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
6340
6347
|
u(c, {
|
|
6341
6348
|
columns: e.columns,
|
|
@@ -6357,7 +6364,7 @@ function As(e, t, n, r, i, s) {
|
|
|
6357
6364
|
u(l, { ref: "drawerRef" }, null, 512)
|
|
6358
6365
|
]);
|
|
6359
6366
|
}
|
|
6360
|
-
var
|
|
6367
|
+
var Fs = /*#__PURE__*/ W(As, [["render", Ps]]), Is = f({
|
|
6361
6368
|
name: "UzTableDrawer",
|
|
6362
6369
|
components: {
|
|
6363
6370
|
NButton: R,
|
|
@@ -6398,7 +6405,7 @@ var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
|
6398
6405
|
}), b = T(!1), x = T(), S = () => {
|
|
6399
6406
|
a.value?.restoreValidation(), c.value = {}, p.value = !1, f.value = !1, u.value = !1, t("update:show", !1);
|
|
6400
6407
|
}, C = () => {
|
|
6401
|
-
s.value === 2 ? S() :
|
|
6408
|
+
s.value === 2 ? S() : lr.info({
|
|
6402
6409
|
title: "提示",
|
|
6403
6410
|
content: "关闭后修改的数据将不保留,确定关闭?",
|
|
6404
6411
|
positiveText: "确定",
|
|
@@ -6429,11 +6436,11 @@ var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
|
6429
6436
|
linkFn: t
|
|
6430
6437
|
};
|
|
6431
6438
|
let r = e.split(".")[0];
|
|
6432
|
-
|
|
6439
|
+
qo(r).then((e) => {
|
|
6433
6440
|
g(async () => {
|
|
6434
6441
|
let t = rt.parse(e.viewJson);
|
|
6435
|
-
d.value =
|
|
6436
|
-
let { form: i } = await
|
|
6442
|
+
d.value = $o(t.option), u.value = !0;
|
|
6443
|
+
let { form: i } = await es(Yo(t.table), n);
|
|
6437
6444
|
y.value = t.trigger, n && w(n);
|
|
6438
6445
|
let a = Y(`tables_cache_link_${r}`, !1);
|
|
6439
6446
|
a && (c.value = a), g(() => {
|
|
@@ -6482,7 +6489,7 @@ var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
|
6482
6489
|
}
|
|
6483
6490
|
if (x.value) {
|
|
6484
6491
|
x.value(e, () => {
|
|
6485
|
-
|
|
6492
|
+
ur(`tables_cache_${o.value}`), S();
|
|
6486
6493
|
}, (e) => {
|
|
6487
6494
|
_.value = 1, h.value = e;
|
|
6488
6495
|
});
|
|
@@ -6490,11 +6497,11 @@ var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
|
6490
6497
|
}
|
|
6491
6498
|
{
|
|
6492
6499
|
let n = l.value.link.split(".")[0];
|
|
6493
|
-
|
|
6500
|
+
Ci({
|
|
6494
6501
|
tableId: n,
|
|
6495
6502
|
...e
|
|
6496
6503
|
}).then(() => {
|
|
6497
|
-
|
|
6504
|
+
Go(), Si({ tableId: n }).then((e) => {
|
|
6498
6505
|
let r = l.value.link.split("."), i;
|
|
6499
6506
|
if (l.value.linkFn) {
|
|
6500
6507
|
let t = l.value.linkFn;
|
|
@@ -6505,7 +6512,7 @@ var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
|
6505
6512
|
disabled: e?.status === "0",
|
|
6506
6513
|
params: e
|
|
6507
6514
|
}));
|
|
6508
|
-
p.value = !1,
|
|
6515
|
+
p.value = !1, ur(`tables_cache_link_${n}`), t("on-submit", i), S();
|
|
6509
6516
|
}).catch((e) => {
|
|
6510
6517
|
_.value = 1, h.value = e;
|
|
6511
6518
|
});
|
|
@@ -6527,11 +6534,11 @@ var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
|
6527
6534
|
}
|
|
6528
6535
|
};
|
|
6529
6536
|
}
|
|
6530
|
-
}),
|
|
6537
|
+
}), Ls = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, Rs = {
|
|
6531
6538
|
key: 0,
|
|
6532
6539
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
6533
|
-
},
|
|
6534
|
-
function
|
|
6540
|
+
}, zs = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, Bs = { class: "uz-flex uz-gap-2" };
|
|
6541
|
+
function Vs(t, n, c, d, f, p) {
|
|
6535
6542
|
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
6543
|
return S(), a(e, null, [u(x, {
|
|
6537
6544
|
show: t.drawer,
|
|
@@ -6557,7 +6564,7 @@ function Ls(t, n, c, d, f, p) {
|
|
|
6557
6564
|
message: t.spinMsg,
|
|
6558
6565
|
status: t.spinStatus
|
|
6559
6566
|
}, {
|
|
6560
|
-
default: P(() => [o("div",
|
|
6567
|
+
default: P(() => [o("div", Ls, [t.skeletonShow ? (S(), a("div", Rs, [
|
|
6561
6568
|
u(m, {
|
|
6562
6569
|
size: "large",
|
|
6563
6570
|
style: { height: "156px" }
|
|
@@ -6620,7 +6627,7 @@ function Ls(t, n, c, d, f, p) {
|
|
|
6620
6627
|
_: 2
|
|
6621
6628
|
}, [t.formStatus === 2 ? void 0 : {
|
|
6622
6629
|
name: "footer",
|
|
6623
|
-
fn: P(() => [o("div",
|
|
6630
|
+
fn: P(() => [o("div", zs, [t.isMobile ? i("", !0) : (S(), r(v, {
|
|
6624
6631
|
key: 0,
|
|
6625
6632
|
loading: t.spinShow,
|
|
6626
6633
|
type: "success",
|
|
@@ -6629,7 +6636,7 @@ function Ls(t, n, c, d, f, p) {
|
|
|
6629
6636
|
}, {
|
|
6630
6637
|
default: P(() => [l(A(t.$t("OCR.ocr")), 1)]),
|
|
6631
6638
|
_: 1
|
|
6632
|
-
}, 8, ["loading"])), o("div",
|
|
6639
|
+
}, 8, ["loading"])), o("div", Bs, [
|
|
6633
6640
|
u(v, {
|
|
6634
6641
|
loading: t.spinShow,
|
|
6635
6642
|
class: "uz-drawer-button",
|
|
@@ -6697,7 +6704,7 @@ function Ls(t, n, c, d, f, p) {
|
|
|
6697
6704
|
_: 1
|
|
6698
6705
|
}, 8, ["show"])], 64);
|
|
6699
6706
|
}
|
|
6700
|
-
var
|
|
6707
|
+
var Hs = /*#__PURE__*/ W(Is, [["render", Vs]]), Us = f({
|
|
6701
6708
|
name: "UzTableMobileList",
|
|
6702
6709
|
props: {
|
|
6703
6710
|
tableData: {
|
|
@@ -6715,12 +6722,12 @@ var Rs = /*#__PURE__*/ W(Ms, [["render", Ls]]), zs = f({
|
|
|
6715
6722
|
},
|
|
6716
6723
|
emits: ["update:row-keys"],
|
|
6717
6724
|
setup() {}
|
|
6718
|
-
}),
|
|
6725
|
+
}), Ws = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Gs = {
|
|
6719
6726
|
key: 1,
|
|
6720
6727
|
class: "uz-table-mobile-group-txt"
|
|
6721
6728
|
};
|
|
6722
|
-
function
|
|
6723
|
-
return S(), a("div",
|
|
6729
|
+
function Ks(t, n, s, c, l, u) {
|
|
6730
|
+
return S(), a("div", Ws, [(S(!0), a(e, null, E(t.tableColumns, (n) => (S(), a("div", {
|
|
6724
6731
|
key: n.key,
|
|
6725
6732
|
class: _(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
|
|
6726
6733
|
style: v(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
|
|
@@ -6731,11 +6738,11 @@ function Hs(t, n, s, c, l, u) {
|
|
|
6731
6738
|
class: "mobile"
|
|
6732
6739
|
})) : 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
6740
|
if (t.tableData) return n.render(t.tableData, t.tableIndex);
|
|
6734
|
-
}), { key: 0 })) : (S(), a("div",
|
|
6741
|
+
}), { key: 0 })) : (S(), a("div", Gs, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
6735
6742
|
}
|
|
6736
6743
|
//#endregion
|
|
6737
6744
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
6738
|
-
var
|
|
6745
|
+
var qs = f({
|
|
6739
6746
|
name: "UzTableMobile",
|
|
6740
6747
|
components: {
|
|
6741
6748
|
NCheckbox: ie,
|
|
@@ -6743,7 +6750,7 @@ var Us = f({
|
|
|
6743
6750
|
NPagination: Te,
|
|
6744
6751
|
NCheckboxGroup: z,
|
|
6745
6752
|
NRadioGroup: ke,
|
|
6746
|
-
UzTableMobileList: /* @__PURE__ */ W(
|
|
6753
|
+
UzTableMobileList: /* @__PURE__ */ W(Us, [["render", Ks], ["__scopeId", "data-v-84c394fe"]])
|
|
6747
6754
|
},
|
|
6748
6755
|
props: {
|
|
6749
6756
|
tableData: {
|
|
@@ -6790,17 +6797,17 @@ var Us = f({
|
|
|
6790
6797
|
}
|
|
6791
6798
|
};
|
|
6792
6799
|
}
|
|
6793
|
-
}),
|
|
6800
|
+
}), Js = {
|
|
6794
6801
|
key: 0,
|
|
6795
6802
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6796
|
-
},
|
|
6803
|
+
}, Ys = {
|
|
6797
6804
|
key: 0,
|
|
6798
6805
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6799
|
-
},
|
|
6806
|
+
}, Xs = {
|
|
6800
6807
|
key: 0,
|
|
6801
6808
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6802
6809
|
};
|
|
6803
|
-
function
|
|
6810
|
+
function Zs(t, n, o, s, c, l) {
|
|
6804
6811
|
let d = O("UzTableMobileList"), f = O("NCheckbox"), p = O("NPagination"), m = O("NCheckboxGroup"), h = O("NRadio"), g = O("NRadioGroup");
|
|
6805
6812
|
return t.selection === 2 ? (S(), r(m, {
|
|
6806
6813
|
key: 0,
|
|
@@ -6827,7 +6834,7 @@ function qs(t, n, o, s, c, l) {
|
|
|
6827
6834
|
"tableColumns"
|
|
6828
6835
|
])]),
|
|
6829
6836
|
_: 2
|
|
6830
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
6837
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Js, [u(p, {
|
|
6831
6838
|
page: t.tableQueries.query.page,
|
|
6832
6839
|
"onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6833
6840
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6869,7 +6876,7 @@ function qs(t, n, o, s, c, l) {
|
|
|
6869
6876
|
"tableColumns"
|
|
6870
6877
|
])]),
|
|
6871
6878
|
_: 2
|
|
6872
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
6879
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Ys, [u(p, {
|
|
6873
6880
|
page: t.tableQueries.query.page,
|
|
6874
6881
|
"onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6875
6882
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6904,7 +6911,7 @@ function qs(t, n, o, s, c, l) {
|
|
|
6904
6911
|
"tableData",
|
|
6905
6912
|
"tableIndex",
|
|
6906
6913
|
"tableColumns"
|
|
6907
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
6914
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Xs, [u(p, {
|
|
6908
6915
|
page: t.tableQueries.query.page,
|
|
6909
6916
|
"onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6910
6917
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6917,10 +6924,10 @@ function qs(t, n, o, s, c, l) {
|
|
|
6917
6924
|
"onUpdate:page"
|
|
6918
6925
|
])])) : i("", !0)], 4));
|
|
6919
6926
|
}
|
|
6920
|
-
var
|
|
6927
|
+
var Qs = /*#__PURE__*/ W(qs, [["render", Zs], ["__scopeId", "data-v-70b54e3b"]]), $s = f({
|
|
6921
6928
|
name: "UzTableFile",
|
|
6922
6929
|
components: {
|
|
6923
|
-
UzIcon:
|
|
6930
|
+
UzIcon: Bn,
|
|
6924
6931
|
NDropdown: fe,
|
|
6925
6932
|
NButton: R,
|
|
6926
6933
|
NModal: we,
|
|
@@ -6946,11 +6953,11 @@ var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6946
6953
|
let { t: n } = Ze(), r = Je(), i = Ue(), a = T(!1), o = T(!1), s = T(), c = T(""), l = T([{
|
|
6947
6954
|
label: n("Common.import"),
|
|
6948
6955
|
key: "import",
|
|
6949
|
-
icon: () => p(V, null, { default: () => p(
|
|
6956
|
+
icon: () => p(V, null, { default: () => p(Bn, { icon: "CloudUpload" }) })
|
|
6950
6957
|
}, {
|
|
6951
6958
|
label: n("Common.export"),
|
|
6952
6959
|
key: "export",
|
|
6953
|
-
icon: () => p(V, null, { default: () => p(
|
|
6960
|
+
icon: () => p(V, null, { default: () => p(Bn, { icon: "CloudDownload" }) })
|
|
6954
6961
|
}]), u = T([
|
|
6955
6962
|
{
|
|
6956
6963
|
title: "文件名称",
|
|
@@ -6993,14 +7000,14 @@ var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6993
7000
|
}), m = () => {
|
|
6994
7001
|
s.value = null;
|
|
6995
7002
|
}, h = () => {
|
|
6996
|
-
o.value || (o.value = !0,
|
|
7003
|
+
o.value || (o.value = !0, Oi(r.params.id).then((t) => {
|
|
6997
7004
|
let n = document.createElement("a");
|
|
6998
7005
|
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
7006
|
}).catch(() => null).finally(() => {
|
|
7000
7007
|
o.value = !1;
|
|
7001
7008
|
}));
|
|
7002
7009
|
}, g = () => {
|
|
7003
|
-
o.value || (o.value = !0,
|
|
7010
|
+
o.value || (o.value = !0, bi("excel/import", s.value).then(() => {
|
|
7004
7011
|
i.success({
|
|
7005
7012
|
content: "导入执行中...",
|
|
7006
7013
|
duration: 3e3
|
|
@@ -7014,7 +7021,7 @@ var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7014
7021
|
o.value = !1, _();
|
|
7015
7022
|
}));
|
|
7016
7023
|
}, _ = () => {
|
|
7017
|
-
o.value || (o.value = !0,
|
|
7024
|
+
o.value || (o.value = !0, ki(r.params.id).then((e) => {
|
|
7018
7025
|
d.value = e;
|
|
7019
7026
|
}).catch(() => null).finally(() => {
|
|
7020
7027
|
o.value = !1;
|
|
@@ -7032,7 +7039,7 @@ var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7032
7039
|
return;
|
|
7033
7040
|
}
|
|
7034
7041
|
if (t === "export") {
|
|
7035
|
-
|
|
7042
|
+
lr.info({
|
|
7036
7043
|
title: "提示",
|
|
7037
7044
|
content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
|
|
7038
7045
|
positiveText: "确定",
|
|
@@ -7040,7 +7047,7 @@ var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7040
7047
|
draggable: !0,
|
|
7041
7048
|
onPositiveClick: () => {
|
|
7042
7049
|
let t = e.query ?? {};
|
|
7043
|
-
|
|
7050
|
+
Ai({
|
|
7044
7051
|
tableKey: r.params.id,
|
|
7045
7052
|
...t
|
|
7046
7053
|
}).then(() => {
|
|
@@ -7066,11 +7073,11 @@ var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7066
7073
|
}
|
|
7067
7074
|
};
|
|
7068
7075
|
}
|
|
7069
|
-
}),
|
|
7076
|
+
}), ec = { class: "uz-file-port-modal" }, tc = {
|
|
7070
7077
|
key: 1,
|
|
7071
7078
|
class: "uz-file-port-panel"
|
|
7072
|
-
},
|
|
7073
|
-
function
|
|
7079
|
+
}, nc = { class: "uz-flex uz-justify-between" };
|
|
7080
|
+
function rc(t, n, i, s, c, d) {
|
|
7074
7081
|
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
7082
|
return S(), a(e, null, [u(h, {
|
|
7076
7083
|
trigger: "hover",
|
|
@@ -7105,8 +7112,8 @@ function $s(t, n, i, s, c, d) {
|
|
|
7105
7112
|
default: P(() => [...n[1] ||= [l(" 下载模板 ", -1)]]),
|
|
7106
7113
|
_: 1
|
|
7107
7114
|
}, 8, ["onClick"])]),
|
|
7108
|
-
default: P(() => [o("div",
|
|
7109
|
-
t.rawFile ? (S(), a("div",
|
|
7115
|
+
default: P(() => [o("div", ec, [
|
|
7116
|
+
t.rawFile ? (S(), a("div", tc, [
|
|
7110
7117
|
n[5] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
7111
7118
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7112
7119
|
viewBox: "0 0 24 24",
|
|
@@ -7153,7 +7160,7 @@ function $s(t, n, i, s, c, d) {
|
|
|
7153
7160
|
}, [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
7161
|
_: 1
|
|
7155
7162
|
}, 8, ["on-before-upload"])),
|
|
7156
|
-
o("div",
|
|
7163
|
+
o("div", nc, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), u(m, {
|
|
7157
7164
|
onClick: t.init,
|
|
7158
7165
|
loading: t.loading,
|
|
7159
7166
|
secondary: ""
|
|
@@ -7176,7 +7183,7 @@ function $s(t, n, i, s, c, d) {
|
|
|
7176
7183
|
_: 1
|
|
7177
7184
|
}, 8, ["show", "on-after-leave"])], 64);
|
|
7178
7185
|
}
|
|
7179
|
-
var
|
|
7186
|
+
var ic = /*#__PURE__*/ W($s, [["render", rc], ["__scopeId", "data-v-21238151"]]), $ = w({
|
|
7180
7187
|
page: {
|
|
7181
7188
|
label: "首页",
|
|
7182
7189
|
key: "/",
|
|
@@ -7187,7 +7194,7 @@ var ec = /*#__PURE__*/ W(Ys, [["render", $s], ["__scopeId", "data-v-21238151"]])
|
|
|
7187
7194
|
active: "/",
|
|
7188
7195
|
thumbnail: []
|
|
7189
7196
|
});
|
|
7190
|
-
function
|
|
7197
|
+
function ac(e) {
|
|
7191
7198
|
$.cache = e.cache, $.page = {
|
|
7192
7199
|
label: e.label,
|
|
7193
7200
|
key: e.key,
|
|
@@ -7202,35 +7209,35 @@ function tc(e) {
|
|
|
7202
7209
|
closable: !1
|
|
7203
7210
|
}];
|
|
7204
7211
|
}
|
|
7205
|
-
function
|
|
7206
|
-
$.active = e,
|
|
7212
|
+
function oc(e) {
|
|
7213
|
+
$.active = e, G.push(e), J($.cache, $, 0);
|
|
7207
7214
|
}
|
|
7208
|
-
function
|
|
7215
|
+
function sc(e, t) {
|
|
7209
7216
|
let n = $.thumbnail.find((t) => t.key === e);
|
|
7210
7217
|
n && (n.key = t, $.active = t, J($.cache, $, 0));
|
|
7211
7218
|
}
|
|
7212
|
-
function
|
|
7219
|
+
function cc(e) {
|
|
7213
7220
|
let t = $.thumbnail.find((t) => t.path === e.key);
|
|
7214
|
-
t ? ($.active = t.key, J($.cache, $, 0),
|
|
7221
|
+
t ? ($.active = t.key, J($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
|
|
7215
7222
|
...e,
|
|
7216
7223
|
path: e.key,
|
|
7217
7224
|
closable: !0
|
|
7218
|
-
}),
|
|
7225
|
+
}), G.push(e.key));
|
|
7219
7226
|
}
|
|
7220
|
-
function
|
|
7227
|
+
function lc(e) {
|
|
7221
7228
|
let t = $.thumbnail.findIndex((t) => t.key === e);
|
|
7222
7229
|
if ($.thumbnail.splice(t, 1), $.active === e) {
|
|
7223
7230
|
let e = $.thumbnail[t - 1]?.key || "";
|
|
7224
|
-
$.active = e,
|
|
7231
|
+
$.active = e, G.push(e);
|
|
7225
7232
|
}
|
|
7226
7233
|
J($.cache, $, 0);
|
|
7227
7234
|
}
|
|
7228
|
-
function
|
|
7229
|
-
$.active = $.page.path, $.thumbnail = [$.page],
|
|
7235
|
+
function uc() {
|
|
7236
|
+
$.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), J($.cache, $, 0);
|
|
7230
7237
|
}
|
|
7231
7238
|
//#endregion
|
|
7232
7239
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
7233
|
-
var
|
|
7240
|
+
var dc = f({
|
|
7234
7241
|
name: "UzThumbnail",
|
|
7235
7242
|
components: {
|
|
7236
7243
|
NTabs: Ie,
|
|
@@ -7251,29 +7258,29 @@ var sc = f({
|
|
|
7251
7258
|
setup(e, { slots: t }) {
|
|
7252
7259
|
let n = T(!!t.prefix), r = Je();
|
|
7253
7260
|
return b(() => {
|
|
7254
|
-
|
|
7261
|
+
ac(e.option), $.active !== r.path && sc(r.path, r.fullPath);
|
|
7255
7262
|
}), M(() => r, (e) => {
|
|
7256
|
-
$.active === r.path &&
|
|
7263
|
+
$.active === r.path && sc(e.path, e.fullPath);
|
|
7257
7264
|
}, { deep: !0 }), M(() => e.option, (e) => {
|
|
7258
|
-
|
|
7265
|
+
ac(e);
|
|
7259
7266
|
}, { deep: !0 }), {
|
|
7260
7267
|
thumbnailStore: $,
|
|
7261
7268
|
isSlotPrefix: n,
|
|
7262
7269
|
handleClose: (e) => {
|
|
7263
|
-
|
|
7270
|
+
lc(e);
|
|
7264
7271
|
},
|
|
7265
7272
|
handleChange: (e) => {
|
|
7266
|
-
|
|
7273
|
+
oc(e);
|
|
7267
7274
|
},
|
|
7268
7275
|
handleClear: () => {
|
|
7269
|
-
|
|
7276
|
+
uc();
|
|
7270
7277
|
}
|
|
7271
7278
|
};
|
|
7272
7279
|
}
|
|
7273
7280
|
});
|
|
7274
7281
|
//#endregion
|
|
7275
7282
|
//#region components/thumbnail/index.vue
|
|
7276
|
-
function
|
|
7283
|
+
function fc(t, n, i, o, c, d) {
|
|
7277
7284
|
let f = O("NTabPane"), p = O("UzIcon"), m = O("NIcon"), h = O("NButton"), g = O("NPopconfirm"), _ = O("NFlex"), v = O("NTabs");
|
|
7278
7285
|
return S(), r(v, {
|
|
7279
7286
|
value: t.thumbnailStore.active,
|
|
@@ -7322,33 +7329,33 @@ function cc(t, n, i, o, c, d) {
|
|
|
7322
7329
|
"on-update:value"
|
|
7323
7330
|
]);
|
|
7324
7331
|
}
|
|
7325
|
-
var
|
|
7326
|
-
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover =
|
|
7327
|
-
var
|
|
7332
|
+
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";
|
|
7333
|
+
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";
|
|
7334
|
+
var wc = {
|
|
7328
7335
|
common: {
|
|
7329
7336
|
inputColor: "rgba(var(--input))",
|
|
7330
7337
|
borderColor: "rgba(var(--border), 0.7)",
|
|
7331
7338
|
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:
|
|
7339
|
+
primaryColor: mc,
|
|
7340
|
+
primaryColorHover: hc,
|
|
7341
|
+
primaryColorPressed: mc,
|
|
7342
|
+
primaryColorSuppl: mc,
|
|
7343
|
+
infoColor: gc,
|
|
7344
|
+
infoColorHover: _c,
|
|
7345
|
+
infoColorPressed: gc,
|
|
7346
|
+
infoColorSuppl: gc,
|
|
7347
|
+
successColor: vc,
|
|
7348
|
+
successColorHover: yc,
|
|
7349
|
+
successColorPressed: vc,
|
|
7350
|
+
successColorSuppl: vc,
|
|
7351
|
+
warningColor: bc,
|
|
7352
|
+
warningColorHover: xc,
|
|
7353
|
+
warningColorPressed: bc,
|
|
7354
|
+
warningColorSuppl: bc,
|
|
7355
|
+
errorColor: Sc,
|
|
7356
|
+
errorColorHover: Cc,
|
|
7357
|
+
errorColorPressed: Sc,
|
|
7358
|
+
errorColorSuppl: Sc,
|
|
7352
7359
|
cardColor: "#fff"
|
|
7353
7360
|
},
|
|
7354
7361
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -7362,7 +7369,7 @@ var bc = {
|
|
|
7362
7369
|
borderRadius: "8px",
|
|
7363
7370
|
color: "#c0c0c0"
|
|
7364
7371
|
}
|
|
7365
|
-
},
|
|
7372
|
+
}, Tc = H, Ec = f({
|
|
7366
7373
|
name: "UzWrap",
|
|
7367
7374
|
components: { NConfigProvider: oe },
|
|
7368
7375
|
setup() {
|
|
@@ -7370,14 +7377,14 @@ var bc = {
|
|
|
7370
7377
|
zhCN: We,
|
|
7371
7378
|
dateZhCN: He,
|
|
7372
7379
|
commonStore: K,
|
|
7373
|
-
lightTheme:
|
|
7374
|
-
darkTheme:
|
|
7380
|
+
lightTheme: wc,
|
|
7381
|
+
darkTheme: Tc
|
|
7375
7382
|
};
|
|
7376
7383
|
}
|
|
7377
7384
|
});
|
|
7378
7385
|
//#endregion
|
|
7379
7386
|
//#region components/wrap/index.vue
|
|
7380
|
-
function
|
|
7387
|
+
function Dc(e, t, n, i, a, o) {
|
|
7381
7388
|
let s = O("NConfigProvider");
|
|
7382
7389
|
return S(), r(s, {
|
|
7383
7390
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -7396,10 +7403,10 @@ function Cc(e, t, n, i, a, o) {
|
|
|
7396
7403
|
"date-locale"
|
|
7397
7404
|
]);
|
|
7398
7405
|
}
|
|
7399
|
-
var
|
|
7406
|
+
var Oc = /*#__PURE__*/ W(Ec, [["render", Dc]]);
|
|
7400
7407
|
//#endregion
|
|
7401
7408
|
//#region components/ocr/preprocess.ts
|
|
7402
|
-
function
|
|
7409
|
+
function kc(e) {
|
|
7403
7410
|
let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
|
|
7404
7411
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
7405
7412
|
let r = 0;
|
|
@@ -7414,7 +7421,7 @@ function Tc(e) {
|
|
|
7414
7421
|
}
|
|
7415
7422
|
return c;
|
|
7416
7423
|
}
|
|
7417
|
-
function
|
|
7424
|
+
function Ac(e, t) {
|
|
7418
7425
|
return new Promise((n, r) => {
|
|
7419
7426
|
let i = new Image();
|
|
7420
7427
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -7447,7 +7454,7 @@ function Ec(e, t) {
|
|
|
7447
7454
|
}
|
|
7448
7455
|
let u = t.threshold;
|
|
7449
7456
|
if (t.binarize) {
|
|
7450
|
-
t.autoThreshold && (u =
|
|
7457
|
+
t.autoThreshold && (u = kc(l));
|
|
7451
7458
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
7452
7459
|
let n = l[t] < u ? 0 : 255;
|
|
7453
7460
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -7470,7 +7477,7 @@ function Ec(e, t) {
|
|
|
7470
7477
|
}
|
|
7471
7478
|
//#endregion
|
|
7472
7479
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
7473
|
-
var
|
|
7480
|
+
var jc = f({
|
|
7474
7481
|
name: "UzOcr",
|
|
7475
7482
|
components: {
|
|
7476
7483
|
NButton: R,
|
|
@@ -7507,7 +7514,7 @@ var Dc = f({
|
|
|
7507
7514
|
tessedit_char_blacklist: "|"
|
|
7508
7515
|
}), a.value), v = async () => {
|
|
7509
7516
|
if (f.value) try {
|
|
7510
|
-
let e = await
|
|
7517
|
+
let e = await Ac(f.value, {
|
|
7511
7518
|
enabled: o.value,
|
|
7512
7519
|
scale: s.value,
|
|
7513
7520
|
grayscale: !0,
|
|
@@ -7544,7 +7551,7 @@ var Dc = f({
|
|
|
7544
7551
|
t.value = !0, r.value = e("OCR.analysis");
|
|
7545
7552
|
let a = n;
|
|
7546
7553
|
if (o.value || s.value > 1) try {
|
|
7547
|
-
let e = await
|
|
7554
|
+
let e = await Ac(n, {
|
|
7548
7555
|
enabled: o.value,
|
|
7549
7556
|
scale: s.value,
|
|
7550
7557
|
grayscale: !0,
|
|
@@ -7606,25 +7613,25 @@ var Dc = f({
|
|
|
7606
7613
|
t: e
|
|
7607
7614
|
};
|
|
7608
7615
|
}
|
|
7609
|
-
}),
|
|
7616
|
+
}), Mc = { class: "uz-ocr" }, Nc = { class: "uz-ocr-left-col" }, Pc = { class: "uz-ocr-upload-card" }, Fc = { class: "uz-ocr-upload-title" }, Ic = {
|
|
7610
7617
|
key: 1,
|
|
7611
7618
|
class: "uz-ocr-preview-panel"
|
|
7612
|
-
},
|
|
7619
|
+
}, Lc = { class: "uz-ocr-preview-box" }, Rc = ["src"], zc = {
|
|
7613
7620
|
key: 0,
|
|
7614
7621
|
class: "uz-ocr-threshold-badge"
|
|
7615
|
-
},
|
|
7622
|
+
}, 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
7623
|
key: 0,
|
|
7617
7624
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
7618
|
-
},
|
|
7625
|
+
}, 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
7626
|
key: 0,
|
|
7620
7627
|
class: "uz-ocr-empty-state"
|
|
7621
|
-
},
|
|
7628
|
+
}, el = { class: "uz-empty-text" }, tl = {
|
|
7622
7629
|
key: 1,
|
|
7623
7630
|
class: "uz-ocr-result-tabs"
|
|
7624
7631
|
};
|
|
7625
|
-
function
|
|
7632
|
+
function nl(e, t, n, s, c, d) {
|
|
7626
7633
|
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",
|
|
7634
|
+
return S(), a("div", Mc, [o("div", Nc, [e.rawImage ? (S(), a("div", Ic, [u(m, {
|
|
7628
7635
|
value: e.imagePreviewTab,
|
|
7629
7636
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
7630
7637
|
type: "segment",
|
|
@@ -7634,21 +7641,21 @@ function Qc(e, t, n, s, c, d) {
|
|
|
7634
7641
|
name: "processed",
|
|
7635
7642
|
tab: e.t("OCR.previewProcessed")
|
|
7636
7643
|
}, {
|
|
7637
|
-
default: P(() => [o("div",
|
|
7644
|
+
default: P(() => [o("div", Lc, [o("img", {
|
|
7638
7645
|
src: e.processedImage,
|
|
7639
7646
|
alt: "Processed Preview",
|
|
7640
7647
|
class: "uz-ocr-preview-img"
|
|
7641
|
-
}, null, 8,
|
|
7648
|
+
}, null, 8, Rc), e.preEnabled && e.preBinarize ? (S(), a("div", zc, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
|
|
7642
7649
|
_: 1
|
|
7643
7650
|
}, 8, ["tab"]), u(p, {
|
|
7644
7651
|
name: "raw",
|
|
7645
7652
|
tab: e.t("OCR.previewRaw")
|
|
7646
7653
|
}, {
|
|
7647
|
-
default: P(() => [o("div",
|
|
7654
|
+
default: P(() => [o("div", Bc, [o("img", {
|
|
7648
7655
|
src: e.rawImage,
|
|
7649
7656
|
alt: "Raw Preview",
|
|
7650
7657
|
class: "uz-ocr-preview-img"
|
|
7651
|
-
}, null, 8,
|
|
7658
|
+
}, null, 8, Vc)])]),
|
|
7652
7659
|
_: 1
|
|
7653
7660
|
}, 8, ["tab"])]),
|
|
7654
7661
|
_: 1
|
|
@@ -7682,7 +7689,7 @@ function Qc(e, t, n, s, c, d) {
|
|
|
7682
7689
|
"directory-dnd": "",
|
|
7683
7690
|
class: "uz-w-full"
|
|
7684
7691
|
}, {
|
|
7685
|
-
default: P(() => [o("div",
|
|
7692
|
+
default: P(() => [o("div", Pc, [
|
|
7686
7693
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
7687
7694
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7688
7695
|
viewBox: "0 0 24 24",
|
|
@@ -7690,79 +7697,79 @@ function Qc(e, t, n, s, c, d) {
|
|
|
7690
7697
|
height: "40",
|
|
7691
7698
|
fill: "currentColor"
|
|
7692
7699
|
}, [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",
|
|
7700
|
+
o("div", Fc, A(e.t("OCR.scan")), 1),
|
|
7694
7701
|
t[5] ||= o("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
7695
7702
|
])]),
|
|
7696
7703
|
_: 1
|
|
7697
|
-
}, 8, ["on-before-upload"])), o("div",
|
|
7704
|
+
}, 8, ["on-before-upload"])), o("div", Hc, [o("div", Uc, [o("span", Wc, A(e.t("OCR.preprocess")), 1), u(_, {
|
|
7698
7705
|
value: e.preEnabled,
|
|
7699
7706
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
7700
7707
|
size: "small"
|
|
7701
|
-
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div",
|
|
7708
|
+
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div", Gc, [o("div", Kc, [o("span", qc, A(e.t("OCR.scale")), 1), u(v, {
|
|
7702
7709
|
value: e.preScale,
|
|
7703
7710
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
7704
7711
|
options: e.scaleOptions,
|
|
7705
7712
|
size: "small",
|
|
7706
7713
|
class: "uz-settings-select"
|
|
7707
|
-
}, null, 8, ["value", "options"])]), o("div",
|
|
7714
|
+
}, null, 8, ["value", "options"])]), o("div", Jc, [o("span", Yc, A(e.t("OCR.contrast")), 1), u(_, {
|
|
7708
7715
|
value: e.preContrast,
|
|
7709
7716
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
7710
7717
|
size: "small"
|
|
7711
|
-
}, null, 8, ["value"])])])) : i("", !0)])]), o("div",
|
|
7718
|
+
}, 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
7719
|
}
|
|
7713
|
-
var
|
|
7714
|
-
IconList: () =>
|
|
7715
|
-
ReIconList: () =>
|
|
7720
|
+
var rl = /*#__PURE__*/ W(jc, [["render", nl], ["__scopeId", "data-v-c7224ff5"]]), il = /* @__PURE__ */ dt({
|
|
7721
|
+
IconList: () => Vn,
|
|
7722
|
+
ReIconList: () => zn,
|
|
7716
7723
|
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: () =>
|
|
7724
|
+
UzBack: () => qi,
|
|
7725
|
+
UzBom: () => Aa,
|
|
7726
|
+
UzCamera: () => xo,
|
|
7727
|
+
UzCircle: () => mo,
|
|
7728
|
+
UzDraggableForm: () => oa,
|
|
7729
|
+
UzForm: () => ta,
|
|
7730
|
+
UzFormItem: () => Zi,
|
|
7731
|
+
UzFormItemImage: () => ga,
|
|
7732
|
+
UzFormItemTimesPicker: () => ba,
|
|
7733
|
+
UzFormItemUpload: () => fa,
|
|
7734
|
+
UzIcon: () => Bn,
|
|
7735
|
+
UzOcr: () => rl,
|
|
7736
|
+
UzSearchBar: () => jo,
|
|
7737
|
+
UzSearchMobileBar: () => Lo,
|
|
7738
|
+
UzSpin: () => is,
|
|
7739
|
+
UzTable: () => bs,
|
|
7740
|
+
UzTableChild: () => ks,
|
|
7741
|
+
UzTableDrawer: () => Hs,
|
|
7742
|
+
UzTableFile: () => ic,
|
|
7743
|
+
UzTableMobile: () => Qs,
|
|
7744
|
+
UzTableQuestChild: () => Fs,
|
|
7745
|
+
UzThumbnail: () => pc,
|
|
7746
|
+
UzWrap: () => Oc,
|
|
7740
7747
|
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
|
-
|
|
7748
|
+
fnActionReduction: () => Wi,
|
|
7749
|
+
fnActionSimplify: () => Ui,
|
|
7750
|
+
fnAddThumbnail: () => cc,
|
|
7751
|
+
fnClearAllThumbnail: () => uc,
|
|
7752
|
+
fnDeleteThumbnail: () => lc,
|
|
7753
|
+
fnGetTableData: () => qo,
|
|
7754
|
+
fnOptionReduction: () => $o,
|
|
7755
|
+
fnOptionSimplify: () => Qo,
|
|
7756
|
+
fnPrepareFormData: () => es,
|
|
7757
|
+
fnPrepareTableData: () => ts,
|
|
7758
|
+
fnRenderAction: () => Ii,
|
|
7759
|
+
fnSetLang: () => Gn,
|
|
7760
|
+
fnSetTheme: () => Kn,
|
|
7761
|
+
fnSetThumbnail: () => oc,
|
|
7762
|
+
fnTableReduction: () => Yo,
|
|
7763
|
+
fnTableSimplify: () => Jo,
|
|
7764
|
+
fnTriggersReduction: () => Zo,
|
|
7765
|
+
fnTriggersSimplify: () => Xo,
|
|
7766
|
+
i18n: () => Un
|
|
7767
|
+
}), al = 3840, ol = 2160, sl = w({ scale: 1 });
|
|
7768
|
+
function cl(e, t) {
|
|
7769
|
+
al = e, ol = t;
|
|
7763
7770
|
}
|
|
7764
|
-
function
|
|
7765
|
-
let e = 1, t = window.innerWidth, n = window.innerHeight, r =
|
|
7771
|
+
function ll() {
|
|
7772
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = al, i = ol, a = parseFloat((r / i).toFixed(5));
|
|
7766
7773
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
7767
7774
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
7768
7775
|
e = t > 1 ? 1 : t;
|
|
@@ -7770,17 +7777,17 @@ function al() {
|
|
|
7770
7777
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
7771
7778
|
e = n > 1 ? 1 : n;
|
|
7772
7779
|
}
|
|
7773
|
-
|
|
7780
|
+
sl.scale = e;
|
|
7774
7781
|
}
|
|
7775
|
-
function
|
|
7776
|
-
let e = $e(
|
|
7782
|
+
function ul() {
|
|
7783
|
+
let e = $e(ll, 200);
|
|
7777
7784
|
return e(), window.addEventListener("resize", e), () => {
|
|
7778
|
-
|
|
7785
|
+
al = 3840, ol = 2160, window.removeEventListener("resize", e);
|
|
7779
7786
|
};
|
|
7780
7787
|
}
|
|
7781
7788
|
//#endregion
|
|
7782
7789
|
//#region components/hooks/useThrottleFn.ts
|
|
7783
|
-
function
|
|
7790
|
+
function dl(e, t = 1e3) {
|
|
7784
7791
|
let r = T(e), i = n(() => et((...e) => r.value([...e]), t));
|
|
7785
7792
|
return x(() => {
|
|
7786
7793
|
i.value.cancel();
|
|
@@ -7792,16 +7799,16 @@ function sl(e, t = 1e3) {
|
|
|
7792
7799
|
}
|
|
7793
7800
|
//#endregion
|
|
7794
7801
|
//#region components/hooks/useLocalStorage.ts
|
|
7795
|
-
function
|
|
7802
|
+
function fl(e, t) {
|
|
7796
7803
|
return [T(Y(e, t?.defaultValue)), (n) => {
|
|
7797
|
-
n === void 0 ?
|
|
7804
|
+
n === void 0 ? ur(e) : J(e, n, t?.expired || "1 Day");
|
|
7798
7805
|
}];
|
|
7799
7806
|
}
|
|
7800
7807
|
//#endregion
|
|
7801
7808
|
//#region components/hooks/useQuery.ts
|
|
7802
|
-
function
|
|
7809
|
+
function pl(e, t, n) {
|
|
7803
7810
|
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
|
-
|
|
7811
|
+
gi(), clearInterval(o.value), o.value = null;
|
|
7805
7812
|
}, p = async () => {
|
|
7806
7813
|
if (!s.value) {
|
|
7807
7814
|
h(!0, "loading");
|
|
@@ -7837,7 +7844,7 @@ function ll(e, t, n) {
|
|
|
7837
7844
|
}, g = (e) => {
|
|
7838
7845
|
l.value = e;
|
|
7839
7846
|
}, _ = () => {
|
|
7840
|
-
|
|
7847
|
+
gi(), i.value && i.value();
|
|
7841
7848
|
}, v = () => {
|
|
7842
7849
|
_(), p(), n?.pollingInterval && (f(), o.value = setInterval(() => {
|
|
7843
7850
|
p();
|
|
@@ -7865,26 +7872,26 @@ function ll(e, t, n) {
|
|
|
7865
7872
|
}
|
|
7866
7873
|
//#endregion
|
|
7867
7874
|
//#region package.json
|
|
7868
|
-
var
|
|
7869
|
-
async function
|
|
7875
|
+
var ml = "0.1.113", hl;
|
|
7876
|
+
async function gl() {
|
|
7870
7877
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7871
7878
|
method: "HEAD",
|
|
7872
7879
|
cache: "no-cache"
|
|
7873
7880
|
});
|
|
7874
7881
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
7875
7882
|
}
|
|
7876
|
-
async function
|
|
7877
|
-
let e = await
|
|
7878
|
-
|
|
7883
|
+
async function _l() {
|
|
7884
|
+
let e = await gl();
|
|
7885
|
+
hl !== e && qn(!0);
|
|
7879
7886
|
}
|
|
7880
|
-
async function
|
|
7881
|
-
|
|
7882
|
-
|
|
7887
|
+
async function vl() {
|
|
7888
|
+
hl = await gl(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
7889
|
+
_l();
|
|
7883
7890
|
}, 6e4);
|
|
7884
7891
|
}
|
|
7885
7892
|
//#endregion
|
|
7886
7893
|
//#region components/create.ts
|
|
7887
|
-
function
|
|
7894
|
+
function yl({ components: e = [] } = {}) {
|
|
7888
7895
|
let t = [];
|
|
7889
7896
|
function n(e, t, n) {
|
|
7890
7897
|
e.component(t) || e.component(t, n);
|
|
@@ -7897,16 +7904,16 @@ function hl({ components: e = [] } = {}) {
|
|
|
7897
7904
|
});
|
|
7898
7905
|
}), i)) {
|
|
7899
7906
|
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
|
-
|
|
7907
|
+
Jn(e), Wn(o), Gn(l), Kn(c), Un.global.locale.value = l, a && vl(), t && oi(r, t, n);
|
|
7901
7908
|
}
|
|
7902
7909
|
}
|
|
7903
7910
|
return {
|
|
7904
|
-
version:
|
|
7911
|
+
version: ml,
|
|
7905
7912
|
install: r
|
|
7906
7913
|
};
|
|
7907
7914
|
}
|
|
7908
7915
|
//#endregion
|
|
7909
7916
|
//#region components/preset.ts
|
|
7910
|
-
var
|
|
7917
|
+
var bl = yl({ components: Object.keys(il).map((e) => il[e]) }), xl = bl.install;
|
|
7911
7918
|
//#endregion
|
|
7912
|
-
export {
|
|
7919
|
+
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 };
|