@unizhen/ui 0.1.111 → 0.1.112
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/DotsVertical.vue.d.ts +4 -0
- package/lib/components/icon/reicon/Edit.vue.d.ts +4 -0
- package/lib/ui.js +787 -687
- 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 () => Mi({
|
|
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,13 @@ 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",
|
|
161
208
|
fill: "none"
|
|
162
209
|
};
|
|
163
|
-
function
|
|
164
|
-
return S(), a("svg",
|
|
210
|
+
function Zt(e, t) {
|
|
211
|
+
return S(), a("svg", Xt, [...t[0] ||= [
|
|
165
212
|
o("path", {
|
|
166
213
|
opacity: "0.5",
|
|
167
214
|
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 +228,69 @@ function zt(e, t) {
|
|
|
181
228
|
}, null, -1)
|
|
182
229
|
]]);
|
|
183
230
|
}
|
|
184
|
-
var
|
|
231
|
+
var Qt = /*#__PURE__*/ W(Yt, [["render", Zt]]), $t = {}, en = {
|
|
185
232
|
xmlns: "http://www.w3.org/2000/svg",
|
|
186
233
|
viewBox: "0 0 24 24",
|
|
187
234
|
fill: "none"
|
|
188
235
|
};
|
|
189
|
-
function
|
|
190
|
-
return S(), a("svg",
|
|
236
|
+
function tn(e, t) {
|
|
237
|
+
return S(), a("svg", en, [...t[0] ||= [
|
|
238
|
+
o("path", {
|
|
239
|
+
opacity: "0.5",
|
|
240
|
+
d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",
|
|
241
|
+
fill: "currentColor"
|
|
242
|
+
}, null, -1),
|
|
243
|
+
o("path", {
|
|
244
|
+
d: "M8 13C8.55228 13 9 12.5523 9 12C9 11.4477 8.55228 11 8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13Z",
|
|
245
|
+
fill: "currentColor"
|
|
246
|
+
}, null, -1),
|
|
247
|
+
o("path", {
|
|
248
|
+
d: "M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",
|
|
249
|
+
fill: "currentColor"
|
|
250
|
+
}, null, -1),
|
|
251
|
+
o("path", {
|
|
252
|
+
d: "M16 13C16.5523 13 17 12.5523 17 12C17 11.4477 16.5523 11 16 11C15.4477 11 15 11.4477 15 12C15 12.5523 15.4477 13 16 13Z",
|
|
253
|
+
fill: "currentColor"
|
|
254
|
+
}, null, -1)
|
|
255
|
+
]]);
|
|
191
256
|
}
|
|
192
|
-
var
|
|
257
|
+
var nn = /*#__PURE__*/ W($t, [["render", tn]]), rn = {}, an = {
|
|
193
258
|
xmlns: "http://www.w3.org/2000/svg",
|
|
194
259
|
viewBox: "0 0 24 24",
|
|
195
260
|
fill: "none"
|
|
196
261
|
};
|
|
197
|
-
function
|
|
198
|
-
return S(), a("svg",
|
|
262
|
+
function on(e, t) {
|
|
263
|
+
return S(), a("svg", an, [...t[0] ||= [
|
|
264
|
+
o("path", {
|
|
265
|
+
opacity: "0.5",
|
|
266
|
+
d: "M1 12C1 6.81455 1 4.22183 2.61091 2.61091C4.22183 1 6.81455 1 12 1C17.1854 1 19.7782 1 21.3891 2.61091C23 4.22183 23 6.81455 23 12C23 17.1854 23 19.7782 21.3891 21.3891C19.7782 23 17.1854 23 12 23C6.81455 23 4.22183 23 2.61091 21.3891C1 19.7782 1 17.1854 1 12Z",
|
|
267
|
+
fill: "currentColor"
|
|
268
|
+
}, null, -1),
|
|
269
|
+
o("path", {
|
|
270
|
+
d: "M13.9261 14.3018C14.1711 14.1107 14.3933 13.8885 14.8377 13.4441L20.378 7.90374C20.512 7.7698 20.4507 7.53909 20.2717 7.477C19.6178 7.25011 18.767 6.82414 17.9713 6.02835C17.1755 5.23257 16.7495 4.38186 16.5226 3.72788C16.4605 3.54892 16.2298 3.48761 16.0959 3.62156L10.5555 9.16192C10.1111 9.60634 9.88888 9.82854 9.69778 10.0736C9.47235 10.3626 9.27908 10.6753 9.12139 11.0062C8.98771 11.2867 8.88834 11.5848 8.68959 12.181L8.43278 12.9515L8.02443 14.1765L7.64153 15.3252C7.54373 15.6186 7.6201 15.9421 7.8388 16.1608C8.0575 16.3795 8.38099 16.4559 8.67441 16.3581L9.82308 15.9752L11.0481 15.5668L11.8186 15.31L11.8186 15.31C12.4148 15.1113 12.7129 15.0119 12.9934 14.8782C13.3243 14.7205 13.637 14.5273 13.9261 14.3018Z",
|
|
271
|
+
fill: "currentColor"
|
|
272
|
+
}, null, -1),
|
|
273
|
+
o("path", {
|
|
274
|
+
d: "M22.1127 6.16905C23.2952 4.98656 23.2952 3.06936 22.1127 1.88687C20.9302 0.704377 19.013 0.704377 17.8306 1.88687L17.6524 2.06499C17.4806 2.23687 17.4027 2.47695 17.4456 2.7162C17.4726 2.8667 17.5227 3.08674 17.6138 3.3493C17.796 3.87439 18.14 4.56368 18.788 5.21165C19.4359 5.85961 20.1252 6.20364 20.6503 6.38581C20.9129 6.4769 21.1329 6.52697 21.2834 6.55399C21.5227 6.59693 21.7627 6.51905 21.9346 6.34717L22.1127 6.16905Z",
|
|
275
|
+
fill: "currentColor"
|
|
276
|
+
}, null, -1)
|
|
277
|
+
]]);
|
|
278
|
+
}
|
|
279
|
+
var sn = /*#__PURE__*/ W(rn, [["render", on]]), cn = {}, ln = {
|
|
280
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
281
|
+
viewBox: "0 0 24 24",
|
|
282
|
+
fill: "none"
|
|
283
|
+
};
|
|
284
|
+
function un(e, t) {
|
|
285
|
+
return S(), a("svg", ln, [...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)]]);
|
|
286
|
+
}
|
|
287
|
+
var dn = /*#__PURE__*/ W(cn, [["render", un]]), fn = {}, pn = {
|
|
288
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
289
|
+
viewBox: "0 0 24 24",
|
|
290
|
+
fill: "none"
|
|
291
|
+
};
|
|
292
|
+
function mn(e, t) {
|
|
293
|
+
return S(), a("svg", pn, [...t[0] ||= [
|
|
199
294
|
o("path", {
|
|
200
295
|
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
296
|
fill: "currentColor"
|
|
@@ -213,29 +308,29 @@ function qt(e, t) {
|
|
|
213
308
|
}, null, -1)
|
|
214
309
|
]]);
|
|
215
310
|
}
|
|
216
|
-
var
|
|
311
|
+
var hn = /*#__PURE__*/ W(fn, [["render", mn]]), gn = {}, _n = {
|
|
217
312
|
xmlns: "http://www.w3.org/2000/svg",
|
|
218
313
|
viewBox: "0 0 24 24",
|
|
219
314
|
fill: "none"
|
|
220
315
|
};
|
|
221
|
-
function
|
|
222
|
-
return S(), a("svg",
|
|
316
|
+
function vn(e, t) {
|
|
317
|
+
return S(), a("svg", _n, [...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
318
|
}
|
|
224
|
-
var
|
|
319
|
+
var yn = /*#__PURE__*/ W(gn, [["render", vn]]), bn = {}, xn = {
|
|
225
320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
226
321
|
viewBox: "0 0 24 24",
|
|
227
322
|
fill: "none"
|
|
228
323
|
};
|
|
229
|
-
function
|
|
230
|
-
return S(), a("svg",
|
|
324
|
+
function Sn(e, t) {
|
|
325
|
+
return S(), a("svg", xn, [...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
326
|
}
|
|
232
|
-
var
|
|
327
|
+
var Cn = /*#__PURE__*/ W(bn, [["render", Sn]]), wn = {}, Tn = {
|
|
233
328
|
xmlns: "http://www.w3.org/2000/svg",
|
|
234
329
|
viewBox: "0 0 24 24",
|
|
235
330
|
fill: "none"
|
|
236
331
|
};
|
|
237
|
-
function
|
|
238
|
-
return S(), a("svg",
|
|
332
|
+
function En(e, t) {
|
|
333
|
+
return S(), a("svg", Tn, [...t[0] ||= [o("path", {
|
|
239
334
|
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
335
|
fill: "currentColor"
|
|
241
336
|
}, null, -1), o("path", {
|
|
@@ -244,26 +339,26 @@ function on(e, t) {
|
|
|
244
339
|
fill: "currentColor"
|
|
245
340
|
}, null, -1)]]);
|
|
246
341
|
}
|
|
247
|
-
var
|
|
342
|
+
var Dn = /*#__PURE__*/ W(wn, [["render", En]]), On = {}, kn = {
|
|
248
343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
249
344
|
viewBox: "0 0 24 24",
|
|
250
345
|
fill: "none"
|
|
251
346
|
};
|
|
252
|
-
function
|
|
253
|
-
return S(), a("svg",
|
|
347
|
+
function An(e, t) {
|
|
348
|
+
return S(), a("svg", kn, [...t[0] ||= [o("path", {
|
|
254
349
|
"fill-rule": "evenodd",
|
|
255
350
|
"clip-rule": "evenodd",
|
|
256
351
|
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
352
|
fill: "currentColor"
|
|
258
353
|
}, null, -1)]]);
|
|
259
354
|
}
|
|
260
|
-
var
|
|
355
|
+
var jn = /*#__PURE__*/ W(On, [["render", An]]), Mn = {}, Nn = {
|
|
261
356
|
xmlns: "http://www.w3.org/2000/svg",
|
|
262
357
|
viewBox: "0 0 24 24",
|
|
263
358
|
fill: "none"
|
|
264
359
|
};
|
|
265
|
-
function
|
|
266
|
-
return S(), a("svg",
|
|
360
|
+
function Pn(e, t) {
|
|
361
|
+
return S(), a("svg", Nn, [...t[0] ||= [o("path", {
|
|
267
362
|
opacity: "0.5",
|
|
268
363
|
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
364
|
fill: "currentColor"
|
|
@@ -274,22 +369,27 @@ function mn(e, t) {
|
|
|
274
369
|
fill: "currentColor"
|
|
275
370
|
}, null, -1)]]);
|
|
276
371
|
}
|
|
277
|
-
var
|
|
372
|
+
var Fn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
278
373
|
"./Add.vue": gt,
|
|
279
374
|
"./ArrowDown.vue": bt,
|
|
280
375
|
"./ArrowLeft.vue": wt,
|
|
281
|
-
"./
|
|
282
|
-
"./
|
|
283
|
-
"./
|
|
284
|
-
"./
|
|
285
|
-
"./
|
|
286
|
-
"./
|
|
287
|
-
"./
|
|
288
|
-
"./
|
|
289
|
-
"./
|
|
290
|
-
"./
|
|
291
|
-
"./
|
|
292
|
-
|
|
376
|
+
"./BrandStackoverflow.vue": Ot,
|
|
377
|
+
"./ChatLine.vue": Mt,
|
|
378
|
+
"./CheckMark.vue": It,
|
|
379
|
+
"./CircleMinus.vue": Bt,
|
|
380
|
+
"./CloudDownload.vue": Wt,
|
|
381
|
+
"./CloudUpload.vue": Jt,
|
|
382
|
+
"./Document.vue": Qt,
|
|
383
|
+
"./DotsVertical.vue": nn,
|
|
384
|
+
"./Edit.vue": sn,
|
|
385
|
+
"./Filter.vue": dn,
|
|
386
|
+
"./Gallery.vue": hn,
|
|
387
|
+
"./List.vue": yn,
|
|
388
|
+
"./Printer.vue": Cn,
|
|
389
|
+
"./Refresh.vue": Dn,
|
|
390
|
+
"./Search.vue": jn,
|
|
391
|
+
"./Trash.vue": /* @__PURE__ */ W(Mn, [["render", Pn]])
|
|
392
|
+
})).map(([e, t]) => [e.slice(2, -4), t])), In = f({
|
|
293
393
|
name: "UzIcon",
|
|
294
394
|
props: {
|
|
295
395
|
icon: {
|
|
@@ -306,7 +406,7 @@ var hn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
306
406
|
let t = T(!0), n = T(), r = (r) => {
|
|
307
407
|
if (t.value = !1, r && typeof r == "string") {
|
|
308
408
|
try {
|
|
309
|
-
Object.keys(e.extendIcons).length > 0 ? n.value = e.extendIcons[r] : n.value =
|
|
409
|
+
Object.keys(e.extendIcons).length > 0 ? n.value = e.extendIcons[r] : n.value = Ln[r];
|
|
310
410
|
} catch {}
|
|
311
411
|
g(() => {
|
|
312
412
|
t.value = !0;
|
|
@@ -319,18 +419,18 @@ var hn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
319
419
|
r(e);
|
|
320
420
|
}), () => t.value ? n.value && n.value.render(null, []) : null;
|
|
321
421
|
}
|
|
322
|
-
}),
|
|
323
|
-
function
|
|
324
|
-
return
|
|
422
|
+
}), Ln = Fn, Rn;
|
|
423
|
+
function zn(e, t = "/") {
|
|
424
|
+
return Rn = Ke({
|
|
325
425
|
history: qe(t),
|
|
326
426
|
routes: e,
|
|
327
427
|
scrollBehavior: () => ({
|
|
328
428
|
left: 0,
|
|
329
429
|
top: 0
|
|
330
430
|
})
|
|
331
|
-
}),
|
|
431
|
+
}), Rn;
|
|
332
432
|
}
|
|
333
|
-
var
|
|
433
|
+
var G = Xe({
|
|
334
434
|
legacy: !1,
|
|
335
435
|
locale: "zh-CN",
|
|
336
436
|
messages: {
|
|
@@ -430,16 +530,16 @@ var yn = Xe({
|
|
|
430
530
|
language: !1,
|
|
431
531
|
lang: "zh-CN"
|
|
432
532
|
});
|
|
433
|
-
function
|
|
533
|
+
function Bn(e) {
|
|
434
534
|
K.language = e;
|
|
435
535
|
}
|
|
436
|
-
function
|
|
536
|
+
function Vn(e) {
|
|
437
537
|
let t;
|
|
438
538
|
t = e || (K.lang === "zh-CN" ? "en-US" : "zh-CN"), J("lang", t, 0), K.lang = t;
|
|
439
539
|
let n = document.body;
|
|
440
|
-
n.dataset.lang = t,
|
|
540
|
+
n.dataset.lang = t, G.global.locale.value = t;
|
|
441
541
|
}
|
|
442
|
-
function
|
|
542
|
+
function Hn(e) {
|
|
443
543
|
let t = document.body;
|
|
444
544
|
t.classList.add("remove-all-transition");
|
|
445
545
|
let n = document.querySelector("meta[name=theme-color]");
|
|
@@ -447,45 +547,45 @@ function Sn(e) {
|
|
|
447
547
|
t.classList.remove("remove-all-transition");
|
|
448
548
|
}, 0);
|
|
449
549
|
}
|
|
450
|
-
function
|
|
550
|
+
function Un(e) {
|
|
451
551
|
K.needUpdate = e;
|
|
452
552
|
}
|
|
453
|
-
function
|
|
553
|
+
function Wn(e) {
|
|
454
554
|
K.title = e;
|
|
455
555
|
}
|
|
456
|
-
var
|
|
556
|
+
var Gn = () => {
|
|
457
557
|
K.isMobile = window.screen.availWidth < 769;
|
|
458
558
|
};
|
|
459
|
-
window.addEventListener("resize",
|
|
559
|
+
window.addEventListener("resize", Gn), Gn();
|
|
460
560
|
//#endregion
|
|
461
561
|
//#region components/localStorage.ts
|
|
462
|
-
var
|
|
463
|
-
function
|
|
464
|
-
|
|
562
|
+
var Kn = window.localStorage;
|
|
563
|
+
function qn(e, t) {
|
|
564
|
+
Kn.setItem(e, JSON.stringify(t));
|
|
465
565
|
}
|
|
466
|
-
function
|
|
467
|
-
let t =
|
|
566
|
+
function Jn(e) {
|
|
567
|
+
let t = Kn.getItem(e);
|
|
468
568
|
if (t) return JSON.parse(t);
|
|
469
569
|
}
|
|
470
|
-
function
|
|
471
|
-
|
|
570
|
+
function Yn(e) {
|
|
571
|
+
Kn.removeItem(e);
|
|
472
572
|
}
|
|
473
|
-
function
|
|
573
|
+
function Xn() {
|
|
474
574
|
return Date.parse(String(/* @__PURE__ */ new Date()));
|
|
475
575
|
}
|
|
476
|
-
var
|
|
576
|
+
var Zn = "local-", Qn = new class {
|
|
477
577
|
namespace;
|
|
478
578
|
mapKey;
|
|
479
579
|
map;
|
|
480
580
|
constructor(e = "") {
|
|
481
|
-
this.namespace = e, this.mapKey =
|
|
581
|
+
this.namespace = e, this.mapKey = Zn + this.namespace, this.map = Jn(this.mapKey) || {};
|
|
482
582
|
}
|
|
483
583
|
set(e, t, n = 0) {
|
|
484
584
|
let r = this.getReallyKey(e), i = {
|
|
485
585
|
expires: n,
|
|
486
|
-
time:
|
|
586
|
+
time: Xn()
|
|
487
587
|
};
|
|
488
|
-
|
|
588
|
+
qn(r, t), this.map[e] = i, qn(this.mapKey, this.map);
|
|
489
589
|
}
|
|
490
590
|
getReallyKey(e) {
|
|
491
591
|
return this.namespace + "-" + e;
|
|
@@ -493,9 +593,9 @@ var jn = "local-", Mn = new class {
|
|
|
493
593
|
get(e, t) {
|
|
494
594
|
let n = this.getReallyKey(e), r = this.map[e];
|
|
495
595
|
if (r) {
|
|
496
|
-
let i =
|
|
596
|
+
let i = Jn(n);
|
|
497
597
|
if (r.expires > 0) {
|
|
498
|
-
if (
|
|
598
|
+
if (Xn() - r.time <= r.expires) return i === !1 || i ? i : t;
|
|
499
599
|
this.delete(e);
|
|
500
600
|
} else return i === !1 || i ? i : t;
|
|
501
601
|
}
|
|
@@ -503,7 +603,7 @@ var jn = "local-", Mn = new class {
|
|
|
503
603
|
}
|
|
504
604
|
delete(e) {
|
|
505
605
|
let t = this.getReallyKey(e);
|
|
506
|
-
delete this.map[e],
|
|
606
|
+
delete this.map[e], qn(this.mapKey, this.map), Yn(t);
|
|
507
607
|
}
|
|
508
608
|
deleteByPrefix(e) {
|
|
509
609
|
for (let t in this.map) t.indexOf(e) > -1 && this.delete(t);
|
|
@@ -511,12 +611,12 @@ var jn = "local-", Mn = new class {
|
|
|
511
611
|
deleteAll() {
|
|
512
612
|
for (let e in this.map) this.delete(e);
|
|
513
613
|
}
|
|
514
|
-
}("uz"),
|
|
614
|
+
}("uz"), $n = new Intl.Collator("zh-Hans-u-co-pinyin"), er = [..."阿八嚓哒妸发旮哈讥咔垃妈拏噢妑七呥仨他屲夕丫帀"], tr = [..."ABCDEFGHJKLMNOPQRSTWXYZ"], { notification: nr, dialog: rr } = Ve(["notification", "dialog"], {
|
|
515
615
|
configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
|
|
516
616
|
notificationProviderProps: { placement: "bottom-right" }
|
|
517
|
-
}),
|
|
617
|
+
}), ir = nr, ar = rr;
|
|
518
618
|
function q(e) {
|
|
519
|
-
console.log(e),
|
|
619
|
+
console.log(e), nr.error({
|
|
520
620
|
content: e.message,
|
|
521
621
|
duration: 3e3
|
|
522
622
|
});
|
|
@@ -538,18 +638,18 @@ function J(e, t, n = "1 Day") {
|
|
|
538
638
|
}
|
|
539
639
|
n = Number(t[0]) * e;
|
|
540
640
|
}
|
|
541
|
-
|
|
641
|
+
Qn.set(e, t, n);
|
|
542
642
|
}
|
|
543
643
|
function Y(e, t) {
|
|
544
|
-
return
|
|
644
|
+
return Qn.get(e, t);
|
|
545
645
|
}
|
|
546
|
-
var
|
|
547
|
-
|
|
548
|
-
},
|
|
549
|
-
|
|
550
|
-
},
|
|
551
|
-
|
|
552
|
-
},
|
|
646
|
+
var or = (e) => {
|
|
647
|
+
Qn.delete(e);
|
|
648
|
+
}, sr = (e) => {
|
|
649
|
+
Qn.deleteByPrefix(e);
|
|
650
|
+
}, cr = () => {
|
|
651
|
+
Qn.deleteAll();
|
|
652
|
+
}, lr = (e = 0) => {
|
|
553
653
|
let t = document.documentElement, n = document.querySelectorAll(".uz-table-m-content");
|
|
554
654
|
t && (t.scrollTop = e, setTimeout(() => {
|
|
555
655
|
t.scrollTop = e;
|
|
@@ -557,7 +657,7 @@ var Bn = (e) => {
|
|
|
557
657
|
t.scrollTop = e;
|
|
558
658
|
});
|
|
559
659
|
};
|
|
560
|
-
function
|
|
660
|
+
function ur(e) {
|
|
561
661
|
if (!e.records) {
|
|
562
662
|
let t = e;
|
|
563
663
|
return {
|
|
@@ -601,7 +701,7 @@ function Wn(e) {
|
|
|
601
701
|
records: e.records
|
|
602
702
|
};
|
|
603
703
|
}
|
|
604
|
-
var
|
|
704
|
+
var dr = (e, t = "yyyy-MM-dd") => {
|
|
605
705
|
if (!e) return "";
|
|
606
706
|
typeof e == "string" && (e = e.replace(/年/g, "-").replace(/月/g, "-").replace(/日/g, ""));
|
|
607
707
|
let n = new Date(e);
|
|
@@ -619,9 +719,9 @@ var Gn = (e, t = "yyyy-MM-dd") => {
|
|
|
619
719
|
RegExp.$1.length !== 1 && (n = ("00" + r[e]).substr(("" + r[e]).length)), t = t.replace(RegExp.$1, n);
|
|
620
720
|
}
|
|
621
721
|
return t;
|
|
622
|
-
},
|
|
722
|
+
}, fr = (e) => {
|
|
623
723
|
document.title = `${e} - ${K.title}`;
|
|
624
|
-
},
|
|
724
|
+
}, pr = (e, t = 500) => {
|
|
625
725
|
let n = e, r, i = !1, a = function(...e) {
|
|
626
726
|
if (i) {
|
|
627
727
|
n.apply(a, e), i = !1;
|
|
@@ -633,10 +733,10 @@ var Gn = (e, t = "yyyy-MM-dd") => {
|
|
|
633
733
|
};
|
|
634
734
|
return a;
|
|
635
735
|
};
|
|
636
|
-
function
|
|
736
|
+
function mr(e, t) {
|
|
637
737
|
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
738
|
}
|
|
639
|
-
function
|
|
739
|
+
function hr(e, t = 0) {
|
|
640
740
|
let n = [
|
|
641
741
|
"",
|
|
642
742
|
"k",
|
|
@@ -646,20 +746,20 @@ function Yn(e, t = 0) {
|
|
|
646
746
|
], r = Math.floor(Math.log10(Math.abs(e)) / 3), i = Math.max(0, Math.min(r, n.length - 1)), a = n[i];
|
|
647
747
|
return a ? (e / 10 ** (i * 3)).toFixed(t) + a : (e / 10 ** (i * 3)).toFixed(0);
|
|
648
748
|
}
|
|
649
|
-
function
|
|
749
|
+
function gr(e) {
|
|
650
750
|
if (/^[a-z0-9]$/i.test(e)) return e.toLowerCase();
|
|
651
751
|
if (!/^[\u4e00-\u9fff]$/.test(e)) return "";
|
|
652
|
-
for (let t =
|
|
752
|
+
for (let t = er.length - 1; t >= 0; --t) if ($n.compare(e, er[t]) >= 0) return tr[t].toLowerCase();
|
|
653
753
|
return "";
|
|
654
754
|
}
|
|
655
|
-
function
|
|
656
|
-
return [...String(e)].map(
|
|
755
|
+
function _r(e) {
|
|
756
|
+
return [...String(e)].map(gr).join("");
|
|
657
757
|
}
|
|
658
|
-
function
|
|
758
|
+
function vr(e, t) {
|
|
659
759
|
let n = String(t).trim().toLowerCase();
|
|
660
|
-
return n === "" || e.toLowerCase().includes(n) ||
|
|
760
|
+
return n === "" || e.toLowerCase().includes(n) || _r(e).includes(n);
|
|
661
761
|
}
|
|
662
|
-
function
|
|
762
|
+
function yr(e, t) {
|
|
663
763
|
e.forEach((e) => {
|
|
664
764
|
let n = t.find((t) => t.key === e.key);
|
|
665
765
|
n && (e.hide = n.hide, e.show = n.show, e.width = n.width);
|
|
@@ -672,8 +772,8 @@ function $n(e, t) {
|
|
|
672
772
|
}
|
|
673
773
|
//#endregion
|
|
674
774
|
//#region components/monitor.ts
|
|
675
|
-
var
|
|
676
|
-
let e =
|
|
775
|
+
var br = 500, xr = 300, Sr = [], Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakSet(), Er, Dr, Or, kr, Ar, jr, Mr = !1, Nr = () => typeof navigator > "u" ? "" : navigator.userAgent.toLocaleUpperCase(), Pr = () => {
|
|
776
|
+
let e = Nr(), t = /ANDROID ([\d.]+)/.exec(e);
|
|
677
777
|
if (t) return `Android ${t[1]}`;
|
|
678
778
|
let n = /(?:IPHONE|IPAD).*OS ([\d_]+)/.exec(e);
|
|
679
779
|
if (n) return `${e.includes("IPAD") ? "iPad" : "iPhone"} ${n[1].replace(/_/g, ".")}`;
|
|
@@ -688,8 +788,8 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
688
788
|
}[r[1]] ?? `Windows NT ${r[1]}`;
|
|
689
789
|
let i = /MAC OS X ([\d_]+)/.exec(e);
|
|
690
790
|
return i ? `macOS ${i[1].replace(/_/g, ".")}` : "Other Platform";
|
|
691
|
-
},
|
|
692
|
-
let e =
|
|
791
|
+
}, Fr = () => {
|
|
792
|
+
let e = Nr();
|
|
693
793
|
for (let [t, n] of [
|
|
694
794
|
[/EDG(?:A|IOS)?\/([\d.]+)/, "Edge"],
|
|
695
795
|
[/OPR\/([\d.]+)/, "Opera"],
|
|
@@ -704,7 +804,7 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
704
804
|
if (r) return `${n} ${r[1]}`;
|
|
705
805
|
}
|
|
706
806
|
return "Others";
|
|
707
|
-
},
|
|
807
|
+
}, Ir = (e, t) => e.length > t ? `${e.slice(0, t)}…` : e, Lr = (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]"), Rr = (e) => {
|
|
708
808
|
let t = /* @__PURE__ */ new WeakSet();
|
|
709
809
|
try {
|
|
710
810
|
return JSON.stringify(e, (e, n) => {
|
|
@@ -718,7 +818,7 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
718
818
|
} catch {
|
|
719
819
|
return String(e);
|
|
720
820
|
}
|
|
721
|
-
},
|
|
821
|
+
}, zr = (e) => e instanceof Error ? Ir(Lr(`${e.name && e.name !== "Error" ? `${e.name}: ` : ""}${e.message || "Unknown error"}`), br) : Ir(Lr((typeof e == "string" ? e : Rr(e)).trim() || "Unknown error"), br), Br = (e) => {
|
|
722
822
|
let t = String(e || "");
|
|
723
823
|
if (!t) return "";
|
|
724
824
|
try {
|
|
@@ -727,7 +827,7 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
727
827
|
} catch {
|
|
728
828
|
return t.split(/[?#]/, 1)[0];
|
|
729
829
|
}
|
|
730
|
-
},
|
|
830
|
+
}, Vr = (e, t) => {
|
|
731
831
|
let n = [];
|
|
732
832
|
try {
|
|
733
833
|
let t = new URL(e, location.href).searchParams.toString();
|
|
@@ -744,8 +844,8 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
744
844
|
}), n.push(e.join("&"));
|
|
745
845
|
} 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
846
|
}
|
|
747
|
-
return
|
|
748
|
-
},
|
|
847
|
+
return Ir(Lr(n.filter(Boolean).join(" | ")), xr);
|
|
848
|
+
}, Hr = (e) => {
|
|
749
849
|
let t;
|
|
750
850
|
if (typeof TextEncoder < "u") {
|
|
751
851
|
let n = new TextEncoder().encode(e);
|
|
@@ -760,8 +860,8 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
760
860
|
t = n.map((e) => String.fromCharCode(e)).join("");
|
|
761
861
|
}
|
|
762
862
|
return window.btoa(t);
|
|
763
|
-
},
|
|
764
|
-
let n =
|
|
863
|
+
}, Ur = (e, t) => {
|
|
864
|
+
let n = Hr(t), r = () => {
|
|
765
865
|
let t = new XMLHttpRequest();
|
|
766
866
|
t.open("POST", e, !0), t.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"), t.send(n);
|
|
767
867
|
}, i = () => {
|
|
@@ -771,7 +871,7 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
771
871
|
try {
|
|
772
872
|
r();
|
|
773
873
|
} catch {}
|
|
774
|
-
}, a =
|
|
874
|
+
}, a = Or ?? window.fetch;
|
|
775
875
|
if (typeof a == "function") {
|
|
776
876
|
a.call(window, e, {
|
|
777
877
|
method: "POST",
|
|
@@ -785,87 +885,87 @@ var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__
|
|
|
785
885
|
return;
|
|
786
886
|
}
|
|
787
887
|
i();
|
|
788
|
-
},
|
|
789
|
-
if (!
|
|
790
|
-
|
|
888
|
+
}, Wr = (e, t) => (n, r, i) => {
|
|
889
|
+
if (!Mr) {
|
|
890
|
+
Mr = !0;
|
|
791
891
|
try {
|
|
792
|
-
let a =
|
|
793
|
-
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 &&
|
|
892
|
+
let a = zr(i);
|
|
893
|
+
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 && Ur(e, Rr({
|
|
794
894
|
type: n,
|
|
795
895
|
time: Date.now(),
|
|
796
|
-
url:
|
|
797
|
-
browser:
|
|
798
|
-
platform:
|
|
896
|
+
url: Br(r) || Br(location.href),
|
|
897
|
+
browser: Fr(),
|
|
898
|
+
platform: Pr(),
|
|
799
899
|
message: `[${n}] [${window.document.title}] [${a}]`,
|
|
800
900
|
info: t ? t() : ""
|
|
801
901
|
}));
|
|
802
902
|
} catch {} finally {
|
|
803
|
-
|
|
903
|
+
Mr = !1;
|
|
804
904
|
}
|
|
805
905
|
}
|
|
806
|
-
},
|
|
807
|
-
for (let r of
|
|
808
|
-
},
|
|
809
|
-
let t =
|
|
810
|
-
return
|
|
811
|
-
},
|
|
812
|
-
|
|
813
|
-
let t =
|
|
814
|
-
t && !
|
|
906
|
+
}, Gr = (e, t, n) => {
|
|
907
|
+
for (let r of Sr) r.report(e, t, n);
|
|
908
|
+
}, Kr = (e) => {
|
|
909
|
+
let t = Br(e);
|
|
910
|
+
return Sr.some((e) => e.endpoint === t);
|
|
911
|
+
}, qr = (e) => {
|
|
912
|
+
Tr.has(e) || (Tr.add(e), e.addEventListener("error", () => {
|
|
913
|
+
let t = wr.get(e);
|
|
914
|
+
t && !Kr(t.url) && Gr(3, t.url, `${t.method} network error`);
|
|
815
915
|
}), e.addEventListener("timeout", () => {
|
|
816
|
-
let t =
|
|
817
|
-
t && !
|
|
916
|
+
let t = wr.get(e);
|
|
917
|
+
t && !Kr(t.url) && Gr(3, t.url, `${t.method} timeout`);
|
|
818
918
|
}), e.addEventListener("loadend", () => {
|
|
819
|
-
let t =
|
|
820
|
-
if (!t || e.status < 400 ||
|
|
919
|
+
let t = wr.get(e);
|
|
920
|
+
if (!t || e.status < 400 || Kr(t.url)) return;
|
|
821
921
|
let n = Date.now() - t.startTime;
|
|
822
|
-
|
|
922
|
+
Gr(3, t.url, `${t.method} ${e.status} (${n}ms)`);
|
|
823
923
|
}));
|
|
824
|
-
},
|
|
825
|
-
|
|
826
|
-
|
|
924
|
+
}, Jr = () => {
|
|
925
|
+
Er || Dr || kr || Ar || typeof XMLHttpRequest > "u" || (Er = XMLHttpRequest.prototype.open, Dr = XMLHttpRequest.prototype.send, kr = function(e, t, ...n) {
|
|
926
|
+
wr.set(this, {
|
|
827
927
|
method: String(e).toUpperCase(),
|
|
828
928
|
url: String(t),
|
|
829
929
|
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 (
|
|
930
|
+
}), qr(this), Er?.call(this, e, t, n[0] ?? !0, n[1] ?? null, n[2] ?? null);
|
|
931
|
+
}, XMLHttpRequest.prototype.open = kr, Ar = function(e) {
|
|
932
|
+
let t = wr.get(this);
|
|
933
|
+
t && (t.startTime = Date.now()), Dr?.call(this, e ?? null);
|
|
934
|
+
}, XMLHttpRequest.prototype.send = Ar);
|
|
935
|
+
}, Yr = () => {
|
|
936
|
+
Er && XMLHttpRequest.prototype.open === kr && (XMLHttpRequest.prototype.open = Er, Er = void 0, kr = void 0), Dr && XMLHttpRequest.prototype.send === Ar && (XMLHttpRequest.prototype.send = Dr, Dr = void 0, Ar = void 0);
|
|
937
|
+
}, Xr = () => {
|
|
938
|
+
if (Or || typeof window.fetch != "function") return;
|
|
839
939
|
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 =
|
|
940
|
+
Or = e, jr = async function(t, n) {
|
|
941
|
+
let r = typeof Request < "u" && t instanceof Request, i = r ? t.url : String(t), a = String(n?.method || r && t.method || "GET").toUpperCase(), o = Vr(i, n?.body), s = o ? ` | Params: ${o}` : "", c = Date.now();
|
|
842
942
|
try {
|
|
843
943
|
let r = await e.call(this, t, n);
|
|
844
|
-
return !r.ok && !
|
|
944
|
+
return !r.ok && !Kr(i) && Gr(3, i, `${a} ${r.status} (${Date.now() - c}ms)${s}`), r;
|
|
845
945
|
} catch (e) {
|
|
846
|
-
throw
|
|
946
|
+
throw Kr(i) || Gr(3, i, `${a} network error: ${zr(e)}${s}`), e;
|
|
847
947
|
}
|
|
848
|
-
}, window.fetch =
|
|
849
|
-
},
|
|
850
|
-
|
|
851
|
-
},
|
|
852
|
-
|
|
853
|
-
},
|
|
854
|
-
|
|
855
|
-
},
|
|
856
|
-
|
|
857
|
-
},
|
|
858
|
-
|
|
948
|
+
}, window.fetch = jr;
|
|
949
|
+
}, Zr = () => {
|
|
950
|
+
Or && window.fetch === jr && (window.fetch = Or, Or = void 0, jr = void 0);
|
|
951
|
+
}, Qr = (e) => {
|
|
952
|
+
Gr(1, e.filename || location.href, e.error || e.message);
|
|
953
|
+
}, $r = (e) => {
|
|
954
|
+
Gr(1, location.href, `Promise: ${zr(e.reason)}`);
|
|
955
|
+
}, ei = () => {
|
|
956
|
+
Sr.length === 1 && (Jr(), Xr(), window.addEventListener("error", Qr), window.addEventListener("unhandledrejection", $r));
|
|
957
|
+
}, ti = () => {
|
|
958
|
+
Sr.length > 0 || (Yr(), Zr(), window.removeEventListener("error", Qr), window.removeEventListener("unhandledrejection", $r));
|
|
859
959
|
};
|
|
860
|
-
function
|
|
960
|
+
function ni(e, t, n) {
|
|
861
961
|
if (!t || typeof window > "u" || typeof navigator > "u") return;
|
|
862
|
-
let r =
|
|
962
|
+
let r = Cr.get(e);
|
|
863
963
|
if (r) return r;
|
|
864
|
-
let i =
|
|
865
|
-
endpoint:
|
|
964
|
+
let i = Wr(t, n), a = {
|
|
965
|
+
endpoint: Br(t),
|
|
866
966
|
report: i
|
|
867
967
|
};
|
|
868
|
-
|
|
968
|
+
Sr.push(a), ei();
|
|
869
969
|
let o = e.config.errorHandler, s = (e, t, n) => {
|
|
870
970
|
i(2, location.href, e), o?.(e, t, n);
|
|
871
971
|
};
|
|
@@ -873,14 +973,14 @@ function Ir(e, t, n) {
|
|
|
873
973
|
let c = !1, l = () => {
|
|
874
974
|
if (c) return;
|
|
875
975
|
c = !0, e.config.errorHandler === s && (e.config.errorHandler = o);
|
|
876
|
-
let t =
|
|
877
|
-
t >= 0 &&
|
|
976
|
+
let t = Sr.indexOf(a);
|
|
977
|
+
t >= 0 && Sr.splice(t, 1), Cr.delete(e), ti();
|
|
878
978
|
};
|
|
879
|
-
return
|
|
979
|
+
return Cr.set(e, l), e.onUnmount(l), l;
|
|
880
980
|
}
|
|
881
|
-
var
|
|
882
|
-
|
|
883
|
-
}, X = /* @__PURE__ */ new Map(),
|
|
981
|
+
var ri = (e, t, n) => {
|
|
982
|
+
Gr(e, t, n);
|
|
983
|
+
}, X = /* @__PURE__ */ new Map(), ii = Object.prototype.hasOwnProperty, ai = 300, oi = (e) => {
|
|
884
984
|
if (e == null) return "";
|
|
885
985
|
let t;
|
|
886
986
|
if (typeof e == "string") t = e;
|
|
@@ -889,44 +989,44 @@ var Lr = (e, t, n) => {
|
|
|
889
989
|
} catch {
|
|
890
990
|
t = String(e);
|
|
891
991
|
}
|
|
892
|
-
return t.length >
|
|
992
|
+
return t.length > ai ? `${t.slice(0, ai)}…` : t;
|
|
893
993
|
};
|
|
894
|
-
function
|
|
994
|
+
function si(e, t) {
|
|
895
995
|
let n = [];
|
|
896
996
|
for (let r in e) {
|
|
897
|
-
if (!
|
|
997
|
+
if (!ii.call(e, r)) continue;
|
|
898
998
|
let i = e[r], a = encodeURIComponent(r), o;
|
|
899
|
-
o = typeof i == "object" ?
|
|
999
|
+
o = typeof i == "object" ? si(i, t ? t + "[" + a + "]" : a) : (t ? t + "[" + a + "]" : a) + "=" + encodeURIComponent(i), n.push(o);
|
|
900
1000
|
}
|
|
901
1001
|
return n.join("&");
|
|
902
1002
|
}
|
|
903
|
-
var
|
|
1003
|
+
var ci = (e) => {
|
|
904
1004
|
let t = e["content-disposition"];
|
|
905
1005
|
if (t) {
|
|
906
1006
|
let e = t.match(/filename=(?<fileName>.+)/);
|
|
907
1007
|
return e && e.groups && e.groups.fileName;
|
|
908
1008
|
}
|
|
909
1009
|
return "";
|
|
910
|
-
},
|
|
1010
|
+
}, li = Ge.create({
|
|
911
1011
|
timeout: 3e5,
|
|
912
1012
|
responseType: "json",
|
|
913
1013
|
headers: { "Content-Type": "application/json" }
|
|
914
1014
|
});
|
|
915
|
-
|
|
916
|
-
var
|
|
917
|
-
|
|
918
|
-
e.cancelToken =
|
|
1015
|
+
li.defaults.timeout = 3e5;
|
|
1016
|
+
var ui = Ge.CancelToken.source();
|
|
1017
|
+
li.interceptors.request.use((e) => {
|
|
1018
|
+
e.cancelToken = ui.token, e.headers.Language = K.lang, e.headers.Platform = K.isMobile ? "mobile" : "pc";
|
|
919
1019
|
let t = Y("token", !1);
|
|
920
1020
|
if (e.headers && t && (e.headers.token = t), e.method?.toLocaleUpperCase() === "GET") {
|
|
921
|
-
let t =
|
|
1021
|
+
let t = si(e.data);
|
|
922
1022
|
t && (e.url = `${e.url}?${t}`);
|
|
923
1023
|
}
|
|
924
1024
|
return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
|
|
925
|
-
}, (e) => Promise.reject(e)),
|
|
1025
|
+
}, (e) => Promise.reject(e)), li.interceptors.response.use((e) => {
|
|
926
1026
|
let t = e.data;
|
|
927
|
-
if (t.code === 401) return
|
|
1027
|
+
if (t.code === 401) return or("token"), Rn.replace("/login"), Promise.reject(!1);
|
|
928
1028
|
if (e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
|
|
929
|
-
let t =
|
|
1029
|
+
let t = ci(e.headers);
|
|
930
1030
|
return Promise.resolve({
|
|
931
1031
|
fileName: decodeURIComponent(t),
|
|
932
1032
|
data: e.data
|
|
@@ -937,30 +1037,30 @@ Ur.interceptors.request.use((e) => {
|
|
|
937
1037
|
return Promise.resolve(e);
|
|
938
1038
|
}
|
|
939
1039
|
{
|
|
940
|
-
|
|
941
|
-
let n = t.message, r =
|
|
942
|
-
return
|
|
943
|
-
content: n ||
|
|
1040
|
+
ir.destroyAll();
|
|
1041
|
+
let n = t.message, r = oi(e.config.data ?? e.config.params);
|
|
1042
|
+
return ri(3, e.config.url || location.href, `Fetch ${t.code ?? "error"}: ${n || "Unknown error"}${r ? ` | Params: ${r}` : ""}`), ir.error({
|
|
1043
|
+
content: n || G.global.t("Notice.error"),
|
|
944
1044
|
duration: 3e3
|
|
945
1045
|
}), Promise.reject(n);
|
|
946
1046
|
}
|
|
947
|
-
}, (e) => e ? (
|
|
948
|
-
content:
|
|
1047
|
+
}, (e) => e ? (ir.destroyAll(), e.code === "ERR_NETWORK" ? (ir.error({
|
|
1048
|
+
content: G.global.t("Notice.network"),
|
|
949
1049
|
duration: 3e3
|
|
950
|
-
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (
|
|
951
|
-
content:
|
|
1050
|
+
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (or("token"), window.location.href = "/mom/login"), ir.error({
|
|
1051
|
+
content: G.global.t("Notice.error"),
|
|
952
1052
|
duration: 3e3
|
|
953
|
-
}), Promise.reject(
|
|
954
|
-
var
|
|
955
|
-
|
|
956
|
-
},
|
|
1053
|
+
}), Promise.reject(G.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(G.global.t("Notice.error")));
|
|
1054
|
+
var di = "/apiserver/", fi = () => {
|
|
1055
|
+
ui.cancel(), ui = Ge.CancelToken.source();
|
|
1056
|
+
}, pi = (e, t, n = "json", r = 3e5) => {
|
|
957
1057
|
let i = JSON.stringify({
|
|
958
1058
|
fetchUri: e,
|
|
959
1059
|
...t
|
|
960
1060
|
});
|
|
961
1061
|
if (X.has(i)) return X.get(i);
|
|
962
|
-
let a =
|
|
963
|
-
url: `${
|
|
1062
|
+
let a = li({
|
|
1063
|
+
url: `${di}${e}`,
|
|
964
1064
|
method: "GET",
|
|
965
1065
|
data: t,
|
|
966
1066
|
responseType: n,
|
|
@@ -975,53 +1075,53 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
975
1075
|
...t
|
|
976
1076
|
});
|
|
977
1077
|
if (X.has(i)) return X.get(i);
|
|
978
|
-
let a =
|
|
979
|
-
url: `${
|
|
1078
|
+
let a = li({
|
|
1079
|
+
url: `${di}${e}`,
|
|
980
1080
|
method: "POST",
|
|
981
1081
|
data: t,
|
|
982
1082
|
responseType: n,
|
|
983
1083
|
timeout: r
|
|
984
1084
|
}).then((e) => (X.delete(i), Promise.resolve(e))).catch((e) => (X.delete(i), Promise.reject(e)));
|
|
985
1085
|
return X.set(i, a), a;
|
|
986
|
-
},
|
|
987
|
-
url: `${
|
|
1086
|
+
}, mi = (e, t = {}, n = "blob", r = 3e5) => li({
|
|
1087
|
+
url: `${di}${e}`,
|
|
988
1088
|
method: "POST",
|
|
989
1089
|
data: t,
|
|
990
1090
|
responseType: n,
|
|
991
1091
|
timeout: r
|
|
992
|
-
}),
|
|
1092
|
+
}), hi = (e) => li(e), gi = (e, t) => li({
|
|
993
1093
|
headers: { "Content-Type": "multipart/form-data" },
|
|
994
|
-
url: `${
|
|
1094
|
+
url: `${di}${e}`,
|
|
995
1095
|
method: "POST",
|
|
996
1096
|
data: t
|
|
997
|
-
}),
|
|
1097
|
+
}), _i = (e, t) => Z("dynamic-table/createTime", {
|
|
998
1098
|
id: e,
|
|
999
1099
|
createTime: t
|
|
1000
|
-
}),
|
|
1100
|
+
}), vi = (e) => Z("table/query", e), yi = (e) => Z("table/submit", e), bi = (e) => Z("table/delete", e), xi = (e) => Z("dataBind/query", { table_id: e }), Si = (e) => Z("dataBind/submit", e), Ci = (e, t, n) => Z("calculation/sqlExecute", {
|
|
1001
1101
|
calculationIds: e,
|
|
1002
1102
|
linkId: t,
|
|
1003
1103
|
...n
|
|
1004
|
-
}),
|
|
1104
|
+
}), wi = (e) => mi("excel/template", { tableKey: e }, "arraybuffer"), Ti = (e) => Z("excel/record/query", {
|
|
1005
1105
|
recordType: "import",
|
|
1006
1106
|
tableKey: e
|
|
1007
|
-
}),
|
|
1107
|
+
}), Ei = (e) => Z("excel/exportData", e), Di = (e, t) => p(Re, { style: { "max-width": "300px" } }, {
|
|
1008
1108
|
trigger: () => e,
|
|
1009
1109
|
default: () => typeof t == "function" ? t() : t
|
|
1010
|
-
}),
|
|
1110
|
+
}), Oi = (e, t, n, r) => {
|
|
1011
1111
|
try {
|
|
1012
1112
|
Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
|
|
1013
1113
|
n && n();
|
|
1014
|
-
}, (e) =>
|
|
1114
|
+
}, (e) => vi({
|
|
1015
1115
|
id: e,
|
|
1016
1116
|
tableId: r
|
|
1017
|
-
}), (e) =>
|
|
1117
|
+
}), (e) => yi({
|
|
1018
1118
|
tableId: r,
|
|
1019
1119
|
...e
|
|
1020
|
-
}),
|
|
1120
|
+
}), ir, Z);
|
|
1021
1121
|
} catch (e) {
|
|
1022
1122
|
q(e);
|
|
1023
1123
|
}
|
|
1024
|
-
},
|
|
1124
|
+
}, ki = (e, t, n, r, i) => {
|
|
1025
1125
|
let a = {
|
|
1026
1126
|
secondary: i?.secondary || !1,
|
|
1027
1127
|
tertiary: i?.tertiary || !1,
|
|
@@ -1036,36 +1136,36 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1036
1136
|
if (!e.confirmText) {
|
|
1037
1137
|
if (e.onClick && typeof e.onClick == "string") {
|
|
1038
1138
|
let i = e.onClick;
|
|
1039
|
-
a.onClick = () =>
|
|
1139
|
+
a.onClick = () => Oi(i, t, n, r);
|
|
1040
1140
|
}
|
|
1041
1141
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
1042
1142
|
}
|
|
1043
|
-
return e.icon && (o.icon = () => p(V, {}, { default: () => p(
|
|
1044
|
-
},
|
|
1143
|
+
return e.icon && (o.icon = () => p(V, {}, { default: () => p(In, { icon: e.icon }, { default: () => null }) })), p(R, a, o);
|
|
1144
|
+
}, Ai = (e, t, n, r, i) => {
|
|
1045
1145
|
let a = { placement: "left" };
|
|
1046
1146
|
if (typeof t.onClick == "string") {
|
|
1047
1147
|
let e = t.onClick;
|
|
1048
|
-
a["on-positive-click"] = () =>
|
|
1148
|
+
a["on-positive-click"] = () => Oi(e, n, r, i);
|
|
1049
1149
|
} else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
|
|
1050
1150
|
return p(Ee, a, {
|
|
1051
1151
|
default: () => p("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
|
|
1052
1152
|
trigger: () => e
|
|
1053
1153
|
});
|
|
1054
|
-
},
|
|
1055
|
-
let a =
|
|
1056
|
-
return e.confirmText && (a =
|
|
1057
|
-
},
|
|
1154
|
+
}, ji = (e, t, n, r, i) => {
|
|
1155
|
+
let a = ki(e, t, n, r, i);
|
|
1156
|
+
return e.confirmText && (a = Ai(a, e, t, n, r)), !e.confirmText && e.tooltipText && (a = Di(a, e.tooltipText)), a;
|
|
1157
|
+
}, Mi = ({ buttons: e, rowData: t = {}, callback: n, tableId: r, hProps: i }) => {
|
|
1058
1158
|
let a = [];
|
|
1059
1159
|
return e.forEach((e) => {
|
|
1060
1160
|
if (e.type === "group") {
|
|
1061
1161
|
let o = [];
|
|
1062
1162
|
e.children && e.children.length > 0 && e.children.forEach((a, s) => {
|
|
1063
|
-
o.push(
|
|
1163
|
+
o.push(ji({
|
|
1064
1164
|
...a,
|
|
1065
1165
|
tooltipText: void 0
|
|
1066
1166
|
}, t, n, r, i)), s < e.children.length - 1 && o.push(p("div", { class: "uz-action-split" }, { default: () => "" }));
|
|
1067
1167
|
}), a.push(p(De, { trigger: "click" }, {
|
|
1068
|
-
trigger: () =>
|
|
1168
|
+
trigger: () => ki({
|
|
1069
1169
|
type: "normal",
|
|
1070
1170
|
key: e.key,
|
|
1071
1171
|
icon: e.icon,
|
|
@@ -1081,11 +1181,11 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1081
1181
|
}));
|
|
1082
1182
|
}
|
|
1083
1183
|
if (e.type === "normal") {
|
|
1084
|
-
let o =
|
|
1184
|
+
let o = ji(e, t, n, r, i);
|
|
1085
1185
|
a.push(o);
|
|
1086
1186
|
}
|
|
1087
1187
|
}), p("div", { class: "uz-action-flex" }, { default: () => a });
|
|
1088
|
-
},
|
|
1188
|
+
}, Ni = (e) => {
|
|
1089
1189
|
switch (e) {
|
|
1090
1190
|
case "tertiary": return 1;
|
|
1091
1191
|
case "primary": return 2;
|
|
@@ -1095,7 +1195,7 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1095
1195
|
case "error": return 6;
|
|
1096
1196
|
default: return 0;
|
|
1097
1197
|
}
|
|
1098
|
-
},
|
|
1198
|
+
}, Pi = (e) => {
|
|
1099
1199
|
switch (e) {
|
|
1100
1200
|
case 1: return "tertiary";
|
|
1101
1201
|
case 2: return "primary";
|
|
@@ -1105,7 +1205,7 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1105
1205
|
case 6: return "error";
|
|
1106
1206
|
default: return "default";
|
|
1107
1207
|
}
|
|
1108
|
-
},
|
|
1208
|
+
}, Fi = (e) => {
|
|
1109
1209
|
switch (e) {
|
|
1110
1210
|
case "detailInside": return 0;
|
|
1111
1211
|
case "editInside": return 1;
|
|
@@ -1114,7 +1214,7 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1114
1214
|
case "enabledInside": return 4;
|
|
1115
1215
|
default: return e;
|
|
1116
1216
|
}
|
|
1117
|
-
},
|
|
1217
|
+
}, Ii = (e) => {
|
|
1118
1218
|
switch (e) {
|
|
1119
1219
|
case 0: return "detailInside";
|
|
1120
1220
|
case 1: return "editInside";
|
|
@@ -1123,66 +1223,66 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1123
1223
|
case 4: return "enabledInside";
|
|
1124
1224
|
default: return e;
|
|
1125
1225
|
}
|
|
1126
|
-
},
|
|
1226
|
+
}, Li = (e) => ({
|
|
1127
1227
|
t: 0,
|
|
1128
1228
|
k: e.key,
|
|
1129
1229
|
d: e?.disabled,
|
|
1130
1230
|
l: e?.loading,
|
|
1131
1231
|
i: e?.icon,
|
|
1132
|
-
c:
|
|
1232
|
+
c: Ni(e?.color),
|
|
1133
1233
|
b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
|
|
1134
1234
|
o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
|
|
1135
1235
|
p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
|
|
1136
1236
|
s: e?.optionsType,
|
|
1137
1237
|
u: e?.optionsSource,
|
|
1138
|
-
a:
|
|
1238
|
+
a: Fi(e?.action),
|
|
1139
1239
|
r: +!!e.footer,
|
|
1140
1240
|
g: +!!e.main,
|
|
1141
1241
|
h: +!!e.sub,
|
|
1142
1242
|
w: e?.width,
|
|
1143
1243
|
z: e?.onClick
|
|
1144
|
-
}),
|
|
1244
|
+
}), Ri = (e) => ({
|
|
1145
1245
|
type: "normal",
|
|
1146
1246
|
key: e.k,
|
|
1147
1247
|
disabled: e?.d,
|
|
1148
1248
|
loading: e?.l,
|
|
1149
1249
|
icon: e?.i,
|
|
1150
|
-
color:
|
|
1250
|
+
color: Pi(e?.c),
|
|
1151
1251
|
buttonText: e?.b ? decodeURIComponent(e?.b) : "",
|
|
1152
1252
|
confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
|
|
1153
1253
|
tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
|
|
1154
1254
|
optionsType: e?.s,
|
|
1155
1255
|
optionsSource: e?.u,
|
|
1156
|
-
action:
|
|
1256
|
+
action: Ii(e?.a),
|
|
1157
1257
|
footer: !!e.r,
|
|
1158
1258
|
sub: !!e.h,
|
|
1159
1259
|
main: !!e.g,
|
|
1160
1260
|
width: e?.w,
|
|
1161
1261
|
onClick: e?.z
|
|
1162
|
-
}),
|
|
1262
|
+
}), zi = (e) => {
|
|
1163
1263
|
let t = [];
|
|
1164
|
-
for (let n of e) n.type === "normal" && t.push(
|
|
1264
|
+
for (let n of e) n.type === "normal" && t.push(Li(n)), n.type === "group" && t.push({
|
|
1165
1265
|
t: 1,
|
|
1166
1266
|
k: n.key,
|
|
1167
1267
|
i: n?.icon,
|
|
1168
|
-
x:
|
|
1268
|
+
x: Ni(n?.color),
|
|
1169
1269
|
b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
|
|
1170
|
-
c: n.children.map((e) =>
|
|
1270
|
+
c: n.children.map((e) => Li(e))
|
|
1171
1271
|
});
|
|
1172
1272
|
return t;
|
|
1173
|
-
},
|
|
1273
|
+
}, Bi = (e) => {
|
|
1174
1274
|
if (e && e[0] && e[0].type) return e;
|
|
1175
1275
|
let t = [];
|
|
1176
|
-
for (let n of e) n.t === 0 && t.push(
|
|
1276
|
+
for (let n of e) n.t === 0 && t.push(Ri(n)), n.t === 1 && t.push({
|
|
1177
1277
|
type: "group",
|
|
1178
1278
|
key: n.k,
|
|
1179
1279
|
icon: n?.i,
|
|
1180
|
-
color:
|
|
1280
|
+
color: Pi(n?.x),
|
|
1181
1281
|
buttonText: n?.b ? decodeURIComponent(n?.b) : "",
|
|
1182
|
-
children: n.c.map((e) =>
|
|
1282
|
+
children: n.c.map((e) => Ri(e))
|
|
1183
1283
|
});
|
|
1184
1284
|
return t;
|
|
1185
|
-
},
|
|
1285
|
+
}, Vi = f({
|
|
1186
1286
|
name: "UzBack",
|
|
1187
1287
|
components: {
|
|
1188
1288
|
NButton: R,
|
|
@@ -1207,7 +1307,7 @@ var Gr = "/apiserver/", Kr = () => {
|
|
|
1207
1307
|
});
|
|
1208
1308
|
//#endregion
|
|
1209
1309
|
//#region components/back/index.vue
|
|
1210
|
-
function
|
|
1310
|
+
function Hi(e, t, n, i, a, s) {
|
|
1211
1311
|
let c = O("UzIcon"), l = O("NIcon"), d = O("NButton");
|
|
1212
1312
|
return S(), r(d, {
|
|
1213
1313
|
quaternary: "",
|
|
@@ -1221,7 +1321,7 @@ function Si(e, t, n, i, a, s) {
|
|
|
1221
1321
|
_: 1
|
|
1222
1322
|
}, 8, ["onClick"]);
|
|
1223
1323
|
}
|
|
1224
|
-
var
|
|
1324
|
+
var Ui = /*#__PURE__*/ W(Vi, [["render", Hi]]), Wi = f({
|
|
1225
1325
|
name: "UzFormItem",
|
|
1226
1326
|
components: {
|
|
1227
1327
|
NIcon: V,
|
|
@@ -1399,11 +1499,11 @@ var Ci = /*#__PURE__*/ W(xi, [["render", Si]]), wi = f({
|
|
|
1399
1499
|
checkNumberMax: (t) => {
|
|
1400
1500
|
if (e.status !== 2) return t.params.maxKey ? Number(e.formValue[t.params.maxKey]) : t.params.max;
|
|
1401
1501
|
},
|
|
1402
|
-
selectFilter: (e, t) =>
|
|
1502
|
+
selectFilter: (e, t) => vr(t.label, e)
|
|
1403
1503
|
};
|
|
1404
1504
|
}
|
|
1405
|
-
}),
|
|
1406
|
-
function
|
|
1505
|
+
}), Gi = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
1506
|
+
function Ki(t, n, i, c, d, f) {
|
|
1407
1507
|
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
1508
|
return t.item.input === "input" ? (S(), r(p, {
|
|
1409
1509
|
key: 0,
|
|
@@ -1708,7 +1808,7 @@ function Ei(t, n, i, c, d, f) {
|
|
|
1708
1808
|
value: t.formValue[t.item.key],
|
|
1709
1809
|
disabled: t.checkDisabled()
|
|
1710
1810
|
}, {
|
|
1711
|
-
default: P(() => [o("div",
|
|
1811
|
+
default: P(() => [o("div", Gi, [(S(!0), a(e, null, E(t.item.params.options, (e) => (S(), r(x, {
|
|
1712
1812
|
key: e.value,
|
|
1713
1813
|
label: e.label,
|
|
1714
1814
|
value: e.value
|
|
@@ -1777,7 +1877,7 @@ function Ei(t, n, i, c, d, f) {
|
|
|
1777
1877
|
"status"
|
|
1778
1878
|
])) : (S(), a(e, { key: 14 }, [], 64));
|
|
1779
1879
|
}
|
|
1780
|
-
var
|
|
1880
|
+
var qi = /*#__PURE__*/ W(Wi, [["render", Ki]]), Ji = f({
|
|
1781
1881
|
name: "UzForm",
|
|
1782
1882
|
components: {
|
|
1783
1883
|
NForm: me,
|
|
@@ -1785,7 +1885,7 @@ var Di = /*#__PURE__*/ W(wi, [["render", Ei]]), Oi = f({
|
|
|
1785
1885
|
NDivider: le,
|
|
1786
1886
|
NButton: R,
|
|
1787
1887
|
NIcon: V,
|
|
1788
|
-
UzFormItem:
|
|
1888
|
+
UzFormItem: qi
|
|
1789
1889
|
},
|
|
1790
1890
|
props: {
|
|
1791
1891
|
items: {
|
|
@@ -1862,12 +1962,12 @@ var Di = /*#__PURE__*/ W(wi, [["render", Ei]]), Oi = f({
|
|
|
1862
1962
|
}, p = (e, t) => {
|
|
1863
1963
|
switch (e) {
|
|
1864
1964
|
case "datetime":
|
|
1865
|
-
case "datetimerange": return
|
|
1965
|
+
case "datetimerange": return dr(t, "yyyy-MM-dd hh:mm:ss");
|
|
1866
1966
|
case "month":
|
|
1867
|
-
case "monthrange": return
|
|
1967
|
+
case "monthrange": return dr(t, "yyyy-MM");
|
|
1868
1968
|
case "year":
|
|
1869
|
-
case "yearrange": return
|
|
1870
|
-
default: return
|
|
1969
|
+
case "yearrange": return dr(t, "yyyy");
|
|
1970
|
+
default: return dr(t);
|
|
1871
1971
|
}
|
|
1872
1972
|
}, h = (e, t = !1) => {
|
|
1873
1973
|
let n = tt(e).startOf("day").diff(tt().startOf("day"), "day");
|
|
@@ -1990,8 +2090,8 @@ var Di = /*#__PURE__*/ W(wi, [["render", Ei]]), Oi = f({
|
|
|
1990
2090
|
}
|
|
1991
2091
|
};
|
|
1992
2092
|
}
|
|
1993
|
-
}),
|
|
1994
|
-
function
|
|
2093
|
+
}), Yi = ["onClick"];
|
|
2094
|
+
function Xi(t, n, s, c, d, f) {
|
|
1995
2095
|
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
2096
|
return S(), a(e, null, [u(C, {
|
|
1997
2097
|
ref: "formRef",
|
|
@@ -2019,7 +2119,7 @@ function Ai(t, n, s, c, d, f) {
|
|
|
2019
2119
|
}, [u(m, null, {
|
|
2020
2120
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
2021
2121
|
_: 1
|
|
2022
|
-
}), n[0] ||= l(" 新增 ", -1)], 8,
|
|
2122
|
+
}), n[0] ||= l(" 新增 ", -1)], 8, Yi)) : i("", !0),
|
|
2023
2123
|
s.form.showDays ? (S(), a("span", {
|
|
2024
2124
|
key: 1,
|
|
2025
2125
|
class: _(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
@@ -2080,7 +2180,7 @@ function Ai(t, n, s, c, d, f) {
|
|
|
2080
2180
|
onOnSubmit: t.refreshOption
|
|
2081
2181
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
2082
2182
|
}
|
|
2083
|
-
var
|
|
2183
|
+
var Zi = /*#__PURE__*/ W(Ji, [["render", Xi]]), Qi = f({
|
|
2084
2184
|
name: "UzDraggableForm",
|
|
2085
2185
|
components: {
|
|
2086
2186
|
NForm: me,
|
|
@@ -2088,7 +2188,7 @@ var ji = /*#__PURE__*/ W(Oi, [["render", Ai]]), Mi = f({
|
|
|
2088
2188
|
NButton: R,
|
|
2089
2189
|
NIcon: V,
|
|
2090
2190
|
NDivider: le,
|
|
2091
|
-
UzFormItem:
|
|
2191
|
+
UzFormItem: qi,
|
|
2092
2192
|
VueDraggable: nt
|
|
2093
2193
|
},
|
|
2094
2194
|
props: {
|
|
@@ -2186,14 +2286,14 @@ var ji = /*#__PURE__*/ W(Oi, [["render", Ai]]), Mi = f({
|
|
|
2186
2286
|
}
|
|
2187
2287
|
};
|
|
2188
2288
|
}
|
|
2189
|
-
}),
|
|
2289
|
+
}), $i = {
|
|
2190
2290
|
key: 0,
|
|
2191
2291
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
|
|
2192
|
-
},
|
|
2292
|
+
}, ea = {
|
|
2193
2293
|
key: 1,
|
|
2194
2294
|
class: "uz-form-item-add"
|
|
2195
2295
|
};
|
|
2196
|
-
function
|
|
2296
|
+
function ta(t, n, s, c, d, f) {
|
|
2197
2297
|
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
2298
|
return S(), r(w, {
|
|
2199
2299
|
ref: "formRef",
|
|
@@ -2231,11 +2331,11 @@ function Fi(t, n, s, c, d, f) {
|
|
|
2231
2331
|
}, {
|
|
2232
2332
|
label: P(() => [
|
|
2233
2333
|
o("div", null, A(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
2234
|
-
s.source && s.form.createButton ? (S(), a("a",
|
|
2334
|
+
s.source && s.form.createButton ? (S(), a("a", $i, [u(m, null, {
|
|
2235
2335
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
2236
2336
|
_: 1
|
|
2237
2337
|
}), n[1] ||= l(" 新增 ", -1)])) : i("", !0),
|
|
2238
|
-
s.form.showDays ? (S(), a("span",
|
|
2338
|
+
s.form.showDays ? (S(), a("span", ea, " showDays ")) : i("", !0)
|
|
2239
2339
|
]),
|
|
2240
2340
|
default: P(() => [t.formItemIndex[0] === c && t.formItemIndex[1] === -1 ? (S(), r(h, {
|
|
2241
2341
|
key: 0,
|
|
@@ -2362,7 +2462,7 @@ function Fi(t, n, s, c, d, f) {
|
|
|
2362
2462
|
"onClick"
|
|
2363
2463
|
]);
|
|
2364
2464
|
}
|
|
2365
|
-
var
|
|
2465
|
+
var na = /*#__PURE__*/ W(Qi, [["render", ta]]), ra = f({
|
|
2366
2466
|
name: "UzFormItemUpload",
|
|
2367
2467
|
components: {
|
|
2368
2468
|
NUpload: ze,
|
|
@@ -2407,7 +2507,7 @@ var Ii = /*#__PURE__*/ W(Mi, [["render", Fi]]), Li = f({
|
|
|
2407
2507
|
}), r.value = !1, o();
|
|
2408
2508
|
else {
|
|
2409
2509
|
let s = new FormData();
|
|
2410
|
-
s.append("file", e.file.file), s.append("name", e.file.name),
|
|
2510
|
+
s.append("file", e.file.file), s.append("name", e.file.name), gi("file/cos/upload", s).then((o) => {
|
|
2411
2511
|
i.value.push({
|
|
2412
2512
|
id: e.file.id,
|
|
2413
2513
|
name: e.file.name,
|
|
@@ -2474,8 +2574,8 @@ var Ii = /*#__PURE__*/ W(Mi, [["render", Fi]]), Li = f({
|
|
|
2474
2574
|
}
|
|
2475
2575
|
};
|
|
2476
2576
|
}
|
|
2477
|
-
}),
|
|
2478
|
-
function
|
|
2577
|
+
}), ia = { class: "uz-form-upload-item-inner" }, aa = ["title"], oa = { key: 0 };
|
|
2578
|
+
function sa(t, n, s, c, d, f) {
|
|
2479
2579
|
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
2580
|
return S(), r(b, {
|
|
2481
2581
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
@@ -2529,10 +2629,10 @@ function Vi(t, n, s, c, d, f) {
|
|
|
2529
2629
|
}, {
|
|
2530
2630
|
default: P(() => [u(p, { icon: "Document" })]),
|
|
2531
2631
|
_: 1
|
|
2532
|
-
}, 8, ["onClick"])), o("div",
|
|
2632
|
+
}, 8, ["onClick"])), o("div", ia, [o("div", {
|
|
2533
2633
|
class: "uz-form-upload-title uz-truncate",
|
|
2534
2634
|
title: e.name
|
|
2535
|
-
}, A(e.name), 9,
|
|
2635
|
+
}, A(e.name), 9, aa), t.status === 2 ? i("", !0) : (S(), a("div", oa, [u(y, { onPositiveClick: (e) => t.doDelete(s) }, {
|
|
2536
2636
|
trigger: P(() => [u(v, {
|
|
2537
2637
|
size: "small",
|
|
2538
2638
|
tertiary: ""
|
|
@@ -2561,7 +2661,7 @@ function Vi(t, n, s, c, d, f) {
|
|
|
2561
2661
|
_: 1
|
|
2562
2662
|
}, 8, ["show"]);
|
|
2563
2663
|
}
|
|
2564
|
-
var
|
|
2664
|
+
var ca = /*#__PURE__*/ W(ra, [["render", sa], ["__scopeId", "data-v-79565a09"]]), la = f({
|
|
2565
2665
|
name: "UzFormItemImage",
|
|
2566
2666
|
components: {
|
|
2567
2667
|
NImageGroup: ye,
|
|
@@ -2605,11 +2705,11 @@ var Hi = /*#__PURE__*/ W(Li, [["render", Vi], ["__scopeId", "data-v-79565a09"]])
|
|
|
2605
2705
|
}
|
|
2606
2706
|
};
|
|
2607
2707
|
}
|
|
2608
|
-
}),
|
|
2609
|
-
function
|
|
2708
|
+
}), ua = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
|
|
2709
|
+
function da(t, n, i, s, c, d) {
|
|
2610
2710
|
let f = O("UzIcon"), p = O("NIcon"), m = O("NImage"), h = O("NPopover"), g = O("NImageGroup");
|
|
2611
2711
|
return S(), r(g, null, {
|
|
2612
|
-
default: P(() => [o("div",
|
|
2712
|
+
default: P(() => [o("div", ua, [(S(!0), a(e, null, E(t.imgs, (n) => (S(), a(e, null, [t.isAssetTypeAnImage(n) ? (S(), r(m, {
|
|
2613
2713
|
key: 0,
|
|
2614
2714
|
width: "40",
|
|
2615
2715
|
src: n
|
|
@@ -2641,7 +2741,7 @@ function Gi(t, n, i, s, c, d) {
|
|
|
2641
2741
|
_: 1
|
|
2642
2742
|
});
|
|
2643
2743
|
}
|
|
2644
|
-
var
|
|
2744
|
+
var fa = /*#__PURE__*/ W(la, [["render", da]]), pa = f({
|
|
2645
2745
|
name: "UzFormItemTimesPicker",
|
|
2646
2746
|
components: { NSelect: Ae },
|
|
2647
2747
|
props: {
|
|
@@ -2691,10 +2791,10 @@ var Ki = /*#__PURE__*/ W(Ui, [["render", Gi]]), qi = f({
|
|
|
2691
2791
|
}
|
|
2692
2792
|
};
|
|
2693
2793
|
}
|
|
2694
|
-
}),
|
|
2695
|
-
function
|
|
2794
|
+
}), ma = { class: "times-picker" };
|
|
2795
|
+
function ha(e, t, n, r, i, o) {
|
|
2696
2796
|
let s = O("NSelect");
|
|
2697
|
-
return S(), a("div",
|
|
2797
|
+
return S(), a("div", ma, [
|
|
2698
2798
|
u(s, {
|
|
2699
2799
|
value: e.h,
|
|
2700
2800
|
options: e.times,
|
|
@@ -2742,10 +2842,10 @@ function Yi(e, t, n, r, i, o) {
|
|
|
2742
2842
|
])
|
|
2743
2843
|
]);
|
|
2744
2844
|
}
|
|
2745
|
-
var
|
|
2845
|
+
var ga = /*#__PURE__*/ W(pa, [["render", ha], ["__scopeId", "data-v-12b4d7e3"]]);
|
|
2746
2846
|
//#endregion
|
|
2747
2847
|
//#region components/hooks/useDebounceFn.ts
|
|
2748
|
-
function
|
|
2848
|
+
function _a(e, t = 1e3) {
|
|
2749
2849
|
let n = $e(e, t);
|
|
2750
2850
|
return {
|
|
2751
2851
|
run: n,
|
|
@@ -2755,24 +2855,24 @@ function Zi(e, t = 1e3) {
|
|
|
2755
2855
|
}
|
|
2756
2856
|
//#endregion
|
|
2757
2857
|
//#region components/bom/index.vue?vue&type=script&lang.ts
|
|
2758
|
-
var
|
|
2858
|
+
var va = [
|
|
2759
2859
|
"var(--primary)",
|
|
2760
2860
|
"var(--green)",
|
|
2761
2861
|
"var(--yellow)",
|
|
2762
2862
|
"var(--purple)"
|
|
2763
|
-
],
|
|
2863
|
+
], ya = (e) => {
|
|
2764
2864
|
if (e == null || e === "") return null;
|
|
2765
2865
|
if (typeof e == "string") {
|
|
2766
2866
|
let t = Number.parseFloat(e);
|
|
2767
2867
|
return Number.isFinite(t) ? e.includes("%") || t > 1 ? t / 100 : t : null;
|
|
2768
2868
|
}
|
|
2769
2869
|
return Number.isFinite(e) ? e > 1 ? e / 100 : e : null;
|
|
2770
|
-
},
|
|
2771
|
-
let t = Number(e.quantity), n =
|
|
2870
|
+
}, ba = (e) => {
|
|
2871
|
+
let t = Number(e.quantity), n = ya(e.lossRate);
|
|
2772
2872
|
if (!Number.isFinite(t) || n === null || n < 0) return null;
|
|
2773
2873
|
let r = 1 - n;
|
|
2774
2874
|
return r > 0 ? Math.ceil(t / r) : null;
|
|
2775
|
-
},
|
|
2875
|
+
}, xa = (e) => e === null ? "—" : e.toLocaleString("zh-CN"), Sa = [
|
|
2776
2876
|
{
|
|
2777
2877
|
title: "编码",
|
|
2778
2878
|
key: "code",
|
|
@@ -2817,7 +2917,7 @@ var Qi = [
|
|
|
2817
2917
|
title: "含损耗用量",
|
|
2818
2918
|
key: "required_quantity",
|
|
2819
2919
|
width: 120,
|
|
2820
|
-
render: (e) =>
|
|
2920
|
+
render: (e) => xa(ba(e))
|
|
2821
2921
|
},
|
|
2822
2922
|
{
|
|
2823
2923
|
title: "备注",
|
|
@@ -2825,7 +2925,7 @@ var Qi = [
|
|
|
2825
2925
|
width: 220,
|
|
2826
2926
|
ellipsis: { tooltip: !0 }
|
|
2827
2927
|
}
|
|
2828
|
-
],
|
|
2928
|
+
], Ca = f({
|
|
2829
2929
|
name: "UzBom",
|
|
2830
2930
|
components: { NDataTable: se },
|
|
2831
2931
|
props: {
|
|
@@ -2871,7 +2971,7 @@ var Qi = [
|
|
|
2871
2971
|
}
|
|
2872
2972
|
let n = new Set(t), r = o.value.map((t) => e.get(t) ?? t).filter((e) => n.has(e));
|
|
2873
2973
|
(r.length !== o.value.length || r.some((e, t) => e !== o.value[t])) && (o.value = r);
|
|
2874
|
-
}, { run: h, flush: g, cancel: _ } =
|
|
2974
|
+
}, { run: h, flush: g, cancel: _ } = _a(() => m(u(a.value)), 200), v = /* @__PURE__ */ new WeakMap(), b = (e) => {
|
|
2875
2975
|
let t = v.get(e);
|
|
2876
2976
|
if (t) return t;
|
|
2877
2977
|
let n = new Proxy(e, { set(e, t, n) {
|
|
@@ -2966,7 +3066,7 @@ var Qi = [
|
|
|
2966
3066
|
align: "center",
|
|
2967
3067
|
titleAlign: "center",
|
|
2968
3068
|
className: "uz-bom-action-cell",
|
|
2969
|
-
render: (e) =>
|
|
3069
|
+
render: (e) => Mi({
|
|
2970
3070
|
buttons: [{
|
|
2971
3071
|
type: "normal",
|
|
2972
3072
|
key: "add",
|
|
@@ -2995,14 +3095,14 @@ var Qi = [
|
|
|
2995
3095
|
title: e.label,
|
|
2996
3096
|
key: e.key,
|
|
2997
3097
|
width: 160,
|
|
2998
|
-
render: (t, n) => p(
|
|
3098
|
+
render: (t, n) => p(qi, {
|
|
2999
3099
|
item: e,
|
|
3000
3100
|
formValue: b(t),
|
|
3001
3101
|
status: 1,
|
|
3002
3102
|
itemIndex: n
|
|
3003
3103
|
})
|
|
3004
3104
|
}))), k = n(() => {
|
|
3005
|
-
let [e, ...t] =
|
|
3105
|
+
let [e, ...t] = Sa;
|
|
3006
3106
|
return [
|
|
3007
3107
|
E,
|
|
3008
3108
|
e,
|
|
@@ -3020,7 +3120,7 @@ var Qi = [
|
|
|
3020
3120
|
if (!Number.isFinite(t) || t < 1) return null;
|
|
3021
3121
|
let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
|
|
3022
3122
|
return {
|
|
3023
|
-
color:
|
|
3123
|
+
color: va[n - 1],
|
|
3024
3124
|
opacity: Math.min(.1 + r * .05, .4)
|
|
3025
3125
|
};
|
|
3026
3126
|
};
|
|
@@ -3039,10 +3139,10 @@ var Qi = [
|
|
|
3039
3139
|
handleExpandedRowKeysChange: A
|
|
3040
3140
|
};
|
|
3041
3141
|
}
|
|
3042
|
-
}),
|
|
3043
|
-
function
|
|
3142
|
+
}), wa = { class: "uz-bom" };
|
|
3143
|
+
function Ta(e, t, n, r, i, o) {
|
|
3044
3144
|
let s = O("NDataTable");
|
|
3045
|
-
return S(), a("div",
|
|
3145
|
+
return S(), a("div", wa, [u(s, {
|
|
3046
3146
|
columns: e.tableColumns,
|
|
3047
3147
|
data: e.innerData,
|
|
3048
3148
|
"row-props": e.getRowProps,
|
|
@@ -3069,13 +3169,13 @@ function aa(e, t, n, r, i, o) {
|
|
|
3069
3169
|
"onUpdate:expandedRowKeys"
|
|
3070
3170
|
])]);
|
|
3071
3171
|
}
|
|
3072
|
-
var
|
|
3172
|
+
var Ea = /*#__PURE__*/ W(Ca, [["render", Ta]]), Da = 46, Oa = 8, Q = 2 * Math.PI * Da, ka = Oa, Aa = 19, ja = 69, Ma = 52, Na = 8, Pa = 135, Fa = 270, Ia = 2 * Math.PI * Ma, La = Fa / 360 * Ia, Ra = 11, za = `rotate(${Pa} 60 ${ja})`, Ba = (e, t, n, r) => {
|
|
3073
3173
|
let i = r * Math.PI / 180;
|
|
3074
3174
|
return {
|
|
3075
3175
|
x: e + n * Math.cos(i),
|
|
3076
3176
|
y: t + n * Math.sin(i)
|
|
3077
3177
|
};
|
|
3078
|
-
},
|
|
3178
|
+
}, Va = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, Ha = (e, t, n, r, i, a) => {
|
|
3079
3179
|
if (a <= 0) return "";
|
|
3080
3180
|
let o = n + r / 2, s = n - r / 2;
|
|
3081
3181
|
if (a >= 359.999) {
|
|
@@ -3087,16 +3187,16 @@ var oa = /*#__PURE__*/ W(ra, [["render", aa]]), sa = 46, ca = 8, Q = 2 * Math.PI
|
|
|
3087
3187
|
`A ${s} ${s} 0 1 0 ${i}`
|
|
3088
3188
|
].join(" ");
|
|
3089
3189
|
}
|
|
3090
|
-
let c = i + a, l =
|
|
3190
|
+
let c = i + a, l = Ba(e, t, o, i), u = Ba(e, t, o, c), d = Ba(e, t, s, c), f = Ba(e, t, s, i), p = r / 2, m = +(a > 180);
|
|
3091
3191
|
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 ${
|
|
3192
|
+
`M ${Va(l)}`,
|
|
3193
|
+
`A ${o} ${o} 0 ${m} 1 ${Va(u)}`,
|
|
3194
|
+
`A ${p} ${p} 0 0 1 ${Va(d)}`,
|
|
3195
|
+
`A ${s} ${s} 0 ${m} 0 ${Va(f)}`,
|
|
3196
|
+
`A ${p} ${p} 0 0 1 ${Va(l)}`,
|
|
3097
3197
|
"Z"
|
|
3098
3198
|
].join(" ");
|
|
3099
|
-
},
|
|
3199
|
+
}, Ua = (e) => {
|
|
3100
3200
|
if (!e) return "";
|
|
3101
3201
|
let t = e.toLowerCase();
|
|
3102
3202
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -3110,7 +3210,7 @@ var oa = /*#__PURE__*/ W(ra, [["render", aa]]), sa = 46, ca = 8, Q = 2 * Math.PI
|
|
|
3110
3210
|
return e.join(",");
|
|
3111
3211
|
}
|
|
3112
3212
|
return "0,0,0";
|
|
3113
|
-
},
|
|
3213
|
+
}, Wa = f({
|
|
3114
3214
|
name: "UzCircle",
|
|
3115
3215
|
components: { UzNumberFlow: it },
|
|
3116
3216
|
props: {
|
|
@@ -3133,10 +3233,10 @@ var oa = /*#__PURE__*/ W(ra, [["render", aa]]), sa = 46, ca = 8, Q = 2 * Math.PI
|
|
|
3133
3233
|
}
|
|
3134
3234
|
},
|
|
3135
3235
|
setup(e) {
|
|
3136
|
-
let t = te(), r = `uz-blurs-${t}`, i = n(() => `rgba(${
|
|
3236
|
+
let t = te(), r = `uz-blurs-${t}`, i = n(() => `rgba(${Ua(e.color).split(",").map((e) => {
|
|
3137
3237
|
let t = Number(e) - 50;
|
|
3138
3238
|
return t < 0 && (t = 0), t;
|
|
3139
|
-
})},1)`), a = n(() => `rgba(${
|
|
3239
|
+
})},1)`), a = n(() => `rgba(${Ua(e.color)},1)`), o = n(() => {
|
|
3140
3240
|
let t = Number(e.circle);
|
|
3141
3241
|
return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
|
|
3142
3242
|
}), s = T(o.value), c;
|
|
@@ -3168,49 +3268,49 @@ var oa = /*#__PURE__*/ W(ra, [["render", aa]]), sa = 46, ca = 8, Q = 2 * Math.PI
|
|
|
3168
3268
|
remainingLength: 0,
|
|
3169
3269
|
remainingStart: 0
|
|
3170
3270
|
};
|
|
3171
|
-
let n = Math.min(1, Math.min(e, t) /
|
|
3271
|
+
let n = Math.min(1, Math.min(e, t) / Aa), r = ka + 3 * n, i = Oa * n, a = e < Aa ? i : Q - (t < Aa ? i : t - r) - r * 2, o = Q - a - r * 2;
|
|
3172
3272
|
return {
|
|
3173
3273
|
activeLength: a,
|
|
3174
3274
|
activeStart: r / 2,
|
|
3175
3275
|
remainingLength: o,
|
|
3176
3276
|
remainingStart: r / 2 + a + r
|
|
3177
3277
|
};
|
|
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 =
|
|
3278
|
+
}), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() => Ha(60, 60, Da, Oa, -90 + p.value / Q * 360, f.value / Q * 360)), h = n(() => {
|
|
3279
|
+
let e = La * (s.value / 100), t = La - e;
|
|
3180
3280
|
if (e === 0) return {
|
|
3181
3281
|
activeLength: 0,
|
|
3182
|
-
remainingLength:
|
|
3282
|
+
remainingLength: La,
|
|
3183
3283
|
remainingStart: 0
|
|
3184
3284
|
};
|
|
3185
3285
|
if (t === 0) return {
|
|
3186
|
-
activeLength:
|
|
3286
|
+
activeLength: La,
|
|
3187
3287
|
remainingLength: 0,
|
|
3188
3288
|
remainingStart: 0
|
|
3189
3289
|
};
|
|
3190
|
-
let n = Math.min(
|
|
3290
|
+
let n = Math.min(Ra, e, t);
|
|
3191
3291
|
return {
|
|
3192
3292
|
activeLength: e - n / 2,
|
|
3193
3293
|
remainingLength: t - n / 2,
|
|
3194
3294
|
remainingStart: e + n / 2
|
|
3195
3295
|
};
|
|
3196
|
-
}), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), v = n(() => h.value.remainingStart), b = n(() =>
|
|
3296
|
+
}), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), v = n(() => h.value.remainingStart), b = n(() => Ha(60, ja, Ma, Na, Pa + v.value / Ia * 360, _.value / Ia * 360));
|
|
3197
3297
|
return {
|
|
3198
3298
|
color: n(() => e.color),
|
|
3199
3299
|
colorA: i,
|
|
3200
3300
|
colorB: a,
|
|
3201
|
-
fullRadius:
|
|
3202
|
-
fullStrokeWidth:
|
|
3301
|
+
fullRadius: Da,
|
|
3302
|
+
fullStrokeWidth: Oa,
|
|
3203
3303
|
fullCircumference: Q,
|
|
3204
3304
|
fullActiveLength: u,
|
|
3205
3305
|
fullActiveStart: d,
|
|
3206
3306
|
fullRemainingLength: f,
|
|
3207
3307
|
fullRemainingStart: p,
|
|
3208
3308
|
fullRemainingPath: m,
|
|
3209
|
-
gaugeCenterY:
|
|
3210
|
-
gaugeRadius:
|
|
3211
|
-
gaugeStrokeWidth:
|
|
3212
|
-
gaugeCircumference:
|
|
3213
|
-
gaugeTransform:
|
|
3309
|
+
gaugeCenterY: ja,
|
|
3310
|
+
gaugeRadius: Ma,
|
|
3311
|
+
gaugeStrokeWidth: Na,
|
|
3312
|
+
gaugeCircumference: Ia,
|
|
3313
|
+
gaugeTransform: za,
|
|
3214
3314
|
gaugeActiveLength: g,
|
|
3215
3315
|
gaugeRemainingLength: _,
|
|
3216
3316
|
gaugeRemainingStart: v,
|
|
@@ -3219,31 +3319,31 @@ var oa = /*#__PURE__*/ W(ra, [["render", aa]]), sa = 46, ca = 8, Q = 2 * Math.PI
|
|
|
3219
3319
|
blurFilterId: r
|
|
3220
3320
|
};
|
|
3221
3321
|
}
|
|
3222
|
-
}),
|
|
3322
|
+
}), Ga = { class: "uz-circle" }, Ka = {
|
|
3223
3323
|
key: 0,
|
|
3224
3324
|
viewBox: "0 0 120 120",
|
|
3225
3325
|
"aria-hidden": "true"
|
|
3226
|
-
},
|
|
3326
|
+
}, qa = ["id"], Ja = ["stop-color"], Ya = ["stop-color"], Xa = ["id"], Za = [
|
|
3227
3327
|
"r",
|
|
3228
3328
|
"stroke-width",
|
|
3229
3329
|
"stroke-dasharray",
|
|
3230
3330
|
"stroke-dashoffset",
|
|
3231
3331
|
"filter",
|
|
3232
3332
|
"stroke"
|
|
3233
|
-
],
|
|
3333
|
+
], Qa = [
|
|
3234
3334
|
"d",
|
|
3235
3335
|
"fill",
|
|
3236
3336
|
"filter"
|
|
3237
|
-
],
|
|
3337
|
+
], $a = {
|
|
3238
3338
|
class: "uz-circle__unit",
|
|
3239
3339
|
x: "60",
|
|
3240
3340
|
y: "82",
|
|
3241
3341
|
"text-anchor": "middle"
|
|
3242
|
-
},
|
|
3342
|
+
}, eo = {
|
|
3243
3343
|
key: 1,
|
|
3244
3344
|
viewBox: "0 0 120 120",
|
|
3245
3345
|
"aria-hidden": "true"
|
|
3246
|
-
},
|
|
3346
|
+
}, to = ["id"], no = ["stop-color"], ro = ["stop-color"], io = ["id"], ao = [
|
|
3247
3347
|
"cy",
|
|
3248
3348
|
"r",
|
|
3249
3349
|
"stroke-width",
|
|
@@ -3251,19 +3351,19 @@ var oa = /*#__PURE__*/ W(ra, [["render", aa]]), sa = 46, ca = 8, Q = 2 * Math.PI
|
|
|
3251
3351
|
"transform",
|
|
3252
3352
|
"filter",
|
|
3253
3353
|
"stroke"
|
|
3254
|
-
],
|
|
3354
|
+
], oo = [
|
|
3255
3355
|
"d",
|
|
3256
3356
|
"fill",
|
|
3257
3357
|
"filter"
|
|
3258
|
-
],
|
|
3358
|
+
], so = {
|
|
3259
3359
|
class: "uz-circle__unit uz-circle__unit--gauge",
|
|
3260
3360
|
x: "60",
|
|
3261
3361
|
y: "90",
|
|
3262
3362
|
"text-anchor": "middle"
|
|
3263
3363
|
};
|
|
3264
|
-
function
|
|
3364
|
+
function co(e, t, n, r, s, c) {
|
|
3265
3365
|
let l = O("UzNumberFlow");
|
|
3266
|
-
return S(), a("div",
|
|
3366
|
+
return S(), a("div", Ga, [e.mode === 0 ? (S(), a("svg", Ka, [
|
|
3267
3367
|
o("defs", null, [o("linearGradient", {
|
|
3268
3368
|
id: `uz-progress-grad-${e.uniqueId}`,
|
|
3269
3369
|
x1: "1",
|
|
@@ -3273,10 +3373,10 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3273
3373
|
}, [o("stop", {
|
|
3274
3374
|
offset: "0%",
|
|
3275
3375
|
"stop-color": e.colorA
|
|
3276
|
-
}, null, 8,
|
|
3376
|
+
}, null, 8, Ja), o("stop", {
|
|
3277
3377
|
offset: "50%",
|
|
3278
3378
|
"stop-color": e.colorB
|
|
3279
|
-
}, null, 8,
|
|
3379
|
+
}, null, 8, Ya)], 8, qa), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
|
|
3280
3380
|
o("feOffset", {
|
|
3281
3381
|
result: "offOut",
|
|
3282
3382
|
in: "SourceGraphic",
|
|
@@ -3293,7 +3393,7 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3293
3393
|
in2: "blurOut",
|
|
3294
3394
|
mode: "normal"
|
|
3295
3395
|
}, null, -1)
|
|
3296
|
-
]], 8,
|
|
3396
|
+
]], 8, Xa)]),
|
|
3297
3397
|
e.fullActiveLength > 0 ? (S(), a("circle", {
|
|
3298
3398
|
key: 0,
|
|
3299
3399
|
class: "uz-circle__progress",
|
|
@@ -3308,7 +3408,7 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3308
3408
|
transform: "rotate(-90 60 60)",
|
|
3309
3409
|
filter: `url(#${e.blurFilterId})`,
|
|
3310
3410
|
stroke: `url(#uz-progress-grad-${e.uniqueId})`
|
|
3311
|
-
}, null, 8,
|
|
3411
|
+
}, null, 8, Za)) : i("", !0),
|
|
3312
3412
|
e.fullRemainingPath ? (S(), a("path", {
|
|
3313
3413
|
key: 1,
|
|
3314
3414
|
class: "uz-circle__progress",
|
|
@@ -3316,9 +3416,9 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3316
3416
|
fill: e.color,
|
|
3317
3417
|
"fill-opacity": "0.1",
|
|
3318
3418
|
filter: `url(#${e.blurFilterId})`
|
|
3319
|
-
}, null, 8,
|
|
3320
|
-
o("text",
|
|
3321
|
-
])) : (S(), a("svg",
|
|
3419
|
+
}, null, 8, Qa)) : i("", !0),
|
|
3420
|
+
o("text", $a, A(e.circleUnit), 1)
|
|
3421
|
+
])) : (S(), a("svg", eo, [
|
|
3322
3422
|
o("defs", null, [o("linearGradient", {
|
|
3323
3423
|
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
3324
3424
|
x1: "1",
|
|
@@ -3328,10 +3428,10 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3328
3428
|
}, [o("stop", {
|
|
3329
3429
|
offset: "0%",
|
|
3330
3430
|
"stop-color": e.colorA
|
|
3331
|
-
}, null, 8,
|
|
3431
|
+
}, null, 8, no), o("stop", {
|
|
3332
3432
|
offset: "50%",
|
|
3333
3433
|
"stop-color": e.colorB
|
|
3334
|
-
}, null, 8,
|
|
3434
|
+
}, null, 8, ro)], 8, to), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
|
|
3335
3435
|
o("feOffset", {
|
|
3336
3436
|
result: "offOut",
|
|
3337
3437
|
in: "SourceGraphic",
|
|
@@ -3348,7 +3448,7 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3348
3448
|
in2: "blurOut",
|
|
3349
3449
|
mode: "normal"
|
|
3350
3450
|
}, null, -1)
|
|
3351
|
-
]], 8,
|
|
3451
|
+
]], 8, io)]),
|
|
3352
3452
|
e.gaugeActiveLength > 0 ? (S(), a("circle", {
|
|
3353
3453
|
key: 0,
|
|
3354
3454
|
class: "uz-circle__progress",
|
|
@@ -3362,7 +3462,7 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3362
3462
|
transform: e.gaugeTransform,
|
|
3363
3463
|
filter: `url(#${e.blurFilterId})`,
|
|
3364
3464
|
stroke: `url(#uz-progress-grad-1-${e.uniqueId})`
|
|
3365
|
-
}, null, 8,
|
|
3465
|
+
}, null, 8, ao)) : i("", !0),
|
|
3366
3466
|
e.gaugeRemainingPath ? (S(), a("path", {
|
|
3367
3467
|
key: 1,
|
|
3368
3468
|
class: "uz-circle__progress",
|
|
@@ -3370,11 +3470,11 @@ function Ha(e, t, n, r, s, c) {
|
|
|
3370
3470
|
fill: e.color,
|
|
3371
3471
|
"fill-opacity": "0.1",
|
|
3372
3472
|
filter: `url(#${e.blurFilterId})`
|
|
3373
|
-
}, null, 8,
|
|
3374
|
-
o("text",
|
|
3473
|
+
}, null, 8, oo)) : i("", !0),
|
|
3474
|
+
o("text", so, A(e.circleUnit), 1)
|
|
3375
3475
|
])), 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
3476
|
}
|
|
3377
|
-
var
|
|
3477
|
+
var lo = /*#__PURE__*/ W(Wa, [["render", co]]), uo = f({
|
|
3378
3478
|
name: "UzCamera",
|
|
3379
3479
|
components: {
|
|
3380
3480
|
NButton: R,
|
|
@@ -3466,11 +3566,11 @@ var Ua = /*#__PURE__*/ W(wa, [["render", Ha]]), Wa = f({
|
|
|
3466
3566
|
closeAll: d
|
|
3467
3567
|
};
|
|
3468
3568
|
}
|
|
3469
|
-
}),
|
|
3569
|
+
}), fo = ["width", "height"], po = ["width", "height"], mo = { class: "uz-scan-video" }, ho = {
|
|
3470
3570
|
ref: "videoRef",
|
|
3471
3571
|
playsInline: ""
|
|
3472
3572
|
};
|
|
3473
|
-
function
|
|
3573
|
+
function go(t, n, s, c, u, d) {
|
|
3474
3574
|
let f = O("NButton"), p = O("NModal");
|
|
3475
3575
|
return S(), a(e, null, [
|
|
3476
3576
|
t.mode === "button" ? (S(), r(f, {
|
|
@@ -3502,7 +3602,7 @@ function Ya(t, n, s, c, u, d) {
|
|
|
3502
3602
|
id: "uz-scan-canvas",
|
|
3503
3603
|
width: t.width,
|
|
3504
3604
|
height: t.height
|
|
3505
|
-
}, null, 8,
|
|
3605
|
+
}, null, 8, fo)], 4)]),
|
|
3506
3606
|
_: 1
|
|
3507
3607
|
}, 8, [
|
|
3508
3608
|
"show",
|
|
@@ -3520,11 +3620,11 @@ function Ya(t, n, s, c, u, d) {
|
|
|
3520
3620
|
id: "uz-scan-canvas",
|
|
3521
3621
|
width: t.width,
|
|
3522
3622
|
height: t.height
|
|
3523
|
-
}, null, 8,
|
|
3524
|
-
o("div",
|
|
3623
|
+
}, null, 8, po)], 4)) : i("", !0),
|
|
3624
|
+
o("div", mo, [o("video", ho, null, 512)])
|
|
3525
3625
|
], 64);
|
|
3526
3626
|
}
|
|
3527
|
-
var
|
|
3627
|
+
var _o = /*#__PURE__*/ W(uo, [["render", go]]), vo = /* @__PURE__ */ new WeakMap(), yo = f({
|
|
3528
3628
|
name: "UzSearchBar",
|
|
3529
3629
|
components: {
|
|
3530
3630
|
NIcon: V,
|
|
@@ -3535,7 +3635,7 @@ var Xa = /*#__PURE__*/ W(Wa, [["render", Ya]]), Za = /* @__PURE__ */ new WeakMap
|
|
|
3535
3635
|
NInputGroup: xe,
|
|
3536
3636
|
NInputGroupLabel: Se,
|
|
3537
3637
|
NPopover: De,
|
|
3538
|
-
UzFormItem:
|
|
3638
|
+
UzFormItem: qi
|
|
3539
3639
|
},
|
|
3540
3640
|
props: {
|
|
3541
3641
|
data: {
|
|
@@ -3573,10 +3673,10 @@ var Xa = /*#__PURE__*/ W(Wa, [["render", Ya]]), Za = /* @__PURE__ */ new WeakMap
|
|
|
3573
3673
|
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
3674
|
}
|
|
3575
3675
|
});
|
|
3576
|
-
n.observe(e),
|
|
3676
|
+
n.observe(e), vo.set(e, n);
|
|
3577
3677
|
},
|
|
3578
3678
|
unmounted: (e) => {
|
|
3579
|
-
|
|
3679
|
+
vo.get(e)?.disconnect(), vo.delete(e);
|
|
3580
3680
|
}
|
|
3581
3681
|
} },
|
|
3582
3682
|
emits: ["update:loading", "on-update:value"],
|
|
@@ -3691,24 +3791,24 @@ var Xa = /*#__PURE__*/ W(Wa, [["render", Ya]]), Za = /* @__PURE__ */ new WeakMap
|
|
|
3691
3791
|
tabButtonType: b
|
|
3692
3792
|
};
|
|
3693
3793
|
}
|
|
3694
|
-
}),
|
|
3794
|
+
}), bo = { class: "uz-flex uz-justify-between uz-gap-2" }, xo = {
|
|
3695
3795
|
key: 0,
|
|
3696
3796
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-2 uz-w-full"
|
|
3697
|
-
},
|
|
3797
|
+
}, So = { key: 0 }, Co = { class: "uz-flex-1" }, wo = {
|
|
3698
3798
|
key: 1,
|
|
3699
3799
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
3700
|
-
},
|
|
3800
|
+
}, To = {
|
|
3701
3801
|
key: 0,
|
|
3702
3802
|
class: "uz-search-fields-collapse"
|
|
3703
3803
|
};
|
|
3704
|
-
function
|
|
3804
|
+
function Eo(n, s, c, d, f, p) {
|
|
3705
3805
|
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
3806
|
return S(), a("div", {
|
|
3707
3807
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
3708
3808
|
onKeyup: s[1] ||= I((e) => n.doSearch(!1), ["enter"])
|
|
3709
|
-
}, [o("div",
|
|
3809
|
+
}, [o("div", bo, [n.enableHeader ? (S(), a("div", xo, [
|
|
3710
3810
|
D(n.$slots, "header"),
|
|
3711
|
-
n.tabList && n.tabList.length > 0 ? (S(), a("div",
|
|
3811
|
+
n.tabList && n.tabList.length > 0 ? (S(), a("div", So, [u(h, null, {
|
|
3712
3812
|
default: P(() => [(S(!0), a(e, null, E(n.tabList, (e) => (S(), r(m, {
|
|
3713
3813
|
key: e.value,
|
|
3714
3814
|
type: n.tabButtonType(e),
|
|
@@ -3720,7 +3820,7 @@ function ao(n, s, c, d, f, p) {
|
|
|
3720
3820
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
3721
3821
|
_: 1
|
|
3722
3822
|
})])) : i("", !0),
|
|
3723
|
-
F((S(), a("div",
|
|
3823
|
+
F((S(), a("div", Co, [u(C, {
|
|
3724
3824
|
"x-gap": "8",
|
|
3725
3825
|
"y-gap": "8",
|
|
3726
3826
|
cols: n.cols,
|
|
@@ -3757,7 +3857,7 @@ function ao(n, s, c, d, f, p) {
|
|
|
3757
3857
|
}, 1032, ["span"]))), 128)) : i("", !0)]),
|
|
3758
3858
|
_: 1
|
|
3759
3859
|
}, 8, ["cols"])])), [[ee]])
|
|
3760
|
-
])) : i("", !0), n.enableHeader ? (S(), a("div",
|
|
3860
|
+
])) : i("", !0), n.enableHeader ? (S(), a("div", wo, [
|
|
3761
3861
|
n.more ? (S(), r(m, {
|
|
3762
3862
|
key: 0,
|
|
3763
3863
|
secondary: "",
|
|
@@ -3807,7 +3907,7 @@ function ao(n, s, c, d, f, p) {
|
|
|
3807
3907
|
})) : i("", !0),
|
|
3808
3908
|
D(n.$slots, "action")
|
|
3809
3909
|
])) : i("", !0)]), u(t, { name: "uz-search-fields" }, {
|
|
3810
|
-
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div",
|
|
3910
|
+
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div", To, [u(C, {
|
|
3811
3911
|
"x-gap": "8",
|
|
3812
3912
|
"y-gap": "8",
|
|
3813
3913
|
cols: 4
|
|
@@ -3842,7 +3942,7 @@ function ao(n, s, c, d, f, p) {
|
|
|
3842
3942
|
_: 1
|
|
3843
3943
|
})], 32);
|
|
3844
3944
|
}
|
|
3845
|
-
var
|
|
3945
|
+
var Do = /*#__PURE__*/ W(yo, [["render", Eo]]), Oo = f({
|
|
3846
3946
|
name: "UzSearchMobileBar",
|
|
3847
3947
|
components: {
|
|
3848
3948
|
NIcon: V,
|
|
@@ -3853,7 +3953,7 @@ var oo = /*#__PURE__*/ W(Qa, [["render", ao]]), so = f({
|
|
|
3853
3953
|
NGridItem: _e,
|
|
3854
3954
|
NInputGroup: xe,
|
|
3855
3955
|
NInputGroupLabel: Se,
|
|
3856
|
-
UzFormItem:
|
|
3956
|
+
UzFormItem: qi
|
|
3857
3957
|
},
|
|
3858
3958
|
props: {
|
|
3859
3959
|
data: {
|
|
@@ -3931,10 +4031,10 @@ var oo = /*#__PURE__*/ W(Qa, [["render", ao]]), so = f({
|
|
|
3931
4031
|
clearAll: l
|
|
3932
4032
|
};
|
|
3933
4033
|
}
|
|
3934
|
-
}),
|
|
3935
|
-
function
|
|
4034
|
+
}), ko = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, Ao = { class: "uz-flex uz-gap-2" }, jo = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
4035
|
+
function Mo(t, n, s, c, d, f) {
|
|
3936
4036
|
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",
|
|
4037
|
+
return S(), a(e, null, [o("div", ko, [D(t.$slots, "header"), o("div", Ao, [t.itemData && Object.keys(t.itemData).length > 0 ? (S(), r(h, {
|
|
3938
4038
|
key: 0,
|
|
3939
4039
|
secondary: "",
|
|
3940
4040
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
@@ -3959,7 +4059,7 @@ function fo(t, n, s, c, d, f) {
|
|
|
3959
4059
|
title: "查询",
|
|
3960
4060
|
closable: ""
|
|
3961
4061
|
}, {
|
|
3962
|
-
footer: P(() => [o("div",
|
|
4062
|
+
footer: P(() => [o("div", jo, [u(h, {
|
|
3963
4063
|
secondary: "",
|
|
3964
4064
|
loading: t.loading,
|
|
3965
4065
|
onClick: t.clearAll,
|
|
@@ -4014,7 +4114,7 @@ function fo(t, n, s, c, d, f) {
|
|
|
4014
4114
|
_: 1
|
|
4015
4115
|
}, 8, ["show"])], 64);
|
|
4016
4116
|
}
|
|
4017
|
-
var
|
|
4117
|
+
var No = /*#__PURE__*/ W(Oo, [["render", Mo]]), Po = /(?<=\[)(.+?)(?=\])/g, Fo = {
|
|
4018
4118
|
index: 1,
|
|
4019
4119
|
selection: 0,
|
|
4020
4120
|
pagination: 1,
|
|
@@ -4032,10 +4132,10 @@ var po = /*#__PURE__*/ W(so, [["render", fo]]), mo = /(?<=\[)(.+?)(?=\])/g, ho =
|
|
|
4032
4132
|
placement: "right",
|
|
4033
4133
|
summary: ""
|
|
4034
4134
|
};
|
|
4035
|
-
function
|
|
4135
|
+
function Io(e) {
|
|
4036
4136
|
return Function("return " + e)();
|
|
4037
4137
|
}
|
|
4038
|
-
var
|
|
4138
|
+
var Lo = () => new Promise((e) => {
|
|
4039
4139
|
let t = window.localStorage.getItem("city");
|
|
4040
4140
|
if (t) e(JSON.parse(t));
|
|
4041
4141
|
else {
|
|
@@ -4048,12 +4148,12 @@ var _o = () => new Promise((e) => {
|
|
|
4048
4148
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
4049
4149
|
}, 500);
|
|
4050
4150
|
}
|
|
4051
|
-
}),
|
|
4151
|
+
}), Ro = async (e, t, n) => {
|
|
4052
4152
|
if (t && typeof t == "string") {
|
|
4053
|
-
let r = t.match(
|
|
4153
|
+
let r = t.match(Po);
|
|
4054
4154
|
if (r && t.indexOf("return") === -1) {
|
|
4055
4155
|
let t = r[0].split(":");
|
|
4056
|
-
if (t[0] === "date") return (t) =>
|
|
4156
|
+
if (t[0] === "date") return (t) => dr(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
4057
4157
|
if (t[0] === "city") return (t) => t[`${e}Str`];
|
|
4058
4158
|
if (t[0] === "modules" && n && Object.keys(n).length > 0) {
|
|
4059
4159
|
let e = r[0].replace("modules:", ""), t = Object.keys(n).find((t) => t.includes(e));
|
|
@@ -4071,7 +4171,7 @@ var _o = () => new Promise((e) => {
|
|
|
4071
4171
|
}
|
|
4072
4172
|
}
|
|
4073
4173
|
return t && typeof t == "function" ? (e, n) => t(e, n, p) : "";
|
|
4074
|
-
},
|
|
4174
|
+
}, zo = (e, t, n) => {
|
|
4075
4175
|
let r = t.map((t) => {
|
|
4076
4176
|
let r = [], i = t.id;
|
|
4077
4177
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -4084,35 +4184,35 @@ var _o = () => new Promise((e) => {
|
|
|
4084
4184
|
};
|
|
4085
4185
|
});
|
|
4086
4186
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
4087
|
-
},
|
|
4088
|
-
function
|
|
4089
|
-
|
|
4187
|
+
}, Bo = /* @__PURE__ */ new Map();
|
|
4188
|
+
function Vo() {
|
|
4189
|
+
Bo.clear();
|
|
4090
4190
|
}
|
|
4091
|
-
async function
|
|
4191
|
+
async function Ho(e, t = !1) {
|
|
4092
4192
|
let n = e.split("."), r = !1;
|
|
4093
|
-
return n.length > 1 && (
|
|
4193
|
+
return n.length > 1 && (Bo.has(n[0]) && !t ? r = U(Bo.get(n[0])) : (r = await vi({ tableId: n[0] }), Bo.set(n[0], r))), {
|
|
4094
4194
|
sourceData: r,
|
|
4095
4195
|
n
|
|
4096
4196
|
};
|
|
4097
4197
|
}
|
|
4098
|
-
async function
|
|
4198
|
+
async function Uo(e) {
|
|
4099
4199
|
return new Promise((t, n) => {
|
|
4100
4200
|
let r = Y(`dynamicTable_${e}`, !1);
|
|
4101
|
-
r &&
|
|
4201
|
+
r && Bo.has(`dynamicTable_${e}`) ? t(r) : _i(e, r ? r.createTime : null).then((n) => {
|
|
4102
4202
|
if (n) {
|
|
4103
4203
|
let r = {
|
|
4104
4204
|
createTime: n.createTime,
|
|
4105
4205
|
tableTitle: n.tableTitle,
|
|
4106
4206
|
viewJson: n.viewJson
|
|
4107
4207
|
};
|
|
4108
|
-
J(`dynamicTable_${e}`, r, 0),
|
|
4109
|
-
} else
|
|
4208
|
+
J(`dynamicTable_${e}`, r, 0), Bo.set(`dynamicTable_${e}`, !0), sr("tables_"), t(n);
|
|
4209
|
+
} else Bo.set(`dynamicTable_${e}`, !0), t(r);
|
|
4110
4210
|
}).catch(() => {
|
|
4111
4211
|
n();
|
|
4112
4212
|
});
|
|
4113
4213
|
});
|
|
4114
4214
|
}
|
|
4115
|
-
var
|
|
4215
|
+
var Wo = (e) => e.map((e) => {
|
|
4116
4216
|
let t = {};
|
|
4117
4217
|
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
4218
|
i: e.input,
|
|
@@ -4187,7 +4287,7 @@ var wo = (e) => e.map((e) => {
|
|
|
4187
4287
|
p: { s: +!!e.form.expand.show }
|
|
4188
4288
|
}
|
|
4189
4289
|
};
|
|
4190
|
-
}),
|
|
4290
|
+
}), Go = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
4191
4291
|
let t = {};
|
|
4192
4292
|
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
4293
|
input: e.i,
|
|
@@ -4262,12 +4362,12 @@ var wo = (e) => e.map((e) => {
|
|
|
4262
4362
|
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
4263
4363
|
}
|
|
4264
4364
|
};
|
|
4265
|
-
}),
|
|
4365
|
+
}), Ko = (e) => ({
|
|
4266
4366
|
f: e.fetch,
|
|
4267
4367
|
n: e.fetchFn,
|
|
4268
4368
|
o: e.when_drawer_open,
|
|
4269
4369
|
b: e.when_before_save
|
|
4270
|
-
}),
|
|
4370
|
+
}), qo = (e) => e ? e.fetch ? e : {
|
|
4271
4371
|
fetch: e.f,
|
|
4272
4372
|
fetchFn: e.n,
|
|
4273
4373
|
when_drawer_open: e.o,
|
|
@@ -4277,7 +4377,7 @@ var wo = (e) => e.map((e) => {
|
|
|
4277
4377
|
fetchFn: "",
|
|
4278
4378
|
when_drawer_open: "",
|
|
4279
4379
|
when_before_save: ""
|
|
4280
|
-
},
|
|
4380
|
+
}, Jo = (e) => ({
|
|
4281
4381
|
i: e.index,
|
|
4282
4382
|
s: e.selection,
|
|
4283
4383
|
p: e.pagination,
|
|
@@ -4293,7 +4393,7 @@ var wo = (e) => e.map((e) => {
|
|
|
4293
4393
|
h: e.drawerHeight,
|
|
4294
4394
|
l: e.placement,
|
|
4295
4395
|
r: e.summary
|
|
4296
|
-
}),
|
|
4396
|
+
}), Yo = (e) => {
|
|
4297
4397
|
let t = {};
|
|
4298
4398
|
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
4399
|
index: e.i,
|
|
@@ -4311,9 +4411,9 @@ var wo = (e) => e.map((e) => {
|
|
|
4311
4411
|
drawerHeight: e.h,
|
|
4312
4412
|
placement: e.l,
|
|
4313
4413
|
summary: e.r
|
|
4314
|
-
}), Object.assign({},
|
|
4414
|
+
}), Object.assign({}, Fo, U(t));
|
|
4315
4415
|
};
|
|
4316
|
-
function
|
|
4416
|
+
function Xo(e, t, n, r) {
|
|
4317
4417
|
return new Promise(async (i, a) => {
|
|
4318
4418
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
|
|
4319
4419
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -4348,21 +4448,21 @@ function Ao(e, t, n, r) {
|
|
|
4348
4448
|
disabled: !0
|
|
4349
4449
|
}];
|
|
4350
4450
|
if (e.params.immediately || r) {
|
|
4351
|
-
let { sourceData: t, n: r } = await
|
|
4451
|
+
let { sourceData: t, n: r } = await Ho(e.source);
|
|
4352
4452
|
if (t && Array.isArray(t)) {
|
|
4353
4453
|
if (e.sourceFn) {
|
|
4354
4454
|
let r = e.sourceFn;
|
|
4355
4455
|
n = Function("sourceData", r)(t);
|
|
4356
|
-
} else n =
|
|
4456
|
+
} else n = zo(e, t, r);
|
|
4357
4457
|
}
|
|
4358
4458
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
4359
|
-
let { sourceData: t, n } = await
|
|
4459
|
+
let { sourceData: t, n } = await Ho(e.source);
|
|
4360
4460
|
if (t && Array.isArray(t)) {
|
|
4361
4461
|
if (e.sourceFn) {
|
|
4362
4462
|
let n = e.sourceFn;
|
|
4363
4463
|
return Function("sourceData", n)(t);
|
|
4364
4464
|
}
|
|
4365
|
-
return
|
|
4465
|
+
return zo(e, t, n);
|
|
4366
4466
|
}
|
|
4367
4467
|
};
|
|
4368
4468
|
if (e.params.options = n, e.form.backfill && t) {
|
|
@@ -4396,27 +4496,27 @@ function Ao(e, t, n, r) {
|
|
|
4396
4496
|
q(e);
|
|
4397
4497
|
}
|
|
4398
4498
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
4399
|
-
let t = await
|
|
4499
|
+
let t = await Lo();
|
|
4400
4500
|
e.params.options = t;
|
|
4401
4501
|
}
|
|
4402
4502
|
if (e.input === "subTable" && e.params.link) {
|
|
4403
|
-
let t = await
|
|
4503
|
+
let t = await Uo(e.params.link).catch(() => {
|
|
4404
4504
|
a();
|
|
4405
4505
|
});
|
|
4406
4506
|
if (t) try {
|
|
4407
4507
|
let n = rt.parse(t.viewJson);
|
|
4408
|
-
n.suffix && (e._suffix =
|
|
4409
|
-
let r =
|
|
4508
|
+
n.suffix && (e._suffix = Bi(n.suffix));
|
|
4509
|
+
let r = Go(n.table);
|
|
4410
4510
|
r.forEach((e) => {
|
|
4411
4511
|
e.table.sorter = !1;
|
|
4412
4512
|
});
|
|
4413
4513
|
let i = r.filter((e) => e.input === "subTable");
|
|
4414
4514
|
if (i) for await (let e of i) {
|
|
4415
|
-
let t = await
|
|
4515
|
+
let t = await Uo(e.params.link).catch(() => {
|
|
4416
4516
|
a();
|
|
4417
4517
|
});
|
|
4418
4518
|
if (t) try {
|
|
4419
|
-
let n = rt.parse(t.viewJson), r =
|
|
4519
|
+
let n = rt.parse(t.viewJson), r = Go(n.table);
|
|
4420
4520
|
r.forEach((e) => {
|
|
4421
4521
|
e.table.sorter = !1;
|
|
4422
4522
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -4450,7 +4550,7 @@ function Ao(e, t, n, r) {
|
|
|
4450
4550
|
});
|
|
4451
4551
|
});
|
|
4452
4552
|
}
|
|
4453
|
-
async function
|
|
4553
|
+
async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
4454
4554
|
let s = 0, c = [], l = [], u = {
|
|
4455
4555
|
key: "",
|
|
4456
4556
|
link: "",
|
|
@@ -4465,25 +4565,25 @@ async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4465
4565
|
for await (let [e, s] of m.entries()) {
|
|
4466
4566
|
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
|
|
4467
4567
|
if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
4468
|
-
let { sourceData: t, n } = await
|
|
4568
|
+
let { sourceData: t, n } = await Ho(s.source, a && e === 0);
|
|
4469
4569
|
if (t && Array.isArray(t)) {
|
|
4470
4570
|
if (s.sourceFn) {
|
|
4471
4571
|
let e = s.sourceFn, n = Function("sourceData", e);
|
|
4472
4572
|
s.params.options = n(t);
|
|
4473
|
-
} else s.params.options =
|
|
4573
|
+
} else s.params.options = zo(s, t, n);
|
|
4474
4574
|
}
|
|
4475
4575
|
} else s.params.options = [{
|
|
4476
4576
|
label: "加载中......",
|
|
4477
4577
|
value: "loading",
|
|
4478
4578
|
disabled: !0
|
|
4479
4579
|
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4480
|
-
let { sourceData: e, n: t } = await
|
|
4580
|
+
let { sourceData: e, n: t } = await Ho(s.source);
|
|
4481
4581
|
if (e && Array.isArray(e)) {
|
|
4482
4582
|
if (s.sourceFn) {
|
|
4483
4583
|
let t = s.sourceFn;
|
|
4484
4584
|
return Function("sourceData", t)(e);
|
|
4485
4585
|
}
|
|
4486
|
-
return
|
|
4586
|
+
return zo(s, e, t);
|
|
4487
4587
|
}
|
|
4488
4588
|
};
|
|
4489
4589
|
}
|
|
@@ -4491,7 +4591,7 @@ async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4491
4591
|
let t = s.params.options.find((t) => t.value === e[s.key]);
|
|
4492
4592
|
if (t) return t.label;
|
|
4493
4593
|
}), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
|
|
4494
|
-
return p(
|
|
4594
|
+
return p(fa, { value: e[s.key] }, { default: () => null });
|
|
4495
4595
|
});
|
|
4496
4596
|
let f = {
|
|
4497
4597
|
input: s.input,
|
|
@@ -4506,7 +4606,7 @@ async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4506
4606
|
tooltip: !0,
|
|
4507
4607
|
"line-clamp": s.table.clamp ?? 0
|
|
4508
4608
|
} : !1,
|
|
4509
|
-
render: s.table.render ? await
|
|
4609
|
+
render: s.table.render ? await Ro(s.key, s.table.render, i) : void 0,
|
|
4510
4610
|
show: K.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
4511
4611
|
pin: !!s.table.fixed,
|
|
4512
4612
|
fixTemp: s.table.fixed
|
|
@@ -4528,7 +4628,7 @@ async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4528
4628
|
...s.form.rule,
|
|
4529
4629
|
index: t
|
|
4530
4630
|
} : void 0
|
|
4531
|
-
}, { default: () => p(
|
|
4631
|
+
}, { default: () => p(qi, {
|
|
4532
4632
|
item: s,
|
|
4533
4633
|
formValue: e,
|
|
4534
4634
|
status: n,
|
|
@@ -4541,34 +4641,34 @@ async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4541
4641
|
if (s.search.title && (s.label = s.search.title), s.search.source) {
|
|
4542
4642
|
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
4643
|
else if (s.params.immediately || s.search.defaultValue) {
|
|
4544
|
-
let { sourceData: e, n: t } = await
|
|
4644
|
+
let { sourceData: e, n: t } = await Ho(s.search.source);
|
|
4545
4645
|
if (e && Array.isArray(e)) {
|
|
4546
4646
|
if (s.sourceFn) {
|
|
4547
4647
|
let t = s.sourceFn, n = Function("sourceData", t);
|
|
4548
4648
|
s.params.options = n(e);
|
|
4549
|
-
} else s.params.options =
|
|
4649
|
+
} else s.params.options = zo(s, e, t);
|
|
4550
4650
|
}
|
|
4551
4651
|
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4552
|
-
let { sourceData: e, n: t } = await
|
|
4652
|
+
let { sourceData: e, n: t } = await Ho(s.search.source);
|
|
4553
4653
|
if (e && Array.isArray(e)) {
|
|
4554
4654
|
if (s.sourceFn) {
|
|
4555
4655
|
let t = s.sourceFn;
|
|
4556
4656
|
return Function("sourceData", t)(e);
|
|
4557
4657
|
}
|
|
4558
|
-
return
|
|
4658
|
+
return zo(s, e, t);
|
|
4559
4659
|
}
|
|
4560
4660
|
};
|
|
4561
4661
|
}
|
|
4562
|
-
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue =
|
|
4662
|
+
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = Io(s.search.defaultValue))), s.search.show) {
|
|
4563
4663
|
let e = U(s);
|
|
4564
4664
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
4565
|
-
let { sourceData: t, n } = await
|
|
4665
|
+
let { sourceData: t, n } = await Ho(e.source || e.search.source);
|
|
4566
4666
|
if (t && Array.isArray(t)) {
|
|
4567
4667
|
if (e.sourceFn) {
|
|
4568
4668
|
let n = e.sourceFn;
|
|
4569
4669
|
return Function("sourceData", n)(t);
|
|
4570
4670
|
}
|
|
4571
|
-
return
|
|
4671
|
+
return zo(e, t, n);
|
|
4572
4672
|
}
|
|
4573
4673
|
}), c.push({
|
|
4574
4674
|
input: e.input,
|
|
@@ -4622,7 +4722,7 @@ async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4622
4722
|
}
|
|
4623
4723
|
//#endregion
|
|
4624
4724
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
4625
|
-
var
|
|
4725
|
+
var Qo = f({
|
|
4626
4726
|
name: "UzSpin",
|
|
4627
4727
|
components: {
|
|
4628
4728
|
NButton: R,
|
|
@@ -4668,7 +4768,7 @@ var Mo = f({
|
|
|
4668
4768
|
});
|
|
4669
4769
|
//#endregion
|
|
4670
4770
|
//#region components/spin/index.vue
|
|
4671
|
-
function
|
|
4771
|
+
function $o(e, t, n, i, a, s) {
|
|
4672
4772
|
let c = O("NEllipsis"), d = O("NButton"), f = O("NSpin");
|
|
4673
4773
|
return S(), r(f, { show: e.value }, {
|
|
4674
4774
|
description: P(() => [
|
|
@@ -4696,7 +4796,7 @@ function No(e, t, n, i, a, s) {
|
|
|
4696
4796
|
_: 3
|
|
4697
4797
|
}, 8, ["show"]);
|
|
4698
4798
|
}
|
|
4699
|
-
var
|
|
4799
|
+
var es = /*#__PURE__*/ W(Qo, [["render", $o]]), ts = f({
|
|
4700
4800
|
name: "UzTableExpand",
|
|
4701
4801
|
components: {
|
|
4702
4802
|
NDataTable: se,
|
|
@@ -4722,8 +4822,8 @@ var Po = /*#__PURE__*/ W(Mo, [["render", No]]), Fo = f({
|
|
|
4722
4822
|
} catch (e) {
|
|
4723
4823
|
q(e);
|
|
4724
4824
|
}
|
|
4725
|
-
|
|
4726
|
-
let { tableColumns: r } = await
|
|
4825
|
+
Uo(e.data.link).then(async (e) => {
|
|
4826
|
+
let { tableColumns: r } = await Zo(Go(rt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
|
|
4727
4827
|
...e,
|
|
4728
4828
|
sorter: !1,
|
|
4729
4829
|
resizable: !1
|
|
@@ -4744,7 +4844,7 @@ var Po = /*#__PURE__*/ W(Mo, [["render", No]]), Fo = f({
|
|
|
4744
4844
|
});
|
|
4745
4845
|
//#endregion
|
|
4746
4846
|
//#region components/table/components/expand.vue
|
|
4747
|
-
function
|
|
4847
|
+
function ns(e, t, n, i, a, o) {
|
|
4748
4848
|
let s = O("NDataTable");
|
|
4749
4849
|
return S(), r(s, {
|
|
4750
4850
|
columns: e.columns,
|
|
@@ -4763,18 +4863,18 @@ function Io(e, t, n, i, a, o) {
|
|
|
4763
4863
|
"scroll-x"
|
|
4764
4864
|
]);
|
|
4765
4865
|
}
|
|
4766
|
-
var
|
|
4866
|
+
var rs = /*#__PURE__*/ W(ts, [["render", ns]]), is = f({
|
|
4767
4867
|
components: { NSkeleton: je },
|
|
4768
4868
|
setup() {
|
|
4769
4869
|
return {};
|
|
4770
4870
|
}
|
|
4771
|
-
}),
|
|
4772
|
-
function
|
|
4871
|
+
}), as = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, os = { class: "uz-flex uz-justify-between" }, ss = { class: "uz-flex uz-gap-1" };
|
|
4872
|
+
function cs(e, t, n, r, i, s) {
|
|
4773
4873
|
let c = O("NSkeleton");
|
|
4774
|
-
return S(), a("div",
|
|
4874
|
+
return S(), a("div", as, [o("div", os, [u(c, {
|
|
4775
4875
|
width: 120,
|
|
4776
4876
|
size: "medium"
|
|
4777
|
-
}), o("div",
|
|
4877
|
+
}), o("div", ss, [
|
|
4778
4878
|
u(c, {
|
|
4779
4879
|
width: 180,
|
|
4780
4880
|
size: "medium"
|
|
@@ -4807,7 +4907,7 @@ function Ho(e, t, n, r, i, s) {
|
|
|
4807
4907
|
}
|
|
4808
4908
|
//#endregion
|
|
4809
4909
|
//#region components/table/index.vue?vue&type=script&lang.ts
|
|
4810
|
-
var
|
|
4910
|
+
var ls = f({
|
|
4811
4911
|
name: "UzTable",
|
|
4812
4912
|
components: {
|
|
4813
4913
|
NDataTable: se,
|
|
@@ -4817,9 +4917,9 @@ var Uo = f({
|
|
|
4817
4917
|
NCheckbox: ie,
|
|
4818
4918
|
NSpin: Ne,
|
|
4819
4919
|
VueDraggable: nt,
|
|
4820
|
-
UzSpin:
|
|
4821
|
-
TableExpand:
|
|
4822
|
-
SkeletonLoading: /* @__PURE__ */ W(
|
|
4920
|
+
UzSpin: es,
|
|
4921
|
+
TableExpand: rs,
|
|
4922
|
+
SkeletonLoading: /* @__PURE__ */ W(is, [["render", cs]])
|
|
4823
4923
|
},
|
|
4824
4924
|
props: {
|
|
4825
4925
|
id: {
|
|
@@ -4959,7 +5059,7 @@ var Uo = f({
|
|
|
4959
5059
|
fetchFn: "",
|
|
4960
5060
|
when_drawer_open: "",
|
|
4961
5061
|
when_before_save: ""
|
|
4962
|
-
}), L = T(
|
|
5062
|
+
}), L = T(Yo()), ne = T(""), re = T(!1), ie = T([]), z = T([]), ae = m("modules"), oe = (e) => e.id, se = (e, n) => {
|
|
4963
5063
|
t("update:rowKeys", {
|
|
4964
5064
|
keys: e,
|
|
4965
5065
|
rows: U(n)
|
|
@@ -4993,7 +5093,7 @@ var Uo = f({
|
|
|
4993
5093
|
else if (I.value.fetchFn) {
|
|
4994
5094
|
let e = I.value.fetchFn;
|
|
4995
5095
|
r = Function("POST", "queryData", e)(Z, { ...t });
|
|
4996
|
-
} else r =
|
|
5096
|
+
} else r = vi({
|
|
4997
5097
|
...t,
|
|
4998
5098
|
tableId: n
|
|
4999
5099
|
});
|
|
@@ -5007,7 +5107,7 @@ var Uo = f({
|
|
|
5007
5107
|
else if (I.value.fetchFn) {
|
|
5008
5108
|
let e = I.value.fetchFn;
|
|
5009
5109
|
r = Function("POST", "queryData", e)(Z, { id: t.id });
|
|
5010
|
-
} else r =
|
|
5110
|
+
} else r = vi({
|
|
5011
5111
|
id: t.id,
|
|
5012
5112
|
tableId: n
|
|
5013
5113
|
});
|
|
@@ -5016,24 +5116,24 @@ var Uo = f({
|
|
|
5016
5116
|
let r = e.id || o.params.id;
|
|
5017
5117
|
e.enableLoading && (_.value = !0, t("update:loading", !0));
|
|
5018
5118
|
let i = U(k.value);
|
|
5019
|
-
n && delete i.orderby, I.value.fetch ?
|
|
5020
|
-
let n =
|
|
5119
|
+
n && delete i.orderby, I.value.fetch ? Ci([I.value.fetch], "", i).then((e) => {
|
|
5120
|
+
let n = ur(e);
|
|
5021
5121
|
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
5122
|
}).catch(() => {
|
|
5023
5123
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5024
5124
|
}) : de(i).then((e) => {
|
|
5025
|
-
let n =
|
|
5125
|
+
let n = ur(e);
|
|
5026
5126
|
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
5127
|
}).catch(() => {
|
|
5028
5128
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5029
5129
|
});
|
|
5030
5130
|
}, pe = (e) => {
|
|
5031
|
-
k.value.query.page = e, u.value && (u.value.scrollTop = 0),
|
|
5131
|
+
k.value.query.page = e, u.value && (u.value.scrollTop = 0), lr(), B();
|
|
5032
5132
|
}, me = () => {
|
|
5033
5133
|
let e = k.value.query.page + 1;
|
|
5034
5134
|
e > k.value.query.pageMax && (e = 1), k.value.query.page = e, u.value && (u.value.scrollTop = 0), B();
|
|
5035
5135
|
}, he = (e) => {
|
|
5036
|
-
k.value.query.pageSize = e, k.value.query.page = 1,
|
|
5136
|
+
k.value.query.pageSize = e, k.value.query.page = 1, lr(), B();
|
|
5037
5137
|
}, ge = (e) => {
|
|
5038
5138
|
e && e.order ? k.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete k.value.orderby, B();
|
|
5039
5139
|
}, _e = () => {
|
|
@@ -5057,7 +5157,7 @@ var Uo = f({
|
|
|
5057
5157
|
show: !0,
|
|
5058
5158
|
ellipsis: !1,
|
|
5059
5159
|
width: 180,
|
|
5060
|
-
render: (e) => [p("div", {}, { default: () => e.createBy }), p("div", {}, { default: () =>
|
|
5160
|
+
render: (e) => [p("div", {}, { default: () => e.createBy }), p("div", {}, { default: () => dr(e.createTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5061
5161
|
}, {
|
|
5062
5162
|
title: "更新人/时间",
|
|
5063
5163
|
key: "updateTime",
|
|
@@ -5066,9 +5166,9 @@ var Uo = f({
|
|
|
5066
5166
|
show: !0,
|
|
5067
5167
|
ellipsis: !0,
|
|
5068
5168
|
width: 180,
|
|
5069
|
-
render: (e) => [p("div", {}, { default: () => e.updateBy }), p("div", {}, { default: () =>
|
|
5169
|
+
render: (e) => [p("div", {}, { default: () => e.updateBy }), p("div", {}, { default: () => dr(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5070
5170
|
}], 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
|
|
5171
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Xo(N.value, e, () => f.value?.getFormValues());
|
|
5072
5172
|
return x.value = t, {
|
|
5073
5173
|
form: t,
|
|
5074
5174
|
fillingDefaultValue: n,
|
|
@@ -5157,7 +5257,7 @@ var Uo = f({
|
|
|
5157
5257
|
...n,
|
|
5158
5258
|
tableId: a,
|
|
5159
5259
|
sub_table_ids: r
|
|
5160
|
-
}) :
|
|
5260
|
+
}) : bi({
|
|
5161
5261
|
...n,
|
|
5162
5262
|
tableId: a,
|
|
5163
5263
|
sub_table_ids: r
|
|
@@ -5175,7 +5275,7 @@ var Uo = f({
|
|
|
5175
5275
|
});
|
|
5176
5276
|
};
|
|
5177
5277
|
} else if (n.type !== "group" && n.action === "disabledInside") n.onClick = (t) => {
|
|
5178
|
-
|
|
5278
|
+
yi({
|
|
5179
5279
|
tableId: e.id || o.params.id,
|
|
5180
5280
|
...t,
|
|
5181
5281
|
is_disabled: "1"
|
|
@@ -5184,7 +5284,7 @@ var Uo = f({
|
|
|
5184
5284
|
}).catch(() => null);
|
|
5185
5285
|
};
|
|
5186
5286
|
else if (n.type !== "group" && n.action === "enabledInside") n.onClick = (t) => {
|
|
5187
|
-
|
|
5287
|
+
yi({
|
|
5188
5288
|
tableId: e.id || o.params.id,
|
|
5189
5289
|
...t,
|
|
5190
5290
|
is_disabled: "0"
|
|
@@ -5197,7 +5297,7 @@ var Uo = f({
|
|
|
5197
5297
|
n.onClick = (t) => {
|
|
5198
5298
|
fe(t).then((t) => {
|
|
5199
5299
|
let r = t && t[0];
|
|
5200
|
-
|
|
5300
|
+
Ci([n.action], r.id, r).then((t) => {
|
|
5201
5301
|
if (e && typeof e == "string") {
|
|
5202
5302
|
try {
|
|
5203
5303
|
Function("rowData", "res", e)(r, t).then((e) => {
|
|
@@ -5236,8 +5336,8 @@ var Uo = f({
|
|
|
5236
5336
|
};
|
|
5237
5337
|
}
|
|
5238
5338
|
}, Te = async () => {
|
|
5239
|
-
re.value = !1,
|
|
5240
|
-
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await
|
|
5339
|
+
re.value = !1, Vo();
|
|
5340
|
+
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await Zo(N.value, e.child, 0, () => ({}), ae);
|
|
5241
5341
|
!l.value && L.value.index && n.unshift({
|
|
5242
5342
|
title: "#",
|
|
5243
5343
|
key: "index",
|
|
@@ -5279,7 +5379,7 @@ var Uo = f({
|
|
|
5279
5379
|
hide: !0,
|
|
5280
5380
|
width: Number(typeof L.value.actionWidth == "string" ? L.value.actionWidth.replace("px", "") : L.value.actionWidth),
|
|
5281
5381
|
render(t) {
|
|
5282
|
-
return
|
|
5382
|
+
return Mi({
|
|
5283
5383
|
buttons: e,
|
|
5284
5384
|
rowData: t,
|
|
5285
5385
|
callback: B,
|
|
@@ -5293,8 +5393,8 @@ var Uo = f({
|
|
|
5293
5393
|
if (c) {
|
|
5294
5394
|
let e = Y(`tables_filter_${c}`, !1);
|
|
5295
5395
|
if (e) try {
|
|
5296
|
-
let t = await
|
|
5297
|
-
t && (e = JSON.parse(t), u =
|
|
5396
|
+
let t = await xi(c);
|
|
5397
|
+
t && (e = JSON.parse(t), u = yr(n, e));
|
|
5298
5398
|
} catch {}
|
|
5299
5399
|
}
|
|
5300
5400
|
a.link && u.unshift({
|
|
@@ -5306,7 +5406,7 @@ var Uo = f({
|
|
|
5306
5406
|
filter: "default",
|
|
5307
5407
|
filterOptionValue: null,
|
|
5308
5408
|
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(
|
|
5409
|
+
renderExpand: (e) => p(rs, {
|
|
5310
5410
|
data: a,
|
|
5311
5411
|
value: e
|
|
5312
5412
|
})
|
|
@@ -5327,12 +5427,12 @@ var Uo = f({
|
|
|
5327
5427
|
let e = 0;
|
|
5328
5428
|
S.value.forEach((t) => {
|
|
5329
5429
|
t.show && (e += Number(t.width || 140));
|
|
5330
|
-
}), D.value = e, J(`tables_filter_${n}`, t.filter((e) => e.key)),
|
|
5430
|
+
}), D.value = e, J(`tables_filter_${n}`, t.filter((e) => e.key)), Si({
|
|
5331
5431
|
table_id: n,
|
|
5332
5432
|
data: JSON.stringify(t)
|
|
5333
5433
|
}).catch(() => null);
|
|
5334
5434
|
}
|
|
5335
|
-
}, { run: ke } =
|
|
5435
|
+
}, { run: ke } = _a(Oe), { run: Ae } = _a((e, t) => {
|
|
5336
5436
|
let n = [];
|
|
5337
5437
|
S.value.forEach((r) => {
|
|
5338
5438
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -5359,7 +5459,7 @@ var Uo = f({
|
|
|
5359
5459
|
i = e.formFetch ? e.formFetch({
|
|
5360
5460
|
tableId: a,
|
|
5361
5461
|
...t
|
|
5362
|
-
}) :
|
|
5462
|
+
}) : yi({
|
|
5363
5463
|
tableId: a,
|
|
5364
5464
|
...t
|
|
5365
5465
|
}), i.then(() => {
|
|
@@ -5373,14 +5473,14 @@ var Uo = f({
|
|
|
5373
5473
|
fetchFn: "",
|
|
5374
5474
|
when_drawer_open: "",
|
|
5375
5475
|
when_before_save: ""
|
|
5376
|
-
}, L.value =
|
|
5476
|
+
}, L.value = Yo();
|
|
5377
5477
|
}, Pe = (t) => {
|
|
5378
5478
|
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 &&
|
|
5479
|
+
y.value = t.tableTitle, N.value = Go(n.table), P.value = Bi(e.actions || n.action);
|
|
5480
|
+
let r = Bi(n.suffix || []);
|
|
5481
|
+
F.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value = qo(n.trigger);
|
|
5482
|
+
let i = Yo(e.options ?? n.option);
|
|
5483
|
+
t.tableTitle && i.title && fr(t.tableTitle), L.value = i;
|
|
5384
5484
|
}, Fe = async () => {
|
|
5385
5485
|
v.value = !1, Ne();
|
|
5386
5486
|
let t = e.id || o.params.id;
|
|
@@ -5397,7 +5497,7 @@ var Uo = f({
|
|
|
5397
5497
|
ne.value = s("Notice.network"), re.value = !0;
|
|
5398
5498
|
return;
|
|
5399
5499
|
}
|
|
5400
|
-
De(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], L.value =
|
|
5500
|
+
De(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], L.value = Yo(e.options), await Te()) : await Uo(t).then(async (e) => {
|
|
5401
5501
|
Pe(e), await Te();
|
|
5402
5502
|
}).catch((e) => {
|
|
5403
5503
|
ne.value = e?.message || s("Notice.network"), re.value = !0;
|
|
@@ -5438,7 +5538,7 @@ var Uo = f({
|
|
|
5438
5538
|
if (_.value) return;
|
|
5439
5539
|
_.value = !0;
|
|
5440
5540
|
let t = e.id || o.params.id;
|
|
5441
|
-
t && (
|
|
5541
|
+
t && (or(`tables_filter_${t}`), Si({
|
|
5442
5542
|
table_id: t,
|
|
5443
5543
|
data: null
|
|
5444
5544
|
}).catch(() => null).finally(() => {
|
|
@@ -5465,7 +5565,7 @@ var Uo = f({
|
|
|
5465
5565
|
}), M(() => e.height, () => {
|
|
5466
5566
|
De();
|
|
5467
5567
|
}), M([() => o.params.id, () => e.id], async () => {
|
|
5468
|
-
|
|
5568
|
+
lr(), await Fe();
|
|
5469
5569
|
}), M(() => e.defaultCheckedRowKeys, (e) => {
|
|
5470
5570
|
let t = e || [], n = z.value.filter((e) => t.includes(e.id));
|
|
5471
5571
|
ie.value = t, z.value = n;
|
|
@@ -5516,14 +5616,14 @@ var Uo = f({
|
|
|
5516
5616
|
}
|
|
5517
5617
|
};
|
|
5518
5618
|
}
|
|
5519
|
-
}),
|
|
5619
|
+
}), us = { class: "uz-com-title" }, ds = {
|
|
5520
5620
|
ref: "mRef",
|
|
5521
5621
|
class: "uz-table-m-content"
|
|
5522
|
-
},
|
|
5622
|
+
}, fs = {
|
|
5523
5623
|
key: 1,
|
|
5524
5624
|
class: "uz-transform-fade-in"
|
|
5525
|
-
},
|
|
5526
|
-
function
|
|
5625
|
+
}, ps = { class: "uz-com-title" }, ms = ["data-index"];
|
|
5626
|
+
function hs(t, n, c, d, f, p) {
|
|
5527
5627
|
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
5628
|
return S(), a("div", {
|
|
5529
5629
|
class: "uz-table",
|
|
@@ -5588,7 +5688,7 @@ function Yo(t, n, c, d, f, p) {
|
|
|
5588
5688
|
key: "0"
|
|
5589
5689
|
} : {
|
|
5590
5690
|
name: "header",
|
|
5591
|
-
fn: P(() => [o("div",
|
|
5691
|
+
fn: P(() => [o("div", us, A(t.title), 1)]),
|
|
5592
5692
|
key: "1"
|
|
5593
5693
|
}]), 1032, [
|
|
5594
5694
|
"data",
|
|
@@ -5596,7 +5696,7 @@ function Yo(t, n, c, d, f, p) {
|
|
|
5596
5696
|
"cache",
|
|
5597
5697
|
"loading",
|
|
5598
5698
|
"onOnUpdate:value"
|
|
5599
|
-
]), o("div",
|
|
5699
|
+
]), o("div", ds, [u(C, {
|
|
5600
5700
|
tableColumns: t.tableCols,
|
|
5601
5701
|
tableData: t.tableData,
|
|
5602
5702
|
tableQueries: t.tableQueries,
|
|
@@ -5614,7 +5714,7 @@ function Yo(t, n, c, d, f, p) {
|
|
|
5614
5714
|
"minH",
|
|
5615
5715
|
"maxH",
|
|
5616
5716
|
"onUpdate:rowKeys"
|
|
5617
|
-
])], 512)], 2)) : (S(), a("div",
|
|
5717
|
+
])], 512)], 2)) : (S(), a("div", fs, [u(te, {
|
|
5618
5718
|
data: t.searchData,
|
|
5619
5719
|
id: t.id || t.route.params.id,
|
|
5620
5720
|
cache: t.tableOption.cache,
|
|
@@ -5669,7 +5769,7 @@ function Yo(t, n, c, d, f, p) {
|
|
|
5669
5769
|
_: 1
|
|
5670
5770
|
})]),
|
|
5671
5771
|
_: 1
|
|
5672
|
-
})], 8,
|
|
5772
|
+
})], 8, ms)), [[j, !e.hide]])), 128)), u(h, {
|
|
5673
5773
|
block: "",
|
|
5674
5774
|
tertiary: "",
|
|
5675
5775
|
loading: t.loading,
|
|
@@ -5723,7 +5823,7 @@ function Yo(t, n, c, d, f, p) {
|
|
|
5723
5823
|
key: "0"
|
|
5724
5824
|
} : {
|
|
5725
5825
|
name: "header",
|
|
5726
|
-
fn: P(() => [o("div",
|
|
5826
|
+
fn: P(() => [o("div", ps, A(t.title), 1)]),
|
|
5727
5827
|
key: "1"
|
|
5728
5828
|
}]), 1032, [
|
|
5729
5829
|
"data",
|
|
@@ -5784,10 +5884,10 @@ function Yo(t, n, c, d, f, p) {
|
|
|
5784
5884
|
u(I, { ref: "drawerRef" }, null, 512)
|
|
5785
5885
|
], 4);
|
|
5786
5886
|
}
|
|
5787
|
-
var
|
|
5887
|
+
var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
5788
5888
|
name: "UzTableChild",
|
|
5789
5889
|
components: {
|
|
5790
|
-
UzIcon:
|
|
5890
|
+
UzIcon: In,
|
|
5791
5891
|
NSpin: Ne,
|
|
5792
5892
|
NButton: R,
|
|
5793
5893
|
NIcon: V,
|
|
@@ -5813,7 +5913,7 @@ var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
|
5813
5913
|
emits: ["update:value"],
|
|
5814
5914
|
setup(e, { emit: t, expose: r }) {
|
|
5815
5915
|
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
|
|
5916
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await Xo(U(n ?? e.item.params.columns), t, void 0, !0);
|
|
5817
5917
|
return S.value = r, i;
|
|
5818
5918
|
}, D = async (t) => {
|
|
5819
5919
|
if (h.value) return;
|
|
@@ -5844,7 +5944,7 @@ var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
|
5844
5944
|
});
|
|
5845
5945
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
5846
5946
|
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
5847
|
-
let { tableColumns: r, tableWidth: i } = await
|
|
5947
|
+
let { tableColumns: r, tableWidth: i } = await Zo(U(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
|
|
5848
5948
|
r.unshift({
|
|
5849
5949
|
title: " ",
|
|
5850
5950
|
key: "index",
|
|
@@ -5863,7 +5963,7 @@ var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
|
5863
5963
|
hide: !0,
|
|
5864
5964
|
show: !0,
|
|
5865
5965
|
render() {
|
|
5866
|
-
return p("div", { class: "flex justify-center" }, p(V, {}, { default: () => p(
|
|
5966
|
+
return p("div", { class: "flex justify-center" }, p(V, {}, { default: () => p(In, { icon: "Add" }) }));
|
|
5867
5967
|
}
|
|
5868
5968
|
}), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
|
|
5869
5969
|
title: () => l("Common.action"),
|
|
@@ -5877,7 +5977,7 @@ var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
|
5877
5977
|
width: 60,
|
|
5878
5978
|
render(t, n) {
|
|
5879
5979
|
let r = [];
|
|
5880
|
-
return e.item.params.childActions && e.item.params.actions &&
|
|
5980
|
+
return e.item.params.childActions && e.item.params.actions && Bi(e.item.params.actions).forEach((e) => {
|
|
5881
5981
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
5882
5982
|
}), 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
5983
|
type: "normal",
|
|
@@ -5889,7 +5989,7 @@ var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
|
5889
5989
|
let n = e.item.params.deleteFn;
|
|
5890
5990
|
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
|
|
5891
5991
|
}
|
|
5892
|
-
}),
|
|
5992
|
+
}), Mi({
|
|
5893
5993
|
buttons: r,
|
|
5894
5994
|
rowData: t
|
|
5895
5995
|
});
|
|
@@ -6020,14 +6120,14 @@ var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
|
6020
6120
|
}
|
|
6021
6121
|
};
|
|
6022
6122
|
}
|
|
6023
|
-
}),
|
|
6123
|
+
}), vs = { class: "uz-flex-1 uz-w-full" }, ys = { class: "uz-flex uz-justify-between" }, bs = { class: "uz-com-title" }, xs = {
|
|
6024
6124
|
key: 0,
|
|
6025
6125
|
class: "uz-table-asterisk"
|
|
6026
|
-
},
|
|
6027
|
-
function
|
|
6126
|
+
}, Ss = { class: "uz-flex uz-gap-2" }, Cs = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
6127
|
+
function ws(t, n, c, d, f, p) {
|
|
6028
6128
|
let m = O("UzIcon"), h = O("NIcon"), g = O("NButton"), v = O("NDataTable"), y = O("NForm");
|
|
6029
|
-
return S(), a("div",
|
|
6030
|
-
o("div",
|
|
6129
|
+
return S(), a("div", vs, [
|
|
6130
|
+
o("div", ys, [o("div", bs, [l(A(t.item.label) + " ", 1), t.item.form.rule.required ? (S(), a("span", xs, " \xA0* ")) : i("", !0)]), o("div", Ss, [
|
|
6031
6131
|
t.status === 2 ? i("", !0) : (S(!0), a(e, { key: 0 }, E(t.suffixes, (e) => (S(), r(g, {
|
|
6032
6132
|
key: e.key,
|
|
6033
6133
|
type: e.color,
|
|
@@ -6100,7 +6200,7 @@ function is(t, n, c, d, f, p) {
|
|
|
6100
6200
|
"scroll-x",
|
|
6101
6201
|
"class",
|
|
6102
6202
|
"row-class-name"
|
|
6103
|
-
])) : i("", !0), o("div",
|
|
6203
|
+
])) : i("", !0), o("div", Cs, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (S(), r(g, {
|
|
6104
6204
|
key: 0,
|
|
6105
6205
|
type: "success",
|
|
6106
6206
|
secondary: "",
|
|
@@ -6129,7 +6229,7 @@ function is(t, n, c, d, f, p) {
|
|
|
6129
6229
|
}, 8, ["model"])
|
|
6130
6230
|
]);
|
|
6131
6231
|
}
|
|
6132
|
-
var
|
|
6232
|
+
var Ts = /*#__PURE__*/ W(_s, [["render", ws]]), Es = f({
|
|
6133
6233
|
name: "UzTableQuestChild",
|
|
6134
6234
|
components: { NDataTable: se },
|
|
6135
6235
|
props: {
|
|
@@ -6157,7 +6257,7 @@ var as = /*#__PURE__*/ W(Zo, [["render", is]]), os = f({
|
|
|
6157
6257
|
}), o.value = t, i.value = !1;
|
|
6158
6258
|
}
|
|
6159
6259
|
}, l = async (i) => {
|
|
6160
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
6260
|
+
let { tableColumns: c, tableWidth: l } = await Zo(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
6161
6261
|
c.unshift({
|
|
6162
6262
|
title: " ",
|
|
6163
6263
|
key: "index",
|
|
@@ -6176,7 +6276,7 @@ var as = /*#__PURE__*/ W(Zo, [["render", is]]), os = f({
|
|
|
6176
6276
|
hide: !0,
|
|
6177
6277
|
width: 60,
|
|
6178
6278
|
render(t) {
|
|
6179
|
-
return
|
|
6279
|
+
return Mi({ buttons: [{
|
|
6180
6280
|
type: "normal",
|
|
6181
6281
|
color: "primary",
|
|
6182
6282
|
key: "detail",
|
|
@@ -6197,7 +6297,7 @@ var as = /*#__PURE__*/ W(Zo, [["render", is]]), os = f({
|
|
|
6197
6297
|
}), N(async () => {
|
|
6198
6298
|
try {
|
|
6199
6299
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
6200
|
-
let t = await
|
|
6300
|
+
let t = await vi({
|
|
6201
6301
|
tableId: e.item.params.link,
|
|
6202
6302
|
params: [{
|
|
6203
6303
|
key: e.item.params.searchKey,
|
|
@@ -6231,11 +6331,11 @@ var as = /*#__PURE__*/ W(Zo, [["render", is]]), os = f({
|
|
|
6231
6331
|
tableScrollX: s
|
|
6232
6332
|
};
|
|
6233
6333
|
}
|
|
6234
|
-
}),
|
|
6235
|
-
function
|
|
6334
|
+
}), Ds = { class: "uz-flex-1 uz-w-full" }, Os = { class: "uz-flex uz-justify-between" }, ks = { class: "uz-com-title" };
|
|
6335
|
+
function As(e, t, n, r, i, s) {
|
|
6236
6336
|
let c = O("NDataTable"), l = O("UzTableDrawer");
|
|
6237
|
-
return S(), a("div",
|
|
6238
|
-
o("div",
|
|
6337
|
+
return S(), a("div", Ds, [
|
|
6338
|
+
o("div", Os, [o("div", ks, A(e.item.label), 1)]),
|
|
6239
6339
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
6240
6340
|
u(c, {
|
|
6241
6341
|
columns: e.columns,
|
|
@@ -6257,7 +6357,7 @@ function us(e, t, n, r, i, s) {
|
|
|
6257
6357
|
u(l, { ref: "drawerRef" }, null, 512)
|
|
6258
6358
|
]);
|
|
6259
6359
|
}
|
|
6260
|
-
var
|
|
6360
|
+
var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
6261
6361
|
name: "UzTableDrawer",
|
|
6262
6362
|
components: {
|
|
6263
6363
|
NButton: R,
|
|
@@ -6298,7 +6398,7 @@ var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
|
6298
6398
|
}), b = T(!1), x = T(), S = () => {
|
|
6299
6399
|
a.value?.restoreValidation(), c.value = {}, p.value = !1, f.value = !1, u.value = !1, t("update:show", !1);
|
|
6300
6400
|
}, C = () => {
|
|
6301
|
-
s.value === 2 ? S() :
|
|
6401
|
+
s.value === 2 ? S() : ar.info({
|
|
6302
6402
|
title: "提示",
|
|
6303
6403
|
content: "关闭后修改的数据将不保留,确定关闭?",
|
|
6304
6404
|
positiveText: "确定",
|
|
@@ -6329,11 +6429,11 @@ var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
|
6329
6429
|
linkFn: t
|
|
6330
6430
|
};
|
|
6331
6431
|
let r = e.split(".")[0];
|
|
6332
|
-
|
|
6432
|
+
Uo(r).then((e) => {
|
|
6333
6433
|
g(async () => {
|
|
6334
6434
|
let t = rt.parse(e.viewJson);
|
|
6335
|
-
d.value =
|
|
6336
|
-
let { form: i } = await
|
|
6435
|
+
d.value = Yo(t.option), u.value = !0;
|
|
6436
|
+
let { form: i } = await Xo(Go(t.table), n);
|
|
6337
6437
|
y.value = t.trigger, n && w(n);
|
|
6338
6438
|
let a = Y(`tables_cache_link_${r}`, !1);
|
|
6339
6439
|
a && (c.value = a), g(() => {
|
|
@@ -6382,7 +6482,7 @@ var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
|
6382
6482
|
}
|
|
6383
6483
|
if (x.value) {
|
|
6384
6484
|
x.value(e, () => {
|
|
6385
|
-
|
|
6485
|
+
or(`tables_cache_${o.value}`), S();
|
|
6386
6486
|
}, (e) => {
|
|
6387
6487
|
_.value = 1, h.value = e;
|
|
6388
6488
|
});
|
|
@@ -6390,11 +6490,11 @@ var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
|
6390
6490
|
}
|
|
6391
6491
|
{
|
|
6392
6492
|
let n = l.value.link.split(".")[0];
|
|
6393
|
-
|
|
6493
|
+
yi({
|
|
6394
6494
|
tableId: n,
|
|
6395
6495
|
...e
|
|
6396
6496
|
}).then(() => {
|
|
6397
|
-
|
|
6497
|
+
Vo(), vi({ tableId: n }).then((e) => {
|
|
6398
6498
|
let r = l.value.link.split("."), i;
|
|
6399
6499
|
if (l.value.linkFn) {
|
|
6400
6500
|
let t = l.value.linkFn;
|
|
@@ -6405,7 +6505,7 @@ var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
|
6405
6505
|
disabled: e?.status === "0",
|
|
6406
6506
|
params: e
|
|
6407
6507
|
}));
|
|
6408
|
-
p.value = !1,
|
|
6508
|
+
p.value = !1, or(`tables_cache_link_${n}`), t("on-submit", i), S();
|
|
6409
6509
|
}).catch((e) => {
|
|
6410
6510
|
_.value = 1, h.value = e;
|
|
6411
6511
|
});
|
|
@@ -6427,11 +6527,11 @@ var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
|
6427
6527
|
}
|
|
6428
6528
|
};
|
|
6429
6529
|
}
|
|
6430
|
-
}),
|
|
6530
|
+
}), Ns = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, Ps = {
|
|
6431
6531
|
key: 0,
|
|
6432
6532
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
6433
|
-
},
|
|
6434
|
-
function
|
|
6533
|
+
}, Fs = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, Is = { class: "uz-flex uz-gap-2" };
|
|
6534
|
+
function Ls(t, n, c, d, f, p) {
|
|
6435
6535
|
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
6536
|
return S(), a(e, null, [u(x, {
|
|
6437
6537
|
show: t.drawer,
|
|
@@ -6457,7 +6557,7 @@ function _s(t, n, c, d, f, p) {
|
|
|
6457
6557
|
message: t.spinMsg,
|
|
6458
6558
|
status: t.spinStatus
|
|
6459
6559
|
}, {
|
|
6460
|
-
default: P(() => [o("div",
|
|
6560
|
+
default: P(() => [o("div", Ns, [t.skeletonShow ? (S(), a("div", Ps, [
|
|
6461
6561
|
u(m, {
|
|
6462
6562
|
size: "large",
|
|
6463
6563
|
style: { height: "156px" }
|
|
@@ -6520,7 +6620,7 @@ function _s(t, n, c, d, f, p) {
|
|
|
6520
6620
|
_: 2
|
|
6521
6621
|
}, [t.formStatus === 2 ? void 0 : {
|
|
6522
6622
|
name: "footer",
|
|
6523
|
-
fn: P(() => [o("div",
|
|
6623
|
+
fn: P(() => [o("div", Fs, [t.isMobile ? i("", !0) : (S(), r(v, {
|
|
6524
6624
|
key: 0,
|
|
6525
6625
|
loading: t.spinShow,
|
|
6526
6626
|
type: "success",
|
|
@@ -6529,7 +6629,7 @@ function _s(t, n, c, d, f, p) {
|
|
|
6529
6629
|
}, {
|
|
6530
6630
|
default: P(() => [l(A(t.$t("OCR.ocr")), 1)]),
|
|
6531
6631
|
_: 1
|
|
6532
|
-
}, 8, ["loading"])), o("div",
|
|
6632
|
+
}, 8, ["loading"])), o("div", Is, [
|
|
6533
6633
|
u(v, {
|
|
6534
6634
|
loading: t.spinShow,
|
|
6535
6635
|
class: "uz-drawer-button",
|
|
@@ -6597,7 +6697,7 @@ function _s(t, n, c, d, f, p) {
|
|
|
6597
6697
|
_: 1
|
|
6598
6698
|
}, 8, ["show"])], 64);
|
|
6599
6699
|
}
|
|
6600
|
-
var
|
|
6700
|
+
var Rs = /*#__PURE__*/ W(Ms, [["render", Ls]]), zs = f({
|
|
6601
6701
|
name: "UzTableMobileList",
|
|
6602
6702
|
props: {
|
|
6603
6703
|
tableData: {
|
|
@@ -6615,12 +6715,12 @@ var vs = /*#__PURE__*/ W(fs, [["render", _s]]), ys = f({
|
|
|
6615
6715
|
},
|
|
6616
6716
|
emits: ["update:row-keys"],
|
|
6617
6717
|
setup() {}
|
|
6618
|
-
}),
|
|
6718
|
+
}), Bs = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Vs = {
|
|
6619
6719
|
key: 1,
|
|
6620
6720
|
class: "uz-table-mobile-group-txt"
|
|
6621
6721
|
};
|
|
6622
|
-
function
|
|
6623
|
-
return S(), a("div",
|
|
6722
|
+
function Hs(t, n, s, c, l, u) {
|
|
6723
|
+
return S(), a("div", Bs, [(S(!0), a(e, null, E(t.tableColumns, (n) => (S(), a("div", {
|
|
6624
6724
|
key: n.key,
|
|
6625
6725
|
class: _(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
|
|
6626
6726
|
style: v(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
|
|
@@ -6631,11 +6731,11 @@ function Ss(t, n, s, c, l, u) {
|
|
|
6631
6731
|
class: "mobile"
|
|
6632
6732
|
})) : 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
6733
|
if (t.tableData) return n.render(t.tableData, t.tableIndex);
|
|
6634
|
-
}), { key: 0 })) : (S(), a("div",
|
|
6734
|
+
}), { key: 0 })) : (S(), a("div", Vs, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
6635
6735
|
}
|
|
6636
6736
|
//#endregion
|
|
6637
6737
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
6638
|
-
var
|
|
6738
|
+
var Us = f({
|
|
6639
6739
|
name: "UzTableMobile",
|
|
6640
6740
|
components: {
|
|
6641
6741
|
NCheckbox: ie,
|
|
@@ -6643,7 +6743,7 @@ var Cs = f({
|
|
|
6643
6743
|
NPagination: Te,
|
|
6644
6744
|
NCheckboxGroup: z,
|
|
6645
6745
|
NRadioGroup: ke,
|
|
6646
|
-
UzTableMobileList: /* @__PURE__ */ W(
|
|
6746
|
+
UzTableMobileList: /* @__PURE__ */ W(zs, [["render", Hs], ["__scopeId", "data-v-84c394fe"]])
|
|
6647
6747
|
},
|
|
6648
6748
|
props: {
|
|
6649
6749
|
tableData: {
|
|
@@ -6690,17 +6790,17 @@ var Cs = f({
|
|
|
6690
6790
|
}
|
|
6691
6791
|
};
|
|
6692
6792
|
}
|
|
6693
|
-
}),
|
|
6793
|
+
}), Ws = {
|
|
6694
6794
|
key: 0,
|
|
6695
6795
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6696
|
-
},
|
|
6796
|
+
}, Gs = {
|
|
6697
6797
|
key: 0,
|
|
6698
6798
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6699
|
-
},
|
|
6799
|
+
}, Ks = {
|
|
6700
6800
|
key: 0,
|
|
6701
6801
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6702
6802
|
};
|
|
6703
|
-
function
|
|
6803
|
+
function qs(t, n, o, s, c, l) {
|
|
6704
6804
|
let d = O("UzTableMobileList"), f = O("NCheckbox"), p = O("NPagination"), m = O("NCheckboxGroup"), h = O("NRadio"), g = O("NRadioGroup");
|
|
6705
6805
|
return t.selection === 2 ? (S(), r(m, {
|
|
6706
6806
|
key: 0,
|
|
@@ -6727,7 +6827,7 @@ function Ds(t, n, o, s, c, l) {
|
|
|
6727
6827
|
"tableColumns"
|
|
6728
6828
|
])]),
|
|
6729
6829
|
_: 2
|
|
6730
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
6830
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Ws, [u(p, {
|
|
6731
6831
|
page: t.tableQueries.query.page,
|
|
6732
6832
|
"onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6733
6833
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6769,7 +6869,7 @@ function Ds(t, n, o, s, c, l) {
|
|
|
6769
6869
|
"tableColumns"
|
|
6770
6870
|
])]),
|
|
6771
6871
|
_: 2
|
|
6772
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
6872
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Gs, [u(p, {
|
|
6773
6873
|
page: t.tableQueries.query.page,
|
|
6774
6874
|
"onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6775
6875
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6804,7 +6904,7 @@ function Ds(t, n, o, s, c, l) {
|
|
|
6804
6904
|
"tableData",
|
|
6805
6905
|
"tableIndex",
|
|
6806
6906
|
"tableColumns"
|
|
6807
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
6907
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Ks, [u(p, {
|
|
6808
6908
|
page: t.tableQueries.query.page,
|
|
6809
6909
|
"onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6810
6910
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6817,10 +6917,10 @@ function Ds(t, n, o, s, c, l) {
|
|
|
6817
6917
|
"onUpdate:page"
|
|
6818
6918
|
])])) : i("", !0)], 4));
|
|
6819
6919
|
}
|
|
6820
|
-
var
|
|
6920
|
+
var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]]), Ys = f({
|
|
6821
6921
|
name: "UzTableFile",
|
|
6822
6922
|
components: {
|
|
6823
|
-
UzIcon:
|
|
6923
|
+
UzIcon: In,
|
|
6824
6924
|
NDropdown: fe,
|
|
6825
6925
|
NButton: R,
|
|
6826
6926
|
NModal: we,
|
|
@@ -6846,11 +6946,11 @@ var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6846
6946
|
let { t: n } = Ze(), r = Je(), i = Ue(), a = T(!1), o = T(!1), s = T(), c = T(""), l = T([{
|
|
6847
6947
|
label: n("Common.import"),
|
|
6848
6948
|
key: "import",
|
|
6849
|
-
icon: () => p(V, null, { default: () => p(
|
|
6949
|
+
icon: () => p(V, null, { default: () => p(In, { icon: "CloudUpload" }) })
|
|
6850
6950
|
}, {
|
|
6851
6951
|
label: n("Common.export"),
|
|
6852
6952
|
key: "export",
|
|
6853
|
-
icon: () => p(V, null, { default: () => p(
|
|
6953
|
+
icon: () => p(V, null, { default: () => p(In, { icon: "CloudDownload" }) })
|
|
6854
6954
|
}]), u = T([
|
|
6855
6955
|
{
|
|
6856
6956
|
title: "文件名称",
|
|
@@ -6893,14 +6993,14 @@ var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6893
6993
|
}), m = () => {
|
|
6894
6994
|
s.value = null;
|
|
6895
6995
|
}, h = () => {
|
|
6896
|
-
o.value || (o.value = !0,
|
|
6996
|
+
o.value || (o.value = !0, wi(r.params.id).then((t) => {
|
|
6897
6997
|
let n = document.createElement("a");
|
|
6898
6998
|
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
6999
|
}).catch(() => null).finally(() => {
|
|
6900
7000
|
o.value = !1;
|
|
6901
7001
|
}));
|
|
6902
7002
|
}, g = () => {
|
|
6903
|
-
o.value || (o.value = !0,
|
|
7003
|
+
o.value || (o.value = !0, gi("excel/import", s.value).then(() => {
|
|
6904
7004
|
i.success({
|
|
6905
7005
|
content: "导入执行中...",
|
|
6906
7006
|
duration: 3e3
|
|
@@ -6914,7 +7014,7 @@ var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6914
7014
|
o.value = !1, _();
|
|
6915
7015
|
}));
|
|
6916
7016
|
}, _ = () => {
|
|
6917
|
-
o.value || (o.value = !0,
|
|
7017
|
+
o.value || (o.value = !0, Ti(r.params.id).then((e) => {
|
|
6918
7018
|
d.value = e;
|
|
6919
7019
|
}).catch(() => null).finally(() => {
|
|
6920
7020
|
o.value = !1;
|
|
@@ -6932,7 +7032,7 @@ var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6932
7032
|
return;
|
|
6933
7033
|
}
|
|
6934
7034
|
if (t === "export") {
|
|
6935
|
-
|
|
7035
|
+
ar.info({
|
|
6936
7036
|
title: "提示",
|
|
6937
7037
|
content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
|
|
6938
7038
|
positiveText: "确定",
|
|
@@ -6940,7 +7040,7 @@ var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6940
7040
|
draggable: !0,
|
|
6941
7041
|
onPositiveClick: () => {
|
|
6942
7042
|
let t = e.query ?? {};
|
|
6943
|
-
|
|
7043
|
+
Ei({
|
|
6944
7044
|
tableKey: r.params.id,
|
|
6945
7045
|
...t
|
|
6946
7046
|
}).then(() => {
|
|
@@ -6966,11 +7066,11 @@ var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6966
7066
|
}
|
|
6967
7067
|
};
|
|
6968
7068
|
}
|
|
6969
|
-
}),
|
|
7069
|
+
}), Xs = { class: "uz-file-port-modal" }, Zs = {
|
|
6970
7070
|
key: 1,
|
|
6971
7071
|
class: "uz-file-port-panel"
|
|
6972
|
-
},
|
|
6973
|
-
function
|
|
7072
|
+
}, Qs = { class: "uz-flex uz-justify-between" };
|
|
7073
|
+
function $s(t, n, i, s, c, d) {
|
|
6974
7074
|
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
7075
|
return S(), a(e, null, [u(h, {
|
|
6976
7076
|
trigger: "hover",
|
|
@@ -7005,8 +7105,8 @@ function Ns(t, n, i, s, c, d) {
|
|
|
7005
7105
|
default: P(() => [...n[1] ||= [l(" 下载模板 ", -1)]]),
|
|
7006
7106
|
_: 1
|
|
7007
7107
|
}, 8, ["onClick"])]),
|
|
7008
|
-
default: P(() => [o("div",
|
|
7009
|
-
t.rawFile ? (S(), a("div",
|
|
7108
|
+
default: P(() => [o("div", Xs, [
|
|
7109
|
+
t.rawFile ? (S(), a("div", Zs, [
|
|
7010
7110
|
n[5] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
7011
7111
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7012
7112
|
viewBox: "0 0 24 24",
|
|
@@ -7053,7 +7153,7 @@ function Ns(t, n, i, s, c, d) {
|
|
|
7053
7153
|
}, [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
7154
|
_: 1
|
|
7055
7155
|
}, 8, ["on-before-upload"])),
|
|
7056
|
-
o("div",
|
|
7156
|
+
o("div", Qs, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), u(m, {
|
|
7057
7157
|
onClick: t.init,
|
|
7058
7158
|
loading: t.loading,
|
|
7059
7159
|
secondary: ""
|
|
@@ -7076,7 +7176,7 @@ function Ns(t, n, i, s, c, d) {
|
|
|
7076
7176
|
_: 1
|
|
7077
7177
|
}, 8, ["show", "on-after-leave"])], 64);
|
|
7078
7178
|
}
|
|
7079
|
-
var
|
|
7179
|
+
var ec = /*#__PURE__*/ W(Ys, [["render", $s], ["__scopeId", "data-v-21238151"]]), $ = w({
|
|
7080
7180
|
page: {
|
|
7081
7181
|
label: "首页",
|
|
7082
7182
|
key: "/",
|
|
@@ -7087,7 +7187,7 @@ var Ps = /*#__PURE__*/ W(ks, [["render", Ns], ["__scopeId", "data-v-21238151"]])
|
|
|
7087
7187
|
active: "/",
|
|
7088
7188
|
thumbnail: []
|
|
7089
7189
|
});
|
|
7090
|
-
function
|
|
7190
|
+
function tc(e) {
|
|
7091
7191
|
$.cache = e.cache, $.page = {
|
|
7092
7192
|
label: e.label,
|
|
7093
7193
|
key: e.key,
|
|
@@ -7102,35 +7202,35 @@ function Fs(e) {
|
|
|
7102
7202
|
closable: !1
|
|
7103
7203
|
}];
|
|
7104
7204
|
}
|
|
7105
|
-
function
|
|
7106
|
-
$.active = e,
|
|
7205
|
+
function nc(e) {
|
|
7206
|
+
$.active = e, Rn.push(e), J($.cache, $, 0);
|
|
7107
7207
|
}
|
|
7108
|
-
function
|
|
7208
|
+
function rc(e, t) {
|
|
7109
7209
|
let n = $.thumbnail.find((t) => t.key === e);
|
|
7110
7210
|
n && (n.key = t, $.active = t, J($.cache, $, 0));
|
|
7111
7211
|
}
|
|
7112
|
-
function
|
|
7212
|
+
function ic(e) {
|
|
7113
7213
|
let t = $.thumbnail.find((t) => t.path === e.key);
|
|
7114
|
-
t ? ($.active = t.key, J($.cache, $, 0),
|
|
7214
|
+
t ? ($.active = t.key, J($.cache, $, 0), Rn.push(t.key)) : ($.active = e.key, $.thumbnail.push({
|
|
7115
7215
|
...e,
|
|
7116
7216
|
path: e.key,
|
|
7117
7217
|
closable: !0
|
|
7118
|
-
}),
|
|
7218
|
+
}), Rn.push(e.key));
|
|
7119
7219
|
}
|
|
7120
|
-
function
|
|
7220
|
+
function ac(e) {
|
|
7121
7221
|
let t = $.thumbnail.findIndex((t) => t.key === e);
|
|
7122
7222
|
if ($.thumbnail.splice(t, 1), $.active === e) {
|
|
7123
7223
|
let e = $.thumbnail[t - 1]?.key || "";
|
|
7124
|
-
$.active = e,
|
|
7224
|
+
$.active = e, Rn.push(e);
|
|
7125
7225
|
}
|
|
7126
7226
|
J($.cache, $, 0);
|
|
7127
7227
|
}
|
|
7128
|
-
function
|
|
7129
|
-
$.active = $.page.path, $.thumbnail = [$.page],
|
|
7228
|
+
function oc() {
|
|
7229
|
+
$.active = $.page.path, $.thumbnail = [$.page], Rn.push($.page.path), J($.cache, $, 0);
|
|
7130
7230
|
}
|
|
7131
7231
|
//#endregion
|
|
7132
7232
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
7133
|
-
var
|
|
7233
|
+
var sc = f({
|
|
7134
7234
|
name: "UzThumbnail",
|
|
7135
7235
|
components: {
|
|
7136
7236
|
NTabs: Ie,
|
|
@@ -7151,29 +7251,29 @@ var Vs = f({
|
|
|
7151
7251
|
setup(e, { slots: t }) {
|
|
7152
7252
|
let n = T(!!t.prefix), r = Je();
|
|
7153
7253
|
return b(() => {
|
|
7154
|
-
|
|
7254
|
+
tc(e.option), $.active !== r.path && rc(r.path, r.fullPath);
|
|
7155
7255
|
}), M(() => r, (e) => {
|
|
7156
|
-
$.active === r.path &&
|
|
7256
|
+
$.active === r.path && rc(e.path, e.fullPath);
|
|
7157
7257
|
}, { deep: !0 }), M(() => e.option, (e) => {
|
|
7158
|
-
|
|
7258
|
+
tc(e);
|
|
7159
7259
|
}, { deep: !0 }), {
|
|
7160
7260
|
thumbnailStore: $,
|
|
7161
7261
|
isSlotPrefix: n,
|
|
7162
7262
|
handleClose: (e) => {
|
|
7163
|
-
|
|
7263
|
+
ac(e);
|
|
7164
7264
|
},
|
|
7165
7265
|
handleChange: (e) => {
|
|
7166
|
-
|
|
7266
|
+
nc(e);
|
|
7167
7267
|
},
|
|
7168
7268
|
handleClear: () => {
|
|
7169
|
-
|
|
7269
|
+
oc();
|
|
7170
7270
|
}
|
|
7171
7271
|
};
|
|
7172
7272
|
}
|
|
7173
7273
|
});
|
|
7174
7274
|
//#endregion
|
|
7175
7275
|
//#region components/thumbnail/index.vue
|
|
7176
|
-
function
|
|
7276
|
+
function cc(t, n, i, o, c, d) {
|
|
7177
7277
|
let f = O("NTabPane"), p = O("UzIcon"), m = O("NIcon"), h = O("NButton"), g = O("NPopconfirm"), _ = O("NFlex"), v = O("NTabs");
|
|
7178
7278
|
return S(), r(v, {
|
|
7179
7279
|
value: t.thumbnailStore.active,
|
|
@@ -7222,33 +7322,33 @@ function Hs(t, n, i, o, c, d) {
|
|
|
7222
7322
|
"on-update:value"
|
|
7223
7323
|
]);
|
|
7224
7324
|
}
|
|
7225
|
-
var
|
|
7226
|
-
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover =
|
|
7227
|
-
var
|
|
7325
|
+
var lc = /*#__PURE__*/ W(sc, [["render", cc]]), uc = "#007AFF", dc = "#0A84FF", fc = "#FF9500", pc = "#FF9F0A", mc = "#28CD41", hc = "#32D74B", gc = "#FFCC00", _c = "#FFD60A", vc = "#FF3B30", yc = "#FF453A";
|
|
7326
|
+
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = dc, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = pc, H.common.successColor = "#32D74B", H.common.successColorHover = hc, H.common.warningColor = "#FFD60A", H.common.successColorHover = _c, H.common.errorColor = "#FF453A", H.common.errorColorHover = yc, 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";
|
|
7327
|
+
var bc = {
|
|
7228
7328
|
common: {
|
|
7229
7329
|
inputColor: "rgba(var(--input))",
|
|
7230
7330
|
borderColor: "rgba(var(--border), 0.7)",
|
|
7231
7331
|
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:
|
|
7332
|
+
primaryColor: uc,
|
|
7333
|
+
primaryColorHover: dc,
|
|
7334
|
+
primaryColorPressed: uc,
|
|
7335
|
+
primaryColorSuppl: uc,
|
|
7336
|
+
infoColor: fc,
|
|
7337
|
+
infoColorHover: pc,
|
|
7338
|
+
infoColorPressed: fc,
|
|
7339
|
+
infoColorSuppl: fc,
|
|
7340
|
+
successColor: mc,
|
|
7341
|
+
successColorHover: hc,
|
|
7342
|
+
successColorPressed: mc,
|
|
7343
|
+
successColorSuppl: mc,
|
|
7344
|
+
warningColor: gc,
|
|
7345
|
+
warningColorHover: _c,
|
|
7346
|
+
warningColorPressed: gc,
|
|
7347
|
+
warningColorSuppl: gc,
|
|
7348
|
+
errorColor: vc,
|
|
7349
|
+
errorColorHover: yc,
|
|
7350
|
+
errorColorPressed: vc,
|
|
7351
|
+
errorColorSuppl: vc,
|
|
7252
7352
|
cardColor: "#fff"
|
|
7253
7353
|
},
|
|
7254
7354
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -7262,7 +7362,7 @@ var ec = {
|
|
|
7262
7362
|
borderRadius: "8px",
|
|
7263
7363
|
color: "#c0c0c0"
|
|
7264
7364
|
}
|
|
7265
|
-
},
|
|
7365
|
+
}, xc = H, Sc = f({
|
|
7266
7366
|
name: "UzWrap",
|
|
7267
7367
|
components: { NConfigProvider: oe },
|
|
7268
7368
|
setup() {
|
|
@@ -7270,14 +7370,14 @@ var ec = {
|
|
|
7270
7370
|
zhCN: We,
|
|
7271
7371
|
dateZhCN: He,
|
|
7272
7372
|
commonStore: K,
|
|
7273
|
-
lightTheme:
|
|
7274
|
-
darkTheme:
|
|
7373
|
+
lightTheme: bc,
|
|
7374
|
+
darkTheme: xc
|
|
7275
7375
|
};
|
|
7276
7376
|
}
|
|
7277
7377
|
});
|
|
7278
7378
|
//#endregion
|
|
7279
7379
|
//#region components/wrap/index.vue
|
|
7280
|
-
function
|
|
7380
|
+
function Cc(e, t, n, i, a, o) {
|
|
7281
7381
|
let s = O("NConfigProvider");
|
|
7282
7382
|
return S(), r(s, {
|
|
7283
7383
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -7296,10 +7396,10 @@ function rc(e, t, n, i, a, o) {
|
|
|
7296
7396
|
"date-locale"
|
|
7297
7397
|
]);
|
|
7298
7398
|
}
|
|
7299
|
-
var
|
|
7399
|
+
var wc = /*#__PURE__*/ W(Sc, [["render", Cc]]);
|
|
7300
7400
|
//#endregion
|
|
7301
7401
|
//#region components/ocr/preprocess.ts
|
|
7302
|
-
function
|
|
7402
|
+
function Tc(e) {
|
|
7303
7403
|
let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
|
|
7304
7404
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
7305
7405
|
let r = 0;
|
|
@@ -7314,7 +7414,7 @@ function ac(e) {
|
|
|
7314
7414
|
}
|
|
7315
7415
|
return c;
|
|
7316
7416
|
}
|
|
7317
|
-
function
|
|
7417
|
+
function Ec(e, t) {
|
|
7318
7418
|
return new Promise((n, r) => {
|
|
7319
7419
|
let i = new Image();
|
|
7320
7420
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -7347,7 +7447,7 @@ function oc(e, t) {
|
|
|
7347
7447
|
}
|
|
7348
7448
|
let u = t.threshold;
|
|
7349
7449
|
if (t.binarize) {
|
|
7350
|
-
t.autoThreshold && (u =
|
|
7450
|
+
t.autoThreshold && (u = Tc(l));
|
|
7351
7451
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
7352
7452
|
let n = l[t] < u ? 0 : 255;
|
|
7353
7453
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -7370,7 +7470,7 @@ function oc(e, t) {
|
|
|
7370
7470
|
}
|
|
7371
7471
|
//#endregion
|
|
7372
7472
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
7373
|
-
var
|
|
7473
|
+
var Dc = f({
|
|
7374
7474
|
name: "UzOcr",
|
|
7375
7475
|
components: {
|
|
7376
7476
|
NButton: R,
|
|
@@ -7407,7 +7507,7 @@ var sc = f({
|
|
|
7407
7507
|
tessedit_char_blacklist: "|"
|
|
7408
7508
|
}), a.value), v = async () => {
|
|
7409
7509
|
if (f.value) try {
|
|
7410
|
-
let e = await
|
|
7510
|
+
let e = await Ec(f.value, {
|
|
7411
7511
|
enabled: o.value,
|
|
7412
7512
|
scale: s.value,
|
|
7413
7513
|
grayscale: !0,
|
|
@@ -7444,7 +7544,7 @@ var sc = f({
|
|
|
7444
7544
|
t.value = !0, r.value = e("OCR.analysis");
|
|
7445
7545
|
let a = n;
|
|
7446
7546
|
if (o.value || s.value > 1) try {
|
|
7447
|
-
let e = await
|
|
7547
|
+
let e = await Ec(n, {
|
|
7448
7548
|
enabled: o.value,
|
|
7449
7549
|
scale: s.value,
|
|
7450
7550
|
grayscale: !0,
|
|
@@ -7506,25 +7606,25 @@ var sc = f({
|
|
|
7506
7606
|
t: e
|
|
7507
7607
|
};
|
|
7508
7608
|
}
|
|
7509
|
-
}),
|
|
7609
|
+
}), Oc = { class: "uz-ocr" }, kc = { class: "uz-ocr-left-col" }, Ac = { class: "uz-ocr-upload-card" }, jc = { class: "uz-ocr-upload-title" }, Mc = {
|
|
7510
7610
|
key: 1,
|
|
7511
7611
|
class: "uz-ocr-preview-panel"
|
|
7512
|
-
},
|
|
7612
|
+
}, Nc = { class: "uz-ocr-preview-box" }, Pc = ["src"], Fc = {
|
|
7513
7613
|
key: 0,
|
|
7514
7614
|
class: "uz-ocr-threshold-badge"
|
|
7515
|
-
},
|
|
7615
|
+
}, Ic = { class: "uz-ocr-preview-box" }, Lc = ["src"], Rc = { class: "uz-ocr-settings-form" }, zc = { class: "uz-settings-row" }, Bc = { class: "uz-settings-label" }, Vc = {
|
|
7516
7616
|
key: 0,
|
|
7517
7617
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
7518
|
-
},
|
|
7618
|
+
}, Hc = { class: "uz-settings-row" }, Uc = { class: "uz-settings-label" }, Wc = { class: "uz-settings-row" }, Gc = { class: "uz-settings-label" }, Kc = { class: "uz-ocr-right-col" }, qc = { class: "uz-ocr-result-header" }, Jc = { class: "uz-result-title" }, Yc = {
|
|
7519
7619
|
key: 0,
|
|
7520
7620
|
class: "uz-ocr-empty-state"
|
|
7521
|
-
},
|
|
7621
|
+
}, Xc = { class: "uz-empty-text" }, Zc = {
|
|
7522
7622
|
key: 1,
|
|
7523
7623
|
class: "uz-ocr-result-tabs"
|
|
7524
7624
|
};
|
|
7525
|
-
function
|
|
7625
|
+
function Qc(e, t, n, s, c, d) {
|
|
7526
7626
|
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",
|
|
7627
|
+
return S(), a("div", Oc, [o("div", kc, [e.rawImage ? (S(), a("div", Mc, [u(m, {
|
|
7528
7628
|
value: e.imagePreviewTab,
|
|
7529
7629
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
7530
7630
|
type: "segment",
|
|
@@ -7534,21 +7634,21 @@ function Mc(e, t, n, s, c, d) {
|
|
|
7534
7634
|
name: "processed",
|
|
7535
7635
|
tab: e.t("OCR.previewProcessed")
|
|
7536
7636
|
}, {
|
|
7537
|
-
default: P(() => [o("div",
|
|
7637
|
+
default: P(() => [o("div", Nc, [o("img", {
|
|
7538
7638
|
src: e.processedImage,
|
|
7539
7639
|
alt: "Processed Preview",
|
|
7540
7640
|
class: "uz-ocr-preview-img"
|
|
7541
|
-
}, null, 8,
|
|
7641
|
+
}, null, 8, Pc), e.preEnabled && e.preBinarize ? (S(), a("div", Fc, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
|
|
7542
7642
|
_: 1
|
|
7543
7643
|
}, 8, ["tab"]), u(p, {
|
|
7544
7644
|
name: "raw",
|
|
7545
7645
|
tab: e.t("OCR.previewRaw")
|
|
7546
7646
|
}, {
|
|
7547
|
-
default: P(() => [o("div",
|
|
7647
|
+
default: P(() => [o("div", Ic, [o("img", {
|
|
7548
7648
|
src: e.rawImage,
|
|
7549
7649
|
alt: "Raw Preview",
|
|
7550
7650
|
class: "uz-ocr-preview-img"
|
|
7551
|
-
}, null, 8,
|
|
7651
|
+
}, null, 8, Lc)])]),
|
|
7552
7652
|
_: 1
|
|
7553
7653
|
}, 8, ["tab"])]),
|
|
7554
7654
|
_: 1
|
|
@@ -7582,7 +7682,7 @@ function Mc(e, t, n, s, c, d) {
|
|
|
7582
7682
|
"directory-dnd": "",
|
|
7583
7683
|
class: "uz-w-full"
|
|
7584
7684
|
}, {
|
|
7585
|
-
default: P(() => [o("div",
|
|
7685
|
+
default: P(() => [o("div", Ac, [
|
|
7586
7686
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
7587
7687
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7588
7688
|
viewBox: "0 0 24 24",
|
|
@@ -7590,79 +7690,79 @@ function Mc(e, t, n, s, c, d) {
|
|
|
7590
7690
|
height: "40",
|
|
7591
7691
|
fill: "currentColor"
|
|
7592
7692
|
}, [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",
|
|
7693
|
+
o("div", jc, A(e.t("OCR.scan")), 1),
|
|
7594
7694
|
t[5] ||= o("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
7595
7695
|
])]),
|
|
7596
7696
|
_: 1
|
|
7597
|
-
}, 8, ["on-before-upload"])), o("div",
|
|
7697
|
+
}, 8, ["on-before-upload"])), o("div", Rc, [o("div", zc, [o("span", Bc, A(e.t("OCR.preprocess")), 1), u(_, {
|
|
7598
7698
|
value: e.preEnabled,
|
|
7599
7699
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
7600
7700
|
size: "small"
|
|
7601
|
-
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div",
|
|
7701
|
+
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div", Vc, [o("div", Hc, [o("span", Uc, A(e.t("OCR.scale")), 1), u(v, {
|
|
7602
7702
|
value: e.preScale,
|
|
7603
7703
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
7604
7704
|
options: e.scaleOptions,
|
|
7605
7705
|
size: "small",
|
|
7606
7706
|
class: "uz-settings-select"
|
|
7607
|
-
}, null, 8, ["value", "options"])]), o("div",
|
|
7707
|
+
}, null, 8, ["value", "options"])]), o("div", Wc, [o("span", Gc, A(e.t("OCR.contrast")), 1), u(_, {
|
|
7608
7708
|
value: e.preContrast,
|
|
7609
7709
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
7610
7710
|
size: "small"
|
|
7611
|
-
}, null, 8, ["value"])])])) : i("", !0)])]), o("div",
|
|
7711
|
+
}, null, 8, ["value"])])])) : i("", !0)])]), o("div", Kc, [o("div", qc, [o("span", Jc, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (S(), a("div", Zc, A(e.fullText), 1)) : (S(), a("div", Yc, [t[7] ||= o("div", { class: "uz-empty-icon" }, "📝", -1), o("div", Xc, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
|
|
7612
7712
|
}
|
|
7613
|
-
var
|
|
7614
|
-
IconList: () =>
|
|
7615
|
-
ReIconList: () =>
|
|
7713
|
+
var $c = /*#__PURE__*/ W(Dc, [["render", Qc], ["__scopeId", "data-v-c7224ff5"]]), el = /* @__PURE__ */ dt({
|
|
7714
|
+
IconList: () => Ln,
|
|
7715
|
+
ReIconList: () => Fn,
|
|
7616
7716
|
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: () =>
|
|
7717
|
+
UzBack: () => Ui,
|
|
7718
|
+
UzBom: () => Ea,
|
|
7719
|
+
UzCamera: () => _o,
|
|
7720
|
+
UzCircle: () => lo,
|
|
7721
|
+
UzDraggableForm: () => na,
|
|
7722
|
+
UzForm: () => Zi,
|
|
7723
|
+
UzFormItem: () => qi,
|
|
7724
|
+
UzFormItemImage: () => fa,
|
|
7725
|
+
UzFormItemTimesPicker: () => ga,
|
|
7726
|
+
UzFormItemUpload: () => ca,
|
|
7727
|
+
UzIcon: () => In,
|
|
7728
|
+
UzOcr: () => $c,
|
|
7729
|
+
UzSearchBar: () => Do,
|
|
7730
|
+
UzSearchMobileBar: () => No,
|
|
7731
|
+
UzSpin: () => es,
|
|
7732
|
+
UzTable: () => gs,
|
|
7733
|
+
UzTableChild: () => Ts,
|
|
7734
|
+
UzTableDrawer: () => Rs,
|
|
7735
|
+
UzTableFile: () => ec,
|
|
7736
|
+
UzTableMobile: () => Js,
|
|
7737
|
+
UzTableQuestChild: () => js,
|
|
7738
|
+
UzThumbnail: () => lc,
|
|
7739
|
+
UzWrap: () => wc,
|
|
7640
7740
|
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
|
-
|
|
7741
|
+
fnActionReduction: () => Bi,
|
|
7742
|
+
fnActionSimplify: () => zi,
|
|
7743
|
+
fnAddThumbnail: () => ic,
|
|
7744
|
+
fnClearAllThumbnail: () => oc,
|
|
7745
|
+
fnDeleteThumbnail: () => ac,
|
|
7746
|
+
fnGetTableData: () => Uo,
|
|
7747
|
+
fnOptionReduction: () => Yo,
|
|
7748
|
+
fnOptionSimplify: () => Jo,
|
|
7749
|
+
fnPrepareFormData: () => Xo,
|
|
7750
|
+
fnPrepareTableData: () => Zo,
|
|
7751
|
+
fnRenderAction: () => Mi,
|
|
7752
|
+
fnSetLang: () => Vn,
|
|
7753
|
+
fnSetTheme: () => Hn,
|
|
7754
|
+
fnSetThumbnail: () => nc,
|
|
7755
|
+
fnTableReduction: () => Go,
|
|
7756
|
+
fnTableSimplify: () => Wo,
|
|
7757
|
+
fnTriggersReduction: () => qo,
|
|
7758
|
+
fnTriggersSimplify: () => Ko,
|
|
7759
|
+
i18n: () => G
|
|
7760
|
+
}), tl = 3840, nl = 2160, rl = w({ scale: 1 });
|
|
7761
|
+
function il(e, t) {
|
|
7762
|
+
tl = e, nl = t;
|
|
7663
7763
|
}
|
|
7664
|
-
function
|
|
7665
|
-
let e = 1, t = window.innerWidth, n = window.innerHeight, r =
|
|
7764
|
+
function al() {
|
|
7765
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = tl, i = nl, a = parseFloat((r / i).toFixed(5));
|
|
7666
7766
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
7667
7767
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
7668
7768
|
e = t > 1 ? 1 : t;
|
|
@@ -7670,17 +7770,17 @@ function zc() {
|
|
|
7670
7770
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
7671
7771
|
e = n > 1 ? 1 : n;
|
|
7672
7772
|
}
|
|
7673
|
-
|
|
7773
|
+
rl.scale = e;
|
|
7674
7774
|
}
|
|
7675
|
-
function
|
|
7676
|
-
let e = $e(
|
|
7775
|
+
function ol() {
|
|
7776
|
+
let e = $e(al, 200);
|
|
7677
7777
|
return e(), window.addEventListener("resize", e), () => {
|
|
7678
|
-
|
|
7778
|
+
tl = 3840, nl = 2160, window.removeEventListener("resize", e);
|
|
7679
7779
|
};
|
|
7680
7780
|
}
|
|
7681
7781
|
//#endregion
|
|
7682
7782
|
//#region components/hooks/useThrottleFn.ts
|
|
7683
|
-
function
|
|
7783
|
+
function sl(e, t = 1e3) {
|
|
7684
7784
|
let r = T(e), i = n(() => et((...e) => r.value([...e]), t));
|
|
7685
7785
|
return x(() => {
|
|
7686
7786
|
i.value.cancel();
|
|
@@ -7692,16 +7792,16 @@ function Vc(e, t = 1e3) {
|
|
|
7692
7792
|
}
|
|
7693
7793
|
//#endregion
|
|
7694
7794
|
//#region components/hooks/useLocalStorage.ts
|
|
7695
|
-
function
|
|
7795
|
+
function cl(e, t) {
|
|
7696
7796
|
return [T(Y(e, t?.defaultValue)), (n) => {
|
|
7697
|
-
n === void 0 ?
|
|
7797
|
+
n === void 0 ? or(e) : J(e, n, t?.expired || "1 Day");
|
|
7698
7798
|
}];
|
|
7699
7799
|
}
|
|
7700
7800
|
//#endregion
|
|
7701
7801
|
//#region components/hooks/useQuery.ts
|
|
7702
|
-
function
|
|
7802
|
+
function ll(e, t, n) {
|
|
7703
7803
|
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
|
-
|
|
7804
|
+
fi(), clearInterval(o.value), o.value = null;
|
|
7705
7805
|
}, p = async () => {
|
|
7706
7806
|
if (!s.value) {
|
|
7707
7807
|
h(!0, "loading");
|
|
@@ -7737,7 +7837,7 @@ function Uc(e, t, n) {
|
|
|
7737
7837
|
}, g = (e) => {
|
|
7738
7838
|
l.value = e;
|
|
7739
7839
|
}, _ = () => {
|
|
7740
|
-
|
|
7840
|
+
fi(), i.value && i.value();
|
|
7741
7841
|
}, v = () => {
|
|
7742
7842
|
_(), p(), n?.pollingInterval && (f(), o.value = setInterval(() => {
|
|
7743
7843
|
p();
|
|
@@ -7765,26 +7865,26 @@ function Uc(e, t, n) {
|
|
|
7765
7865
|
}
|
|
7766
7866
|
//#endregion
|
|
7767
7867
|
//#region package.json
|
|
7768
|
-
var
|
|
7769
|
-
async function
|
|
7868
|
+
var ul = "0.1.112", dl;
|
|
7869
|
+
async function fl() {
|
|
7770
7870
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7771
7871
|
method: "HEAD",
|
|
7772
7872
|
cache: "no-cache"
|
|
7773
7873
|
});
|
|
7774
7874
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
7775
7875
|
}
|
|
7776
|
-
async function
|
|
7777
|
-
let e = await
|
|
7778
|
-
|
|
7876
|
+
async function pl() {
|
|
7877
|
+
let e = await fl();
|
|
7878
|
+
dl !== e && Un(!0);
|
|
7779
7879
|
}
|
|
7780
|
-
async function
|
|
7781
|
-
|
|
7782
|
-
|
|
7880
|
+
async function ml() {
|
|
7881
|
+
dl = await fl(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
7882
|
+
pl();
|
|
7783
7883
|
}, 6e4);
|
|
7784
7884
|
}
|
|
7785
7885
|
//#endregion
|
|
7786
7886
|
//#region components/create.ts
|
|
7787
|
-
function
|
|
7887
|
+
function hl({ components: e = [] } = {}) {
|
|
7788
7888
|
let t = [];
|
|
7789
7889
|
function n(e, t, n) {
|
|
7790
7890
|
e.component(t) || e.component(t, n);
|
|
@@ -7797,16 +7897,16 @@ function Yc({ components: e = [] } = {}) {
|
|
|
7797
7897
|
});
|
|
7798
7898
|
}), i)) {
|
|
7799
7899
|
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
|
-
|
|
7900
|
+
Wn(e), Bn(o), Vn(l), Hn(c), G.global.locale.value = l, a && ml(), t && ni(r, t, n);
|
|
7801
7901
|
}
|
|
7802
7902
|
}
|
|
7803
7903
|
return {
|
|
7804
|
-
version:
|
|
7904
|
+
version: ul,
|
|
7805
7905
|
install: r
|
|
7806
7906
|
};
|
|
7807
7907
|
}
|
|
7808
7908
|
//#endregion
|
|
7809
7909
|
//#region components/preset.ts
|
|
7810
|
-
var
|
|
7910
|
+
var gl = hl({ components: Object.keys(el).map((e) => el[e]) }), _l = gl.install;
|
|
7811
7911
|
//#endregion
|
|
7812
|
-
export {
|
|
7912
|
+
export { mi as BLOB, hi as CUSTOM, gi as FILE, pi as GET, Ln as IconList, Z as POST, Fn as ReIconList, ft as UzActionButton, Ui as UzBack, Ea as UzBom, _o as UzCamera, lo as UzCircle, na as UzDraggableForm, Zi as UzForm, qi as UzFormItem, fa as UzFormItemImage, ga as UzFormItemTimesPicker, ca as UzFormItemUpload, In as UzIcon, $c as UzOcr, Do as UzSearchBar, No as UzSearchMobileBar, es as UzSpin, gs as UzTable, Ts as UzTableChild, Rs as UzTableDrawer, ec as UzTableFile, Js as UzTableMobile, js as UzTableQuestChild, lc as UzThumbnail, wc as UzWrap, K as commonStore, hl as create, xc as darkTheme, gl as default, Bi as fnActionReduction, zi as fnActionSimplify, ic as fnAddThumbnail, fi as fnCancelFetch, oc as fnClearAllThumbnail, al as fnComputedScale, zn as fnCreateRouter, or as fnDelStorage, cr as fnDelStorageAll, sr as fnDelStorageByPrefix, ac as fnDeleteThumbnail, ar as fnDialog, q as fnErrorLog, vr as fnFilterByPinyinInitials, dr as fnFormatTime, hr as fnFormatUnits, mr as fnFullScreen, Y as fnGetStorage, Uo as fnGetTableData, ol as fnListenerScale, ir as fnNotification, Yo as fnOptionReduction, Jo as fnOptionSimplify, ur as fnPageModel2Naive, Xo as fnPrepareFormData, Zo as fnPrepareTableData, Mi as fnRenderAction, lr as fnScrollTop, Vn as fnSetLang, il as fnSetNormalWidthAndHeight, J as fnSetStorage, Hn as fnSetTheme, nc as fnSetThumbnail, Go as fnTableReduction, Wo as fnTableSimplify, pr as fnThrottle, fr as fnTitle, qo as fnTriggersReduction, Ko as fnTriggersSimplify, G as i18n, _l as install, bc as lightTheme, yr as mergeColumns, Rn as router, rl as scaleStore, _a as useDebounceFn, cl as useLocalStorage, ll as useQuery, sl as useThrottleFn };
|