@unizhen/ui 0.1.111 → 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/BrandStackoverflow.vue.d.ts +4 -0
- package/lib/components/icon/reicon/CheckMark.vue.d.ts +4 -0
- package/lib/components/icon/reicon/CircleMinus.vue.d.ts +4 -0
- package/lib/components/icon/reicon/Copy.vue.d.ts +4 -0
- package/lib/components/icon/reicon/DotsVertical.vue.d.ts +4 -0
- package/lib/components/icon/reicon/Edit.vue.d.ts +4 -0
- package/lib/ui.js +787 -680
- 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
|
|
@@ -107,7 +107,24 @@ var wt = /*#__PURE__*/ W(xt, [["render", Ct]]), Tt = {}, Et = {
|
|
|
107
107
|
fill: "none"
|
|
108
108
|
};
|
|
109
109
|
function Dt(e, t) {
|
|
110
|
-
return S(), a("svg", Et, [...t[0] ||= [
|
|
110
|
+
return S(), a("svg", Et, [...t[0] ||= [o("path", {
|
|
111
|
+
opacity: "0.5",
|
|
112
|
+
d: "M2 12C2 13.6394 2.42496 14.1915 3.27489 15.2957C4.97196 17.5004 7.81811 20 12 20C16.1819 20 19.028 17.5004 20.7251 15.2957C21.575 14.1915 22 13.6394 22 12C22 10.3606 21.575 9.80853 20.7251 8.70433C19.028 6.49956 16.1819 4 12 4C7.81811 4 4.97196 6.49956 3.27489 8.70433C2.42496 9.80853 2 10.3606 2 12Z",
|
|
113
|
+
fill: "currentColor"
|
|
114
|
+
}, null, -1), o("path", {
|
|
115
|
+
"fill-rule": "evenodd",
|
|
116
|
+
"clip-rule": "evenodd",
|
|
117
|
+
d: "M8.25 12C8.25 9.92893 9.92893 8.25 12 8.25C14.0711 8.25 15.75 9.92893 15.75 12C15.75 14.0711 14.0711 15.75 12 15.75C9.92893 15.75 8.25 14.0711 8.25 12ZM9.75 12C9.75 10.7574 10.7574 9.75 12 9.75C13.2426 9.75 14.25 10.7574 14.25 12C14.25 13.2426 13.2426 14.25 12 14.25C10.7574 14.25 9.75 13.2426 9.75 12Z",
|
|
118
|
+
fill: "currentColor"
|
|
119
|
+
}, null, -1)]]);
|
|
120
|
+
}
|
|
121
|
+
var Ot = /*#__PURE__*/ W(Tt, [["render", Dt]]), kt = {}, At = {
|
|
122
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
123
|
+
viewBox: "0 0 24 24",
|
|
124
|
+
fill: "none"
|
|
125
|
+
};
|
|
126
|
+
function jt(e, t) {
|
|
127
|
+
return S(), a("svg", At, [...t[0] ||= [
|
|
111
128
|
o("path", {
|
|
112
129
|
opacity: "0.5",
|
|
113
130
|
d: "M13.6288 20.4718L13.0867 21.3877C12.6035 22.204 11.3965 22.204 10.9133 21.3877L10.3712 20.4718C9.95073 19.7614 9.74049 19.4063 9.40279 19.2098C9.06509 19.0134 8.63992 19.0061 7.78958 18.9915C6.53422 18.9698 5.74689 18.8929 5.08658 18.6194C3.86144 18.1119 2.88807 17.1386 2.3806 15.9134C2 14.9946 2 13.8297 2 11.5V10.5C2 7.22657 2 5.58985 2.7368 4.38751C3.14908 3.71473 3.71473 3.14908 4.38751 2.7368C5.58985 2 7.22657 2 10.5 2H13.5C16.7734 2 18.4101 2 19.6125 2.7368C20.2853 3.14908 20.8509 3.71473 21.2632 4.38751C22 5.58985 22 7.22657 22 10.5V11.5C22 13.8297 22 14.9946 21.6194 15.9134C21.1119 17.1386 20.1386 18.1119 18.9134 18.6194C18.2531 18.8929 17.4658 18.9698 16.2104 18.9915C15.36 19.0061 14.9349 19.0134 14.5972 19.2098C14.2595 19.4062 14.0492 19.7614 13.6288 20.4718Z",
|
|
@@ -123,13 +140,43 @@ function Dt(e, t) {
|
|
|
123
140
|
}, null, -1)
|
|
124
141
|
]]);
|
|
125
142
|
}
|
|
126
|
-
var
|
|
143
|
+
var Mt = /*#__PURE__*/ W(kt, [["render", jt]]), Nt = {}, Pt = {
|
|
127
144
|
xmlns: "http://www.w3.org/2000/svg",
|
|
128
145
|
viewBox: "0 0 24 24",
|
|
129
146
|
fill: "none"
|
|
130
147
|
};
|
|
131
|
-
function
|
|
132
|
-
return S(), a("svg",
|
|
148
|
+
function Ft(e, t) {
|
|
149
|
+
return S(), a("svg", Pt, [...t[0] ||= [o("path", {
|
|
150
|
+
opacity: "0.5",
|
|
151
|
+
d: "M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",
|
|
152
|
+
fill: "currentColor"
|
|
153
|
+
}, null, -1), o("path", {
|
|
154
|
+
d: "M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L12.7348 11.2045L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",
|
|
155
|
+
fill: "currentColor"
|
|
156
|
+
}, null, -1)]]);
|
|
157
|
+
}
|
|
158
|
+
var It = /*#__PURE__*/ W(Nt, [["render", Ft]]), Lt = {}, Rt = {
|
|
159
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
160
|
+
viewBox: "0 0 24 24",
|
|
161
|
+
fill: "none"
|
|
162
|
+
};
|
|
163
|
+
function zt(e, t) {
|
|
164
|
+
return S(), a("svg", Rt, [...t[0] ||= [o("path", {
|
|
165
|
+
opacity: "0.5",
|
|
166
|
+
d: "M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",
|
|
167
|
+
fill: "currentColor"
|
|
168
|
+
}, null, -1), o("path", {
|
|
169
|
+
d: "M15.75 12C15.75 12.4142 15.4142 12.75 15 12.75H9C8.58579 12.75 8.25 12.4142 8.25 12C8.25 11.5858 8.58579 11.25 9 11.25H15C15.4142 11.25 15.75 11.5858 15.75 12Z",
|
|
170
|
+
fill: "currentColor"
|
|
171
|
+
}, null, -1)]]);
|
|
172
|
+
}
|
|
173
|
+
var Bt = /*#__PURE__*/ W(Lt, [["render", zt]]), Vt = {}, Ht = {
|
|
174
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
175
|
+
viewBox: "0 0 24 24",
|
|
176
|
+
fill: "none"
|
|
177
|
+
};
|
|
178
|
+
function Ut(e, t) {
|
|
179
|
+
return S(), a("svg", Ht, [...t[0] ||= [o("g", { opacity: "0.5" }, [o("path", {
|
|
133
180
|
d: "M6.50001 18L6.50001 17.9105C6.49991 17.0449 6.49981 16.2512 6.58661 15.6056C6.6822 14.8946 6.90709 14.1432 7.52514 13.5251C8.14319 12.9071 8.89464 12.6822 9.6056 12.5866C10.2512 12.4998 11.0449 12.4999 11.9105 12.5H12.0895C12.9551 12.4999 13.7488 12.4998 14.3944 12.5866C15.1054 12.6822 15.8568 12.9071 16.4749 13.5251C17.0929 14.1432 17.3178 14.8946 17.4134 15.6056C17.4989 16.2417 17.5001 17.0215 17.5 17.8722C20.0726 17.3221 22 15.0599 22 12.3529C22 9.88113 20.393 7.78024 18.1551 7.01498C17.8371 4.19371 15.4159 2 12.4762 2C9.32028 2 6.7619 4.52827 6.7619 7.64706C6.7619 8.33687 6.88706 8.9978 7.11616 9.60887C6.8475 9.55673 6.56983 9.52941 6.28571 9.52941C3.91878 9.52941 2 11.4256 2 13.7647C2 16.1038 3.91878 18 6.28571 18L6.50001 18Z",
|
|
134
181
|
fill: "currentColor"
|
|
135
182
|
})], -1), o("path", {
|
|
@@ -139,13 +186,13 @@ function jt(e, t) {
|
|
|
139
186
|
fill: "currentColor"
|
|
140
187
|
}, null, -1)]]);
|
|
141
188
|
}
|
|
142
|
-
var
|
|
189
|
+
var Wt = /*#__PURE__*/ W(Vt, [["render", Ut]]), Gt = {}, Kt = {
|
|
143
190
|
xmlns: "http://www.w3.org/2000/svg",
|
|
144
191
|
viewBox: "0 0 24 24",
|
|
145
192
|
fill: "none"
|
|
146
193
|
};
|
|
147
|
-
function
|
|
148
|
-
return S(), a("svg",
|
|
194
|
+
function qt(e, t) {
|
|
195
|
+
return S(), a("svg", Kt, [...t[0] ||= [o("g", { opacity: "0.5" }, [o("path", {
|
|
149
196
|
d: "M6.50001 18L6.50001 17.9105C6.49991 17.0449 6.49981 16.2512 6.58661 15.6056C6.6822 14.8946 6.90709 14.1432 7.52514 13.5251C8.14319 12.9071 8.89464 12.6822 9.6056 12.5866C10.2512 12.4998 11.0449 12.4999 11.9105 12.5H12.0895C12.9551 12.4999 13.7488 12.4998 14.3944 12.5866C15.1054 12.6822 15.8568 12.9071 16.4749 13.5251C17.0929 14.1432 17.3178 14.8946 17.4134 15.6056C17.4989 16.2417 17.5001 17.0215 17.5 17.8722C20.0726 17.3221 22 15.0599 22 12.3529C22 9.88113 20.393 7.78024 18.1551 7.01498C17.8371 4.19371 15.4159 2 12.4762 2C9.32028 2 6.7619 4.52827 6.7619 7.64706C6.7619 8.33687 6.88706 8.9978 7.11616 9.60887C6.8475 9.55673 6.56983 9.52941 6.28571 9.52941C3.91878 9.52941 2 11.4256 2 13.7647C2 16.1038 3.91878 18 6.28571 18L6.50001 18Z",
|
|
150
197
|
fill: "currentColor"
|
|
151
198
|
})], -1), o("path", {
|
|
@@ -155,13 +202,30 @@ function Ft(e, t) {
|
|
|
155
202
|
fill: "currentColor"
|
|
156
203
|
}, null, -1)]]);
|
|
157
204
|
}
|
|
158
|
-
var
|
|
205
|
+
var Jt = /*#__PURE__*/ W(Gt, [["render", qt]]), Yt = {}, Xt = {
|
|
159
206
|
xmlns: "http://www.w3.org/2000/svg",
|
|
160
207
|
viewBox: "0 0 24 24",
|
|
208
|
+
width: "64",
|
|
209
|
+
height: "64",
|
|
161
210
|
fill: "none"
|
|
162
211
|
};
|
|
163
|
-
function
|
|
164
|
-
return S(), a("svg",
|
|
212
|
+
function Zt(e, t) {
|
|
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)]]);
|
|
221
|
+
}
|
|
222
|
+
var Qt = /*#__PURE__*/ W(Yt, [["render", Zt]]), $t = {}, en = {
|
|
223
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
224
|
+
viewBox: "0 0 24 24",
|
|
225
|
+
fill: "none"
|
|
226
|
+
};
|
|
227
|
+
function tn(e, t) {
|
|
228
|
+
return S(), a("svg", en, [...t[0] ||= [
|
|
165
229
|
o("path", {
|
|
166
230
|
opacity: "0.5",
|
|
167
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",
|
|
@@ -181,21 +245,58 @@ function zt(e, t) {
|
|
|
181
245
|
}, null, -1)
|
|
182
246
|
]]);
|
|
183
247
|
}
|
|
184
|
-
var
|
|
248
|
+
var nn = /*#__PURE__*/ W($t, [["render", tn]]), rn = {}, an = {
|
|
185
249
|
xmlns: "http://www.w3.org/2000/svg",
|
|
186
250
|
viewBox: "0 0 24 24",
|
|
187
251
|
fill: "none"
|
|
188
252
|
};
|
|
189
|
-
function
|
|
190
|
-
return S(), a("svg",
|
|
253
|
+
function on(e, t) {
|
|
254
|
+
return S(), a("svg", an, [...t[0] ||= [
|
|
255
|
+
o("path", {
|
|
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",
|
|
257
|
+
fill: "currentColor"
|
|
258
|
+
}, null, -1),
|
|
259
|
+
o("path", {
|
|
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",
|
|
261
|
+
fill: "currentColor"
|
|
262
|
+
}, null, -1),
|
|
263
|
+
o("path", {
|
|
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",
|
|
266
|
+
fill: "currentColor"
|
|
267
|
+
}, null, -1)
|
|
268
|
+
]]);
|
|
191
269
|
}
|
|
192
|
-
var
|
|
270
|
+
var sn = /*#__PURE__*/ W(rn, [["render", on]]), cn = {}, ln = {
|
|
193
271
|
xmlns: "http://www.w3.org/2000/svg",
|
|
194
272
|
viewBox: "0 0 24 24",
|
|
195
273
|
fill: "none"
|
|
196
274
|
};
|
|
197
|
-
function
|
|
198
|
-
return S(), a("svg",
|
|
275
|
+
function un(e, t) {
|
|
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)]]);
|
|
284
|
+
}
|
|
285
|
+
var dn = /*#__PURE__*/ W(cn, [["render", un]]), fn = {}, pn = {
|
|
286
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
287
|
+
viewBox: "0 0 24 24",
|
|
288
|
+
fill: "none"
|
|
289
|
+
};
|
|
290
|
+
function mn(e, t) {
|
|
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] ||= [
|
|
199
300
|
o("path", {
|
|
200
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",
|
|
201
302
|
fill: "currentColor"
|
|
@@ -213,29 +314,29 @@ function qt(e, t) {
|
|
|
213
314
|
}, null, -1)
|
|
214
315
|
]]);
|
|
215
316
|
}
|
|
216
|
-
var
|
|
317
|
+
var yn = /*#__PURE__*/ W(gn, [["render", vn]]), bn = {}, xn = {
|
|
217
318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
218
319
|
viewBox: "0 0 24 24",
|
|
219
320
|
fill: "none"
|
|
220
321
|
};
|
|
221
|
-
function
|
|
222
|
-
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)]]);
|
|
223
324
|
}
|
|
224
|
-
var
|
|
325
|
+
var Cn = /*#__PURE__*/ W(bn, [["render", Sn]]), wn = {}, Tn = {
|
|
225
326
|
xmlns: "http://www.w3.org/2000/svg",
|
|
226
327
|
viewBox: "0 0 24 24",
|
|
227
328
|
fill: "none"
|
|
228
329
|
};
|
|
229
|
-
function
|
|
230
|
-
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)]]);
|
|
231
332
|
}
|
|
232
|
-
var
|
|
333
|
+
var Dn = /*#__PURE__*/ W(wn, [["render", En]]), On = {}, kn = {
|
|
233
334
|
xmlns: "http://www.w3.org/2000/svg",
|
|
234
335
|
viewBox: "0 0 24 24",
|
|
235
336
|
fill: "none"
|
|
236
337
|
};
|
|
237
|
-
function
|
|
238
|
-
return S(), a("svg",
|
|
338
|
+
function An(e, t) {
|
|
339
|
+
return S(), a("svg", kn, [...t[0] ||= [o("path", {
|
|
239
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",
|
|
240
341
|
fill: "currentColor"
|
|
241
342
|
}, null, -1), o("path", {
|
|
@@ -244,26 +345,26 @@ function on(e, t) {
|
|
|
244
345
|
fill: "currentColor"
|
|
245
346
|
}, null, -1)]]);
|
|
246
347
|
}
|
|
247
|
-
var
|
|
348
|
+
var jn = /*#__PURE__*/ W(On, [["render", An]]), Mn = {}, Nn = {
|
|
248
349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
249
350
|
viewBox: "0 0 24 24",
|
|
250
351
|
fill: "none"
|
|
251
352
|
};
|
|
252
|
-
function
|
|
253
|
-
return S(), a("svg",
|
|
353
|
+
function Pn(e, t) {
|
|
354
|
+
return S(), a("svg", Nn, [...t[0] ||= [o("path", {
|
|
254
355
|
"fill-rule": "evenodd",
|
|
255
356
|
"clip-rule": "evenodd",
|
|
256
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",
|
|
257
358
|
fill: "currentColor"
|
|
258
359
|
}, null, -1)]]);
|
|
259
360
|
}
|
|
260
|
-
var
|
|
361
|
+
var Fn = /*#__PURE__*/ W(Mn, [["render", Pn]]), In = {}, Ln = {
|
|
261
362
|
xmlns: "http://www.w3.org/2000/svg",
|
|
262
363
|
viewBox: "0 0 24 24",
|
|
263
364
|
fill: "none"
|
|
264
365
|
};
|
|
265
|
-
function
|
|
266
|
-
return S(), a("svg",
|
|
366
|
+
function Rn(e, t) {
|
|
367
|
+
return S(), a("svg", Ln, [...t[0] ||= [o("path", {
|
|
267
368
|
opacity: "0.5",
|
|
268
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",
|
|
269
370
|
fill: "currentColor"
|
|
@@ -274,22 +375,28 @@ function mn(e, t) {
|
|
|
274
375
|
fill: "currentColor"
|
|
275
376
|
}, null, -1)]]);
|
|
276
377
|
}
|
|
277
|
-
var
|
|
378
|
+
var zn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
278
379
|
"./Add.vue": gt,
|
|
279
380
|
"./ArrowDown.vue": bt,
|
|
280
381
|
"./ArrowLeft.vue": wt,
|
|
281
|
-
"./
|
|
282
|
-
"./
|
|
283
|
-
"./
|
|
284
|
-
"./
|
|
285
|
-
"./
|
|
286
|
-
"./
|
|
287
|
-
"./
|
|
288
|
-
"./
|
|
289
|
-
"./
|
|
290
|
-
"./
|
|
291
|
-
"./
|
|
292
|
-
|
|
382
|
+
"./BrandStackoverflow.vue": Ot,
|
|
383
|
+
"./ChatLine.vue": Mt,
|
|
384
|
+
"./CheckMark.vue": It,
|
|
385
|
+
"./CircleMinus.vue": Bt,
|
|
386
|
+
"./CloudDownload.vue": Wt,
|
|
387
|
+
"./CloudUpload.vue": Jt,
|
|
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({
|
|
293
400
|
name: "UzIcon",
|
|
294
401
|
props: {
|
|
295
402
|
icon: {
|
|
@@ -306,7 +413,7 @@ var hn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
306
413
|
let t = T(!0), n = T(), r = (r) => {
|
|
307
414
|
if (t.value = !1, r && typeof r == "string") {
|
|
308
415
|
try {
|
|
309
|
-
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];
|
|
310
417
|
} catch {}
|
|
311
418
|
g(() => {
|
|
312
419
|
t.value = !0;
|
|
@@ -319,8 +426,8 @@ var hn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
319
426
|
r(e);
|
|
320
427
|
}), () => t.value ? n.value && n.value.render(null, []) : null;
|
|
321
428
|
}
|
|
322
|
-
}),
|
|
323
|
-
function
|
|
429
|
+
}), Vn = zn, G;
|
|
430
|
+
function Hn(e, t = "/") {
|
|
324
431
|
return G = Ke({
|
|
325
432
|
history: qe(t),
|
|
326
433
|
routes: e,
|
|
@@ -330,7 +437,7 @@ function vn(e, t = "/") {
|
|
|
330
437
|
})
|
|
331
438
|
}), G;
|
|
332
439
|
}
|
|
333
|
-
var
|
|
440
|
+
var Un = Xe({
|
|
334
441
|
legacy: !1,
|
|
335
442
|
locale: "zh-CN",
|
|
336
443
|
messages: {
|
|
@@ -430,16 +537,16 @@ var yn = Xe({
|
|
|
430
537
|
language: !1,
|
|
431
538
|
lang: "zh-CN"
|
|
432
539
|
});
|
|
433
|
-
function
|
|
540
|
+
function Wn(e) {
|
|
434
541
|
K.language = e;
|
|
435
542
|
}
|
|
436
|
-
function
|
|
543
|
+
function Gn(e) {
|
|
437
544
|
let t;
|
|
438
545
|
t = e || (K.lang === "zh-CN" ? "en-US" : "zh-CN"), J("lang", t, 0), K.lang = t;
|
|
439
546
|
let n = document.body;
|
|
440
|
-
n.dataset.lang = t,
|
|
547
|
+
n.dataset.lang = t, Un.global.locale.value = t;
|
|
441
548
|
}
|
|
442
|
-
function
|
|
549
|
+
function Kn(e) {
|
|
443
550
|
let t = document.body;
|
|
444
551
|
t.classList.add("remove-all-transition");
|
|
445
552
|
let n = document.querySelector("meta[name=theme-color]");
|
|
@@ -447,45 +554,45 @@ function Sn(e) {
|
|
|
447
554
|
t.classList.remove("remove-all-transition");
|
|
448
555
|
}, 0);
|
|
449
556
|
}
|
|
450
|
-
function
|
|
557
|
+
function qn(e) {
|
|
451
558
|
K.needUpdate = e;
|
|
452
559
|
}
|
|
453
|
-
function
|
|
560
|
+
function Jn(e) {
|
|
454
561
|
K.title = e;
|
|
455
562
|
}
|
|
456
|
-
var
|
|
563
|
+
var Yn = () => {
|
|
457
564
|
K.isMobile = window.screen.availWidth < 769;
|
|
458
565
|
};
|
|
459
|
-
window.addEventListener("resize",
|
|
566
|
+
window.addEventListener("resize", Yn), Yn();
|
|
460
567
|
//#endregion
|
|
461
568
|
//#region components/localStorage.ts
|
|
462
|
-
var
|
|
463
|
-
function
|
|
464
|
-
|
|
569
|
+
var Xn = window.localStorage;
|
|
570
|
+
function Zn(e, t) {
|
|
571
|
+
Xn.setItem(e, JSON.stringify(t));
|
|
465
572
|
}
|
|
466
|
-
function
|
|
467
|
-
let t =
|
|
573
|
+
function Qn(e) {
|
|
574
|
+
let t = Xn.getItem(e);
|
|
468
575
|
if (t) return JSON.parse(t);
|
|
469
576
|
}
|
|
470
|
-
function
|
|
471
|
-
|
|
577
|
+
function $n(e) {
|
|
578
|
+
Xn.removeItem(e);
|
|
472
579
|
}
|
|
473
|
-
function
|
|
580
|
+
function er() {
|
|
474
581
|
return Date.parse(String(/* @__PURE__ */ new Date()));
|
|
475
582
|
}
|
|
476
|
-
var
|
|
583
|
+
var tr = "local-", nr = new class {
|
|
477
584
|
namespace;
|
|
478
585
|
mapKey;
|
|
479
586
|
map;
|
|
480
587
|
constructor(e = "") {
|
|
481
|
-
this.namespace = e, this.mapKey =
|
|
588
|
+
this.namespace = e, this.mapKey = tr + this.namespace, this.map = Qn(this.mapKey) || {};
|
|
482
589
|
}
|
|
483
590
|
set(e, t, n = 0) {
|
|
484
591
|
let r = this.getReallyKey(e), i = {
|
|
485
592
|
expires: n,
|
|
486
|
-
time:
|
|
593
|
+
time: er()
|
|
487
594
|
};
|
|
488
|
-
|
|
595
|
+
Zn(r, t), this.map[e] = i, Zn(this.mapKey, this.map);
|
|
489
596
|
}
|
|
490
597
|
getReallyKey(e) {
|
|
491
598
|
return this.namespace + "-" + e;
|
|
@@ -493,9 +600,9 @@ var jn = "local-", Mn = new class {
|
|
|
493
600
|
get(e, t) {
|
|
494
601
|
let n = this.getReallyKey(e), r = this.map[e];
|
|
495
602
|
if (r) {
|
|
496
|
-
let i =
|
|
603
|
+
let i = Qn(n);
|
|
497
604
|
if (r.expires > 0) {
|
|
498
|
-
if (
|
|
605
|
+
if (er() - r.time <= r.expires) return i === !1 || i ? i : t;
|
|
499
606
|
this.delete(e);
|
|
500
607
|
} else return i === !1 || i ? i : t;
|
|
501
608
|
}
|
|
@@ -503,7 +610,7 @@ var jn = "local-", Mn = new class {
|
|
|
503
610
|
}
|
|
504
611
|
delete(e) {
|
|
505
612
|
let t = this.getReallyKey(e);
|
|
506
|
-
delete this.map[e],
|
|
613
|
+
delete this.map[e], Zn(this.mapKey, this.map), $n(t);
|
|
507
614
|
}
|
|
508
615
|
deleteByPrefix(e) {
|
|
509
616
|
for (let t in this.map) t.indexOf(e) > -1 && this.delete(t);
|
|
@@ -511,12 +618,12 @@ var jn = "local-", Mn = new class {
|
|
|
511
618
|
deleteAll() {
|
|
512
619
|
for (let e in this.map) this.delete(e);
|
|
513
620
|
}
|
|
514
|
-
}("uz"),
|
|
621
|
+
}("uz"), rr = new Intl.Collator("zh-Hans-u-co-pinyin"), ir = [..."阿八嚓哒妸发旮哈讥咔垃妈拏噢妑七呥仨他屲夕丫帀"], ar = [..."ABCDEFGHJKLMNOPQRSTWXYZ"], { notification: or, dialog: sr } = Ve(["notification", "dialog"], {
|
|
515
622
|
configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
|
|
516
623
|
notificationProviderProps: { placement: "bottom-right" }
|
|
517
|
-
}),
|
|
624
|
+
}), cr = or, lr = sr;
|
|
518
625
|
function q(e) {
|
|
519
|
-
console.log(e),
|
|
626
|
+
console.log(e), or.error({
|
|
520
627
|
content: e.message,
|
|
521
628
|
duration: 3e3
|
|
522
629
|
});
|
|
@@ -538,18 +645,18 @@ function J(e, t, n = "1 Day") {
|
|
|
538
645
|
}
|
|
539
646
|
n = Number(t[0]) * e;
|
|
540
647
|
}
|
|
541
|
-
|
|
648
|
+
nr.set(e, t, n);
|
|
542
649
|
}
|
|
543
650
|
function Y(e, t) {
|
|
544
|
-
return
|
|
651
|
+
return nr.get(e, t);
|
|
545
652
|
}
|
|
546
|
-
var
|
|
547
|
-
|
|
548
|
-
},
|
|
549
|
-
|
|
550
|
-
},
|
|
551
|
-
|
|
552
|
-
},
|
|
653
|
+
var ur = (e) => {
|
|
654
|
+
nr.delete(e);
|
|
655
|
+
}, dr = (e) => {
|
|
656
|
+
nr.deleteByPrefix(e);
|
|
657
|
+
}, fr = () => {
|
|
658
|
+
nr.deleteAll();
|
|
659
|
+
}, pr = (e = 0) => {
|
|
553
660
|
let t = document.documentElement, n = document.querySelectorAll(".uz-table-m-content");
|
|
554
661
|
t && (t.scrollTop = e, setTimeout(() => {
|
|
555
662
|
t.scrollTop = e;
|
|
@@ -557,7 +664,7 @@ var Bn = (e) => {
|
|
|
557
664
|
t.scrollTop = e;
|
|
558
665
|
});
|
|
559
666
|
};
|
|
560
|
-
function
|
|
667
|
+
function mr(e) {
|
|
561
668
|
if (!e.records) {
|
|
562
669
|
let t = e;
|
|
563
670
|
return {
|
|
@@ -601,7 +708,7 @@ function Wn(e) {
|
|
|
601
708
|
records: e.records
|
|
602
709
|
};
|
|
603
710
|
}
|
|
604
|
-
var
|
|
711
|
+
var hr = (e, t = "yyyy-MM-dd") => {
|
|
605
712
|
if (!e) return "";
|
|
606
713
|
typeof e == "string" && (e = e.replace(/年/g, "-").replace(/月/g, "-").replace(/日/g, ""));
|
|
607
714
|
let n = new Date(e);
|
|
@@ -619,9 +726,9 @@ var Gn = (e, t = "yyyy-MM-dd") => {
|
|
|
619
726
|
RegExp.$1.length !== 1 && (n = ("00" + r[e]).substr(("" + r[e]).length)), t = t.replace(RegExp.$1, n);
|
|
620
727
|
}
|
|
621
728
|
return t;
|
|
622
|
-
},
|
|
729
|
+
}, gr = (e) => {
|
|
623
730
|
document.title = `${e} - ${K.title}`;
|
|
624
|
-
},
|
|
731
|
+
}, _r = (e, t = 500) => {
|
|
625
732
|
let n = e, r, i = !1, a = function(...e) {
|
|
626
733
|
if (i) {
|
|
627
734
|
n.apply(a, e), i = !1;
|
|
@@ -633,10 +740,10 @@ var Gn = (e, t = "yyyy-MM-dd") => {
|
|
|
633
740
|
};
|
|
634
741
|
return a;
|
|
635
742
|
};
|
|
636
|
-
function
|
|
743
|
+
function vr(e, t) {
|
|
637
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());
|
|
638
745
|
}
|
|
639
|
-
function
|
|
746
|
+
function yr(e, t = 0) {
|
|
640
747
|
let n = [
|
|
641
748
|
"",
|
|
642
749
|
"k",
|
|
@@ -646,20 +753,20 @@ function Yn(e, t = 0) {
|
|
|
646
753
|
], r = Math.floor(Math.log10(Math.abs(e)) / 3), i = Math.max(0, Math.min(r, n.length - 1)), a = n[i];
|
|
647
754
|
return a ? (e / 10 ** (i * 3)).toFixed(t) + a : (e / 10 ** (i * 3)).toFixed(0);
|
|
648
755
|
}
|
|
649
|
-
function
|
|
756
|
+
function br(e) {
|
|
650
757
|
if (/^[a-z0-9]$/i.test(e)) return e.toLowerCase();
|
|
651
758
|
if (!/^[\u4e00-\u9fff]$/.test(e)) return "";
|
|
652
|
-
for (let t =
|
|
759
|
+
for (let t = ir.length - 1; t >= 0; --t) if (rr.compare(e, ir[t]) >= 0) return ar[t].toLowerCase();
|
|
653
760
|
return "";
|
|
654
761
|
}
|
|
655
|
-
function
|
|
656
|
-
return [...String(e)].map(
|
|
762
|
+
function xr(e) {
|
|
763
|
+
return [...String(e)].map(br).join("");
|
|
657
764
|
}
|
|
658
|
-
function
|
|
765
|
+
function Sr(e, t) {
|
|
659
766
|
let n = String(t).trim().toLowerCase();
|
|
660
|
-
return n === "" || e.toLowerCase().includes(n) ||
|
|
767
|
+
return n === "" || e.toLowerCase().includes(n) || xr(e).includes(n);
|
|
661
768
|
}
|
|
662
|
-
function
|
|
769
|
+
function Cr(e, t) {
|
|
663
770
|
e.forEach((e) => {
|
|
664
771
|
let n = t.find((t) => t.key === e.key);
|
|
665
772
|
n && (e.hide = n.hide, e.show = n.show, e.width = n.width);
|
|
@@ -672,8 +779,8 @@ function $n(e, t) {
|
|
|
672
779
|
}
|
|
673
780
|
//#endregion
|
|
674
781
|
//#region components/monitor.ts
|
|
675
|
-
var
|
|
676
|
-
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);
|
|
677
784
|
if (t) return `Android ${t[1]}`;
|
|
678
785
|
let n = /(?:IPHONE|IPAD).*OS ([\d_]+)/.exec(e);
|
|
679
786
|
if (n) return `${e.includes("IPAD") ? "iPad" : "iPhone"} ${n[1].replace(/_/g, ".")}`;
|
|
@@ -688,8 +795,8 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
688
795
|
}[r[1]] ?? `Windows NT ${r[1]}`;
|
|
689
796
|
let i = /MAC OS X ([\d_]+)/.exec(e);
|
|
690
797
|
return i ? `macOS ${i[1].replace(/_/g, ".")}` : "Other Platform";
|
|
691
|
-
},
|
|
692
|
-
let e =
|
|
798
|
+
}, zr = () => {
|
|
799
|
+
let e = Lr();
|
|
693
800
|
for (let [t, n] of [
|
|
694
801
|
[/EDG(?:A|IOS)?\/([\d.]+)/, "Edge"],
|
|
695
802
|
[/OPR\/([\d.]+)/, "Opera"],
|
|
@@ -704,7 +811,7 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
704
811
|
if (r) return `${n} ${r[1]}`;
|
|
705
812
|
}
|
|
706
813
|
return "Others";
|
|
707
|
-
},
|
|
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) => {
|
|
708
815
|
let t = /* @__PURE__ */ new WeakSet();
|
|
709
816
|
try {
|
|
710
817
|
return JSON.stringify(e, (e, n) => {
|
|
@@ -718,7 +825,7 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
718
825
|
} catch {
|
|
719
826
|
return String(e);
|
|
720
827
|
}
|
|
721
|
-
},
|
|
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) => {
|
|
722
829
|
let t = String(e || "");
|
|
723
830
|
if (!t) return "";
|
|
724
831
|
try {
|
|
@@ -727,7 +834,7 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
727
834
|
} catch {
|
|
728
835
|
return t.split(/[?#]/, 1)[0];
|
|
729
836
|
}
|
|
730
|
-
},
|
|
837
|
+
}, Gr = (e, t) => {
|
|
731
838
|
let n = [];
|
|
732
839
|
try {
|
|
733
840
|
let t = new URL(e, location.href).searchParams.toString();
|
|
@@ -744,8 +851,8 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
744
851
|
}), n.push(e.join("&"));
|
|
745
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]");
|
|
746
853
|
}
|
|
747
|
-
return
|
|
748
|
-
},
|
|
854
|
+
return Br(Vr(n.filter(Boolean).join(" | ")), Tr);
|
|
855
|
+
}, Kr = (e) => {
|
|
749
856
|
let t;
|
|
750
857
|
if (typeof TextEncoder < "u") {
|
|
751
858
|
let n = new TextEncoder().encode(e);
|
|
@@ -760,8 +867,8 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
760
867
|
t = n.map((e) => String.fromCharCode(e)).join("");
|
|
761
868
|
}
|
|
762
869
|
return window.btoa(t);
|
|
763
|
-
},
|
|
764
|
-
let n =
|
|
870
|
+
}, qr = (e, t) => {
|
|
871
|
+
let n = Kr(t), r = () => {
|
|
765
872
|
let t = new XMLHttpRequest();
|
|
766
873
|
t.open("POST", e, !0), t.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"), t.send(n);
|
|
767
874
|
}, i = () => {
|
|
@@ -771,7 +878,7 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
771
878
|
try {
|
|
772
879
|
r();
|
|
773
880
|
} catch {}
|
|
774
|
-
}, a =
|
|
881
|
+
}, a = Mr ?? window.fetch;
|
|
775
882
|
if (typeof a == "function") {
|
|
776
883
|
a.call(window, e, {
|
|
777
884
|
method: "POST",
|
|
@@ -785,87 +892,87 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
785
892
|
return;
|
|
786
893
|
}
|
|
787
894
|
i();
|
|
788
|
-
},
|
|
789
|
-
if (!
|
|
790
|
-
|
|
895
|
+
}, Jr = (e, t) => (n, r, i) => {
|
|
896
|
+
if (!Ir) {
|
|
897
|
+
Ir = !0;
|
|
791
898
|
try {
|
|
792
|
-
let a =
|
|
793
|
-
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 &&
|
|
899
|
+
let a = Ur(i);
|
|
900
|
+
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 && qr(e, Hr({
|
|
794
901
|
type: n,
|
|
795
902
|
time: Date.now(),
|
|
796
|
-
url:
|
|
797
|
-
browser:
|
|
798
|
-
platform:
|
|
903
|
+
url: Wr(r) || Wr(location.href),
|
|
904
|
+
browser: zr(),
|
|
905
|
+
platform: Rr(),
|
|
799
906
|
message: `[${n}] [${window.document.title}] [${a}]`,
|
|
800
907
|
info: t ? t() : ""
|
|
801
908
|
}));
|
|
802
909
|
} catch {} finally {
|
|
803
|
-
|
|
910
|
+
Ir = !1;
|
|
804
911
|
}
|
|
805
912
|
}
|
|
806
|
-
},
|
|
807
|
-
for (let r of
|
|
808
|
-
},
|
|
809
|
-
let t =
|
|
810
|
-
return
|
|
811
|
-
},
|
|
812
|
-
|
|
813
|
-
let t =
|
|
814
|
-
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`);
|
|
815
922
|
}), e.addEventListener("timeout", () => {
|
|
816
|
-
let t =
|
|
817
|
-
t && !
|
|
923
|
+
let t = Or.get(e);
|
|
924
|
+
t && !Xr(t.url) && Yr(3, t.url, `${t.method} timeout`);
|
|
818
925
|
}), e.addEventListener("loadend", () => {
|
|
819
|
-
let t =
|
|
820
|
-
if (!t || e.status < 400 ||
|
|
926
|
+
let t = Or.get(e);
|
|
927
|
+
if (!t || e.status < 400 || Xr(t.url)) return;
|
|
821
928
|
let n = Date.now() - t.startTime;
|
|
822
|
-
|
|
929
|
+
Yr(3, t.url, `${t.method} ${e.status} (${n}ms)`);
|
|
823
930
|
}));
|
|
824
|
-
},
|
|
825
|
-
|
|
826
|
-
|
|
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, {
|
|
827
934
|
method: String(e).toUpperCase(),
|
|
828
935
|
url: String(t),
|
|
829
936
|
startTime: Date.now()
|
|
830
|
-
}),
|
|
831
|
-
}, XMLHttpRequest.prototype.open =
|
|
832
|
-
let t =
|
|
833
|
-
t && (t.startTime = Date.now()),
|
|
834
|
-
}, XMLHttpRequest.prototype.send =
|
|
835
|
-
},
|
|
836
|
-
|
|
837
|
-
},
|
|
838
|
-
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;
|
|
839
946
|
let e = window.fetch;
|
|
840
|
-
|
|
841
|
-
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();
|
|
842
949
|
try {
|
|
843
950
|
let r = await e.call(this, t, n);
|
|
844
|
-
return !r.ok && !
|
|
951
|
+
return !r.ok && !Xr(i) && Yr(3, i, `${a} ${r.status} (${Date.now() - c}ms)${s}`), r;
|
|
845
952
|
} catch (e) {
|
|
846
|
-
throw
|
|
953
|
+
throw Xr(i) || Yr(3, i, `${a} network error: ${Ur(e)}${s}`), e;
|
|
847
954
|
}
|
|
848
|
-
}, window.fetch =
|
|
849
|
-
},
|
|
850
|
-
|
|
851
|
-
},
|
|
852
|
-
|
|
853
|
-
},
|
|
854
|
-
|
|
855
|
-
},
|
|
856
|
-
|
|
857
|
-
},
|
|
858
|
-
|
|
955
|
+
}, window.fetch = Fr;
|
|
956
|
+
}, ti = () => {
|
|
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));
|
|
859
966
|
};
|
|
860
|
-
function
|
|
967
|
+
function oi(e, t, n) {
|
|
861
968
|
if (!t || typeof window > "u" || typeof navigator > "u") return;
|
|
862
|
-
let r =
|
|
969
|
+
let r = Dr.get(e);
|
|
863
970
|
if (r) return r;
|
|
864
|
-
let i =
|
|
865
|
-
endpoint:
|
|
971
|
+
let i = Jr(t, n), a = {
|
|
972
|
+
endpoint: Wr(t),
|
|
866
973
|
report: i
|
|
867
974
|
};
|
|
868
|
-
|
|
975
|
+
Er.push(a), ii();
|
|
869
976
|
let o = e.config.errorHandler, s = (e, t, n) => {
|
|
870
977
|
i(2, location.href, e), o?.(e, t, n);
|
|
871
978
|
};
|
|
@@ -873,14 +980,14 @@ function Ir(e, t, n) {
|
|
|
873
980
|
let c = !1, l = () => {
|
|
874
981
|
if (c) return;
|
|
875
982
|
c = !0, e.config.errorHandler === s && (e.config.errorHandler = o);
|
|
876
|
-
let t =
|
|
877
|
-
t >= 0 &&
|
|
983
|
+
let t = Er.indexOf(a);
|
|
984
|
+
t >= 0 && Er.splice(t, 1), Dr.delete(e), ai();
|
|
878
985
|
};
|
|
879
|
-
return
|
|
986
|
+
return Dr.set(e, l), e.onUnmount(l), l;
|
|
880
987
|
}
|
|
881
|
-
var
|
|
882
|
-
|
|
883
|
-
}, 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) => {
|
|
884
991
|
if (e == null) return "";
|
|
885
992
|
let t;
|
|
886
993
|
if (typeof e == "string") t = e;
|
|
@@ -889,44 +996,44 @@ var Lr = (e, t, n) => {
|
|
|
889
996
|
} catch {
|
|
890
997
|
t = String(e);
|
|
891
998
|
}
|
|
892
|
-
return t.length >
|
|
999
|
+
return t.length > li ? `${t.slice(0, li)}…` : t;
|
|
893
1000
|
};
|
|
894
|
-
function
|
|
1001
|
+
function di(e, t) {
|
|
895
1002
|
let n = [];
|
|
896
1003
|
for (let r in e) {
|
|
897
|
-
if (!
|
|
1004
|
+
if (!ci.call(e, r)) continue;
|
|
898
1005
|
let i = e[r], a = encodeURIComponent(r), o;
|
|
899
|
-
o = typeof i == "object" ?
|
|
1006
|
+
o = typeof i == "object" ? di(i, t ? t + "[" + a + "]" : a) : (t ? t + "[" + a + "]" : a) + "=" + encodeURIComponent(i), n.push(o);
|
|
900
1007
|
}
|
|
901
1008
|
return n.join("&");
|
|
902
1009
|
}
|
|
903
|
-
var
|
|
1010
|
+
var fi = (e) => {
|
|
904
1011
|
let t = e["content-disposition"];
|
|
905
1012
|
if (t) {
|
|
906
1013
|
let e = t.match(/filename=(?<fileName>.+)/);
|
|
907
1014
|
return e && e.groups && e.groups.fileName;
|
|
908
1015
|
}
|
|
909
1016
|
return "";
|
|
910
|
-
},
|
|
1017
|
+
}, pi = Ge.create({
|
|
911
1018
|
timeout: 3e5,
|
|
912
1019
|
responseType: "json",
|
|
913
1020
|
headers: { "Content-Type": "application/json" }
|
|
914
1021
|
});
|
|
915
|
-
|
|
916
|
-
var
|
|
917
|
-
|
|
918
|
-
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";
|
|
919
1026
|
let t = Y("token", !1);
|
|
920
1027
|
if (e.headers && t && (e.headers.token = t), e.method?.toLocaleUpperCase() === "GET") {
|
|
921
|
-
let t =
|
|
1028
|
+
let t = di(e.data);
|
|
922
1029
|
t && (e.url = `${e.url}?${t}`);
|
|
923
1030
|
}
|
|
924
1031
|
return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
|
|
925
|
-
}, (e) => Promise.reject(e)),
|
|
1032
|
+
}, (e) => Promise.reject(e)), pi.interceptors.response.use((e) => {
|
|
926
1033
|
let t = e.data;
|
|
927
|
-
if (t.code === 401) return
|
|
1034
|
+
if (t.code === 401) return ur("token"), G.replace("/login"), Promise.reject(!1);
|
|
928
1035
|
if (e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
|
|
929
|
-
let t =
|
|
1036
|
+
let t = fi(e.headers);
|
|
930
1037
|
return Promise.resolve({
|
|
931
1038
|
fileName: decodeURIComponent(t),
|
|
932
1039
|
data: e.data
|
|
@@ -937,30 +1044,30 @@ Ur.interceptors.request.use((e) => {
|
|
|
937
1044
|
return Promise.resolve(e);
|
|
938
1045
|
}
|
|
939
1046
|
{
|
|
940
|
-
|
|
941
|
-
let n = t.message, r =
|
|
942
|
-
return
|
|
943
|
-
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"),
|
|
944
1051
|
duration: 3e3
|
|
945
1052
|
}), Promise.reject(n);
|
|
946
1053
|
}
|
|
947
|
-
}, (e) => e ? (
|
|
948
|
-
content:
|
|
1054
|
+
}, (e) => e ? (cr.destroyAll(), e.code === "ERR_NETWORK" ? (cr.error({
|
|
1055
|
+
content: Un.global.t("Notice.network"),
|
|
949
1056
|
duration: 3e3
|
|
950
|
-
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (
|
|
951
|
-
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"),
|
|
952
1059
|
duration: 3e3
|
|
953
|
-
}), Promise.reject(
|
|
954
|
-
var
|
|
955
|
-
|
|
956
|
-
},
|
|
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) => {
|
|
957
1064
|
let i = JSON.stringify({
|
|
958
1065
|
fetchUri: e,
|
|
959
1066
|
...t
|
|
960
1067
|
});
|
|
961
1068
|
if (X.has(i)) return X.get(i);
|
|
962
|
-
let a =
|
|
963
|
-
url: `${
|
|
1069
|
+
let a = pi({
|
|
1070
|
+
url: `${hi}${e}`,
|
|
964
1071
|
method: "GET",
|
|
965
1072
|
data: t,
|
|
966
1073
|
responseType: n,
|
|
@@ -975,53 +1082,53 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
975
1082
|
...t
|
|
976
1083
|
});
|
|
977
1084
|
if (X.has(i)) return X.get(i);
|
|
978
|
-
let a =
|
|
979
|
-
url: `${
|
|
1085
|
+
let a = pi({
|
|
1086
|
+
url: `${hi}${e}`,
|
|
980
1087
|
method: "POST",
|
|
981
1088
|
data: t,
|
|
982
1089
|
responseType: n,
|
|
983
1090
|
timeout: r
|
|
984
1091
|
}).then((e) => (X.delete(i), Promise.resolve(e))).catch((e) => (X.delete(i), Promise.reject(e)));
|
|
985
1092
|
return X.set(i, a), a;
|
|
986
|
-
},
|
|
987
|
-
url: `${
|
|
1093
|
+
}, vi = (e, t = {}, n = "blob", r = 3e5) => pi({
|
|
1094
|
+
url: `${hi}${e}`,
|
|
988
1095
|
method: "POST",
|
|
989
1096
|
data: t,
|
|
990
1097
|
responseType: n,
|
|
991
1098
|
timeout: r
|
|
992
|
-
}),
|
|
1099
|
+
}), yi = (e) => pi(e), bi = (e, t) => pi({
|
|
993
1100
|
headers: { "Content-Type": "multipart/form-data" },
|
|
994
|
-
url: `${
|
|
1101
|
+
url: `${hi}${e}`,
|
|
995
1102
|
method: "POST",
|
|
996
1103
|
data: t
|
|
997
|
-
}),
|
|
1104
|
+
}), xi = (e, t) => Z("dynamic-table/createTime", {
|
|
998
1105
|
id: e,
|
|
999
1106
|
createTime: t
|
|
1000
|
-
}),
|
|
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", {
|
|
1001
1108
|
calculationIds: e,
|
|
1002
1109
|
linkId: t,
|
|
1003
1110
|
...n
|
|
1004
|
-
}),
|
|
1111
|
+
}), Oi = (e) => vi("excel/template", { tableKey: e }, "arraybuffer"), ki = (e) => Z("excel/record/query", {
|
|
1005
1112
|
recordType: "import",
|
|
1006
1113
|
tableKey: e
|
|
1007
|
-
}),
|
|
1114
|
+
}), Ai = (e) => Z("excel/exportData", e), ji = (e, t) => p(Re, { style: { "max-width": "300px" } }, {
|
|
1008
1115
|
trigger: () => e,
|
|
1009
1116
|
default: () => typeof t == "function" ? t() : t
|
|
1010
|
-
}),
|
|
1117
|
+
}), Mi = (e, t, n, r) => {
|
|
1011
1118
|
try {
|
|
1012
1119
|
Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
|
|
1013
1120
|
n && n();
|
|
1014
|
-
}, (e) =>
|
|
1121
|
+
}, (e) => Si({
|
|
1015
1122
|
id: e,
|
|
1016
1123
|
tableId: r
|
|
1017
|
-
}), (e) =>
|
|
1124
|
+
}), (e) => Ci({
|
|
1018
1125
|
tableId: r,
|
|
1019
1126
|
...e
|
|
1020
|
-
}),
|
|
1127
|
+
}), cr, Z);
|
|
1021
1128
|
} catch (e) {
|
|
1022
1129
|
q(e);
|
|
1023
1130
|
}
|
|
1024
|
-
},
|
|
1131
|
+
}, Ni = (e, t, n, r, i) => {
|
|
1025
1132
|
let a = {
|
|
1026
1133
|
secondary: i?.secondary || !1,
|
|
1027
1134
|
tertiary: i?.tertiary || !1,
|
|
@@ -1036,36 +1143,36 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1036
1143
|
if (!e.confirmText) {
|
|
1037
1144
|
if (e.onClick && typeof e.onClick == "string") {
|
|
1038
1145
|
let i = e.onClick;
|
|
1039
|
-
a.onClick = () =>
|
|
1146
|
+
a.onClick = () => Mi(i, t, n, r);
|
|
1040
1147
|
}
|
|
1041
1148
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
1042
1149
|
}
|
|
1043
|
-
return e.icon && (o.icon = () => p(V, {}, { default: () => p(
|
|
1044
|
-
},
|
|
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) => {
|
|
1045
1152
|
let a = { placement: "left" };
|
|
1046
1153
|
if (typeof t.onClick == "string") {
|
|
1047
1154
|
let e = t.onClick;
|
|
1048
|
-
a["on-positive-click"] = () =>
|
|
1155
|
+
a["on-positive-click"] = () => Mi(e, n, r, i);
|
|
1049
1156
|
} else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
|
|
1050
1157
|
return p(Ee, a, {
|
|
1051
1158
|
default: () => p("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
|
|
1052
1159
|
trigger: () => e
|
|
1053
1160
|
});
|
|
1054
|
-
},
|
|
1055
|
-
let a =
|
|
1056
|
-
return e.confirmText && (a =
|
|
1057
|
-
},
|
|
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 }) => {
|
|
1058
1165
|
let a = [];
|
|
1059
1166
|
return e.forEach((e) => {
|
|
1060
1167
|
if (e.type === "group") {
|
|
1061
1168
|
let o = [];
|
|
1062
1169
|
e.children && e.children.length > 0 && e.children.forEach((a, s) => {
|
|
1063
|
-
o.push(
|
|
1170
|
+
o.push(Fi({
|
|
1064
1171
|
...a,
|
|
1065
1172
|
tooltipText: void 0
|
|
1066
1173
|
}, t, n, r, i)), s < e.children.length - 1 && o.push(p("div", { class: "uz-action-split" }, { default: () => "" }));
|
|
1067
1174
|
}), a.push(p(De, { trigger: "click" }, {
|
|
1068
|
-
trigger: () =>
|
|
1175
|
+
trigger: () => Ni({
|
|
1069
1176
|
type: "normal",
|
|
1070
1177
|
key: e.key,
|
|
1071
1178
|
icon: e.icon,
|
|
@@ -1081,11 +1188,11 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1081
1188
|
}));
|
|
1082
1189
|
}
|
|
1083
1190
|
if (e.type === "normal") {
|
|
1084
|
-
let o =
|
|
1191
|
+
let o = Fi(e, t, n, r, i);
|
|
1085
1192
|
a.push(o);
|
|
1086
1193
|
}
|
|
1087
1194
|
}), p("div", { class: "uz-action-flex" }, { default: () => a });
|
|
1088
|
-
},
|
|
1195
|
+
}, Li = (e) => {
|
|
1089
1196
|
switch (e) {
|
|
1090
1197
|
case "tertiary": return 1;
|
|
1091
1198
|
case "primary": return 2;
|
|
@@ -1095,7 +1202,7 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1095
1202
|
case "error": return 6;
|
|
1096
1203
|
default: return 0;
|
|
1097
1204
|
}
|
|
1098
|
-
},
|
|
1205
|
+
}, Ri = (e) => {
|
|
1099
1206
|
switch (e) {
|
|
1100
1207
|
case 1: return "tertiary";
|
|
1101
1208
|
case 2: return "primary";
|
|
@@ -1105,7 +1212,7 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1105
1212
|
case 6: return "error";
|
|
1106
1213
|
default: return "default";
|
|
1107
1214
|
}
|
|
1108
|
-
},
|
|
1215
|
+
}, zi = (e) => {
|
|
1109
1216
|
switch (e) {
|
|
1110
1217
|
case "detailInside": return 0;
|
|
1111
1218
|
case "editInside": return 1;
|
|
@@ -1114,7 +1221,7 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1114
1221
|
case "enabledInside": return 4;
|
|
1115
1222
|
default: return e;
|
|
1116
1223
|
}
|
|
1117
|
-
},
|
|
1224
|
+
}, Bi = (e) => {
|
|
1118
1225
|
switch (e) {
|
|
1119
1226
|
case 0: return "detailInside";
|
|
1120
1227
|
case 1: return "editInside";
|
|
@@ -1123,66 +1230,66 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1123
1230
|
case 4: return "enabledInside";
|
|
1124
1231
|
default: return e;
|
|
1125
1232
|
}
|
|
1126
|
-
},
|
|
1233
|
+
}, Vi = (e) => ({
|
|
1127
1234
|
t: 0,
|
|
1128
1235
|
k: e.key,
|
|
1129
1236
|
d: e?.disabled,
|
|
1130
1237
|
l: e?.loading,
|
|
1131
1238
|
i: e?.icon,
|
|
1132
|
-
c:
|
|
1239
|
+
c: Li(e?.color),
|
|
1133
1240
|
b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
|
|
1134
1241
|
o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
|
|
1135
1242
|
p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
|
|
1136
1243
|
s: e?.optionsType,
|
|
1137
1244
|
u: e?.optionsSource,
|
|
1138
|
-
a:
|
|
1245
|
+
a: zi(e?.action),
|
|
1139
1246
|
r: +!!e.footer,
|
|
1140
1247
|
g: +!!e.main,
|
|
1141
1248
|
h: +!!e.sub,
|
|
1142
1249
|
w: e?.width,
|
|
1143
1250
|
z: e?.onClick
|
|
1144
|
-
}),
|
|
1251
|
+
}), Hi = (e) => ({
|
|
1145
1252
|
type: "normal",
|
|
1146
1253
|
key: e.k,
|
|
1147
1254
|
disabled: e?.d,
|
|
1148
1255
|
loading: e?.l,
|
|
1149
1256
|
icon: e?.i,
|
|
1150
|
-
color:
|
|
1257
|
+
color: Ri(e?.c),
|
|
1151
1258
|
buttonText: e?.b ? decodeURIComponent(e?.b) : "",
|
|
1152
1259
|
confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
|
|
1153
1260
|
tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
|
|
1154
1261
|
optionsType: e?.s,
|
|
1155
1262
|
optionsSource: e?.u,
|
|
1156
|
-
action:
|
|
1263
|
+
action: Bi(e?.a),
|
|
1157
1264
|
footer: !!e.r,
|
|
1158
1265
|
sub: !!e.h,
|
|
1159
1266
|
main: !!e.g,
|
|
1160
1267
|
width: e?.w,
|
|
1161
1268
|
onClick: e?.z
|
|
1162
|
-
}),
|
|
1269
|
+
}), Ui = (e) => {
|
|
1163
1270
|
let t = [];
|
|
1164
|
-
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({
|
|
1165
1272
|
t: 1,
|
|
1166
1273
|
k: n.key,
|
|
1167
1274
|
i: n?.icon,
|
|
1168
|
-
x:
|
|
1275
|
+
x: Li(n?.color),
|
|
1169
1276
|
b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
|
|
1170
|
-
c: n.children.map((e) =>
|
|
1277
|
+
c: n.children.map((e) => Vi(e))
|
|
1171
1278
|
});
|
|
1172
1279
|
return t;
|
|
1173
|
-
},
|
|
1280
|
+
}, Wi = (e) => {
|
|
1174
1281
|
if (e && e[0] && e[0].type) return e;
|
|
1175
1282
|
let t = [];
|
|
1176
|
-
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({
|
|
1177
1284
|
type: "group",
|
|
1178
1285
|
key: n.k,
|
|
1179
1286
|
icon: n?.i,
|
|
1180
|
-
color:
|
|
1287
|
+
color: Ri(n?.x),
|
|
1181
1288
|
buttonText: n?.b ? decodeURIComponent(n?.b) : "",
|
|
1182
|
-
children: n.c.map((e) =>
|
|
1289
|
+
children: n.c.map((e) => Hi(e))
|
|
1183
1290
|
});
|
|
1184
1291
|
return t;
|
|
1185
|
-
},
|
|
1292
|
+
}, Gi = f({
|
|
1186
1293
|
name: "UzBack",
|
|
1187
1294
|
components: {
|
|
1188
1295
|
NButton: R,
|
|
@@ -1207,7 +1314,7 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1207
1314
|
});
|
|
1208
1315
|
//#endregion
|
|
1209
1316
|
//#region components/back/index.vue
|
|
1210
|
-
function
|
|
1317
|
+
function Ki(e, t, n, i, a, s) {
|
|
1211
1318
|
let c = O("UzIcon"), l = O("NIcon"), d = O("NButton");
|
|
1212
1319
|
return S(), r(d, {
|
|
1213
1320
|
quaternary: "",
|
|
@@ -1221,7 +1328,7 @@ function Si(e, t, n, i, a, s) {
|
|
|
1221
1328
|
_: 1
|
|
1222
1329
|
}, 8, ["onClick"]);
|
|
1223
1330
|
}
|
|
1224
|
-
var
|
|
1331
|
+
var qi = /*#__PURE__*/ W(Gi, [["render", Ki]]), Ji = f({
|
|
1225
1332
|
name: "UzFormItem",
|
|
1226
1333
|
components: {
|
|
1227
1334
|
NIcon: V,
|
|
@@ -1399,11 +1506,11 @@ var Ci = /*#__PURE__*/ W(xi, [["render", Si]]), wi = f({
|
|
|
1399
1506
|
checkNumberMax: (t) => {
|
|
1400
1507
|
if (e.status !== 2) return t.params.maxKey ? Number(e.formValue[t.params.maxKey]) : t.params.max;
|
|
1401
1508
|
},
|
|
1402
|
-
selectFilter: (e, t) =>
|
|
1509
|
+
selectFilter: (e, t) => Sr(t.label, e)
|
|
1403
1510
|
};
|
|
1404
1511
|
}
|
|
1405
|
-
}),
|
|
1406
|
-
function
|
|
1512
|
+
}), Yi = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
1513
|
+
function Xi(t, n, i, c, d, f) {
|
|
1407
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");
|
|
1408
1515
|
return t.item.input === "input" ? (S(), r(p, {
|
|
1409
1516
|
key: 0,
|
|
@@ -1708,7 +1815,7 @@ function Ei(t, n, i, c, d, f) {
|
|
|
1708
1815
|
value: t.formValue[t.item.key],
|
|
1709
1816
|
disabled: t.checkDisabled()
|
|
1710
1817
|
}, {
|
|
1711
|
-
default: P(() => [o("div",
|
|
1818
|
+
default: P(() => [o("div", Yi, [(S(!0), a(e, null, E(t.item.params.options, (e) => (S(), r(x, {
|
|
1712
1819
|
key: e.value,
|
|
1713
1820
|
label: e.label,
|
|
1714
1821
|
value: e.value
|
|
@@ -1777,7 +1884,7 @@ function Ei(t, n, i, c, d, f) {
|
|
|
1777
1884
|
"status"
|
|
1778
1885
|
])) : (S(), a(e, { key: 14 }, [], 64));
|
|
1779
1886
|
}
|
|
1780
|
-
var
|
|
1887
|
+
var Zi = /*#__PURE__*/ W(Ji, [["render", Xi]]), Qi = f({
|
|
1781
1888
|
name: "UzForm",
|
|
1782
1889
|
components: {
|
|
1783
1890
|
NForm: me,
|
|
@@ -1785,7 +1892,7 @@ var Di = /*#__PURE__*/ W(wi, [["render", Ei]]), Oi = f({
|
|
|
1785
1892
|
NDivider: le,
|
|
1786
1893
|
NButton: R,
|
|
1787
1894
|
NIcon: V,
|
|
1788
|
-
UzFormItem:
|
|
1895
|
+
UzFormItem: Zi
|
|
1789
1896
|
},
|
|
1790
1897
|
props: {
|
|
1791
1898
|
items: {
|
|
@@ -1862,12 +1969,12 @@ var Di = /*#__PURE__*/ W(wi, [["render", Ei]]), Oi = f({
|
|
|
1862
1969
|
}, p = (e, t) => {
|
|
1863
1970
|
switch (e) {
|
|
1864
1971
|
case "datetime":
|
|
1865
|
-
case "datetimerange": return
|
|
1972
|
+
case "datetimerange": return hr(t, "yyyy-MM-dd hh:mm:ss");
|
|
1866
1973
|
case "month":
|
|
1867
|
-
case "monthrange": return
|
|
1974
|
+
case "monthrange": return hr(t, "yyyy-MM");
|
|
1868
1975
|
case "year":
|
|
1869
|
-
case "yearrange": return
|
|
1870
|
-
default: return
|
|
1976
|
+
case "yearrange": return hr(t, "yyyy");
|
|
1977
|
+
default: return hr(t);
|
|
1871
1978
|
}
|
|
1872
1979
|
}, h = (e, t = !1) => {
|
|
1873
1980
|
let n = tt(e).startOf("day").diff(tt().startOf("day"), "day");
|
|
@@ -1990,8 +2097,8 @@ var Di = /*#__PURE__*/ W(wi, [["render", Ei]]), Oi = f({
|
|
|
1990
2097
|
}
|
|
1991
2098
|
};
|
|
1992
2099
|
}
|
|
1993
|
-
}),
|
|
1994
|
-
function
|
|
2100
|
+
}), $i = ["onClick"];
|
|
2101
|
+
function ea(t, n, s, c, d, f) {
|
|
1995
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");
|
|
1996
2103
|
return S(), a(e, null, [u(C, {
|
|
1997
2104
|
ref: "formRef",
|
|
@@ -2019,7 +2126,7 @@ function Ai(t, n, s, c, d, f) {
|
|
|
2019
2126
|
}, [u(m, null, {
|
|
2020
2127
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
2021
2128
|
_: 1
|
|
2022
|
-
}), n[0] ||= l(" 新增 ", -1)], 8,
|
|
2129
|
+
}), n[0] ||= l(" 新增 ", -1)], 8, $i)) : i("", !0),
|
|
2023
2130
|
s.form.showDays ? (S(), a("span", {
|
|
2024
2131
|
key: 1,
|
|
2025
2132
|
class: _(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
@@ -2080,7 +2187,7 @@ function Ai(t, n, s, c, d, f) {
|
|
|
2080
2187
|
onOnSubmit: t.refreshOption
|
|
2081
2188
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
2082
2189
|
}
|
|
2083
|
-
var
|
|
2190
|
+
var ta = /*#__PURE__*/ W(Qi, [["render", ea]]), na = f({
|
|
2084
2191
|
name: "UzDraggableForm",
|
|
2085
2192
|
components: {
|
|
2086
2193
|
NForm: me,
|
|
@@ -2088,7 +2195,7 @@ var ji = /*#__PURE__*/ W(Oi, [["render", Ai]]), Mi = f({
|
|
|
2088
2195
|
NButton: R,
|
|
2089
2196
|
NIcon: V,
|
|
2090
2197
|
NDivider: le,
|
|
2091
|
-
UzFormItem:
|
|
2198
|
+
UzFormItem: Zi,
|
|
2092
2199
|
VueDraggable: nt
|
|
2093
2200
|
},
|
|
2094
2201
|
props: {
|
|
@@ -2186,14 +2293,14 @@ var ji = /*#__PURE__*/ W(Oi, [["render", Ai]]), Mi = f({
|
|
|
2186
2293
|
}
|
|
2187
2294
|
};
|
|
2188
2295
|
}
|
|
2189
|
-
}),
|
|
2296
|
+
}), ra = {
|
|
2190
2297
|
key: 0,
|
|
2191
2298
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
|
|
2192
|
-
},
|
|
2299
|
+
}, ia = {
|
|
2193
2300
|
key: 1,
|
|
2194
2301
|
class: "uz-form-item-add"
|
|
2195
2302
|
};
|
|
2196
|
-
function
|
|
2303
|
+
function aa(t, n, s, c, d, f) {
|
|
2197
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");
|
|
2198
2305
|
return S(), r(w, {
|
|
2199
2306
|
ref: "formRef",
|
|
@@ -2231,11 +2338,11 @@ function Fi(t, n, s, c, d, f) {
|
|
|
2231
2338
|
}, {
|
|
2232
2339
|
label: P(() => [
|
|
2233
2340
|
o("div", null, A(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
2234
|
-
s.source && s.form.createButton ? (S(), a("a",
|
|
2341
|
+
s.source && s.form.createButton ? (S(), a("a", ra, [u(m, null, {
|
|
2235
2342
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
2236
2343
|
_: 1
|
|
2237
2344
|
}), n[1] ||= l(" 新增 ", -1)])) : i("", !0),
|
|
2238
|
-
s.form.showDays ? (S(), a("span",
|
|
2345
|
+
s.form.showDays ? (S(), a("span", ia, " showDays ")) : i("", !0)
|
|
2239
2346
|
]),
|
|
2240
2347
|
default: P(() => [t.formItemIndex[0] === c && t.formItemIndex[1] === -1 ? (S(), r(h, {
|
|
2241
2348
|
key: 0,
|
|
@@ -2362,7 +2469,7 @@ function Fi(t, n, s, c, d, f) {
|
|
|
2362
2469
|
"onClick"
|
|
2363
2470
|
]);
|
|
2364
2471
|
}
|
|
2365
|
-
var
|
|
2472
|
+
var oa = /*#__PURE__*/ W(na, [["render", aa]]), sa = f({
|
|
2366
2473
|
name: "UzFormItemUpload",
|
|
2367
2474
|
components: {
|
|
2368
2475
|
NUpload: ze,
|
|
@@ -2407,7 +2514,7 @@ var Ii = /*#__PURE__*/ W(Mi, [["render", Fi]]), Li = f({
|
|
|
2407
2514
|
}), r.value = !1, o();
|
|
2408
2515
|
else {
|
|
2409
2516
|
let s = new FormData();
|
|
2410
|
-
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) => {
|
|
2411
2518
|
i.value.push({
|
|
2412
2519
|
id: e.file.id,
|
|
2413
2520
|
name: e.file.name,
|
|
@@ -2474,8 +2581,8 @@ var Ii = /*#__PURE__*/ W(Mi, [["render", Fi]]), Li = f({
|
|
|
2474
2581
|
}
|
|
2475
2582
|
};
|
|
2476
2583
|
}
|
|
2477
|
-
}),
|
|
2478
|
-
function
|
|
2584
|
+
}), ca = { class: "uz-form-upload-item-inner" }, la = ["title"], ua = { key: 0 };
|
|
2585
|
+
function da(t, n, s, c, d, f) {
|
|
2479
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");
|
|
2480
2587
|
return S(), r(b, {
|
|
2481
2588
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
@@ -2529,10 +2636,10 @@ function Vi(t, n, s, c, d, f) {
|
|
|
2529
2636
|
}, {
|
|
2530
2637
|
default: P(() => [u(p, { icon: "Document" })]),
|
|
2531
2638
|
_: 1
|
|
2532
|
-
}, 8, ["onClick"])), o("div",
|
|
2639
|
+
}, 8, ["onClick"])), o("div", ca, [o("div", {
|
|
2533
2640
|
class: "uz-form-upload-title uz-truncate",
|
|
2534
2641
|
title: e.name
|
|
2535
|
-
}, 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) }, {
|
|
2536
2643
|
trigger: P(() => [u(v, {
|
|
2537
2644
|
size: "small",
|
|
2538
2645
|
tertiary: ""
|
|
@@ -2561,7 +2668,7 @@ function Vi(t, n, s, c, d, f) {
|
|
|
2561
2668
|
_: 1
|
|
2562
2669
|
}, 8, ["show"]);
|
|
2563
2670
|
}
|
|
2564
|
-
var
|
|
2671
|
+
var fa = /*#__PURE__*/ W(sa, [["render", da], ["__scopeId", "data-v-79565a09"]]), pa = f({
|
|
2565
2672
|
name: "UzFormItemImage",
|
|
2566
2673
|
components: {
|
|
2567
2674
|
NImageGroup: ye,
|
|
@@ -2605,11 +2712,11 @@ var Hi = /*#__PURE__*/ W(Li, [["render", Vi], ["__scopeId", "data-v-79565a09"]])
|
|
|
2605
2712
|
}
|
|
2606
2713
|
};
|
|
2607
2714
|
}
|
|
2608
|
-
}),
|
|
2609
|
-
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) {
|
|
2610
2717
|
let f = O("UzIcon"), p = O("NIcon"), m = O("NImage"), h = O("NPopover"), g = O("NImageGroup");
|
|
2611
2718
|
return S(), r(g, null, {
|
|
2612
|
-
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, {
|
|
2613
2720
|
key: 0,
|
|
2614
2721
|
width: "40",
|
|
2615
2722
|
src: n
|
|
@@ -2641,7 +2748,7 @@ function Gi(t, n, i, s, c, d) {
|
|
|
2641
2748
|
_: 1
|
|
2642
2749
|
});
|
|
2643
2750
|
}
|
|
2644
|
-
var
|
|
2751
|
+
var ga = /*#__PURE__*/ W(pa, [["render", ha]]), _a = f({
|
|
2645
2752
|
name: "UzFormItemTimesPicker",
|
|
2646
2753
|
components: { NSelect: Ae },
|
|
2647
2754
|
props: {
|
|
@@ -2691,10 +2798,10 @@ var Ki = /*#__PURE__*/ W(Ui, [["render", Gi]]), qi = f({
|
|
|
2691
2798
|
}
|
|
2692
2799
|
};
|
|
2693
2800
|
}
|
|
2694
|
-
}),
|
|
2695
|
-
function
|
|
2801
|
+
}), va = { class: "times-picker" };
|
|
2802
|
+
function ya(e, t, n, r, i, o) {
|
|
2696
2803
|
let s = O("NSelect");
|
|
2697
|
-
return S(), a("div",
|
|
2804
|
+
return S(), a("div", va, [
|
|
2698
2805
|
u(s, {
|
|
2699
2806
|
value: e.h,
|
|
2700
2807
|
options: e.times,
|
|
@@ -2742,10 +2849,10 @@ function Yi(e, t, n, r, i, o) {
|
|
|
2742
2849
|
])
|
|
2743
2850
|
]);
|
|
2744
2851
|
}
|
|
2745
|
-
var
|
|
2852
|
+
var ba = /*#__PURE__*/ W(_a, [["render", ya], ["__scopeId", "data-v-12b4d7e3"]]);
|
|
2746
2853
|
//#endregion
|
|
2747
2854
|
//#region components/hooks/useDebounceFn.ts
|
|
2748
|
-
function
|
|
2855
|
+
function xa(e, t = 1e3) {
|
|
2749
2856
|
let n = $e(e, t);
|
|
2750
2857
|
return {
|
|
2751
2858
|
run: n,
|
|
@@ -2755,24 +2862,24 @@ function Zi(e, t = 1e3) {
|
|
|
2755
2862
|
}
|
|
2756
2863
|
//#endregion
|
|
2757
2864
|
//#region components/bom/index.vue?vue&type=script&lang.ts
|
|
2758
|
-
var
|
|
2865
|
+
var Sa = [
|
|
2759
2866
|
"var(--primary)",
|
|
2760
2867
|
"var(--green)",
|
|
2761
2868
|
"var(--yellow)",
|
|
2762
2869
|
"var(--purple)"
|
|
2763
|
-
],
|
|
2870
|
+
], Ca = (e) => {
|
|
2764
2871
|
if (e == null || e === "") return null;
|
|
2765
2872
|
if (typeof e == "string") {
|
|
2766
2873
|
let t = Number.parseFloat(e);
|
|
2767
2874
|
return Number.isFinite(t) ? e.includes("%") || t > 1 ? t / 100 : t : null;
|
|
2768
2875
|
}
|
|
2769
2876
|
return Number.isFinite(e) ? e > 1 ? e / 100 : e : null;
|
|
2770
|
-
},
|
|
2771
|
-
let t = Number(e.quantity), n =
|
|
2877
|
+
}, wa = (e) => {
|
|
2878
|
+
let t = Number(e.quantity), n = Ca(e.lossRate);
|
|
2772
2879
|
if (!Number.isFinite(t) || n === null || n < 0) return null;
|
|
2773
2880
|
let r = 1 - n;
|
|
2774
2881
|
return r > 0 ? Math.ceil(t / r) : null;
|
|
2775
|
-
},
|
|
2882
|
+
}, Ta = (e) => e === null ? "—" : e.toLocaleString("zh-CN"), Ea = [
|
|
2776
2883
|
{
|
|
2777
2884
|
title: "编码",
|
|
2778
2885
|
key: "code",
|
|
@@ -2817,7 +2924,7 @@ var Qi = [
|
|
|
2817
2924
|
title: "含损耗用量",
|
|
2818
2925
|
key: "required_quantity",
|
|
2819
2926
|
width: 120,
|
|
2820
|
-
render: (e) =>
|
|
2927
|
+
render: (e) => Ta(wa(e))
|
|
2821
2928
|
},
|
|
2822
2929
|
{
|
|
2823
2930
|
title: "备注",
|
|
@@ -2825,7 +2932,7 @@ var Qi = [
|
|
|
2825
2932
|
width: 220,
|
|
2826
2933
|
ellipsis: { tooltip: !0 }
|
|
2827
2934
|
}
|
|
2828
|
-
],
|
|
2935
|
+
], Da = f({
|
|
2829
2936
|
name: "UzBom",
|
|
2830
2937
|
components: { NDataTable: se },
|
|
2831
2938
|
props: {
|
|
@@ -2871,7 +2978,7 @@ var Qi = [
|
|
|
2871
2978
|
}
|
|
2872
2979
|
let n = new Set(t), r = o.value.map((t) => e.get(t) ?? t).filter((e) => n.has(e));
|
|
2873
2980
|
(r.length !== o.value.length || r.some((e, t) => e !== o.value[t])) && (o.value = r);
|
|
2874
|
-
}, { run: h, flush: g, cancel: _ } =
|
|
2981
|
+
}, { run: h, flush: g, cancel: _ } = xa(() => m(u(a.value)), 200), v = /* @__PURE__ */ new WeakMap(), b = (e) => {
|
|
2875
2982
|
let t = v.get(e);
|
|
2876
2983
|
if (t) return t;
|
|
2877
2984
|
let n = new Proxy(e, { set(e, t, n) {
|
|
@@ -2966,7 +3073,7 @@ var Qi = [
|
|
|
2966
3073
|
align: "center",
|
|
2967
3074
|
titleAlign: "center",
|
|
2968
3075
|
className: "uz-bom-action-cell",
|
|
2969
|
-
render: (e) =>
|
|
3076
|
+
render: (e) => Ii({
|
|
2970
3077
|
buttons: [{
|
|
2971
3078
|
type: "normal",
|
|
2972
3079
|
key: "add",
|
|
@@ -2995,14 +3102,14 @@ var Qi = [
|
|
|
2995
3102
|
title: e.label,
|
|
2996
3103
|
key: e.key,
|
|
2997
3104
|
width: 160,
|
|
2998
|
-
render: (t, n) => p(
|
|
3105
|
+
render: (t, n) => p(Zi, {
|
|
2999
3106
|
item: e,
|
|
3000
3107
|
formValue: b(t),
|
|
3001
3108
|
status: 1,
|
|
3002
3109
|
itemIndex: n
|
|
3003
3110
|
})
|
|
3004
3111
|
}))), k = n(() => {
|
|
3005
|
-
let [e, ...t] =
|
|
3112
|
+
let [e, ...t] = Ea;
|
|
3006
3113
|
return [
|
|
3007
3114
|
E,
|
|
3008
3115
|
e,
|
|
@@ -3020,7 +3127,7 @@ var Qi = [
|
|
|
3020
3127
|
if (!Number.isFinite(t) || t < 1) return null;
|
|
3021
3128
|
let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
|
|
3022
3129
|
return {
|
|
3023
|
-
color:
|
|
3130
|
+
color: Sa[n - 1],
|
|
3024
3131
|
opacity: Math.min(.1 + r * .05, .4)
|
|
3025
3132
|
};
|
|
3026
3133
|
};
|
|
@@ -3039,10 +3146,10 @@ var Qi = [
|
|
|
3039
3146
|
handleExpandedRowKeysChange: A
|
|
3040
3147
|
};
|
|
3041
3148
|
}
|
|
3042
|
-
}),
|
|
3043
|
-
function
|
|
3149
|
+
}), Oa = { class: "uz-bom" };
|
|
3150
|
+
function ka(e, t, n, r, i, o) {
|
|
3044
3151
|
let s = O("NDataTable");
|
|
3045
|
-
return S(), a("div",
|
|
3152
|
+
return S(), a("div", Oa, [u(s, {
|
|
3046
3153
|
columns: e.tableColumns,
|
|
3047
3154
|
data: e.innerData,
|
|
3048
3155
|
"row-props": e.getRowProps,
|
|
@@ -3069,13 +3176,13 @@ function aa(e, t, n, r, i, o) {
|
|
|
3069
3176
|
"onUpdate:expandedRowKeys"
|
|
3070
3177
|
])]);
|
|
3071
3178
|
}
|
|
3072
|
-
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) => {
|
|
3073
3180
|
let i = r * Math.PI / 180;
|
|
3074
3181
|
return {
|
|
3075
3182
|
x: e + n * Math.cos(i),
|
|
3076
3183
|
y: t + n * Math.sin(i)
|
|
3077
3184
|
};
|
|
3078
|
-
},
|
|
3185
|
+
}, Ga = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, Ka = (e, t, n, r, i, a) => {
|
|
3079
3186
|
if (a <= 0) return "";
|
|
3080
3187
|
let o = n + r / 2, s = n - r / 2;
|
|
3081
3188
|
if (a >= 359.999) {
|
|
@@ -3087,16 +3194,16 @@ var oa = /*#__PURE__*/ W(ra, [["render", aa]]), sa = 46, ca = 8, Q = 2 * Math.PI
|
|
|
3087
3194
|
`A ${s} ${s} 0 1 0 ${i}`
|
|
3088
3195
|
].join(" ");
|
|
3089
3196
|
}
|
|
3090
|
-
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);
|
|
3091
3198
|
return [
|
|
3092
|
-
`M ${
|
|
3093
|
-
`A ${o} ${o} 0 ${m} 1 ${
|
|
3094
|
-
`A ${p} ${p} 0 0 1 ${
|
|
3095
|
-
`A ${s} ${s} 0 ${m} 0 ${
|
|
3096
|
-
`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)}`,
|
|
3097
3204
|
"Z"
|
|
3098
3205
|
].join(" ");
|
|
3099
|
-
},
|
|
3206
|
+
}, qa = (e) => {
|
|
3100
3207
|
if (!e) return "";
|
|
3101
3208
|
let t = e.toLowerCase();
|
|
3102
3209
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -3110,7 +3217,7 @@ var oa = /*#__PURE__*/ W(ra, [["render", aa]]), sa = 46, ca = 8, Q = 2 * Math.PI
|
|
|
3110
3217
|
return e.join(",");
|
|
3111
3218
|
}
|
|
3112
3219
|
return "0,0,0";
|
|
3113
|
-
},
|
|
3220
|
+
}, Ja = f({
|
|
3114
3221
|
name: "UzCircle",
|
|
3115
3222
|
components: { UzNumberFlow: it },
|
|
3116
3223
|
props: {
|
|
@@ -3133,10 +3240,10 @@ var oa = /*#__PURE__*/ W(ra, [["render", aa]]), sa = 46, ca = 8, Q = 2 * Math.PI
|
|
|
3133
3240
|
}
|
|
3134
3241
|
},
|
|
3135
3242
|
setup(e) {
|
|
3136
|
-
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) => {
|
|
3137
3244
|
let t = Number(e) - 50;
|
|
3138
3245
|
return t < 0 && (t = 0), t;
|
|
3139
|
-
})},1)`), a = n(() => `rgba(${
|
|
3246
|
+
})},1)`), a = n(() => `rgba(${qa(e.color)},1)`), o = n(() => {
|
|
3140
3247
|
let t = Number(e.circle);
|
|
3141
3248
|
return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
|
|
3142
3249
|
}), s = T(o.value), c;
|
|
@@ -3168,49 +3275,49 @@ var oa = /*#__PURE__*/ W(ra, [["render", aa]]), sa = 46, ca = 8, Q = 2 * Math.PI
|
|
|
3168
3275
|
remainingLength: 0,
|
|
3169
3276
|
remainingStart: 0
|
|
3170
3277
|
};
|
|
3171
|
-
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;
|
|
3172
3279
|
return {
|
|
3173
3280
|
activeLength: a,
|
|
3174
3281
|
activeStart: r / 2,
|
|
3175
3282
|
remainingLength: o,
|
|
3176
3283
|
remainingStart: r / 2 + a + r
|
|
3177
3284
|
};
|
|
3178
|
-
}), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() =>
|
|
3179
|
-
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;
|
|
3180
3287
|
if (e === 0) return {
|
|
3181
3288
|
activeLength: 0,
|
|
3182
|
-
remainingLength:
|
|
3289
|
+
remainingLength: Va,
|
|
3183
3290
|
remainingStart: 0
|
|
3184
3291
|
};
|
|
3185
3292
|
if (t === 0) return {
|
|
3186
|
-
activeLength:
|
|
3293
|
+
activeLength: Va,
|
|
3187
3294
|
remainingLength: 0,
|
|
3188
3295
|
remainingStart: 0
|
|
3189
3296
|
};
|
|
3190
|
-
let n = Math.min(
|
|
3297
|
+
let n = Math.min(Ha, e, t);
|
|
3191
3298
|
return {
|
|
3192
3299
|
activeLength: e - n / 2,
|
|
3193
3300
|
remainingLength: t - n / 2,
|
|
3194
3301
|
remainingStart: e + n / 2
|
|
3195
3302
|
};
|
|
3196
|
-
}), 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));
|
|
3197
3304
|
return {
|
|
3198
3305
|
color: n(() => e.color),
|
|
3199
3306
|
colorA: i,
|
|
3200
3307
|
colorB: a,
|
|
3201
|
-
fullRadius:
|
|
3202
|
-
fullStrokeWidth:
|
|
3308
|
+
fullRadius: ja,
|
|
3309
|
+
fullStrokeWidth: Ma,
|
|
3203
3310
|
fullCircumference: Q,
|
|
3204
3311
|
fullActiveLength: u,
|
|
3205
3312
|
fullActiveStart: d,
|
|
3206
3313
|
fullRemainingLength: f,
|
|
3207
3314
|
fullRemainingStart: p,
|
|
3208
3315
|
fullRemainingPath: m,
|
|
3209
|
-
gaugeCenterY:
|
|
3210
|
-
gaugeRadius:
|
|
3211
|
-
gaugeStrokeWidth:
|
|
3212
|
-
gaugeCircumference:
|
|
3213
|
-
gaugeTransform:
|
|
3316
|
+
gaugeCenterY: Fa,
|
|
3317
|
+
gaugeRadius: Ia,
|
|
3318
|
+
gaugeStrokeWidth: La,
|
|
3319
|
+
gaugeCircumference: Ba,
|
|
3320
|
+
gaugeTransform: Ua,
|
|
3214
3321
|
gaugeActiveLength: g,
|
|
3215
3322
|
gaugeRemainingLength: _,
|
|
3216
3323
|
gaugeRemainingStart: v,
|
|
@@ -3219,31 +3326,31 @@ var oa = /*#__PURE__*/ W(ra, [["render", aa]]), sa = 46, ca = 8, Q = 2 * Math.PI
|
|
|
3219
3326
|
blurFilterId: r
|
|
3220
3327
|
};
|
|
3221
3328
|
}
|
|
3222
|
-
}),
|
|
3329
|
+
}), Ya = { class: "uz-circle" }, Xa = {
|
|
3223
3330
|
key: 0,
|
|
3224
3331
|
viewBox: "0 0 120 120",
|
|
3225
3332
|
"aria-hidden": "true"
|
|
3226
|
-
},
|
|
3333
|
+
}, Za = ["id"], Qa = ["stop-color"], $a = ["stop-color"], eo = ["id"], to = [
|
|
3227
3334
|
"r",
|
|
3228
3335
|
"stroke-width",
|
|
3229
3336
|
"stroke-dasharray",
|
|
3230
3337
|
"stroke-dashoffset",
|
|
3231
3338
|
"filter",
|
|
3232
3339
|
"stroke"
|
|
3233
|
-
],
|
|
3340
|
+
], no = [
|
|
3234
3341
|
"d",
|
|
3235
3342
|
"fill",
|
|
3236
3343
|
"filter"
|
|
3237
|
-
],
|
|
3344
|
+
], ro = {
|
|
3238
3345
|
class: "uz-circle__unit",
|
|
3239
3346
|
x: "60",
|
|
3240
3347
|
y: "82",
|
|
3241
3348
|
"text-anchor": "middle"
|
|
3242
|
-
},
|
|
3349
|
+
}, io = {
|
|
3243
3350
|
key: 1,
|
|
3244
3351
|
viewBox: "0 0 120 120",
|
|
3245
3352
|
"aria-hidden": "true"
|
|
3246
|
-
},
|
|
3353
|
+
}, ao = ["id"], oo = ["stop-color"], so = ["stop-color"], co = ["id"], lo = [
|
|
3247
3354
|
"cy",
|
|
3248
3355
|
"r",
|
|
3249
3356
|
"stroke-width",
|
|
@@ -3251,19 +3358,19 @@ var oa = /*#__PURE__*/ W(ra, [["render", aa]]), sa = 46, ca = 8, Q = 2 * Math.PI
|
|
|
3251
3358
|
"transform",
|
|
3252
3359
|
"filter",
|
|
3253
3360
|
"stroke"
|
|
3254
|
-
],
|
|
3361
|
+
], uo = [
|
|
3255
3362
|
"d",
|
|
3256
3363
|
"fill",
|
|
3257
3364
|
"filter"
|
|
3258
|
-
],
|
|
3365
|
+
], fo = {
|
|
3259
3366
|
class: "uz-circle__unit uz-circle__unit--gauge",
|
|
3260
3367
|
x: "60",
|
|
3261
3368
|
y: "90",
|
|
3262
3369
|
"text-anchor": "middle"
|
|
3263
3370
|
};
|
|
3264
|
-
function
|
|
3371
|
+
function po(e, t, n, r, s, c) {
|
|
3265
3372
|
let l = O("UzNumberFlow");
|
|
3266
|
-
return S(), a("div",
|
|
3373
|
+
return S(), a("div", Ya, [e.mode === 0 ? (S(), a("svg", Xa, [
|
|
3267
3374
|
o("defs", null, [o("linearGradient", {
|
|
3268
3375
|
id: `uz-progress-grad-${e.uniqueId}`,
|
|
3269
3376
|
x1: "1",
|
|
@@ -3273,10 +3380,10 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3273
3380
|
}, [o("stop", {
|
|
3274
3381
|
offset: "0%",
|
|
3275
3382
|
"stop-color": e.colorA
|
|
3276
|
-
}, null, 8,
|
|
3383
|
+
}, null, 8, Qa), o("stop", {
|
|
3277
3384
|
offset: "50%",
|
|
3278
3385
|
"stop-color": e.colorB
|
|
3279
|
-
}, null, 8,
|
|
3386
|
+
}, null, 8, $a)], 8, Za), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
|
|
3280
3387
|
o("feOffset", {
|
|
3281
3388
|
result: "offOut",
|
|
3282
3389
|
in: "SourceGraphic",
|
|
@@ -3293,7 +3400,7 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3293
3400
|
in2: "blurOut",
|
|
3294
3401
|
mode: "normal"
|
|
3295
3402
|
}, null, -1)
|
|
3296
|
-
]], 8,
|
|
3403
|
+
]], 8, eo)]),
|
|
3297
3404
|
e.fullActiveLength > 0 ? (S(), a("circle", {
|
|
3298
3405
|
key: 0,
|
|
3299
3406
|
class: "uz-circle__progress",
|
|
@@ -3308,7 +3415,7 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3308
3415
|
transform: "rotate(-90 60 60)",
|
|
3309
3416
|
filter: `url(#${e.blurFilterId})`,
|
|
3310
3417
|
stroke: `url(#uz-progress-grad-${e.uniqueId})`
|
|
3311
|
-
}, null, 8,
|
|
3418
|
+
}, null, 8, to)) : i("", !0),
|
|
3312
3419
|
e.fullRemainingPath ? (S(), a("path", {
|
|
3313
3420
|
key: 1,
|
|
3314
3421
|
class: "uz-circle__progress",
|
|
@@ -3316,9 +3423,9 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3316
3423
|
fill: e.color,
|
|
3317
3424
|
"fill-opacity": "0.1",
|
|
3318
3425
|
filter: `url(#${e.blurFilterId})`
|
|
3319
|
-
}, null, 8,
|
|
3320
|
-
o("text",
|
|
3321
|
-
])) : (S(), a("svg",
|
|
3426
|
+
}, null, 8, no)) : i("", !0),
|
|
3427
|
+
o("text", ro, A(e.circleUnit), 1)
|
|
3428
|
+
])) : (S(), a("svg", io, [
|
|
3322
3429
|
o("defs", null, [o("linearGradient", {
|
|
3323
3430
|
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
3324
3431
|
x1: "1",
|
|
@@ -3328,10 +3435,10 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3328
3435
|
}, [o("stop", {
|
|
3329
3436
|
offset: "0%",
|
|
3330
3437
|
"stop-color": e.colorA
|
|
3331
|
-
}, null, 8,
|
|
3438
|
+
}, null, 8, oo), o("stop", {
|
|
3332
3439
|
offset: "50%",
|
|
3333
3440
|
"stop-color": e.colorB
|
|
3334
|
-
}, null, 8,
|
|
3441
|
+
}, null, 8, so)], 8, ao), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
|
|
3335
3442
|
o("feOffset", {
|
|
3336
3443
|
result: "offOut",
|
|
3337
3444
|
in: "SourceGraphic",
|
|
@@ -3348,7 +3455,7 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3348
3455
|
in2: "blurOut",
|
|
3349
3456
|
mode: "normal"
|
|
3350
3457
|
}, null, -1)
|
|
3351
|
-
]], 8,
|
|
3458
|
+
]], 8, co)]),
|
|
3352
3459
|
e.gaugeActiveLength > 0 ? (S(), a("circle", {
|
|
3353
3460
|
key: 0,
|
|
3354
3461
|
class: "uz-circle__progress",
|
|
@@ -3362,7 +3469,7 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3362
3469
|
transform: e.gaugeTransform,
|
|
3363
3470
|
filter: `url(#${e.blurFilterId})`,
|
|
3364
3471
|
stroke: `url(#uz-progress-grad-1-${e.uniqueId})`
|
|
3365
|
-
}, null, 8,
|
|
3472
|
+
}, null, 8, lo)) : i("", !0),
|
|
3366
3473
|
e.gaugeRemainingPath ? (S(), a("path", {
|
|
3367
3474
|
key: 1,
|
|
3368
3475
|
class: "uz-circle__progress",
|
|
@@ -3370,11 +3477,11 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3370
3477
|
fill: e.color,
|
|
3371
3478
|
"fill-opacity": "0.1",
|
|
3372
3479
|
filter: `url(#${e.blurFilterId})`
|
|
3373
|
-
}, null, 8,
|
|
3374
|
-
o("text",
|
|
3480
|
+
}, null, 8, uo)) : i("", !0),
|
|
3481
|
+
o("text", fo, A(e.circleUnit), 1)
|
|
3375
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)]);
|
|
3376
3483
|
}
|
|
3377
|
-
var
|
|
3484
|
+
var mo = /*#__PURE__*/ W(Ja, [["render", po]]), ho = f({
|
|
3378
3485
|
name: "UzCamera",
|
|
3379
3486
|
components: {
|
|
3380
3487
|
NButton: R,
|
|
@@ -3466,11 +3573,11 @@ var Ua = /*#__PURE__*/ W(wa, [["render", Ha]]), Wa = f({
|
|
|
3466
3573
|
closeAll: d
|
|
3467
3574
|
};
|
|
3468
3575
|
}
|
|
3469
|
-
}),
|
|
3576
|
+
}), go = ["width", "height"], _o = ["width", "height"], vo = { class: "uz-scan-video" }, yo = {
|
|
3470
3577
|
ref: "videoRef",
|
|
3471
3578
|
playsInline: ""
|
|
3472
3579
|
};
|
|
3473
|
-
function
|
|
3580
|
+
function bo(t, n, s, c, u, d) {
|
|
3474
3581
|
let f = O("NButton"), p = O("NModal");
|
|
3475
3582
|
return S(), a(e, null, [
|
|
3476
3583
|
t.mode === "button" ? (S(), r(f, {
|
|
@@ -3502,7 +3609,7 @@ function Ya(t, n, s, c, u, d) {
|
|
|
3502
3609
|
id: "uz-scan-canvas",
|
|
3503
3610
|
width: t.width,
|
|
3504
3611
|
height: t.height
|
|
3505
|
-
}, null, 8,
|
|
3612
|
+
}, null, 8, go)], 4)]),
|
|
3506
3613
|
_: 1
|
|
3507
3614
|
}, 8, [
|
|
3508
3615
|
"show",
|
|
@@ -3520,11 +3627,11 @@ function Ya(t, n, s, c, u, d) {
|
|
|
3520
3627
|
id: "uz-scan-canvas",
|
|
3521
3628
|
width: t.width,
|
|
3522
3629
|
height: t.height
|
|
3523
|
-
}, null, 8,
|
|
3524
|
-
o("div",
|
|
3630
|
+
}, null, 8, _o)], 4)) : i("", !0),
|
|
3631
|
+
o("div", vo, [o("video", yo, null, 512)])
|
|
3525
3632
|
], 64);
|
|
3526
3633
|
}
|
|
3527
|
-
var
|
|
3634
|
+
var xo = /*#__PURE__*/ W(ho, [["render", bo]]), So = /* @__PURE__ */ new WeakMap(), Co = f({
|
|
3528
3635
|
name: "UzSearchBar",
|
|
3529
3636
|
components: {
|
|
3530
3637
|
NIcon: V,
|
|
@@ -3535,7 +3642,7 @@ var Xa = /*#__PURE__*/ W(Wa, [["render", Ya]]), Za = /* @__PURE__ */ new WeakMap
|
|
|
3535
3642
|
NInputGroup: xe,
|
|
3536
3643
|
NInputGroupLabel: Se,
|
|
3537
3644
|
NPopover: De,
|
|
3538
|
-
UzFormItem:
|
|
3645
|
+
UzFormItem: Zi
|
|
3539
3646
|
},
|
|
3540
3647
|
props: {
|
|
3541
3648
|
data: {
|
|
@@ -3573,10 +3680,10 @@ var Xa = /*#__PURE__*/ W(Wa, [["render", Ya]]), Za = /* @__PURE__ */ new WeakMap
|
|
|
3573
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);
|
|
3574
3681
|
}
|
|
3575
3682
|
});
|
|
3576
|
-
n.observe(e),
|
|
3683
|
+
n.observe(e), So.set(e, n);
|
|
3577
3684
|
},
|
|
3578
3685
|
unmounted: (e) => {
|
|
3579
|
-
|
|
3686
|
+
So.get(e)?.disconnect(), So.delete(e);
|
|
3580
3687
|
}
|
|
3581
3688
|
} },
|
|
3582
3689
|
emits: ["update:loading", "on-update:value"],
|
|
@@ -3691,24 +3798,24 @@ var Xa = /*#__PURE__*/ W(Wa, [["render", Ya]]), Za = /* @__PURE__ */ new WeakMap
|
|
|
3691
3798
|
tabButtonType: b
|
|
3692
3799
|
};
|
|
3693
3800
|
}
|
|
3694
|
-
}),
|
|
3801
|
+
}), wo = { class: "uz-flex uz-justify-between uz-gap-2" }, To = {
|
|
3695
3802
|
key: 0,
|
|
3696
3803
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-2 uz-w-full"
|
|
3697
|
-
},
|
|
3804
|
+
}, Eo = { key: 0 }, Do = { class: "uz-flex-1" }, Oo = {
|
|
3698
3805
|
key: 1,
|
|
3699
3806
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
3700
|
-
},
|
|
3807
|
+
}, ko = {
|
|
3701
3808
|
key: 0,
|
|
3702
3809
|
class: "uz-search-fields-collapse"
|
|
3703
3810
|
};
|
|
3704
|
-
function
|
|
3811
|
+
function Ao(n, s, c, d, f, p) {
|
|
3705
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");
|
|
3706
3813
|
return S(), a("div", {
|
|
3707
3814
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
3708
3815
|
onKeyup: s[1] ||= I((e) => n.doSearch(!1), ["enter"])
|
|
3709
|
-
}, [o("div",
|
|
3816
|
+
}, [o("div", wo, [n.enableHeader ? (S(), a("div", To, [
|
|
3710
3817
|
D(n.$slots, "header"),
|
|
3711
|
-
n.tabList && n.tabList.length > 0 ? (S(), a("div",
|
|
3818
|
+
n.tabList && n.tabList.length > 0 ? (S(), a("div", Eo, [u(h, null, {
|
|
3712
3819
|
default: P(() => [(S(!0), a(e, null, E(n.tabList, (e) => (S(), r(m, {
|
|
3713
3820
|
key: e.value,
|
|
3714
3821
|
type: n.tabButtonType(e),
|
|
@@ -3720,7 +3827,7 @@ function ao(n, s, c, d, f, p) {
|
|
|
3720
3827
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
3721
3828
|
_: 1
|
|
3722
3829
|
})])) : i("", !0),
|
|
3723
|
-
F((S(), a("div",
|
|
3830
|
+
F((S(), a("div", Do, [u(C, {
|
|
3724
3831
|
"x-gap": "8",
|
|
3725
3832
|
"y-gap": "8",
|
|
3726
3833
|
cols: n.cols,
|
|
@@ -3757,7 +3864,7 @@ function ao(n, s, c, d, f, p) {
|
|
|
3757
3864
|
}, 1032, ["span"]))), 128)) : i("", !0)]),
|
|
3758
3865
|
_: 1
|
|
3759
3866
|
}, 8, ["cols"])])), [[ee]])
|
|
3760
|
-
])) : i("", !0), n.enableHeader ? (S(), a("div",
|
|
3867
|
+
])) : i("", !0), n.enableHeader ? (S(), a("div", Oo, [
|
|
3761
3868
|
n.more ? (S(), r(m, {
|
|
3762
3869
|
key: 0,
|
|
3763
3870
|
secondary: "",
|
|
@@ -3807,7 +3914,7 @@ function ao(n, s, c, d, f, p) {
|
|
|
3807
3914
|
})) : i("", !0),
|
|
3808
3915
|
D(n.$slots, "action")
|
|
3809
3916
|
])) : i("", !0)]), u(t, { name: "uz-search-fields" }, {
|
|
3810
|
-
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, {
|
|
3811
3918
|
"x-gap": "8",
|
|
3812
3919
|
"y-gap": "8",
|
|
3813
3920
|
cols: 4
|
|
@@ -3842,7 +3949,7 @@ function ao(n, s, c, d, f, p) {
|
|
|
3842
3949
|
_: 1
|
|
3843
3950
|
})], 32);
|
|
3844
3951
|
}
|
|
3845
|
-
var
|
|
3952
|
+
var jo = /*#__PURE__*/ W(Co, [["render", Ao]]), Mo = f({
|
|
3846
3953
|
name: "UzSearchMobileBar",
|
|
3847
3954
|
components: {
|
|
3848
3955
|
NIcon: V,
|
|
@@ -3853,7 +3960,7 @@ var oo = /*#__PURE__*/ W(Qa, [["render", ao]]), so = f({
|
|
|
3853
3960
|
NGridItem: _e,
|
|
3854
3961
|
NInputGroup: xe,
|
|
3855
3962
|
NInputGroupLabel: Se,
|
|
3856
|
-
UzFormItem:
|
|
3963
|
+
UzFormItem: Zi
|
|
3857
3964
|
},
|
|
3858
3965
|
props: {
|
|
3859
3966
|
data: {
|
|
@@ -3931,10 +4038,10 @@ var oo = /*#__PURE__*/ W(Qa, [["render", ao]]), so = f({
|
|
|
3931
4038
|
clearAll: l
|
|
3932
4039
|
};
|
|
3933
4040
|
}
|
|
3934
|
-
}),
|
|
3935
|
-
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) {
|
|
3936
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");
|
|
3937
|
-
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, {
|
|
3938
4045
|
key: 0,
|
|
3939
4046
|
secondary: "",
|
|
3940
4047
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
@@ -3959,7 +4066,7 @@ function fo(t, n, s, c, d, f) {
|
|
|
3959
4066
|
title: "查询",
|
|
3960
4067
|
closable: ""
|
|
3961
4068
|
}, {
|
|
3962
|
-
footer: P(() => [o("div",
|
|
4069
|
+
footer: P(() => [o("div", Fo, [u(h, {
|
|
3963
4070
|
secondary: "",
|
|
3964
4071
|
loading: t.loading,
|
|
3965
4072
|
onClick: t.clearAll,
|
|
@@ -4014,7 +4121,7 @@ function fo(t, n, s, c, d, f) {
|
|
|
4014
4121
|
_: 1
|
|
4015
4122
|
}, 8, ["show"])], 64);
|
|
4016
4123
|
}
|
|
4017
|
-
var
|
|
4124
|
+
var Lo = /*#__PURE__*/ W(Mo, [["render", Io]]), Ro = /(?<=\[)(.+?)(?=\])/g, zo = {
|
|
4018
4125
|
index: 1,
|
|
4019
4126
|
selection: 0,
|
|
4020
4127
|
pagination: 1,
|
|
@@ -4032,10 +4139,10 @@ var po = /*#__PURE__*/ W(so, [["render", fo]]), mo = /(?<=\[)(.+?)(?=\])/g, ho =
|
|
|
4032
4139
|
placement: "right",
|
|
4033
4140
|
summary: ""
|
|
4034
4141
|
};
|
|
4035
|
-
function
|
|
4142
|
+
function Bo(e) {
|
|
4036
4143
|
return Function("return " + e)();
|
|
4037
4144
|
}
|
|
4038
|
-
var
|
|
4145
|
+
var Vo = () => new Promise((e) => {
|
|
4039
4146
|
let t = window.localStorage.getItem("city");
|
|
4040
4147
|
if (t) e(JSON.parse(t));
|
|
4041
4148
|
else {
|
|
@@ -4048,12 +4155,12 @@ var _o = () => new Promise((e) => {
|
|
|
4048
4155
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
4049
4156
|
}, 500);
|
|
4050
4157
|
}
|
|
4051
|
-
}),
|
|
4158
|
+
}), Ho = async (e, t, n) => {
|
|
4052
4159
|
if (t && typeof t == "string") {
|
|
4053
|
-
let r = t.match(
|
|
4160
|
+
let r = t.match(Ro);
|
|
4054
4161
|
if (r && t.indexOf("return") === -1) {
|
|
4055
4162
|
let t = r[0].split(":");
|
|
4056
|
-
if (t[0] === "date") return (t) =>
|
|
4163
|
+
if (t[0] === "date") return (t) => hr(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
4057
4164
|
if (t[0] === "city") return (t) => t[`${e}Str`];
|
|
4058
4165
|
if (t[0] === "modules" && n && Object.keys(n).length > 0) {
|
|
4059
4166
|
let e = r[0].replace("modules:", ""), t = Object.keys(n).find((t) => t.includes(e));
|
|
@@ -4071,7 +4178,7 @@ var _o = () => new Promise((e) => {
|
|
|
4071
4178
|
}
|
|
4072
4179
|
}
|
|
4073
4180
|
return t && typeof t == "function" ? (e, n) => t(e, n, p) : "";
|
|
4074
|
-
},
|
|
4181
|
+
}, Uo = (e, t, n) => {
|
|
4075
4182
|
let r = t.map((t) => {
|
|
4076
4183
|
let r = [], i = t.id;
|
|
4077
4184
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -4084,35 +4191,35 @@ var _o = () => new Promise((e) => {
|
|
|
4084
4191
|
};
|
|
4085
4192
|
});
|
|
4086
4193
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
4087
|
-
},
|
|
4088
|
-
function
|
|
4089
|
-
|
|
4194
|
+
}, Wo = /* @__PURE__ */ new Map();
|
|
4195
|
+
function Go() {
|
|
4196
|
+
Wo.clear();
|
|
4090
4197
|
}
|
|
4091
|
-
async function
|
|
4198
|
+
async function Ko(e, t = !1) {
|
|
4092
4199
|
let n = e.split("."), r = !1;
|
|
4093
|
-
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))), {
|
|
4094
4201
|
sourceData: r,
|
|
4095
4202
|
n
|
|
4096
4203
|
};
|
|
4097
4204
|
}
|
|
4098
|
-
async function
|
|
4205
|
+
async function qo(e) {
|
|
4099
4206
|
return new Promise((t, n) => {
|
|
4100
4207
|
let r = Y(`dynamicTable_${e}`, !1);
|
|
4101
|
-
r &&
|
|
4208
|
+
r && Wo.has(`dynamicTable_${e}`) ? t(r) : xi(e, r ? r.createTime : null).then((n) => {
|
|
4102
4209
|
if (n) {
|
|
4103
4210
|
let r = {
|
|
4104
4211
|
createTime: n.createTime,
|
|
4105
4212
|
tableTitle: n.tableTitle,
|
|
4106
4213
|
viewJson: n.viewJson
|
|
4107
4214
|
};
|
|
4108
|
-
J(`dynamicTable_${e}`, r, 0),
|
|
4109
|
-
} 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);
|
|
4110
4217
|
}).catch(() => {
|
|
4111
4218
|
n();
|
|
4112
4219
|
});
|
|
4113
4220
|
});
|
|
4114
4221
|
}
|
|
4115
|
-
var
|
|
4222
|
+
var Jo = (e) => e.map((e) => {
|
|
4116
4223
|
let t = {};
|
|
4117
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)), {
|
|
4118
4225
|
i: e.input,
|
|
@@ -4187,7 +4294,7 @@ var wo = (e) => e.map((e) => {
|
|
|
4187
4294
|
p: { s: +!!e.form.expand.show }
|
|
4188
4295
|
}
|
|
4189
4296
|
};
|
|
4190
|
-
}),
|
|
4297
|
+
}), Yo = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
4191
4298
|
let t = {};
|
|
4192
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)), {
|
|
4193
4300
|
input: e.i,
|
|
@@ -4262,12 +4369,12 @@ var wo = (e) => e.map((e) => {
|
|
|
4262
4369
|
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
4263
4370
|
}
|
|
4264
4371
|
};
|
|
4265
|
-
}),
|
|
4372
|
+
}), Xo = (e) => ({
|
|
4266
4373
|
f: e.fetch,
|
|
4267
4374
|
n: e.fetchFn,
|
|
4268
4375
|
o: e.when_drawer_open,
|
|
4269
4376
|
b: e.when_before_save
|
|
4270
|
-
}),
|
|
4377
|
+
}), Zo = (e) => e ? e.fetch ? e : {
|
|
4271
4378
|
fetch: e.f,
|
|
4272
4379
|
fetchFn: e.n,
|
|
4273
4380
|
when_drawer_open: e.o,
|
|
@@ -4277,7 +4384,7 @@ var wo = (e) => e.map((e) => {
|
|
|
4277
4384
|
fetchFn: "",
|
|
4278
4385
|
when_drawer_open: "",
|
|
4279
4386
|
when_before_save: ""
|
|
4280
|
-
},
|
|
4387
|
+
}, Qo = (e) => ({
|
|
4281
4388
|
i: e.index,
|
|
4282
4389
|
s: e.selection,
|
|
4283
4390
|
p: e.pagination,
|
|
@@ -4293,7 +4400,7 @@ var wo = (e) => e.map((e) => {
|
|
|
4293
4400
|
h: e.drawerHeight,
|
|
4294
4401
|
l: e.placement,
|
|
4295
4402
|
r: e.summary
|
|
4296
|
-
}),
|
|
4403
|
+
}), $o = (e) => {
|
|
4297
4404
|
let t = {};
|
|
4298
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 : {
|
|
4299
4406
|
index: e.i,
|
|
@@ -4311,9 +4418,9 @@ var wo = (e) => e.map((e) => {
|
|
|
4311
4418
|
drawerHeight: e.h,
|
|
4312
4419
|
placement: e.l,
|
|
4313
4420
|
summary: e.r
|
|
4314
|
-
}), Object.assign({},
|
|
4421
|
+
}), Object.assign({}, zo, U(t));
|
|
4315
4422
|
};
|
|
4316
|
-
function
|
|
4423
|
+
function es(e, t, n, r) {
|
|
4317
4424
|
return new Promise(async (i, a) => {
|
|
4318
4425
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
|
|
4319
4426
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -4348,21 +4455,21 @@ function Ao(e, t, n, r) {
|
|
|
4348
4455
|
disabled: !0
|
|
4349
4456
|
}];
|
|
4350
4457
|
if (e.params.immediately || r) {
|
|
4351
|
-
let { sourceData: t, n: r } = await
|
|
4458
|
+
let { sourceData: t, n: r } = await Ko(e.source);
|
|
4352
4459
|
if (t && Array.isArray(t)) {
|
|
4353
4460
|
if (e.sourceFn) {
|
|
4354
4461
|
let r = e.sourceFn;
|
|
4355
4462
|
n = Function("sourceData", r)(t);
|
|
4356
|
-
} else n =
|
|
4463
|
+
} else n = Uo(e, t, r);
|
|
4357
4464
|
}
|
|
4358
4465
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
4359
|
-
let { sourceData: t, n } = await
|
|
4466
|
+
let { sourceData: t, n } = await Ko(e.source);
|
|
4360
4467
|
if (t && Array.isArray(t)) {
|
|
4361
4468
|
if (e.sourceFn) {
|
|
4362
4469
|
let n = e.sourceFn;
|
|
4363
4470
|
return Function("sourceData", n)(t);
|
|
4364
4471
|
}
|
|
4365
|
-
return
|
|
4472
|
+
return Uo(e, t, n);
|
|
4366
4473
|
}
|
|
4367
4474
|
};
|
|
4368
4475
|
if (e.params.options = n, e.form.backfill && t) {
|
|
@@ -4396,27 +4503,27 @@ function Ao(e, t, n, r) {
|
|
|
4396
4503
|
q(e);
|
|
4397
4504
|
}
|
|
4398
4505
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
4399
|
-
let t = await
|
|
4506
|
+
let t = await Vo();
|
|
4400
4507
|
e.params.options = t;
|
|
4401
4508
|
}
|
|
4402
4509
|
if (e.input === "subTable" && e.params.link) {
|
|
4403
|
-
let t = await
|
|
4510
|
+
let t = await qo(e.params.link).catch(() => {
|
|
4404
4511
|
a();
|
|
4405
4512
|
});
|
|
4406
4513
|
if (t) try {
|
|
4407
4514
|
let n = rt.parse(t.viewJson);
|
|
4408
|
-
n.suffix && (e._suffix =
|
|
4409
|
-
let r =
|
|
4515
|
+
n.suffix && (e._suffix = Wi(n.suffix));
|
|
4516
|
+
let r = Yo(n.table);
|
|
4410
4517
|
r.forEach((e) => {
|
|
4411
4518
|
e.table.sorter = !1;
|
|
4412
4519
|
});
|
|
4413
4520
|
let i = r.filter((e) => e.input === "subTable");
|
|
4414
4521
|
if (i) for await (let e of i) {
|
|
4415
|
-
let t = await
|
|
4522
|
+
let t = await qo(e.params.link).catch(() => {
|
|
4416
4523
|
a();
|
|
4417
4524
|
});
|
|
4418
4525
|
if (t) try {
|
|
4419
|
-
let n = rt.parse(t.viewJson), r =
|
|
4526
|
+
let n = rt.parse(t.viewJson), r = Yo(n.table);
|
|
4420
4527
|
r.forEach((e) => {
|
|
4421
4528
|
e.table.sorter = !1;
|
|
4422
4529
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -4450,7 +4557,7 @@ function Ao(e, t, n, r) {
|
|
|
4450
4557
|
});
|
|
4451
4558
|
});
|
|
4452
4559
|
}
|
|
4453
|
-
async function
|
|
4560
|
+
async function ts(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
4454
4561
|
let s = 0, c = [], l = [], u = {
|
|
4455
4562
|
key: "",
|
|
4456
4563
|
link: "",
|
|
@@ -4465,25 +4572,25 @@ async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4465
4572
|
for await (let [e, s] of m.entries()) {
|
|
4466
4573
|
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
|
|
4467
4574
|
if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
4468
|
-
let { sourceData: t, n } = await
|
|
4575
|
+
let { sourceData: t, n } = await Ko(s.source, a && e === 0);
|
|
4469
4576
|
if (t && Array.isArray(t)) {
|
|
4470
4577
|
if (s.sourceFn) {
|
|
4471
4578
|
let e = s.sourceFn, n = Function("sourceData", e);
|
|
4472
4579
|
s.params.options = n(t);
|
|
4473
|
-
} else s.params.options =
|
|
4580
|
+
} else s.params.options = Uo(s, t, n);
|
|
4474
4581
|
}
|
|
4475
4582
|
} else s.params.options = [{
|
|
4476
4583
|
label: "加载中......",
|
|
4477
4584
|
value: "loading",
|
|
4478
4585
|
disabled: !0
|
|
4479
4586
|
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4480
|
-
let { sourceData: e, n: t } = await
|
|
4587
|
+
let { sourceData: e, n: t } = await Ko(s.source);
|
|
4481
4588
|
if (e && Array.isArray(e)) {
|
|
4482
4589
|
if (s.sourceFn) {
|
|
4483
4590
|
let t = s.sourceFn;
|
|
4484
4591
|
return Function("sourceData", t)(e);
|
|
4485
4592
|
}
|
|
4486
|
-
return
|
|
4593
|
+
return Uo(s, e, t);
|
|
4487
4594
|
}
|
|
4488
4595
|
};
|
|
4489
4596
|
}
|
|
@@ -4491,7 +4598,7 @@ async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4491
4598
|
let t = s.params.options.find((t) => t.value === e[s.key]);
|
|
4492
4599
|
if (t) return t.label;
|
|
4493
4600
|
}), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
|
|
4494
|
-
return p(
|
|
4601
|
+
return p(ga, { value: e[s.key] }, { default: () => null });
|
|
4495
4602
|
});
|
|
4496
4603
|
let f = {
|
|
4497
4604
|
input: s.input,
|
|
@@ -4506,7 +4613,7 @@ async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4506
4613
|
tooltip: !0,
|
|
4507
4614
|
"line-clamp": s.table.clamp ?? 0
|
|
4508
4615
|
} : !1,
|
|
4509
|
-
render: s.table.render ? await
|
|
4616
|
+
render: s.table.render ? await Ho(s.key, s.table.render, i) : void 0,
|
|
4510
4617
|
show: K.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
4511
4618
|
pin: !!s.table.fixed,
|
|
4512
4619
|
fixTemp: s.table.fixed
|
|
@@ -4528,7 +4635,7 @@ async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4528
4635
|
...s.form.rule,
|
|
4529
4636
|
index: t
|
|
4530
4637
|
} : void 0
|
|
4531
|
-
}, { default: () => p(
|
|
4638
|
+
}, { default: () => p(Zi, {
|
|
4532
4639
|
item: s,
|
|
4533
4640
|
formValue: e,
|
|
4534
4641
|
status: n,
|
|
@@ -4541,34 +4648,34 @@ async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4541
4648
|
if (s.search.title && (s.label = s.search.title), s.search.source) {
|
|
4542
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;
|
|
4543
4650
|
else if (s.params.immediately || s.search.defaultValue) {
|
|
4544
|
-
let { sourceData: e, n: t } = await
|
|
4651
|
+
let { sourceData: e, n: t } = await Ko(s.search.source);
|
|
4545
4652
|
if (e && Array.isArray(e)) {
|
|
4546
4653
|
if (s.sourceFn) {
|
|
4547
4654
|
let t = s.sourceFn, n = Function("sourceData", t);
|
|
4548
4655
|
s.params.options = n(e);
|
|
4549
|
-
} else s.params.options =
|
|
4656
|
+
} else s.params.options = Uo(s, e, t);
|
|
4550
4657
|
}
|
|
4551
4658
|
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4552
|
-
let { sourceData: e, n: t } = await
|
|
4659
|
+
let { sourceData: e, n: t } = await Ko(s.search.source);
|
|
4553
4660
|
if (e && Array.isArray(e)) {
|
|
4554
4661
|
if (s.sourceFn) {
|
|
4555
4662
|
let t = s.sourceFn;
|
|
4556
4663
|
return Function("sourceData", t)(e);
|
|
4557
4664
|
}
|
|
4558
|
-
return
|
|
4665
|
+
return Uo(s, e, t);
|
|
4559
4666
|
}
|
|
4560
4667
|
};
|
|
4561
4668
|
}
|
|
4562
|
-
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) {
|
|
4563
4670
|
let e = U(s);
|
|
4564
4671
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
4565
|
-
let { sourceData: t, n } = await
|
|
4672
|
+
let { sourceData: t, n } = await Ko(e.source || e.search.source);
|
|
4566
4673
|
if (t && Array.isArray(t)) {
|
|
4567
4674
|
if (e.sourceFn) {
|
|
4568
4675
|
let n = e.sourceFn;
|
|
4569
4676
|
return Function("sourceData", n)(t);
|
|
4570
4677
|
}
|
|
4571
|
-
return
|
|
4678
|
+
return Uo(e, t, n);
|
|
4572
4679
|
}
|
|
4573
4680
|
}), c.push({
|
|
4574
4681
|
input: e.input,
|
|
@@ -4622,7 +4729,7 @@ async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4622
4729
|
}
|
|
4623
4730
|
//#endregion
|
|
4624
4731
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
4625
|
-
var
|
|
4732
|
+
var ns = f({
|
|
4626
4733
|
name: "UzSpin",
|
|
4627
4734
|
components: {
|
|
4628
4735
|
NButton: R,
|
|
@@ -4668,7 +4775,7 @@ var Mo = f({
|
|
|
4668
4775
|
});
|
|
4669
4776
|
//#endregion
|
|
4670
4777
|
//#region components/spin/index.vue
|
|
4671
|
-
function
|
|
4778
|
+
function rs(e, t, n, i, a, s) {
|
|
4672
4779
|
let c = O("NEllipsis"), d = O("NButton"), f = O("NSpin");
|
|
4673
4780
|
return S(), r(f, { show: e.value }, {
|
|
4674
4781
|
description: P(() => [
|
|
@@ -4696,7 +4803,7 @@ function No(e, t, n, i, a, s) {
|
|
|
4696
4803
|
_: 3
|
|
4697
4804
|
}, 8, ["show"]);
|
|
4698
4805
|
}
|
|
4699
|
-
var
|
|
4806
|
+
var is = /*#__PURE__*/ W(ns, [["render", rs]]), as = f({
|
|
4700
4807
|
name: "UzTableExpand",
|
|
4701
4808
|
components: {
|
|
4702
4809
|
NDataTable: se,
|
|
@@ -4722,8 +4829,8 @@ var Po = /*#__PURE__*/ W(Mo, [["render", No]]), Fo = f({
|
|
|
4722
4829
|
} catch (e) {
|
|
4723
4830
|
q(e);
|
|
4724
4831
|
}
|
|
4725
|
-
|
|
4726
|
-
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) => ({
|
|
4727
4834
|
...e,
|
|
4728
4835
|
sorter: !1,
|
|
4729
4836
|
resizable: !1
|
|
@@ -4744,7 +4851,7 @@ var Po = /*#__PURE__*/ W(Mo, [["render", No]]), Fo = f({
|
|
|
4744
4851
|
});
|
|
4745
4852
|
//#endregion
|
|
4746
4853
|
//#region components/table/components/expand.vue
|
|
4747
|
-
function
|
|
4854
|
+
function os(e, t, n, i, a, o) {
|
|
4748
4855
|
let s = O("NDataTable");
|
|
4749
4856
|
return S(), r(s, {
|
|
4750
4857
|
columns: e.columns,
|
|
@@ -4763,18 +4870,18 @@ function Io(e, t, n, i, a, o) {
|
|
|
4763
4870
|
"scroll-x"
|
|
4764
4871
|
]);
|
|
4765
4872
|
}
|
|
4766
|
-
var
|
|
4873
|
+
var ss = /*#__PURE__*/ W(as, [["render", os]]), cs = f({
|
|
4767
4874
|
components: { NSkeleton: je },
|
|
4768
4875
|
setup() {
|
|
4769
4876
|
return {};
|
|
4770
4877
|
}
|
|
4771
|
-
}),
|
|
4772
|
-
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) {
|
|
4773
4880
|
let c = O("NSkeleton");
|
|
4774
|
-
return S(), a("div",
|
|
4881
|
+
return S(), a("div", ls, [o("div", us, [u(c, {
|
|
4775
4882
|
width: 120,
|
|
4776
4883
|
size: "medium"
|
|
4777
|
-
}), o("div",
|
|
4884
|
+
}), o("div", ds, [
|
|
4778
4885
|
u(c, {
|
|
4779
4886
|
width: 180,
|
|
4780
4887
|
size: "medium"
|
|
@@ -4807,7 +4914,7 @@ function Ho(e, t, n, r, i, s) {
|
|
|
4807
4914
|
}
|
|
4808
4915
|
//#endregion
|
|
4809
4916
|
//#region components/table/index.vue?vue&type=script&lang.ts
|
|
4810
|
-
var
|
|
4917
|
+
var ps = f({
|
|
4811
4918
|
name: "UzTable",
|
|
4812
4919
|
components: {
|
|
4813
4920
|
NDataTable: se,
|
|
@@ -4817,9 +4924,9 @@ var Uo = f({
|
|
|
4817
4924
|
NCheckbox: ie,
|
|
4818
4925
|
NSpin: Ne,
|
|
4819
4926
|
VueDraggable: nt,
|
|
4820
|
-
UzSpin:
|
|
4821
|
-
TableExpand:
|
|
4822
|
-
SkeletonLoading: /* @__PURE__ */ W(
|
|
4927
|
+
UzSpin: is,
|
|
4928
|
+
TableExpand: ss,
|
|
4929
|
+
SkeletonLoading: /* @__PURE__ */ W(cs, [["render", fs]])
|
|
4823
4930
|
},
|
|
4824
4931
|
props: {
|
|
4825
4932
|
id: {
|
|
@@ -4959,7 +5066,7 @@ var Uo = f({
|
|
|
4959
5066
|
fetchFn: "",
|
|
4960
5067
|
when_drawer_open: "",
|
|
4961
5068
|
when_before_save: ""
|
|
4962
|
-
}), 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) => {
|
|
4963
5070
|
t("update:rowKeys", {
|
|
4964
5071
|
keys: e,
|
|
4965
5072
|
rows: U(n)
|
|
@@ -4993,7 +5100,7 @@ var Uo = f({
|
|
|
4993
5100
|
else if (I.value.fetchFn) {
|
|
4994
5101
|
let e = I.value.fetchFn;
|
|
4995
5102
|
r = Function("POST", "queryData", e)(Z, { ...t });
|
|
4996
|
-
} else r =
|
|
5103
|
+
} else r = Si({
|
|
4997
5104
|
...t,
|
|
4998
5105
|
tableId: n
|
|
4999
5106
|
});
|
|
@@ -5007,7 +5114,7 @@ var Uo = f({
|
|
|
5007
5114
|
else if (I.value.fetchFn) {
|
|
5008
5115
|
let e = I.value.fetchFn;
|
|
5009
5116
|
r = Function("POST", "queryData", e)(Z, { id: t.id });
|
|
5010
|
-
} else r =
|
|
5117
|
+
} else r = Si({
|
|
5011
5118
|
id: t.id,
|
|
5012
5119
|
tableId: n
|
|
5013
5120
|
});
|
|
@@ -5016,24 +5123,24 @@ var Uo = f({
|
|
|
5016
5123
|
let r = e.id || o.params.id;
|
|
5017
5124
|
e.enableLoading && (_.value = !0, t("update:loading", !0));
|
|
5018
5125
|
let i = U(k.value);
|
|
5019
|
-
n && delete i.orderby, I.value.fetch ?
|
|
5020
|
-
let n =
|
|
5126
|
+
n && delete i.orderby, I.value.fetch ? Di([I.value.fetch], "", i).then((e) => {
|
|
5127
|
+
let n = mr(e);
|
|
5021
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);
|
|
5022
5129
|
}).catch(() => {
|
|
5023
5130
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5024
5131
|
}) : de(i).then((e) => {
|
|
5025
|
-
let n =
|
|
5132
|
+
let n = mr(e);
|
|
5026
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);
|
|
5027
5134
|
}).catch(() => {
|
|
5028
5135
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5029
5136
|
});
|
|
5030
5137
|
}, pe = (e) => {
|
|
5031
|
-
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();
|
|
5032
5139
|
}, me = () => {
|
|
5033
5140
|
let e = k.value.query.page + 1;
|
|
5034
5141
|
e > k.value.query.pageMax && (e = 1), k.value.query.page = e, u.value && (u.value.scrollTop = 0), B();
|
|
5035
5142
|
}, he = (e) => {
|
|
5036
|
-
k.value.query.pageSize = e, k.value.query.page = 1,
|
|
5143
|
+
k.value.query.pageSize = e, k.value.query.page = 1, pr(), B();
|
|
5037
5144
|
}, ge = (e) => {
|
|
5038
5145
|
e && e.order ? k.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete k.value.orderby, B();
|
|
5039
5146
|
}, _e = () => {
|
|
@@ -5057,7 +5164,7 @@ var Uo = f({
|
|
|
5057
5164
|
show: !0,
|
|
5058
5165
|
ellipsis: !1,
|
|
5059
5166
|
width: 180,
|
|
5060
|
-
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") })]
|
|
5061
5168
|
}, {
|
|
5062
5169
|
title: "更新人/时间",
|
|
5063
5170
|
key: "updateTime",
|
|
@@ -5066,9 +5173,9 @@ var Uo = f({
|
|
|
5066
5173
|
show: !0,
|
|
5067
5174
|
ellipsis: !0,
|
|
5068
5175
|
width: 180,
|
|
5069
|
-
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") })]
|
|
5070
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) => {
|
|
5071
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await
|
|
5178
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await es(N.value, e, () => f.value?.getFormValues());
|
|
5072
5179
|
return x.value = t, {
|
|
5073
5180
|
form: t,
|
|
5074
5181
|
fillingDefaultValue: n,
|
|
@@ -5157,7 +5264,7 @@ var Uo = f({
|
|
|
5157
5264
|
...n,
|
|
5158
5265
|
tableId: a,
|
|
5159
5266
|
sub_table_ids: r
|
|
5160
|
-
}) :
|
|
5267
|
+
}) : wi({
|
|
5161
5268
|
...n,
|
|
5162
5269
|
tableId: a,
|
|
5163
5270
|
sub_table_ids: r
|
|
@@ -5175,7 +5282,7 @@ var Uo = f({
|
|
|
5175
5282
|
});
|
|
5176
5283
|
};
|
|
5177
5284
|
} else if (n.type !== "group" && n.action === "disabledInside") n.onClick = (t) => {
|
|
5178
|
-
|
|
5285
|
+
Ci({
|
|
5179
5286
|
tableId: e.id || o.params.id,
|
|
5180
5287
|
...t,
|
|
5181
5288
|
is_disabled: "1"
|
|
@@ -5184,7 +5291,7 @@ var Uo = f({
|
|
|
5184
5291
|
}).catch(() => null);
|
|
5185
5292
|
};
|
|
5186
5293
|
else if (n.type !== "group" && n.action === "enabledInside") n.onClick = (t) => {
|
|
5187
|
-
|
|
5294
|
+
Ci({
|
|
5188
5295
|
tableId: e.id || o.params.id,
|
|
5189
5296
|
...t,
|
|
5190
5297
|
is_disabled: "0"
|
|
@@ -5197,7 +5304,7 @@ var Uo = f({
|
|
|
5197
5304
|
n.onClick = (t) => {
|
|
5198
5305
|
fe(t).then((t) => {
|
|
5199
5306
|
let r = t && t[0];
|
|
5200
|
-
|
|
5307
|
+
Di([n.action], r.id, r).then((t) => {
|
|
5201
5308
|
if (e && typeof e == "string") {
|
|
5202
5309
|
try {
|
|
5203
5310
|
Function("rowData", "res", e)(r, t).then((e) => {
|
|
@@ -5236,8 +5343,8 @@ var Uo = f({
|
|
|
5236
5343
|
};
|
|
5237
5344
|
}
|
|
5238
5345
|
}, Te = async () => {
|
|
5239
|
-
re.value = !1,
|
|
5240
|
-
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);
|
|
5241
5348
|
!l.value && L.value.index && n.unshift({
|
|
5242
5349
|
title: "#",
|
|
5243
5350
|
key: "index",
|
|
@@ -5279,7 +5386,7 @@ var Uo = f({
|
|
|
5279
5386
|
hide: !0,
|
|
5280
5387
|
width: Number(typeof L.value.actionWidth == "string" ? L.value.actionWidth.replace("px", "") : L.value.actionWidth),
|
|
5281
5388
|
render(t) {
|
|
5282
|
-
return
|
|
5389
|
+
return Ii({
|
|
5283
5390
|
buttons: e,
|
|
5284
5391
|
rowData: t,
|
|
5285
5392
|
callback: B,
|
|
@@ -5293,8 +5400,8 @@ var Uo = f({
|
|
|
5293
5400
|
if (c) {
|
|
5294
5401
|
let e = Y(`tables_filter_${c}`, !1);
|
|
5295
5402
|
if (e) try {
|
|
5296
|
-
let t = await
|
|
5297
|
-
t && (e = JSON.parse(t), u =
|
|
5403
|
+
let t = await Ti(c);
|
|
5404
|
+
t && (e = JSON.parse(t), u = Cr(n, e));
|
|
5298
5405
|
} catch {}
|
|
5299
5406
|
}
|
|
5300
5407
|
a.link && u.unshift({
|
|
@@ -5306,7 +5413,7 @@ var Uo = f({
|
|
|
5306
5413
|
filter: "default",
|
|
5307
5414
|
filterOptionValue: null,
|
|
5308
5415
|
renderFilterMenu: () => p("div", { class: "uz-table-filter" }, [p(R, { onClick: ze }, { default: () => s("Common.expand") }), p(R, { onClick: Be }, { default: () => s("Common.contract") })]),
|
|
5309
|
-
renderExpand: (e) => p(
|
|
5416
|
+
renderExpand: (e) => p(ss, {
|
|
5310
5417
|
data: a,
|
|
5311
5418
|
value: e
|
|
5312
5419
|
})
|
|
@@ -5327,12 +5434,12 @@ var Uo = f({
|
|
|
5327
5434
|
let e = 0;
|
|
5328
5435
|
S.value.forEach((t) => {
|
|
5329
5436
|
t.show && (e += Number(t.width || 140));
|
|
5330
|
-
}), 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({
|
|
5331
5438
|
table_id: n,
|
|
5332
5439
|
data: JSON.stringify(t)
|
|
5333
5440
|
}).catch(() => null);
|
|
5334
5441
|
}
|
|
5335
|
-
}, { run: ke } =
|
|
5442
|
+
}, { run: ke } = xa(Oe), { run: Ae } = xa((e, t) => {
|
|
5336
5443
|
let n = [];
|
|
5337
5444
|
S.value.forEach((r) => {
|
|
5338
5445
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -5359,7 +5466,7 @@ var Uo = f({
|
|
|
5359
5466
|
i = e.formFetch ? e.formFetch({
|
|
5360
5467
|
tableId: a,
|
|
5361
5468
|
...t
|
|
5362
|
-
}) :
|
|
5469
|
+
}) : Ci({
|
|
5363
5470
|
tableId: a,
|
|
5364
5471
|
...t
|
|
5365
5472
|
}), i.then(() => {
|
|
@@ -5373,14 +5480,14 @@ var Uo = f({
|
|
|
5373
5480
|
fetchFn: "",
|
|
5374
5481
|
when_drawer_open: "",
|
|
5375
5482
|
when_before_save: ""
|
|
5376
|
-
}, L.value =
|
|
5483
|
+
}, L.value = $o();
|
|
5377
5484
|
}, Pe = (t) => {
|
|
5378
5485
|
let n = rt.parse(t.viewJson);
|
|
5379
|
-
y.value = t.tableTitle, N.value =
|
|
5380
|
-
let r =
|
|
5381
|
-
F.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value =
|
|
5382
|
-
let i =
|
|
5383
|
-
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;
|
|
5384
5491
|
}, Fe = async () => {
|
|
5385
5492
|
v.value = !1, Ne();
|
|
5386
5493
|
let t = e.id || o.params.id;
|
|
@@ -5397,7 +5504,7 @@ var Uo = f({
|
|
|
5397
5504
|
ne.value = s("Notice.network"), re.value = !0;
|
|
5398
5505
|
return;
|
|
5399
5506
|
}
|
|
5400
|
-
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) => {
|
|
5401
5508
|
Pe(e), await Te();
|
|
5402
5509
|
}).catch((e) => {
|
|
5403
5510
|
ne.value = e?.message || s("Notice.network"), re.value = !0;
|
|
@@ -5438,7 +5545,7 @@ var Uo = f({
|
|
|
5438
5545
|
if (_.value) return;
|
|
5439
5546
|
_.value = !0;
|
|
5440
5547
|
let t = e.id || o.params.id;
|
|
5441
|
-
t && (
|
|
5548
|
+
t && (ur(`tables_filter_${t}`), Ei({
|
|
5442
5549
|
table_id: t,
|
|
5443
5550
|
data: null
|
|
5444
5551
|
}).catch(() => null).finally(() => {
|
|
@@ -5465,7 +5572,7 @@ var Uo = f({
|
|
|
5465
5572
|
}), M(() => e.height, () => {
|
|
5466
5573
|
De();
|
|
5467
5574
|
}), M([() => o.params.id, () => e.id], async () => {
|
|
5468
|
-
|
|
5575
|
+
pr(), await Fe();
|
|
5469
5576
|
}), M(() => e.defaultCheckedRowKeys, (e) => {
|
|
5470
5577
|
let t = e || [], n = z.value.filter((e) => t.includes(e.id));
|
|
5471
5578
|
ie.value = t, z.value = n;
|
|
@@ -5516,14 +5623,14 @@ var Uo = f({
|
|
|
5516
5623
|
}
|
|
5517
5624
|
};
|
|
5518
5625
|
}
|
|
5519
|
-
}),
|
|
5626
|
+
}), ms = { class: "uz-com-title" }, hs = {
|
|
5520
5627
|
ref: "mRef",
|
|
5521
5628
|
class: "uz-table-m-content"
|
|
5522
|
-
},
|
|
5629
|
+
}, gs = {
|
|
5523
5630
|
key: 1,
|
|
5524
5631
|
class: "uz-transform-fade-in"
|
|
5525
|
-
},
|
|
5526
|
-
function
|
|
5632
|
+
}, _s = { class: "uz-com-title" }, vs = ["data-index"];
|
|
5633
|
+
function ys(t, n, c, d, f, p) {
|
|
5527
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");
|
|
5528
5635
|
return S(), a("div", {
|
|
5529
5636
|
class: "uz-table",
|
|
@@ -5588,7 +5695,7 @@ function Yo(t, n, c, d, f, p) {
|
|
|
5588
5695
|
key: "0"
|
|
5589
5696
|
} : {
|
|
5590
5697
|
name: "header",
|
|
5591
|
-
fn: P(() => [o("div",
|
|
5698
|
+
fn: P(() => [o("div", ms, A(t.title), 1)]),
|
|
5592
5699
|
key: "1"
|
|
5593
5700
|
}]), 1032, [
|
|
5594
5701
|
"data",
|
|
@@ -5596,7 +5703,7 @@ function Yo(t, n, c, d, f, p) {
|
|
|
5596
5703
|
"cache",
|
|
5597
5704
|
"loading",
|
|
5598
5705
|
"onOnUpdate:value"
|
|
5599
|
-
]), o("div",
|
|
5706
|
+
]), o("div", hs, [u(C, {
|
|
5600
5707
|
tableColumns: t.tableCols,
|
|
5601
5708
|
tableData: t.tableData,
|
|
5602
5709
|
tableQueries: t.tableQueries,
|
|
@@ -5614,7 +5721,7 @@ function Yo(t, n, c, d, f, p) {
|
|
|
5614
5721
|
"minH",
|
|
5615
5722
|
"maxH",
|
|
5616
5723
|
"onUpdate:rowKeys"
|
|
5617
|
-
])], 512)], 2)) : (S(), a("div",
|
|
5724
|
+
])], 512)], 2)) : (S(), a("div", gs, [u(te, {
|
|
5618
5725
|
data: t.searchData,
|
|
5619
5726
|
id: t.id || t.route.params.id,
|
|
5620
5727
|
cache: t.tableOption.cache,
|
|
@@ -5669,7 +5776,7 @@ function Yo(t, n, c, d, f, p) {
|
|
|
5669
5776
|
_: 1
|
|
5670
5777
|
})]),
|
|
5671
5778
|
_: 1
|
|
5672
|
-
})], 8,
|
|
5779
|
+
})], 8, vs)), [[j, !e.hide]])), 128)), u(h, {
|
|
5673
5780
|
block: "",
|
|
5674
5781
|
tertiary: "",
|
|
5675
5782
|
loading: t.loading,
|
|
@@ -5723,7 +5830,7 @@ function Yo(t, n, c, d, f, p) {
|
|
|
5723
5830
|
key: "0"
|
|
5724
5831
|
} : {
|
|
5725
5832
|
name: "header",
|
|
5726
|
-
fn: P(() => [o("div",
|
|
5833
|
+
fn: P(() => [o("div", _s, A(t.title), 1)]),
|
|
5727
5834
|
key: "1"
|
|
5728
5835
|
}]), 1032, [
|
|
5729
5836
|
"data",
|
|
@@ -5784,10 +5891,10 @@ function Yo(t, n, c, d, f, p) {
|
|
|
5784
5891
|
u(I, { ref: "drawerRef" }, null, 512)
|
|
5785
5892
|
], 4);
|
|
5786
5893
|
}
|
|
5787
|
-
var
|
|
5894
|
+
var bs = /*#__PURE__*/ W(ps, [["render", ys]]), xs = f({
|
|
5788
5895
|
name: "UzTableChild",
|
|
5789
5896
|
components: {
|
|
5790
|
-
UzIcon:
|
|
5897
|
+
UzIcon: Bn,
|
|
5791
5898
|
NSpin: Ne,
|
|
5792
5899
|
NButton: R,
|
|
5793
5900
|
NIcon: V,
|
|
@@ -5813,7 +5920,7 @@ var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
|
5813
5920
|
emits: ["update:value"],
|
|
5814
5921
|
setup(e, { emit: t, expose: r }) {
|
|
5815
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) => {
|
|
5816
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
5923
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await es(U(n ?? e.item.params.columns), t, void 0, !0);
|
|
5817
5924
|
return S.value = r, i;
|
|
5818
5925
|
}, D = async (t) => {
|
|
5819
5926
|
if (h.value) return;
|
|
@@ -5844,7 +5951,7 @@ var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
|
5844
5951
|
});
|
|
5845
5952
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
5846
5953
|
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
5847
|
-
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;
|
|
5848
5955
|
r.unshift({
|
|
5849
5956
|
title: " ",
|
|
5850
5957
|
key: "index",
|
|
@@ -5863,7 +5970,7 @@ var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
|
5863
5970
|
hide: !0,
|
|
5864
5971
|
show: !0,
|
|
5865
5972
|
render() {
|
|
5866
|
-
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" }) }));
|
|
5867
5974
|
}
|
|
5868
5975
|
}), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
|
|
5869
5976
|
title: () => l("Common.action"),
|
|
@@ -5877,7 +5984,7 @@ var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
|
5877
5984
|
width: 60,
|
|
5878
5985
|
render(t, n) {
|
|
5879
5986
|
let r = [];
|
|
5880
|
-
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) => {
|
|
5881
5988
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
5882
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({
|
|
5883
5990
|
type: "normal",
|
|
@@ -5889,7 +5996,7 @@ var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
|
5889
5996
|
let n = e.item.params.deleteFn;
|
|
5890
5997
|
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
|
|
5891
5998
|
}
|
|
5892
|
-
}),
|
|
5999
|
+
}), Ii({
|
|
5893
6000
|
buttons: r,
|
|
5894
6001
|
rowData: t
|
|
5895
6002
|
});
|
|
@@ -6020,14 +6127,14 @@ var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
|
6020
6127
|
}
|
|
6021
6128
|
};
|
|
6022
6129
|
}
|
|
6023
|
-
}),
|
|
6130
|
+
}), Ss = { class: "uz-flex-1 uz-w-full" }, Cs = { class: "uz-flex uz-justify-between" }, ws = { class: "uz-com-title" }, Ts = {
|
|
6024
6131
|
key: 0,
|
|
6025
6132
|
class: "uz-table-asterisk"
|
|
6026
|
-
},
|
|
6027
|
-
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) {
|
|
6028
6135
|
let m = O("UzIcon"), h = O("NIcon"), g = O("NButton"), v = O("NDataTable"), y = O("NForm");
|
|
6029
|
-
return S(), a("div",
|
|
6030
|
-
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, [
|
|
6031
6138
|
t.status === 2 ? i("", !0) : (S(!0), a(e, { key: 0 }, E(t.suffixes, (e) => (S(), r(g, {
|
|
6032
6139
|
key: e.key,
|
|
6033
6140
|
type: e.color,
|
|
@@ -6100,7 +6207,7 @@ function is(t, n, c, d, f, p) {
|
|
|
6100
6207
|
"scroll-x",
|
|
6101
6208
|
"class",
|
|
6102
6209
|
"row-class-name"
|
|
6103
|
-
])) : 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, {
|
|
6104
6211
|
key: 0,
|
|
6105
6212
|
type: "success",
|
|
6106
6213
|
secondary: "",
|
|
@@ -6129,7 +6236,7 @@ function is(t, n, c, d, f, p) {
|
|
|
6129
6236
|
}, 8, ["model"])
|
|
6130
6237
|
]);
|
|
6131
6238
|
}
|
|
6132
|
-
var
|
|
6239
|
+
var ks = /*#__PURE__*/ W(xs, [["render", Os]]), As = f({
|
|
6133
6240
|
name: "UzTableQuestChild",
|
|
6134
6241
|
components: { NDataTable: se },
|
|
6135
6242
|
props: {
|
|
@@ -6157,7 +6264,7 @@ var as = /*#__PURE__*/ W(Zo, [["render", is]]), os = f({
|
|
|
6157
6264
|
}), o.value = t, i.value = !1;
|
|
6158
6265
|
}
|
|
6159
6266
|
}, l = async (i) => {
|
|
6160
|
-
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;
|
|
6161
6268
|
c.unshift({
|
|
6162
6269
|
title: " ",
|
|
6163
6270
|
key: "index",
|
|
@@ -6176,7 +6283,7 @@ var as = /*#__PURE__*/ W(Zo, [["render", is]]), os = f({
|
|
|
6176
6283
|
hide: !0,
|
|
6177
6284
|
width: 60,
|
|
6178
6285
|
render(t) {
|
|
6179
|
-
return
|
|
6286
|
+
return Ii({ buttons: [{
|
|
6180
6287
|
type: "normal",
|
|
6181
6288
|
color: "primary",
|
|
6182
6289
|
key: "detail",
|
|
@@ -6197,7 +6304,7 @@ var as = /*#__PURE__*/ W(Zo, [["render", is]]), os = f({
|
|
|
6197
6304
|
}), N(async () => {
|
|
6198
6305
|
try {
|
|
6199
6306
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
6200
|
-
let t = await
|
|
6307
|
+
let t = await Si({
|
|
6201
6308
|
tableId: e.item.params.link,
|
|
6202
6309
|
params: [{
|
|
6203
6310
|
key: e.item.params.searchKey,
|
|
@@ -6231,11 +6338,11 @@ var as = /*#__PURE__*/ W(Zo, [["render", is]]), os = f({
|
|
|
6231
6338
|
tableScrollX: s
|
|
6232
6339
|
};
|
|
6233
6340
|
}
|
|
6234
|
-
}),
|
|
6235
|
-
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) {
|
|
6236
6343
|
let c = O("NDataTable"), l = O("UzTableDrawer");
|
|
6237
|
-
return S(), a("div",
|
|
6238
|
-
o("div",
|
|
6344
|
+
return S(), a("div", js, [
|
|
6345
|
+
o("div", Ms, [o("div", Ns, A(e.item.label), 1)]),
|
|
6239
6346
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
6240
6347
|
u(c, {
|
|
6241
6348
|
columns: e.columns,
|
|
@@ -6257,7 +6364,7 @@ function us(e, t, n, r, i, s) {
|
|
|
6257
6364
|
u(l, { ref: "drawerRef" }, null, 512)
|
|
6258
6365
|
]);
|
|
6259
6366
|
}
|
|
6260
|
-
var
|
|
6367
|
+
var Fs = /*#__PURE__*/ W(As, [["render", Ps]]), Is = f({
|
|
6261
6368
|
name: "UzTableDrawer",
|
|
6262
6369
|
components: {
|
|
6263
6370
|
NButton: R,
|
|
@@ -6298,7 +6405,7 @@ var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
|
6298
6405
|
}), b = T(!1), x = T(), S = () => {
|
|
6299
6406
|
a.value?.restoreValidation(), c.value = {}, p.value = !1, f.value = !1, u.value = !1, t("update:show", !1);
|
|
6300
6407
|
}, C = () => {
|
|
6301
|
-
s.value === 2 ? S() :
|
|
6408
|
+
s.value === 2 ? S() : lr.info({
|
|
6302
6409
|
title: "提示",
|
|
6303
6410
|
content: "关闭后修改的数据将不保留,确定关闭?",
|
|
6304
6411
|
positiveText: "确定",
|
|
@@ -6329,11 +6436,11 @@ var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
|
6329
6436
|
linkFn: t
|
|
6330
6437
|
};
|
|
6331
6438
|
let r = e.split(".")[0];
|
|
6332
|
-
|
|
6439
|
+
qo(r).then((e) => {
|
|
6333
6440
|
g(async () => {
|
|
6334
6441
|
let t = rt.parse(e.viewJson);
|
|
6335
|
-
d.value =
|
|
6336
|
-
let { form: i } = await
|
|
6442
|
+
d.value = $o(t.option), u.value = !0;
|
|
6443
|
+
let { form: i } = await es(Yo(t.table), n);
|
|
6337
6444
|
y.value = t.trigger, n && w(n);
|
|
6338
6445
|
let a = Y(`tables_cache_link_${r}`, !1);
|
|
6339
6446
|
a && (c.value = a), g(() => {
|
|
@@ -6382,7 +6489,7 @@ var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
|
6382
6489
|
}
|
|
6383
6490
|
if (x.value) {
|
|
6384
6491
|
x.value(e, () => {
|
|
6385
|
-
|
|
6492
|
+
ur(`tables_cache_${o.value}`), S();
|
|
6386
6493
|
}, (e) => {
|
|
6387
6494
|
_.value = 1, h.value = e;
|
|
6388
6495
|
});
|
|
@@ -6390,11 +6497,11 @@ var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
|
6390
6497
|
}
|
|
6391
6498
|
{
|
|
6392
6499
|
let n = l.value.link.split(".")[0];
|
|
6393
|
-
|
|
6500
|
+
Ci({
|
|
6394
6501
|
tableId: n,
|
|
6395
6502
|
...e
|
|
6396
6503
|
}).then(() => {
|
|
6397
|
-
|
|
6504
|
+
Go(), Si({ tableId: n }).then((e) => {
|
|
6398
6505
|
let r = l.value.link.split("."), i;
|
|
6399
6506
|
if (l.value.linkFn) {
|
|
6400
6507
|
let t = l.value.linkFn;
|
|
@@ -6405,7 +6512,7 @@ var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
|
6405
6512
|
disabled: e?.status === "0",
|
|
6406
6513
|
params: e
|
|
6407
6514
|
}));
|
|
6408
|
-
p.value = !1,
|
|
6515
|
+
p.value = !1, ur(`tables_cache_link_${n}`), t("on-submit", i), S();
|
|
6409
6516
|
}).catch((e) => {
|
|
6410
6517
|
_.value = 1, h.value = e;
|
|
6411
6518
|
});
|
|
@@ -6427,11 +6534,11 @@ var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
|
6427
6534
|
}
|
|
6428
6535
|
};
|
|
6429
6536
|
}
|
|
6430
|
-
}),
|
|
6537
|
+
}), Ls = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, Rs = {
|
|
6431
6538
|
key: 0,
|
|
6432
6539
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
6433
|
-
},
|
|
6434
|
-
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) {
|
|
6435
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");
|
|
6436
6543
|
return S(), a(e, null, [u(x, {
|
|
6437
6544
|
show: t.drawer,
|
|
@@ -6457,7 +6564,7 @@ function _s(t, n, c, d, f, p) {
|
|
|
6457
6564
|
message: t.spinMsg,
|
|
6458
6565
|
status: t.spinStatus
|
|
6459
6566
|
}, {
|
|
6460
|
-
default: P(() => [o("div",
|
|
6567
|
+
default: P(() => [o("div", Ls, [t.skeletonShow ? (S(), a("div", Rs, [
|
|
6461
6568
|
u(m, {
|
|
6462
6569
|
size: "large",
|
|
6463
6570
|
style: { height: "156px" }
|
|
@@ -6520,7 +6627,7 @@ function _s(t, n, c, d, f, p) {
|
|
|
6520
6627
|
_: 2
|
|
6521
6628
|
}, [t.formStatus === 2 ? void 0 : {
|
|
6522
6629
|
name: "footer",
|
|
6523
|
-
fn: P(() => [o("div",
|
|
6630
|
+
fn: P(() => [o("div", zs, [t.isMobile ? i("", !0) : (S(), r(v, {
|
|
6524
6631
|
key: 0,
|
|
6525
6632
|
loading: t.spinShow,
|
|
6526
6633
|
type: "success",
|
|
@@ -6529,7 +6636,7 @@ function _s(t, n, c, d, f, p) {
|
|
|
6529
6636
|
}, {
|
|
6530
6637
|
default: P(() => [l(A(t.$t("OCR.ocr")), 1)]),
|
|
6531
6638
|
_: 1
|
|
6532
|
-
}, 8, ["loading"])), o("div",
|
|
6639
|
+
}, 8, ["loading"])), o("div", Bs, [
|
|
6533
6640
|
u(v, {
|
|
6534
6641
|
loading: t.spinShow,
|
|
6535
6642
|
class: "uz-drawer-button",
|
|
@@ -6597,7 +6704,7 @@ function _s(t, n, c, d, f, p) {
|
|
|
6597
6704
|
_: 1
|
|
6598
6705
|
}, 8, ["show"])], 64);
|
|
6599
6706
|
}
|
|
6600
|
-
var
|
|
6707
|
+
var Hs = /*#__PURE__*/ W(Is, [["render", Vs]]), Us = f({
|
|
6601
6708
|
name: "UzTableMobileList",
|
|
6602
6709
|
props: {
|
|
6603
6710
|
tableData: {
|
|
@@ -6615,12 +6722,12 @@ var vs = /*#__PURE__*/ W(fs, [["render", _s]]), ys = f({
|
|
|
6615
6722
|
},
|
|
6616
6723
|
emits: ["update:row-keys"],
|
|
6617
6724
|
setup() {}
|
|
6618
|
-
}),
|
|
6725
|
+
}), Ws = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Gs = {
|
|
6619
6726
|
key: 1,
|
|
6620
6727
|
class: "uz-table-mobile-group-txt"
|
|
6621
6728
|
};
|
|
6622
|
-
function
|
|
6623
|
-
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", {
|
|
6624
6731
|
key: n.key,
|
|
6625
6732
|
class: _(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
|
|
6626
6733
|
style: v(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
|
|
@@ -6631,11 +6738,11 @@ function Ss(t, n, s, c, l, u) {
|
|
|
6631
6738
|
class: "mobile"
|
|
6632
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(() => {
|
|
6633
6740
|
if (t.tableData) return n.render(t.tableData, t.tableIndex);
|
|
6634
|
-
}), { key: 0 })) : (S(), a("div",
|
|
6741
|
+
}), { key: 0 })) : (S(), a("div", Gs, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
6635
6742
|
}
|
|
6636
6743
|
//#endregion
|
|
6637
6744
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
6638
|
-
var
|
|
6745
|
+
var qs = f({
|
|
6639
6746
|
name: "UzTableMobile",
|
|
6640
6747
|
components: {
|
|
6641
6748
|
NCheckbox: ie,
|
|
@@ -6643,7 +6750,7 @@ var Cs = f({
|
|
|
6643
6750
|
NPagination: Te,
|
|
6644
6751
|
NCheckboxGroup: z,
|
|
6645
6752
|
NRadioGroup: ke,
|
|
6646
|
-
UzTableMobileList: /* @__PURE__ */ W(
|
|
6753
|
+
UzTableMobileList: /* @__PURE__ */ W(Us, [["render", Ks], ["__scopeId", "data-v-84c394fe"]])
|
|
6647
6754
|
},
|
|
6648
6755
|
props: {
|
|
6649
6756
|
tableData: {
|
|
@@ -6690,17 +6797,17 @@ var Cs = f({
|
|
|
6690
6797
|
}
|
|
6691
6798
|
};
|
|
6692
6799
|
}
|
|
6693
|
-
}),
|
|
6800
|
+
}), Js = {
|
|
6694
6801
|
key: 0,
|
|
6695
6802
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6696
|
-
},
|
|
6803
|
+
}, Ys = {
|
|
6697
6804
|
key: 0,
|
|
6698
6805
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6699
|
-
},
|
|
6806
|
+
}, Xs = {
|
|
6700
6807
|
key: 0,
|
|
6701
6808
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6702
6809
|
};
|
|
6703
|
-
function
|
|
6810
|
+
function Zs(t, n, o, s, c, l) {
|
|
6704
6811
|
let d = O("UzTableMobileList"), f = O("NCheckbox"), p = O("NPagination"), m = O("NCheckboxGroup"), h = O("NRadio"), g = O("NRadioGroup");
|
|
6705
6812
|
return t.selection === 2 ? (S(), r(m, {
|
|
6706
6813
|
key: 0,
|
|
@@ -6727,7 +6834,7 @@ function Ds(t, n, o, s, c, l) {
|
|
|
6727
6834
|
"tableColumns"
|
|
6728
6835
|
])]),
|
|
6729
6836
|
_: 2
|
|
6730
|
-
}, 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, {
|
|
6731
6838
|
page: t.tableQueries.query.page,
|
|
6732
6839
|
"onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6733
6840
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6769,7 +6876,7 @@ function Ds(t, n, o, s, c, l) {
|
|
|
6769
6876
|
"tableColumns"
|
|
6770
6877
|
])]),
|
|
6771
6878
|
_: 2
|
|
6772
|
-
}, 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, {
|
|
6773
6880
|
page: t.tableQueries.query.page,
|
|
6774
6881
|
"onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6775
6882
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6804,7 +6911,7 @@ function Ds(t, n, o, s, c, l) {
|
|
|
6804
6911
|
"tableData",
|
|
6805
6912
|
"tableIndex",
|
|
6806
6913
|
"tableColumns"
|
|
6807
|
-
])]))), 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, {
|
|
6808
6915
|
page: t.tableQueries.query.page,
|
|
6809
6916
|
"onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6810
6917
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6817,10 +6924,10 @@ function Ds(t, n, o, s, c, l) {
|
|
|
6817
6924
|
"onUpdate:page"
|
|
6818
6925
|
])])) : i("", !0)], 4));
|
|
6819
6926
|
}
|
|
6820
|
-
var
|
|
6927
|
+
var Qs = /*#__PURE__*/ W(qs, [["render", Zs], ["__scopeId", "data-v-70b54e3b"]]), $s = f({
|
|
6821
6928
|
name: "UzTableFile",
|
|
6822
6929
|
components: {
|
|
6823
|
-
UzIcon:
|
|
6930
|
+
UzIcon: Bn,
|
|
6824
6931
|
NDropdown: fe,
|
|
6825
6932
|
NButton: R,
|
|
6826
6933
|
NModal: we,
|
|
@@ -6846,11 +6953,11 @@ var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6846
6953
|
let { t: n } = Ze(), r = Je(), i = Ue(), a = T(!1), o = T(!1), s = T(), c = T(""), l = T([{
|
|
6847
6954
|
label: n("Common.import"),
|
|
6848
6955
|
key: "import",
|
|
6849
|
-
icon: () => p(V, null, { default: () => p(
|
|
6956
|
+
icon: () => p(V, null, { default: () => p(Bn, { icon: "CloudUpload" }) })
|
|
6850
6957
|
}, {
|
|
6851
6958
|
label: n("Common.export"),
|
|
6852
6959
|
key: "export",
|
|
6853
|
-
icon: () => p(V, null, { default: () => p(
|
|
6960
|
+
icon: () => p(V, null, { default: () => p(Bn, { icon: "CloudDownload" }) })
|
|
6854
6961
|
}]), u = T([
|
|
6855
6962
|
{
|
|
6856
6963
|
title: "文件名称",
|
|
@@ -6893,14 +7000,14 @@ var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6893
7000
|
}), m = () => {
|
|
6894
7001
|
s.value = null;
|
|
6895
7002
|
}, h = () => {
|
|
6896
|
-
o.value || (o.value = !0,
|
|
7003
|
+
o.value || (o.value = !0, Oi(r.params.id).then((t) => {
|
|
6897
7004
|
let n = document.createElement("a");
|
|
6898
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);
|
|
6899
7006
|
}).catch(() => null).finally(() => {
|
|
6900
7007
|
o.value = !1;
|
|
6901
7008
|
}));
|
|
6902
7009
|
}, g = () => {
|
|
6903
|
-
o.value || (o.value = !0,
|
|
7010
|
+
o.value || (o.value = !0, bi("excel/import", s.value).then(() => {
|
|
6904
7011
|
i.success({
|
|
6905
7012
|
content: "导入执行中...",
|
|
6906
7013
|
duration: 3e3
|
|
@@ -6914,7 +7021,7 @@ var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6914
7021
|
o.value = !1, _();
|
|
6915
7022
|
}));
|
|
6916
7023
|
}, _ = () => {
|
|
6917
|
-
o.value || (o.value = !0,
|
|
7024
|
+
o.value || (o.value = !0, ki(r.params.id).then((e) => {
|
|
6918
7025
|
d.value = e;
|
|
6919
7026
|
}).catch(() => null).finally(() => {
|
|
6920
7027
|
o.value = !1;
|
|
@@ -6932,7 +7039,7 @@ var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6932
7039
|
return;
|
|
6933
7040
|
}
|
|
6934
7041
|
if (t === "export") {
|
|
6935
|
-
|
|
7042
|
+
lr.info({
|
|
6936
7043
|
title: "提示",
|
|
6937
7044
|
content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
|
|
6938
7045
|
positiveText: "确定",
|
|
@@ -6940,7 +7047,7 @@ var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6940
7047
|
draggable: !0,
|
|
6941
7048
|
onPositiveClick: () => {
|
|
6942
7049
|
let t = e.query ?? {};
|
|
6943
|
-
|
|
7050
|
+
Ai({
|
|
6944
7051
|
tableKey: r.params.id,
|
|
6945
7052
|
...t
|
|
6946
7053
|
}).then(() => {
|
|
@@ -6966,11 +7073,11 @@ var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6966
7073
|
}
|
|
6967
7074
|
};
|
|
6968
7075
|
}
|
|
6969
|
-
}),
|
|
7076
|
+
}), ec = { class: "uz-file-port-modal" }, tc = {
|
|
6970
7077
|
key: 1,
|
|
6971
7078
|
class: "uz-file-port-panel"
|
|
6972
|
-
},
|
|
6973
|
-
function
|
|
7079
|
+
}, nc = { class: "uz-flex uz-justify-between" };
|
|
7080
|
+
function rc(t, n, i, s, c, d) {
|
|
6974
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");
|
|
6975
7082
|
return S(), a(e, null, [u(h, {
|
|
6976
7083
|
trigger: "hover",
|
|
@@ -7005,8 +7112,8 @@ function Ns(t, n, i, s, c, d) {
|
|
|
7005
7112
|
default: P(() => [...n[1] ||= [l(" 下载模板 ", -1)]]),
|
|
7006
7113
|
_: 1
|
|
7007
7114
|
}, 8, ["onClick"])]),
|
|
7008
|
-
default: P(() => [o("div",
|
|
7009
|
-
t.rawFile ? (S(), a("div",
|
|
7115
|
+
default: P(() => [o("div", ec, [
|
|
7116
|
+
t.rawFile ? (S(), a("div", tc, [
|
|
7010
7117
|
n[5] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
7011
7118
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7012
7119
|
viewBox: "0 0 24 24",
|
|
@@ -7053,7 +7160,7 @@ function Ns(t, n, i, s, c, d) {
|
|
|
7053
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)]]),
|
|
7054
7161
|
_: 1
|
|
7055
7162
|
}, 8, ["on-before-upload"])),
|
|
7056
|
-
o("div",
|
|
7163
|
+
o("div", nc, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), u(m, {
|
|
7057
7164
|
onClick: t.init,
|
|
7058
7165
|
loading: t.loading,
|
|
7059
7166
|
secondary: ""
|
|
@@ -7076,7 +7183,7 @@ function Ns(t, n, i, s, c, d) {
|
|
|
7076
7183
|
_: 1
|
|
7077
7184
|
}, 8, ["show", "on-after-leave"])], 64);
|
|
7078
7185
|
}
|
|
7079
|
-
var
|
|
7186
|
+
var ic = /*#__PURE__*/ W($s, [["render", rc], ["__scopeId", "data-v-21238151"]]), $ = w({
|
|
7080
7187
|
page: {
|
|
7081
7188
|
label: "首页",
|
|
7082
7189
|
key: "/",
|
|
@@ -7087,7 +7194,7 @@ var Ps = /*#__PURE__*/ W(ks, [["render", Ns], ["__scopeId", "data-v-21238151"]])
|
|
|
7087
7194
|
active: "/",
|
|
7088
7195
|
thumbnail: []
|
|
7089
7196
|
});
|
|
7090
|
-
function
|
|
7197
|
+
function ac(e) {
|
|
7091
7198
|
$.cache = e.cache, $.page = {
|
|
7092
7199
|
label: e.label,
|
|
7093
7200
|
key: e.key,
|
|
@@ -7102,14 +7209,14 @@ function Fs(e) {
|
|
|
7102
7209
|
closable: !1
|
|
7103
7210
|
}];
|
|
7104
7211
|
}
|
|
7105
|
-
function
|
|
7212
|
+
function oc(e) {
|
|
7106
7213
|
$.active = e, G.push(e), J($.cache, $, 0);
|
|
7107
7214
|
}
|
|
7108
|
-
function
|
|
7215
|
+
function sc(e, t) {
|
|
7109
7216
|
let n = $.thumbnail.find((t) => t.key === e);
|
|
7110
7217
|
n && (n.key = t, $.active = t, J($.cache, $, 0));
|
|
7111
7218
|
}
|
|
7112
|
-
function
|
|
7219
|
+
function cc(e) {
|
|
7113
7220
|
let t = $.thumbnail.find((t) => t.path === e.key);
|
|
7114
7221
|
t ? ($.active = t.key, J($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
|
|
7115
7222
|
...e,
|
|
@@ -7117,7 +7224,7 @@ function Rs(e) {
|
|
|
7117
7224
|
closable: !0
|
|
7118
7225
|
}), G.push(e.key));
|
|
7119
7226
|
}
|
|
7120
|
-
function
|
|
7227
|
+
function lc(e) {
|
|
7121
7228
|
let t = $.thumbnail.findIndex((t) => t.key === e);
|
|
7122
7229
|
if ($.thumbnail.splice(t, 1), $.active === e) {
|
|
7123
7230
|
let e = $.thumbnail[t - 1]?.key || "";
|
|
@@ -7125,12 +7232,12 @@ function zs(e) {
|
|
|
7125
7232
|
}
|
|
7126
7233
|
J($.cache, $, 0);
|
|
7127
7234
|
}
|
|
7128
|
-
function
|
|
7235
|
+
function uc() {
|
|
7129
7236
|
$.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), J($.cache, $, 0);
|
|
7130
7237
|
}
|
|
7131
7238
|
//#endregion
|
|
7132
7239
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
7133
|
-
var
|
|
7240
|
+
var dc = f({
|
|
7134
7241
|
name: "UzThumbnail",
|
|
7135
7242
|
components: {
|
|
7136
7243
|
NTabs: Ie,
|
|
@@ -7151,29 +7258,29 @@ var Vs = f({
|
|
|
7151
7258
|
setup(e, { slots: t }) {
|
|
7152
7259
|
let n = T(!!t.prefix), r = Je();
|
|
7153
7260
|
return b(() => {
|
|
7154
|
-
|
|
7261
|
+
ac(e.option), $.active !== r.path && sc(r.path, r.fullPath);
|
|
7155
7262
|
}), M(() => r, (e) => {
|
|
7156
|
-
$.active === r.path &&
|
|
7263
|
+
$.active === r.path && sc(e.path, e.fullPath);
|
|
7157
7264
|
}, { deep: !0 }), M(() => e.option, (e) => {
|
|
7158
|
-
|
|
7265
|
+
ac(e);
|
|
7159
7266
|
}, { deep: !0 }), {
|
|
7160
7267
|
thumbnailStore: $,
|
|
7161
7268
|
isSlotPrefix: n,
|
|
7162
7269
|
handleClose: (e) => {
|
|
7163
|
-
|
|
7270
|
+
lc(e);
|
|
7164
7271
|
},
|
|
7165
7272
|
handleChange: (e) => {
|
|
7166
|
-
|
|
7273
|
+
oc(e);
|
|
7167
7274
|
},
|
|
7168
7275
|
handleClear: () => {
|
|
7169
|
-
|
|
7276
|
+
uc();
|
|
7170
7277
|
}
|
|
7171
7278
|
};
|
|
7172
7279
|
}
|
|
7173
7280
|
});
|
|
7174
7281
|
//#endregion
|
|
7175
7282
|
//#region components/thumbnail/index.vue
|
|
7176
|
-
function
|
|
7283
|
+
function fc(t, n, i, o, c, d) {
|
|
7177
7284
|
let f = O("NTabPane"), p = O("UzIcon"), m = O("NIcon"), h = O("NButton"), g = O("NPopconfirm"), _ = O("NFlex"), v = O("NTabs");
|
|
7178
7285
|
return S(), r(v, {
|
|
7179
7286
|
value: t.thumbnailStore.active,
|
|
@@ -7222,33 +7329,33 @@ function Hs(t, n, i, o, c, d) {
|
|
|
7222
7329
|
"on-update:value"
|
|
7223
7330
|
]);
|
|
7224
7331
|
}
|
|
7225
|
-
var
|
|
7226
|
-
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover =
|
|
7227
|
-
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 = {
|
|
7228
7335
|
common: {
|
|
7229
7336
|
inputColor: "rgba(var(--input))",
|
|
7230
7337
|
borderColor: "rgba(var(--border), 0.7)",
|
|
7231
7338
|
borderRadius: "var(--borderRadius)",
|
|
7232
|
-
primaryColor:
|
|
7233
|
-
primaryColorHover:
|
|
7234
|
-
primaryColorPressed:
|
|
7235
|
-
primaryColorSuppl:
|
|
7236
|
-
infoColor:
|
|
7237
|
-
infoColorHover:
|
|
7238
|
-
infoColorPressed:
|
|
7239
|
-
infoColorSuppl:
|
|
7240
|
-
successColor:
|
|
7241
|
-
successColorHover:
|
|
7242
|
-
successColorPressed:
|
|
7243
|
-
successColorSuppl:
|
|
7244
|
-
warningColor:
|
|
7245
|
-
warningColorHover:
|
|
7246
|
-
warningColorPressed:
|
|
7247
|
-
warningColorSuppl:
|
|
7248
|
-
errorColor:
|
|
7249
|
-
errorColorHover:
|
|
7250
|
-
errorColorPressed:
|
|
7251
|
-
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,
|
|
7252
7359
|
cardColor: "#fff"
|
|
7253
7360
|
},
|
|
7254
7361
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -7262,7 +7369,7 @@ var ec = {
|
|
|
7262
7369
|
borderRadius: "8px",
|
|
7263
7370
|
color: "#c0c0c0"
|
|
7264
7371
|
}
|
|
7265
|
-
},
|
|
7372
|
+
}, Tc = H, Ec = f({
|
|
7266
7373
|
name: "UzWrap",
|
|
7267
7374
|
components: { NConfigProvider: oe },
|
|
7268
7375
|
setup() {
|
|
@@ -7270,14 +7377,14 @@ var ec = {
|
|
|
7270
7377
|
zhCN: We,
|
|
7271
7378
|
dateZhCN: He,
|
|
7272
7379
|
commonStore: K,
|
|
7273
|
-
lightTheme:
|
|
7274
|
-
darkTheme:
|
|
7380
|
+
lightTheme: wc,
|
|
7381
|
+
darkTheme: Tc
|
|
7275
7382
|
};
|
|
7276
7383
|
}
|
|
7277
7384
|
});
|
|
7278
7385
|
//#endregion
|
|
7279
7386
|
//#region components/wrap/index.vue
|
|
7280
|
-
function
|
|
7387
|
+
function Dc(e, t, n, i, a, o) {
|
|
7281
7388
|
let s = O("NConfigProvider");
|
|
7282
7389
|
return S(), r(s, {
|
|
7283
7390
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -7296,10 +7403,10 @@ function rc(e, t, n, i, a, o) {
|
|
|
7296
7403
|
"date-locale"
|
|
7297
7404
|
]);
|
|
7298
7405
|
}
|
|
7299
|
-
var
|
|
7406
|
+
var Oc = /*#__PURE__*/ W(Ec, [["render", Dc]]);
|
|
7300
7407
|
//#endregion
|
|
7301
7408
|
//#region components/ocr/preprocess.ts
|
|
7302
|
-
function
|
|
7409
|
+
function kc(e) {
|
|
7303
7410
|
let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
|
|
7304
7411
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
7305
7412
|
let r = 0;
|
|
@@ -7314,7 +7421,7 @@ function ac(e) {
|
|
|
7314
7421
|
}
|
|
7315
7422
|
return c;
|
|
7316
7423
|
}
|
|
7317
|
-
function
|
|
7424
|
+
function Ac(e, t) {
|
|
7318
7425
|
return new Promise((n, r) => {
|
|
7319
7426
|
let i = new Image();
|
|
7320
7427
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -7347,7 +7454,7 @@ function oc(e, t) {
|
|
|
7347
7454
|
}
|
|
7348
7455
|
let u = t.threshold;
|
|
7349
7456
|
if (t.binarize) {
|
|
7350
|
-
t.autoThreshold && (u =
|
|
7457
|
+
t.autoThreshold && (u = kc(l));
|
|
7351
7458
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
7352
7459
|
let n = l[t] < u ? 0 : 255;
|
|
7353
7460
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -7370,7 +7477,7 @@ function oc(e, t) {
|
|
|
7370
7477
|
}
|
|
7371
7478
|
//#endregion
|
|
7372
7479
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
7373
|
-
var
|
|
7480
|
+
var jc = f({
|
|
7374
7481
|
name: "UzOcr",
|
|
7375
7482
|
components: {
|
|
7376
7483
|
NButton: R,
|
|
@@ -7407,7 +7514,7 @@ var sc = f({
|
|
|
7407
7514
|
tessedit_char_blacklist: "|"
|
|
7408
7515
|
}), a.value), v = async () => {
|
|
7409
7516
|
if (f.value) try {
|
|
7410
|
-
let e = await
|
|
7517
|
+
let e = await Ac(f.value, {
|
|
7411
7518
|
enabled: o.value,
|
|
7412
7519
|
scale: s.value,
|
|
7413
7520
|
grayscale: !0,
|
|
@@ -7444,7 +7551,7 @@ var sc = f({
|
|
|
7444
7551
|
t.value = !0, r.value = e("OCR.analysis");
|
|
7445
7552
|
let a = n;
|
|
7446
7553
|
if (o.value || s.value > 1) try {
|
|
7447
|
-
let e = await
|
|
7554
|
+
let e = await Ac(n, {
|
|
7448
7555
|
enabled: o.value,
|
|
7449
7556
|
scale: s.value,
|
|
7450
7557
|
grayscale: !0,
|
|
@@ -7506,25 +7613,25 @@ var sc = f({
|
|
|
7506
7613
|
t: e
|
|
7507
7614
|
};
|
|
7508
7615
|
}
|
|
7509
|
-
}),
|
|
7616
|
+
}), Mc = { class: "uz-ocr" }, Nc = { class: "uz-ocr-left-col" }, Pc = { class: "uz-ocr-upload-card" }, Fc = { class: "uz-ocr-upload-title" }, Ic = {
|
|
7510
7617
|
key: 1,
|
|
7511
7618
|
class: "uz-ocr-preview-panel"
|
|
7512
|
-
},
|
|
7619
|
+
}, Lc = { class: "uz-ocr-preview-box" }, Rc = ["src"], zc = {
|
|
7513
7620
|
key: 0,
|
|
7514
7621
|
class: "uz-ocr-threshold-badge"
|
|
7515
|
-
},
|
|
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 = {
|
|
7516
7623
|
key: 0,
|
|
7517
7624
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
7518
|
-
},
|
|
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 = {
|
|
7519
7626
|
key: 0,
|
|
7520
7627
|
class: "uz-ocr-empty-state"
|
|
7521
|
-
},
|
|
7628
|
+
}, el = { class: "uz-empty-text" }, tl = {
|
|
7522
7629
|
key: 1,
|
|
7523
7630
|
class: "uz-ocr-result-tabs"
|
|
7524
7631
|
};
|
|
7525
|
-
function
|
|
7632
|
+
function nl(e, t, n, s, c, d) {
|
|
7526
7633
|
let f = O("NUpload"), p = O("NTabPane"), m = O("NTabs"), h = O("NButton"), g = O("NSpace"), _ = O("NSwitch"), v = O("NSelect");
|
|
7527
|
-
return S(), a("div",
|
|
7634
|
+
return S(), a("div", Mc, [o("div", Nc, [e.rawImage ? (S(), a("div", Ic, [u(m, {
|
|
7528
7635
|
value: e.imagePreviewTab,
|
|
7529
7636
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
7530
7637
|
type: "segment",
|
|
@@ -7534,21 +7641,21 @@ function Mc(e, t, n, s, c, d) {
|
|
|
7534
7641
|
name: "processed",
|
|
7535
7642
|
tab: e.t("OCR.previewProcessed")
|
|
7536
7643
|
}, {
|
|
7537
|
-
default: P(() => [o("div",
|
|
7644
|
+
default: P(() => [o("div", Lc, [o("img", {
|
|
7538
7645
|
src: e.processedImage,
|
|
7539
7646
|
alt: "Processed Preview",
|
|
7540
7647
|
class: "uz-ocr-preview-img"
|
|
7541
|
-
}, null, 8,
|
|
7648
|
+
}, null, 8, Rc), e.preEnabled && e.preBinarize ? (S(), a("div", zc, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
|
|
7542
7649
|
_: 1
|
|
7543
7650
|
}, 8, ["tab"]), u(p, {
|
|
7544
7651
|
name: "raw",
|
|
7545
7652
|
tab: e.t("OCR.previewRaw")
|
|
7546
7653
|
}, {
|
|
7547
|
-
default: P(() => [o("div",
|
|
7654
|
+
default: P(() => [o("div", Bc, [o("img", {
|
|
7548
7655
|
src: e.rawImage,
|
|
7549
7656
|
alt: "Raw Preview",
|
|
7550
7657
|
class: "uz-ocr-preview-img"
|
|
7551
|
-
}, null, 8,
|
|
7658
|
+
}, null, 8, Vc)])]),
|
|
7552
7659
|
_: 1
|
|
7553
7660
|
}, 8, ["tab"])]),
|
|
7554
7661
|
_: 1
|
|
@@ -7582,7 +7689,7 @@ function Mc(e, t, n, s, c, d) {
|
|
|
7582
7689
|
"directory-dnd": "",
|
|
7583
7690
|
class: "uz-w-full"
|
|
7584
7691
|
}, {
|
|
7585
|
-
default: P(() => [o("div",
|
|
7692
|
+
default: P(() => [o("div", Pc, [
|
|
7586
7693
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
7587
7694
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7588
7695
|
viewBox: "0 0 24 24",
|
|
@@ -7590,79 +7697,79 @@ function Mc(e, t, n, s, c, d) {
|
|
|
7590
7697
|
height: "40",
|
|
7591
7698
|
fill: "currentColor"
|
|
7592
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),
|
|
7593
|
-
o("div",
|
|
7700
|
+
o("div", Fc, A(e.t("OCR.scan")), 1),
|
|
7594
7701
|
t[5] ||= o("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
7595
7702
|
])]),
|
|
7596
7703
|
_: 1
|
|
7597
|
-
}, 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(_, {
|
|
7598
7705
|
value: e.preEnabled,
|
|
7599
7706
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
7600
7707
|
size: "small"
|
|
7601
|
-
}, 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, {
|
|
7602
7709
|
value: e.preScale,
|
|
7603
7710
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
7604
7711
|
options: e.scaleOptions,
|
|
7605
7712
|
size: "small",
|
|
7606
7713
|
class: "uz-settings-select"
|
|
7607
|
-
}, null, 8, ["value", "options"])]), o("div",
|
|
7714
|
+
}, null, 8, ["value", "options"])]), o("div", Jc, [o("span", Yc, A(e.t("OCR.contrast")), 1), u(_, {
|
|
7608
7715
|
value: e.preContrast,
|
|
7609
7716
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
7610
7717
|
size: "small"
|
|
7611
|
-
}, 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)]))])]);
|
|
7612
7719
|
}
|
|
7613
|
-
var
|
|
7614
|
-
IconList: () =>
|
|
7615
|
-
ReIconList: () =>
|
|
7720
|
+
var rl = /*#__PURE__*/ W(jc, [["render", nl], ["__scopeId", "data-v-c7224ff5"]]), il = /* @__PURE__ */ dt({
|
|
7721
|
+
IconList: () => Vn,
|
|
7722
|
+
ReIconList: () => zn,
|
|
7616
7723
|
UzActionButton: () => ft,
|
|
7617
|
-
UzBack: () =>
|
|
7618
|
-
UzBom: () =>
|
|
7619
|
-
UzCamera: () =>
|
|
7620
|
-
UzCircle: () =>
|
|
7621
|
-
UzDraggableForm: () =>
|
|
7622
|
-
UzForm: () =>
|
|
7623
|
-
UzFormItem: () =>
|
|
7624
|
-
UzFormItemImage: () =>
|
|
7625
|
-
UzFormItemTimesPicker: () =>
|
|
7626
|
-
UzFormItemUpload: () =>
|
|
7627
|
-
UzIcon: () =>
|
|
7628
|
-
UzOcr: () =>
|
|
7629
|
-
UzSearchBar: () =>
|
|
7630
|
-
UzSearchMobileBar: () =>
|
|
7631
|
-
UzSpin: () =>
|
|
7632
|
-
UzTable: () =>
|
|
7633
|
-
UzTableChild: () =>
|
|
7634
|
-
UzTableDrawer: () =>
|
|
7635
|
-
UzTableFile: () =>
|
|
7636
|
-
UzTableMobile: () =>
|
|
7637
|
-
UzTableQuestChild: () =>
|
|
7638
|
-
UzThumbnail: () =>
|
|
7639
|
-
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,
|
|
7640
7747
|
commonStore: () => K,
|
|
7641
|
-
fnActionReduction: () =>
|
|
7642
|
-
fnActionSimplify: () =>
|
|
7643
|
-
fnAddThumbnail: () =>
|
|
7644
|
-
fnClearAllThumbnail: () =>
|
|
7645
|
-
fnDeleteThumbnail: () =>
|
|
7646
|
-
fnGetTableData: () =>
|
|
7647
|
-
fnOptionReduction: () =>
|
|
7648
|
-
fnOptionSimplify: () =>
|
|
7649
|
-
fnPrepareFormData: () =>
|
|
7650
|
-
fnPrepareTableData: () =>
|
|
7651
|
-
fnRenderAction: () =>
|
|
7652
|
-
fnSetLang: () =>
|
|
7653
|
-
fnSetTheme: () =>
|
|
7654
|
-
fnSetThumbnail: () =>
|
|
7655
|
-
fnTableReduction: () =>
|
|
7656
|
-
fnTableSimplify: () =>
|
|
7657
|
-
fnTriggersReduction: () =>
|
|
7658
|
-
fnTriggersSimplify: () =>
|
|
7659
|
-
i18n: () =>
|
|
7660
|
-
}),
|
|
7661
|
-
function
|
|
7662
|
-
|
|
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;
|
|
7663
7770
|
}
|
|
7664
|
-
function
|
|
7665
|
-
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));
|
|
7666
7773
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
7667
7774
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
7668
7775
|
e = t > 1 ? 1 : t;
|
|
@@ -7670,17 +7777,17 @@ function zc() {
|
|
|
7670
7777
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
7671
7778
|
e = n > 1 ? 1 : n;
|
|
7672
7779
|
}
|
|
7673
|
-
|
|
7780
|
+
sl.scale = e;
|
|
7674
7781
|
}
|
|
7675
|
-
function
|
|
7676
|
-
let e = $e(
|
|
7782
|
+
function ul() {
|
|
7783
|
+
let e = $e(ll, 200);
|
|
7677
7784
|
return e(), window.addEventListener("resize", e), () => {
|
|
7678
|
-
|
|
7785
|
+
al = 3840, ol = 2160, window.removeEventListener("resize", e);
|
|
7679
7786
|
};
|
|
7680
7787
|
}
|
|
7681
7788
|
//#endregion
|
|
7682
7789
|
//#region components/hooks/useThrottleFn.ts
|
|
7683
|
-
function
|
|
7790
|
+
function dl(e, t = 1e3) {
|
|
7684
7791
|
let r = T(e), i = n(() => et((...e) => r.value([...e]), t));
|
|
7685
7792
|
return x(() => {
|
|
7686
7793
|
i.value.cancel();
|
|
@@ -7692,16 +7799,16 @@ function Vc(e, t = 1e3) {
|
|
|
7692
7799
|
}
|
|
7693
7800
|
//#endregion
|
|
7694
7801
|
//#region components/hooks/useLocalStorage.ts
|
|
7695
|
-
function
|
|
7802
|
+
function fl(e, t) {
|
|
7696
7803
|
return [T(Y(e, t?.defaultValue)), (n) => {
|
|
7697
|
-
n === void 0 ?
|
|
7804
|
+
n === void 0 ? ur(e) : J(e, n, t?.expired || "1 Day");
|
|
7698
7805
|
}];
|
|
7699
7806
|
}
|
|
7700
7807
|
//#endregion
|
|
7701
7808
|
//#region components/hooks/useQuery.ts
|
|
7702
|
-
function
|
|
7809
|
+
function pl(e, t, n) {
|
|
7703
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 = () => {
|
|
7704
|
-
|
|
7811
|
+
gi(), clearInterval(o.value), o.value = null;
|
|
7705
7812
|
}, p = async () => {
|
|
7706
7813
|
if (!s.value) {
|
|
7707
7814
|
h(!0, "loading");
|
|
@@ -7737,7 +7844,7 @@ function Uc(e, t, n) {
|
|
|
7737
7844
|
}, g = (e) => {
|
|
7738
7845
|
l.value = e;
|
|
7739
7846
|
}, _ = () => {
|
|
7740
|
-
|
|
7847
|
+
gi(), i.value && i.value();
|
|
7741
7848
|
}, v = () => {
|
|
7742
7849
|
_(), p(), n?.pollingInterval && (f(), o.value = setInterval(() => {
|
|
7743
7850
|
p();
|
|
@@ -7765,26 +7872,26 @@ function Uc(e, t, n) {
|
|
|
7765
7872
|
}
|
|
7766
7873
|
//#endregion
|
|
7767
7874
|
//#region package.json
|
|
7768
|
-
var
|
|
7769
|
-
async function
|
|
7875
|
+
var ml = "0.1.113", hl;
|
|
7876
|
+
async function gl() {
|
|
7770
7877
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7771
7878
|
method: "HEAD",
|
|
7772
7879
|
cache: "no-cache"
|
|
7773
7880
|
});
|
|
7774
7881
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
7775
7882
|
}
|
|
7776
|
-
async function
|
|
7777
|
-
let e = await
|
|
7778
|
-
|
|
7883
|
+
async function _l() {
|
|
7884
|
+
let e = await gl();
|
|
7885
|
+
hl !== e && qn(!0);
|
|
7779
7886
|
}
|
|
7780
|
-
async function
|
|
7781
|
-
|
|
7782
|
-
|
|
7887
|
+
async function vl() {
|
|
7888
|
+
hl = await gl(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
7889
|
+
_l();
|
|
7783
7890
|
}, 6e4);
|
|
7784
7891
|
}
|
|
7785
7892
|
//#endregion
|
|
7786
7893
|
//#region components/create.ts
|
|
7787
|
-
function
|
|
7894
|
+
function yl({ components: e = [] } = {}) {
|
|
7788
7895
|
let t = [];
|
|
7789
7896
|
function n(e, t, n) {
|
|
7790
7897
|
e.component(t) || e.component(t, n);
|
|
@@ -7797,16 +7904,16 @@ function Yc({ components: e = [] } = {}) {
|
|
|
7797
7904
|
});
|
|
7798
7905
|
}), i)) {
|
|
7799
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);
|
|
7800
|
-
|
|
7907
|
+
Jn(e), Wn(o), Gn(l), Kn(c), Un.global.locale.value = l, a && vl(), t && oi(r, t, n);
|
|
7801
7908
|
}
|
|
7802
7909
|
}
|
|
7803
7910
|
return {
|
|
7804
|
-
version:
|
|
7911
|
+
version: ml,
|
|
7805
7912
|
install: r
|
|
7806
7913
|
};
|
|
7807
7914
|
}
|
|
7808
7915
|
//#endregion
|
|
7809
7916
|
//#region components/preset.ts
|
|
7810
|
-
var
|
|
7917
|
+
var bl = yl({ components: Object.keys(il).map((e) => il[e]) }), xl = bl.install;
|
|
7811
7918
|
//#endregion
|
|
7812
|
-
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 };
|