@unizhen/ui 0.1.110 → 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/ChatLine.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/components/icon/reicon/Printer.vue.d.ts +4 -0
- package/lib/ui.js +813 -691
- 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,76 @@ 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] ||= [o("
|
|
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] ||= [
|
|
128
|
+
o("path", {
|
|
129
|
+
opacity: "0.5",
|
|
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",
|
|
131
|
+
fill: "currentColor"
|
|
132
|
+
}, null, -1),
|
|
133
|
+
o("path", {
|
|
134
|
+
d: "M7.25 9C7.25 8.58579 7.58579 8.25 8 8.25H16C16.4142 8.25 16.75 8.58579 16.75 9C16.75 9.41421 16.4142 9.75 16 9.75H8C7.58579 9.75 7.25 9.41421 7.25 9Z",
|
|
135
|
+
fill: "currentColor"
|
|
136
|
+
}, null, -1),
|
|
137
|
+
o("path", {
|
|
138
|
+
d: "M7.25 12.5C7.25 12.0858 7.58579 11.75 8 11.75H13.5C13.9142 11.75 14.25 12.0858 14.25 12.5C14.25 12.9142 13.9142 13.25 13.5 13.25H8C7.58579 13.25 7.25 12.9142 7.25 12.5Z",
|
|
139
|
+
fill: "currentColor"
|
|
140
|
+
}, null, -1)
|
|
141
|
+
]]);
|
|
142
|
+
}
|
|
143
|
+
var Mt = /*#__PURE__*/ W(kt, [["render", jt]]), Nt = {}, Pt = {
|
|
144
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
145
|
+
viewBox: "0 0 24 24",
|
|
146
|
+
fill: "none"
|
|
147
|
+
};
|
|
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", {
|
|
111
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",
|
|
112
181
|
fill: "currentColor"
|
|
113
182
|
})], -1), o("path", {
|
|
@@ -117,13 +186,13 @@ function Dt(e, t) {
|
|
|
117
186
|
fill: "currentColor"
|
|
118
187
|
}, null, -1)]]);
|
|
119
188
|
}
|
|
120
|
-
var
|
|
189
|
+
var Wt = /*#__PURE__*/ W(Vt, [["render", Ut]]), Gt = {}, Kt = {
|
|
121
190
|
xmlns: "http://www.w3.org/2000/svg",
|
|
122
191
|
viewBox: "0 0 24 24",
|
|
123
192
|
fill: "none"
|
|
124
193
|
};
|
|
125
|
-
function
|
|
126
|
-
return S(), a("svg",
|
|
194
|
+
function qt(e, t) {
|
|
195
|
+
return S(), a("svg", Kt, [...t[0] ||= [o("g", { opacity: "0.5" }, [o("path", {
|
|
127
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",
|
|
128
197
|
fill: "currentColor"
|
|
129
198
|
})], -1), o("path", {
|
|
@@ -133,13 +202,13 @@ function jt(e, t) {
|
|
|
133
202
|
fill: "currentColor"
|
|
134
203
|
}, null, -1)]]);
|
|
135
204
|
}
|
|
136
|
-
var
|
|
205
|
+
var Jt = /*#__PURE__*/ W(Gt, [["render", qt]]), Yt = {}, Xt = {
|
|
137
206
|
xmlns: "http://www.w3.org/2000/svg",
|
|
138
207
|
viewBox: "0 0 24 24",
|
|
139
208
|
fill: "none"
|
|
140
209
|
};
|
|
141
|
-
function
|
|
142
|
-
return S(), a("svg",
|
|
210
|
+
function Zt(e, t) {
|
|
211
|
+
return S(), a("svg", Xt, [...t[0] ||= [
|
|
143
212
|
o("path", {
|
|
144
213
|
opacity: "0.5",
|
|
145
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",
|
|
@@ -159,21 +228,69 @@ function Ft(e, t) {
|
|
|
159
228
|
}, null, -1)
|
|
160
229
|
]]);
|
|
161
230
|
}
|
|
162
|
-
var
|
|
231
|
+
var Qt = /*#__PURE__*/ W(Yt, [["render", Zt]]), $t = {}, en = {
|
|
163
232
|
xmlns: "http://www.w3.org/2000/svg",
|
|
164
233
|
viewBox: "0 0 24 24",
|
|
165
234
|
fill: "none"
|
|
166
235
|
};
|
|
167
|
-
function
|
|
168
|
-
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
|
+
]]);
|
|
169
256
|
}
|
|
170
|
-
var
|
|
257
|
+
var nn = /*#__PURE__*/ W($t, [["render", tn]]), rn = {}, an = {
|
|
171
258
|
xmlns: "http://www.w3.org/2000/svg",
|
|
172
259
|
viewBox: "0 0 24 24",
|
|
173
260
|
fill: "none"
|
|
174
261
|
};
|
|
175
|
-
function
|
|
176
|
-
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] ||= [
|
|
177
294
|
o("path", {
|
|
178
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",
|
|
179
296
|
fill: "currentColor"
|
|
@@ -191,21 +308,29 @@ function Ut(e, t) {
|
|
|
191
308
|
}, null, -1)
|
|
192
309
|
]]);
|
|
193
310
|
}
|
|
194
|
-
var
|
|
311
|
+
var hn = /*#__PURE__*/ W(fn, [["render", mn]]), gn = {}, _n = {
|
|
195
312
|
xmlns: "http://www.w3.org/2000/svg",
|
|
196
313
|
viewBox: "0 0 24 24",
|
|
197
314
|
fill: "none"
|
|
198
315
|
};
|
|
199
|
-
function
|
|
200
|
-
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)]]);
|
|
201
318
|
}
|
|
202
|
-
var
|
|
319
|
+
var yn = /*#__PURE__*/ W(gn, [["render", vn]]), bn = {}, xn = {
|
|
203
320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
204
321
|
viewBox: "0 0 24 24",
|
|
205
322
|
fill: "none"
|
|
206
323
|
};
|
|
207
|
-
function
|
|
208
|
-
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)]]);
|
|
326
|
+
}
|
|
327
|
+
var Cn = /*#__PURE__*/ W(bn, [["render", Sn]]), wn = {}, Tn = {
|
|
328
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
329
|
+
viewBox: "0 0 24 24",
|
|
330
|
+
fill: "none"
|
|
331
|
+
};
|
|
332
|
+
function En(e, t) {
|
|
333
|
+
return S(), a("svg", Tn, [...t[0] ||= [o("path", {
|
|
209
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",
|
|
210
335
|
fill: "currentColor"
|
|
211
336
|
}, null, -1), o("path", {
|
|
@@ -214,60 +339,57 @@ function Zt(e, t) {
|
|
|
214
339
|
fill: "currentColor"
|
|
215
340
|
}, null, -1)]]);
|
|
216
341
|
}
|
|
217
|
-
var
|
|
342
|
+
var Dn = /*#__PURE__*/ W(wn, [["render", En]]), On = {}, kn = {
|
|
218
343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
219
344
|
viewBox: "0 0 24 24",
|
|
220
345
|
fill: "none"
|
|
221
346
|
};
|
|
222
|
-
function
|
|
223
|
-
return S(), a("svg",
|
|
347
|
+
function An(e, t) {
|
|
348
|
+
return S(), a("svg", kn, [...t[0] ||= [o("path", {
|
|
224
349
|
"fill-rule": "evenodd",
|
|
225
350
|
"clip-rule": "evenodd",
|
|
226
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",
|
|
227
352
|
fill: "currentColor"
|
|
228
353
|
}, null, -1)]]);
|
|
229
354
|
}
|
|
230
|
-
var
|
|
355
|
+
var jn = /*#__PURE__*/ W(On, [["render", An]]), Mn = {}, Nn = {
|
|
231
356
|
xmlns: "http://www.w3.org/2000/svg",
|
|
232
357
|
viewBox: "0 0 24 24",
|
|
233
358
|
fill: "none"
|
|
234
359
|
};
|
|
235
|
-
function
|
|
236
|
-
return S(), a("svg",
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}, null, -1),
|
|
247
|
-
o("path", {
|
|
248
|
-
d: "M9.42546 10.2538C9.83762 10.2125 10.2052 10.5133 10.2464 10.9254L10.7464 15.9254C10.7876 16.3376 10.4869 16.7051 10.0747 16.7463C9.66256 16.7875 9.29503 16.4868 9.25381 16.0747L8.75381 11.0747C8.7126 10.6625 9.01331 10.295 9.42546 10.2538Z",
|
|
249
|
-
fill: "currentColor"
|
|
250
|
-
}, null, -1),
|
|
251
|
-
o("path", {
|
|
252
|
-
d: "M14.5747 10.2538C14.9869 10.295 15.2876 10.6625 15.2464 11.0747L14.7464 16.0747C14.7052 16.4868 14.3376 16.7875 13.9255 16.7463C13.5133 16.7051 13.2126 16.3376 13.2538 15.9254L13.7538 10.9254C13.795 10.5133 14.1626 10.2125 14.5747 10.2538Z",
|
|
253
|
-
fill: "currentColor"
|
|
254
|
-
}, null, -1)
|
|
255
|
-
]]);
|
|
360
|
+
function Pn(e, t) {
|
|
361
|
+
return S(), a("svg", Nn, [...t[0] ||= [o("path", {
|
|
362
|
+
opacity: "0.5",
|
|
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",
|
|
364
|
+
fill: "currentColor"
|
|
365
|
+
}, null, -1), o("path", {
|
|
366
|
+
"fill-rule": "evenodd",
|
|
367
|
+
"clip-rule": "evenodd",
|
|
368
|
+
d: "M3.51725 12.1152L3.22723 10.1817L5.07161 8.13244L3.68916 6.75H2.72952C2.66003 6.18322 2.61535 5.68747 2.60645 5.25H21.3935C21.3846 5.68747 21.3399 6.18322 21.2704 6.75H20.3105L18.928 8.13244L20.7727 10.182L20.4828 12.1148L18.8824 13.8219L20.0513 14.9909L19.7746 16.8355L17.8559 14.9168L15.9791 16.9187L17.3105 18.25H19.556C19.4582 18.8397 19.3611 19.3331 19.242 19.75H4.75791C4.63884 19.3331 4.54177 18.8397 4.44393 18.25H6.68916L8.02051 16.9187L6.14373 14.9168L4.22526 16.8352L3.94856 14.9906L5.11729 13.8219L3.51725 12.1152ZM6.07644 7.01596L5.81048 6.75H6.3158L6.07644 7.01596ZM7.13857 8.07809L8.33385 6.75H9.68916L10.9392 8L8.99982 9.93934L7.13857 8.07809ZM11.9998 6.93934L11.8105 6.75H12.1892L11.9998 6.93934ZM13.0605 8L14.3105 6.75H15.6658L16.8611 8.07809L14.9998 9.93934L13.0605 8ZM17.9232 7.01596L17.6838 6.75H18.1892L17.9232 7.01596ZM16.0605 11L17.8659 9.19457L19.4815 10.9896L17.8211 12.7607L16.0605 11ZM14.9998 12.0607L16.7947 13.8555L14.9179 15.8574L13.0605 14L14.9998 12.0607ZM11.9998 15.0607L13.8915 16.9523L12.6749 18.25H11.3247L10.1082 16.9523L11.9998 15.0607ZM15.1892 18.25H14.731L14.9527 18.0135L15.1892 18.25ZM9.04696 18.0135L9.26865 18.25H8.81048L9.04696 18.0135ZM10.9392 14L9.08172 15.8574L7.20494 13.8555L8.99982 12.0607L10.9392 14ZM7.93916 11L6.1785 12.7607L4.51817 10.9896L6.13373 9.19457L7.93916 11ZM11.9998 12.9393L10.0605 11L11.9998 9.06066L13.9392 11L11.9998 12.9393Z",
|
|
369
|
+
fill: "currentColor"
|
|
370
|
+
}, null, -1)]]);
|
|
256
371
|
}
|
|
257
|
-
var
|
|
372
|
+
var Fn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
258
373
|
"./Add.vue": gt,
|
|
259
374
|
"./ArrowDown.vue": bt,
|
|
260
375
|
"./ArrowLeft.vue": wt,
|
|
261
|
-
"./
|
|
262
|
-
"./
|
|
263
|
-
"./
|
|
264
|
-
"./
|
|
265
|
-
"./
|
|
266
|
-
"./
|
|
267
|
-
"./
|
|
268
|
-
"./
|
|
269
|
-
"./
|
|
270
|
-
|
|
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({
|
|
271
393
|
name: "UzIcon",
|
|
272
394
|
props: {
|
|
273
395
|
icon: {
|
|
@@ -284,7 +406,7 @@ var sn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
284
406
|
let t = T(!0), n = T(), r = (r) => {
|
|
285
407
|
if (t.value = !1, r && typeof r == "string") {
|
|
286
408
|
try {
|
|
287
|
-
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];
|
|
288
410
|
} catch {}
|
|
289
411
|
g(() => {
|
|
290
412
|
t.value = !0;
|
|
@@ -297,16 +419,16 @@ var sn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
297
419
|
r(e);
|
|
298
420
|
}), () => t.value ? n.value && n.value.render(null, []) : null;
|
|
299
421
|
}
|
|
300
|
-
}),
|
|
301
|
-
function
|
|
302
|
-
return
|
|
422
|
+
}), Ln = Fn, Rn;
|
|
423
|
+
function zn(e, t = "/") {
|
|
424
|
+
return Rn = Ke({
|
|
303
425
|
history: qe(t),
|
|
304
426
|
routes: e,
|
|
305
427
|
scrollBehavior: () => ({
|
|
306
428
|
left: 0,
|
|
307
429
|
top: 0
|
|
308
430
|
})
|
|
309
|
-
}),
|
|
431
|
+
}), Rn;
|
|
310
432
|
}
|
|
311
433
|
var G = Xe({
|
|
312
434
|
legacy: !1,
|
|
@@ -408,16 +530,16 @@ var G = Xe({
|
|
|
408
530
|
language: !1,
|
|
409
531
|
lang: "zh-CN"
|
|
410
532
|
});
|
|
411
|
-
function
|
|
533
|
+
function Bn(e) {
|
|
412
534
|
K.language = e;
|
|
413
535
|
}
|
|
414
|
-
function
|
|
536
|
+
function Vn(e) {
|
|
415
537
|
let t;
|
|
416
538
|
t = e || (K.lang === "zh-CN" ? "en-US" : "zh-CN"), J("lang", t, 0), K.lang = t;
|
|
417
539
|
let n = document.body;
|
|
418
540
|
n.dataset.lang = t, G.global.locale.value = t;
|
|
419
541
|
}
|
|
420
|
-
function
|
|
542
|
+
function Hn(e) {
|
|
421
543
|
let t = document.body;
|
|
422
544
|
t.classList.add("remove-all-transition");
|
|
423
545
|
let n = document.querySelector("meta[name=theme-color]");
|
|
@@ -425,45 +547,45 @@ function mn(e) {
|
|
|
425
547
|
t.classList.remove("remove-all-transition");
|
|
426
548
|
}, 0);
|
|
427
549
|
}
|
|
428
|
-
function
|
|
550
|
+
function Un(e) {
|
|
429
551
|
K.needUpdate = e;
|
|
430
552
|
}
|
|
431
|
-
function
|
|
553
|
+
function Wn(e) {
|
|
432
554
|
K.title = e;
|
|
433
555
|
}
|
|
434
|
-
var
|
|
556
|
+
var Gn = () => {
|
|
435
557
|
K.isMobile = window.screen.availWidth < 769;
|
|
436
558
|
};
|
|
437
|
-
window.addEventListener("resize",
|
|
559
|
+
window.addEventListener("resize", Gn), Gn();
|
|
438
560
|
//#endregion
|
|
439
561
|
//#region components/localStorage.ts
|
|
440
|
-
var
|
|
441
|
-
function
|
|
442
|
-
|
|
562
|
+
var Kn = window.localStorage;
|
|
563
|
+
function qn(e, t) {
|
|
564
|
+
Kn.setItem(e, JSON.stringify(t));
|
|
443
565
|
}
|
|
444
|
-
function
|
|
445
|
-
let t =
|
|
566
|
+
function Jn(e) {
|
|
567
|
+
let t = Kn.getItem(e);
|
|
446
568
|
if (t) return JSON.parse(t);
|
|
447
569
|
}
|
|
448
|
-
function
|
|
449
|
-
|
|
570
|
+
function Yn(e) {
|
|
571
|
+
Kn.removeItem(e);
|
|
450
572
|
}
|
|
451
|
-
function
|
|
573
|
+
function Xn() {
|
|
452
574
|
return Date.parse(String(/* @__PURE__ */ new Date()));
|
|
453
575
|
}
|
|
454
|
-
var
|
|
576
|
+
var Zn = "local-", Qn = new class {
|
|
455
577
|
namespace;
|
|
456
578
|
mapKey;
|
|
457
579
|
map;
|
|
458
580
|
constructor(e = "") {
|
|
459
|
-
this.namespace = e, this.mapKey =
|
|
581
|
+
this.namespace = e, this.mapKey = Zn + this.namespace, this.map = Jn(this.mapKey) || {};
|
|
460
582
|
}
|
|
461
583
|
set(e, t, n = 0) {
|
|
462
584
|
let r = this.getReallyKey(e), i = {
|
|
463
585
|
expires: n,
|
|
464
|
-
time:
|
|
586
|
+
time: Xn()
|
|
465
587
|
};
|
|
466
|
-
|
|
588
|
+
qn(r, t), this.map[e] = i, qn(this.mapKey, this.map);
|
|
467
589
|
}
|
|
468
590
|
getReallyKey(e) {
|
|
469
591
|
return this.namespace + "-" + e;
|
|
@@ -471,9 +593,9 @@ var Cn = "local-", wn = new class {
|
|
|
471
593
|
get(e, t) {
|
|
472
594
|
let n = this.getReallyKey(e), r = this.map[e];
|
|
473
595
|
if (r) {
|
|
474
|
-
let i =
|
|
596
|
+
let i = Jn(n);
|
|
475
597
|
if (r.expires > 0) {
|
|
476
|
-
if (
|
|
598
|
+
if (Xn() - r.time <= r.expires) return i === !1 || i ? i : t;
|
|
477
599
|
this.delete(e);
|
|
478
600
|
} else return i === !1 || i ? i : t;
|
|
479
601
|
}
|
|
@@ -481,7 +603,7 @@ var Cn = "local-", wn = new class {
|
|
|
481
603
|
}
|
|
482
604
|
delete(e) {
|
|
483
605
|
let t = this.getReallyKey(e);
|
|
484
|
-
delete this.map[e],
|
|
606
|
+
delete this.map[e], qn(this.mapKey, this.map), Yn(t);
|
|
485
607
|
}
|
|
486
608
|
deleteByPrefix(e) {
|
|
487
609
|
for (let t in this.map) t.indexOf(e) > -1 && this.delete(t);
|
|
@@ -489,12 +611,12 @@ var Cn = "local-", wn = new class {
|
|
|
489
611
|
deleteAll() {
|
|
490
612
|
for (let e in this.map) this.delete(e);
|
|
491
613
|
}
|
|
492
|
-
}("uz"),
|
|
614
|
+
}("uz"), $n = new Intl.Collator("zh-Hans-u-co-pinyin"), er = [..."阿八嚓哒妸发旮哈讥咔垃妈拏噢妑七呥仨他屲夕丫帀"], tr = [..."ABCDEFGHJKLMNOPQRSTWXYZ"], { notification: nr, dialog: rr } = Ve(["notification", "dialog"], {
|
|
493
615
|
configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
|
|
494
616
|
notificationProviderProps: { placement: "bottom-right" }
|
|
495
|
-
}),
|
|
617
|
+
}), ir = nr, ar = rr;
|
|
496
618
|
function q(e) {
|
|
497
|
-
console.log(e),
|
|
619
|
+
console.log(e), nr.error({
|
|
498
620
|
content: e.message,
|
|
499
621
|
duration: 3e3
|
|
500
622
|
});
|
|
@@ -516,18 +638,18 @@ function J(e, t, n = "1 Day") {
|
|
|
516
638
|
}
|
|
517
639
|
n = Number(t[0]) * e;
|
|
518
640
|
}
|
|
519
|
-
|
|
641
|
+
Qn.set(e, t, n);
|
|
520
642
|
}
|
|
521
643
|
function Y(e, t) {
|
|
522
|
-
return
|
|
644
|
+
return Qn.get(e, t);
|
|
523
645
|
}
|
|
524
|
-
var
|
|
525
|
-
|
|
526
|
-
},
|
|
527
|
-
|
|
528
|
-
},
|
|
529
|
-
|
|
530
|
-
},
|
|
646
|
+
var or = (e) => {
|
|
647
|
+
Qn.delete(e);
|
|
648
|
+
}, sr = (e) => {
|
|
649
|
+
Qn.deleteByPrefix(e);
|
|
650
|
+
}, cr = () => {
|
|
651
|
+
Qn.deleteAll();
|
|
652
|
+
}, lr = (e = 0) => {
|
|
531
653
|
let t = document.documentElement, n = document.querySelectorAll(".uz-table-m-content");
|
|
532
654
|
t && (t.scrollTop = e, setTimeout(() => {
|
|
533
655
|
t.scrollTop = e;
|
|
@@ -535,7 +657,7 @@ var Mn = (e) => {
|
|
|
535
657
|
t.scrollTop = e;
|
|
536
658
|
});
|
|
537
659
|
};
|
|
538
|
-
function
|
|
660
|
+
function ur(e) {
|
|
539
661
|
if (!e.records) {
|
|
540
662
|
let t = e;
|
|
541
663
|
return {
|
|
@@ -579,7 +701,7 @@ function In(e) {
|
|
|
579
701
|
records: e.records
|
|
580
702
|
};
|
|
581
703
|
}
|
|
582
|
-
var
|
|
704
|
+
var dr = (e, t = "yyyy-MM-dd") => {
|
|
583
705
|
if (!e) return "";
|
|
584
706
|
typeof e == "string" && (e = e.replace(/年/g, "-").replace(/月/g, "-").replace(/日/g, ""));
|
|
585
707
|
let n = new Date(e);
|
|
@@ -597,9 +719,9 @@ var Ln = (e, t = "yyyy-MM-dd") => {
|
|
|
597
719
|
RegExp.$1.length !== 1 && (n = ("00" + r[e]).substr(("" + r[e]).length)), t = t.replace(RegExp.$1, n);
|
|
598
720
|
}
|
|
599
721
|
return t;
|
|
600
|
-
},
|
|
722
|
+
}, fr = (e) => {
|
|
601
723
|
document.title = `${e} - ${K.title}`;
|
|
602
|
-
},
|
|
724
|
+
}, pr = (e, t = 500) => {
|
|
603
725
|
let n = e, r, i = !1, a = function(...e) {
|
|
604
726
|
if (i) {
|
|
605
727
|
n.apply(a, e), i = !1;
|
|
@@ -611,10 +733,10 @@ var Ln = (e, t = "yyyy-MM-dd") => {
|
|
|
611
733
|
};
|
|
612
734
|
return a;
|
|
613
735
|
};
|
|
614
|
-
function
|
|
736
|
+
function mr(e, t) {
|
|
615
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());
|
|
616
738
|
}
|
|
617
|
-
function
|
|
739
|
+
function hr(e, t = 0) {
|
|
618
740
|
let n = [
|
|
619
741
|
"",
|
|
620
742
|
"k",
|
|
@@ -624,20 +746,20 @@ function Vn(e, t = 0) {
|
|
|
624
746
|
], r = Math.floor(Math.log10(Math.abs(e)) / 3), i = Math.max(0, Math.min(r, n.length - 1)), a = n[i];
|
|
625
747
|
return a ? (e / 10 ** (i * 3)).toFixed(t) + a : (e / 10 ** (i * 3)).toFixed(0);
|
|
626
748
|
}
|
|
627
|
-
function
|
|
749
|
+
function gr(e) {
|
|
628
750
|
if (/^[a-z0-9]$/i.test(e)) return e.toLowerCase();
|
|
629
751
|
if (!/^[\u4e00-\u9fff]$/.test(e)) return "";
|
|
630
|
-
for (let t =
|
|
752
|
+
for (let t = er.length - 1; t >= 0; --t) if ($n.compare(e, er[t]) >= 0) return tr[t].toLowerCase();
|
|
631
753
|
return "";
|
|
632
754
|
}
|
|
633
|
-
function
|
|
634
|
-
return [...String(e)].map(
|
|
755
|
+
function _r(e) {
|
|
756
|
+
return [...String(e)].map(gr).join("");
|
|
635
757
|
}
|
|
636
|
-
function
|
|
758
|
+
function vr(e, t) {
|
|
637
759
|
let n = String(t).trim().toLowerCase();
|
|
638
|
-
return n === "" || e.toLowerCase().includes(n) ||
|
|
760
|
+
return n === "" || e.toLowerCase().includes(n) || _r(e).includes(n);
|
|
639
761
|
}
|
|
640
|
-
function
|
|
762
|
+
function yr(e, t) {
|
|
641
763
|
e.forEach((e) => {
|
|
642
764
|
let n = t.find((t) => t.key === e.key);
|
|
643
765
|
n && (e.hide = n.hide, e.show = n.show, e.width = n.width);
|
|
@@ -650,8 +772,8 @@ function Gn(e, t) {
|
|
|
650
772
|
}
|
|
651
773
|
//#endregion
|
|
652
774
|
//#region components/monitor.ts
|
|
653
|
-
var
|
|
654
|
-
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);
|
|
655
777
|
if (t) return `Android ${t[1]}`;
|
|
656
778
|
let n = /(?:IPHONE|IPAD).*OS ([\d_]+)/.exec(e);
|
|
657
779
|
if (n) return `${e.includes("IPAD") ? "iPad" : "iPhone"} ${n[1].replace(/_/g, ".")}`;
|
|
@@ -666,8 +788,8 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
666
788
|
}[r[1]] ?? `Windows NT ${r[1]}`;
|
|
667
789
|
let i = /MAC OS X ([\d_]+)/.exec(e);
|
|
668
790
|
return i ? `macOS ${i[1].replace(/_/g, ".")}` : "Other Platform";
|
|
669
|
-
},
|
|
670
|
-
let e =
|
|
791
|
+
}, Fr = () => {
|
|
792
|
+
let e = Nr();
|
|
671
793
|
for (let [t, n] of [
|
|
672
794
|
[/EDG(?:A|IOS)?\/([\d.]+)/, "Edge"],
|
|
673
795
|
[/OPR\/([\d.]+)/, "Opera"],
|
|
@@ -682,7 +804,7 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
682
804
|
if (r) return `${n} ${r[1]}`;
|
|
683
805
|
}
|
|
684
806
|
return "Others";
|
|
685
|
-
},
|
|
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) => {
|
|
686
808
|
let t = /* @__PURE__ */ new WeakSet();
|
|
687
809
|
try {
|
|
688
810
|
return JSON.stringify(e, (e, n) => {
|
|
@@ -696,7 +818,7 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
696
818
|
} catch {
|
|
697
819
|
return String(e);
|
|
698
820
|
}
|
|
699
|
-
},
|
|
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) => {
|
|
700
822
|
let t = String(e || "");
|
|
701
823
|
if (!t) return "";
|
|
702
824
|
try {
|
|
@@ -705,7 +827,7 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
705
827
|
} catch {
|
|
706
828
|
return t.split(/[?#]/, 1)[0];
|
|
707
829
|
}
|
|
708
|
-
},
|
|
830
|
+
}, Vr = (e, t) => {
|
|
709
831
|
let n = [];
|
|
710
832
|
try {
|
|
711
833
|
let t = new URL(e, location.href).searchParams.toString();
|
|
@@ -722,8 +844,8 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
722
844
|
}), n.push(e.join("&"));
|
|
723
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]");
|
|
724
846
|
}
|
|
725
|
-
return
|
|
726
|
-
},
|
|
847
|
+
return Ir(Lr(n.filter(Boolean).join(" | ")), xr);
|
|
848
|
+
}, Hr = (e) => {
|
|
727
849
|
let t;
|
|
728
850
|
if (typeof TextEncoder < "u") {
|
|
729
851
|
let n = new TextEncoder().encode(e);
|
|
@@ -738,8 +860,8 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
738
860
|
t = n.map((e) => String.fromCharCode(e)).join("");
|
|
739
861
|
}
|
|
740
862
|
return window.btoa(t);
|
|
741
|
-
},
|
|
742
|
-
let n =
|
|
863
|
+
}, Ur = (e, t) => {
|
|
864
|
+
let n = Hr(t), r = () => {
|
|
743
865
|
let t = new XMLHttpRequest();
|
|
744
866
|
t.open("POST", e, !0), t.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"), t.send(n);
|
|
745
867
|
}, i = () => {
|
|
@@ -749,7 +871,7 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
749
871
|
try {
|
|
750
872
|
r();
|
|
751
873
|
} catch {}
|
|
752
|
-
}, a =
|
|
874
|
+
}, a = Or ?? window.fetch;
|
|
753
875
|
if (typeof a == "function") {
|
|
754
876
|
a.call(window, e, {
|
|
755
877
|
method: "POST",
|
|
@@ -763,87 +885,87 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
763
885
|
return;
|
|
764
886
|
}
|
|
765
887
|
i();
|
|
766
|
-
},
|
|
767
|
-
if (!
|
|
768
|
-
|
|
888
|
+
}, Wr = (e, t) => (n, r, i) => {
|
|
889
|
+
if (!Mr) {
|
|
890
|
+
Mr = !0;
|
|
769
891
|
try {
|
|
770
|
-
let a =
|
|
771
|
-
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 &&
|
|
892
|
+
let a = zr(i);
|
|
893
|
+
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 && Ur(e, Rr({
|
|
772
894
|
type: n,
|
|
773
895
|
time: Date.now(),
|
|
774
|
-
url:
|
|
775
|
-
browser:
|
|
776
|
-
platform:
|
|
896
|
+
url: Br(r) || Br(location.href),
|
|
897
|
+
browser: Fr(),
|
|
898
|
+
platform: Pr(),
|
|
777
899
|
message: `[${n}] [${window.document.title}] [${a}]`,
|
|
778
900
|
info: t ? t() : ""
|
|
779
901
|
}));
|
|
780
902
|
} catch {} finally {
|
|
781
|
-
|
|
903
|
+
Mr = !1;
|
|
782
904
|
}
|
|
783
905
|
}
|
|
784
|
-
},
|
|
785
|
-
for (let r of
|
|
786
|
-
},
|
|
787
|
-
let t =
|
|
788
|
-
return
|
|
789
|
-
},
|
|
790
|
-
|
|
791
|
-
let t =
|
|
792
|
-
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`);
|
|
793
915
|
}), e.addEventListener("timeout", () => {
|
|
794
|
-
let t =
|
|
795
|
-
t && !
|
|
916
|
+
let t = wr.get(e);
|
|
917
|
+
t && !Kr(t.url) && Gr(3, t.url, `${t.method} timeout`);
|
|
796
918
|
}), e.addEventListener("loadend", () => {
|
|
797
|
-
let t =
|
|
798
|
-
if (!t || e.status < 400 ||
|
|
919
|
+
let t = wr.get(e);
|
|
920
|
+
if (!t || e.status < 400 || Kr(t.url)) return;
|
|
799
921
|
let n = Date.now() - t.startTime;
|
|
800
|
-
|
|
922
|
+
Gr(3, t.url, `${t.method} ${e.status} (${n}ms)`);
|
|
801
923
|
}));
|
|
802
|
-
},
|
|
803
|
-
|
|
804
|
-
|
|
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, {
|
|
805
927
|
method: String(e).toUpperCase(),
|
|
806
928
|
url: String(t),
|
|
807
929
|
startTime: Date.now()
|
|
808
|
-
}),
|
|
809
|
-
}, XMLHttpRequest.prototype.open =
|
|
810
|
-
let t =
|
|
811
|
-
t && (t.startTime = Date.now()),
|
|
812
|
-
}, XMLHttpRequest.prototype.send =
|
|
813
|
-
},
|
|
814
|
-
|
|
815
|
-
},
|
|
816
|
-
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;
|
|
817
939
|
let e = window.fetch;
|
|
818
|
-
|
|
819
|
-
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();
|
|
820
942
|
try {
|
|
821
943
|
let r = await e.call(this, t, n);
|
|
822
|
-
return !r.ok && !
|
|
944
|
+
return !r.ok && !Kr(i) && Gr(3, i, `${a} ${r.status} (${Date.now() - c}ms)${s}`), r;
|
|
823
945
|
} catch (e) {
|
|
824
|
-
throw
|
|
946
|
+
throw Kr(i) || Gr(3, i, `${a} network error: ${zr(e)}${s}`), e;
|
|
825
947
|
}
|
|
826
|
-
}, window.fetch =
|
|
827
|
-
},
|
|
828
|
-
|
|
829
|
-
},
|
|
830
|
-
|
|
831
|
-
},
|
|
832
|
-
|
|
833
|
-
},
|
|
834
|
-
|
|
835
|
-
},
|
|
836
|
-
|
|
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));
|
|
837
959
|
};
|
|
838
|
-
function
|
|
960
|
+
function ni(e, t, n) {
|
|
839
961
|
if (!t || typeof window > "u" || typeof navigator > "u") return;
|
|
840
|
-
let r =
|
|
962
|
+
let r = Cr.get(e);
|
|
841
963
|
if (r) return r;
|
|
842
|
-
let i =
|
|
843
|
-
endpoint:
|
|
964
|
+
let i = Wr(t, n), a = {
|
|
965
|
+
endpoint: Br(t),
|
|
844
966
|
report: i
|
|
845
967
|
};
|
|
846
|
-
|
|
968
|
+
Sr.push(a), ei();
|
|
847
969
|
let o = e.config.errorHandler, s = (e, t, n) => {
|
|
848
970
|
i(2, location.href, e), o?.(e, t, n);
|
|
849
971
|
};
|
|
@@ -851,14 +973,14 @@ function Or(e, t, n) {
|
|
|
851
973
|
let c = !1, l = () => {
|
|
852
974
|
if (c) return;
|
|
853
975
|
c = !0, e.config.errorHandler === s && (e.config.errorHandler = o);
|
|
854
|
-
let t =
|
|
855
|
-
t >= 0 &&
|
|
976
|
+
let t = Sr.indexOf(a);
|
|
977
|
+
t >= 0 && Sr.splice(t, 1), Cr.delete(e), ti();
|
|
856
978
|
};
|
|
857
|
-
return
|
|
979
|
+
return Cr.set(e, l), e.onUnmount(l), l;
|
|
858
980
|
}
|
|
859
|
-
var
|
|
860
|
-
|
|
861
|
-
}, 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) => {
|
|
862
984
|
if (e == null) return "";
|
|
863
985
|
let t;
|
|
864
986
|
if (typeof e == "string") t = e;
|
|
@@ -867,44 +989,44 @@ var kr = (e, t, n) => {
|
|
|
867
989
|
} catch {
|
|
868
990
|
t = String(e);
|
|
869
991
|
}
|
|
870
|
-
return t.length >
|
|
992
|
+
return t.length > ai ? `${t.slice(0, ai)}…` : t;
|
|
871
993
|
};
|
|
872
|
-
function
|
|
994
|
+
function si(e, t) {
|
|
873
995
|
let n = [];
|
|
874
996
|
for (let r in e) {
|
|
875
|
-
if (!
|
|
997
|
+
if (!ii.call(e, r)) continue;
|
|
876
998
|
let i = e[r], a = encodeURIComponent(r), o;
|
|
877
|
-
o = typeof i == "object" ?
|
|
999
|
+
o = typeof i == "object" ? si(i, t ? t + "[" + a + "]" : a) : (t ? t + "[" + a + "]" : a) + "=" + encodeURIComponent(i), n.push(o);
|
|
878
1000
|
}
|
|
879
1001
|
return n.join("&");
|
|
880
1002
|
}
|
|
881
|
-
var
|
|
1003
|
+
var ci = (e) => {
|
|
882
1004
|
let t = e["content-disposition"];
|
|
883
1005
|
if (t) {
|
|
884
1006
|
let e = t.match(/filename=(?<fileName>.+)/);
|
|
885
1007
|
return e && e.groups && e.groups.fileName;
|
|
886
1008
|
}
|
|
887
1009
|
return "";
|
|
888
|
-
},
|
|
1010
|
+
}, li = Ge.create({
|
|
889
1011
|
timeout: 3e5,
|
|
890
1012
|
responseType: "json",
|
|
891
1013
|
headers: { "Content-Type": "application/json" }
|
|
892
1014
|
});
|
|
893
|
-
|
|
894
|
-
var
|
|
895
|
-
|
|
896
|
-
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";
|
|
897
1019
|
let t = Y("token", !1);
|
|
898
1020
|
if (e.headers && t && (e.headers.token = t), e.method?.toLocaleUpperCase() === "GET") {
|
|
899
|
-
let t =
|
|
1021
|
+
let t = si(e.data);
|
|
900
1022
|
t && (e.url = `${e.url}?${t}`);
|
|
901
1023
|
}
|
|
902
1024
|
return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
|
|
903
|
-
}, (e) => Promise.reject(e)),
|
|
1025
|
+
}, (e) => Promise.reject(e)), li.interceptors.response.use((e) => {
|
|
904
1026
|
let t = e.data;
|
|
905
|
-
if (t.code === 401) return
|
|
1027
|
+
if (t.code === 401) return or("token"), Rn.replace("/login"), Promise.reject(!1);
|
|
906
1028
|
if (e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
|
|
907
|
-
let t =
|
|
1029
|
+
let t = ci(e.headers);
|
|
908
1030
|
return Promise.resolve({
|
|
909
1031
|
fileName: decodeURIComponent(t),
|
|
910
1032
|
data: e.data
|
|
@@ -915,30 +1037,30 @@ Fr.interceptors.request.use((e) => {
|
|
|
915
1037
|
return Promise.resolve(e);
|
|
916
1038
|
}
|
|
917
1039
|
{
|
|
918
|
-
|
|
919
|
-
let n = t.message, r =
|
|
920
|
-
return
|
|
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({
|
|
921
1043
|
content: n || G.global.t("Notice.error"),
|
|
922
1044
|
duration: 3e3
|
|
923
1045
|
}), Promise.reject(n);
|
|
924
1046
|
}
|
|
925
|
-
}, (e) => e ? (
|
|
1047
|
+
}, (e) => e ? (ir.destroyAll(), e.code === "ERR_NETWORK" ? (ir.error({
|
|
926
1048
|
content: G.global.t("Notice.network"),
|
|
927
1049
|
duration: 3e3
|
|
928
|
-
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (
|
|
1050
|
+
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (or("token"), window.location.href = "/mom/login"), ir.error({
|
|
929
1051
|
content: G.global.t("Notice.error"),
|
|
930
1052
|
duration: 3e3
|
|
931
1053
|
}), Promise.reject(G.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(G.global.t("Notice.error")));
|
|
932
|
-
var
|
|
933
|
-
|
|
934
|
-
},
|
|
1054
|
+
var di = "/apiserver/", fi = () => {
|
|
1055
|
+
ui.cancel(), ui = Ge.CancelToken.source();
|
|
1056
|
+
}, pi = (e, t, n = "json", r = 3e5) => {
|
|
935
1057
|
let i = JSON.stringify({
|
|
936
1058
|
fetchUri: e,
|
|
937
1059
|
...t
|
|
938
1060
|
});
|
|
939
1061
|
if (X.has(i)) return X.get(i);
|
|
940
|
-
let a =
|
|
941
|
-
url: `${
|
|
1062
|
+
let a = li({
|
|
1063
|
+
url: `${di}${e}`,
|
|
942
1064
|
method: "GET",
|
|
943
1065
|
data: t,
|
|
944
1066
|
responseType: n,
|
|
@@ -953,53 +1075,53 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
953
1075
|
...t
|
|
954
1076
|
});
|
|
955
1077
|
if (X.has(i)) return X.get(i);
|
|
956
|
-
let a =
|
|
957
|
-
url: `${
|
|
1078
|
+
let a = li({
|
|
1079
|
+
url: `${di}${e}`,
|
|
958
1080
|
method: "POST",
|
|
959
1081
|
data: t,
|
|
960
1082
|
responseType: n,
|
|
961
1083
|
timeout: r
|
|
962
1084
|
}).then((e) => (X.delete(i), Promise.resolve(e))).catch((e) => (X.delete(i), Promise.reject(e)));
|
|
963
1085
|
return X.set(i, a), a;
|
|
964
|
-
},
|
|
965
|
-
url: `${
|
|
1086
|
+
}, mi = (e, t = {}, n = "blob", r = 3e5) => li({
|
|
1087
|
+
url: `${di}${e}`,
|
|
966
1088
|
method: "POST",
|
|
967
1089
|
data: t,
|
|
968
1090
|
responseType: n,
|
|
969
1091
|
timeout: r
|
|
970
|
-
}),
|
|
1092
|
+
}), hi = (e) => li(e), gi = (e, t) => li({
|
|
971
1093
|
headers: { "Content-Type": "multipart/form-data" },
|
|
972
|
-
url: `${
|
|
1094
|
+
url: `${di}${e}`,
|
|
973
1095
|
method: "POST",
|
|
974
1096
|
data: t
|
|
975
|
-
}),
|
|
1097
|
+
}), _i = (e, t) => Z("dynamic-table/createTime", {
|
|
976
1098
|
id: e,
|
|
977
1099
|
createTime: t
|
|
978
|
-
}),
|
|
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", {
|
|
979
1101
|
calculationIds: e,
|
|
980
1102
|
linkId: t,
|
|
981
1103
|
...n
|
|
982
|
-
}),
|
|
1104
|
+
}), wi = (e) => mi("excel/template", { tableKey: e }, "arraybuffer"), Ti = (e) => Z("excel/record/query", {
|
|
983
1105
|
recordType: "import",
|
|
984
1106
|
tableKey: e
|
|
985
|
-
}),
|
|
1107
|
+
}), Ei = (e) => Z("excel/exportData", e), Di = (e, t) => p(Re, { style: { "max-width": "300px" } }, {
|
|
986
1108
|
trigger: () => e,
|
|
987
1109
|
default: () => typeof t == "function" ? t() : t
|
|
988
|
-
}),
|
|
1110
|
+
}), Oi = (e, t, n, r) => {
|
|
989
1111
|
try {
|
|
990
1112
|
Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
|
|
991
1113
|
n && n();
|
|
992
|
-
}, (e) =>
|
|
1114
|
+
}, (e) => vi({
|
|
993
1115
|
id: e,
|
|
994
1116
|
tableId: r
|
|
995
|
-
}), (e) =>
|
|
1117
|
+
}), (e) => yi({
|
|
996
1118
|
tableId: r,
|
|
997
1119
|
...e
|
|
998
|
-
}),
|
|
1120
|
+
}), ir, Z);
|
|
999
1121
|
} catch (e) {
|
|
1000
1122
|
q(e);
|
|
1001
1123
|
}
|
|
1002
|
-
},
|
|
1124
|
+
}, ki = (e, t, n, r, i) => {
|
|
1003
1125
|
let a = {
|
|
1004
1126
|
secondary: i?.secondary || !1,
|
|
1005
1127
|
tertiary: i?.tertiary || !1,
|
|
@@ -1014,36 +1136,36 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1014
1136
|
if (!e.confirmText) {
|
|
1015
1137
|
if (e.onClick && typeof e.onClick == "string") {
|
|
1016
1138
|
let i = e.onClick;
|
|
1017
|
-
a.onClick = () =>
|
|
1139
|
+
a.onClick = () => Oi(i, t, n, r);
|
|
1018
1140
|
}
|
|
1019
1141
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
1020
1142
|
}
|
|
1021
|
-
return e.icon && (o.icon = () => p(V, {}, { default: () => p(
|
|
1022
|
-
},
|
|
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) => {
|
|
1023
1145
|
let a = { placement: "left" };
|
|
1024
1146
|
if (typeof t.onClick == "string") {
|
|
1025
1147
|
let e = t.onClick;
|
|
1026
|
-
a["on-positive-click"] = () =>
|
|
1148
|
+
a["on-positive-click"] = () => Oi(e, n, r, i);
|
|
1027
1149
|
} else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
|
|
1028
1150
|
return p(Ee, a, {
|
|
1029
1151
|
default: () => p("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
|
|
1030
1152
|
trigger: () => e
|
|
1031
1153
|
});
|
|
1032
|
-
},
|
|
1033
|
-
let a =
|
|
1034
|
-
return e.confirmText && (a =
|
|
1035
|
-
},
|
|
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 }) => {
|
|
1036
1158
|
let a = [];
|
|
1037
1159
|
return e.forEach((e) => {
|
|
1038
1160
|
if (e.type === "group") {
|
|
1039
1161
|
let o = [];
|
|
1040
1162
|
e.children && e.children.length > 0 && e.children.forEach((a, s) => {
|
|
1041
|
-
o.push(
|
|
1163
|
+
o.push(ji({
|
|
1042
1164
|
...a,
|
|
1043
1165
|
tooltipText: void 0
|
|
1044
1166
|
}, t, n, r, i)), s < e.children.length - 1 && o.push(p("div", { class: "uz-action-split" }, { default: () => "" }));
|
|
1045
1167
|
}), a.push(p(De, { trigger: "click" }, {
|
|
1046
|
-
trigger: () =>
|
|
1168
|
+
trigger: () => ki({
|
|
1047
1169
|
type: "normal",
|
|
1048
1170
|
key: e.key,
|
|
1049
1171
|
icon: e.icon,
|
|
@@ -1059,11 +1181,11 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1059
1181
|
}));
|
|
1060
1182
|
}
|
|
1061
1183
|
if (e.type === "normal") {
|
|
1062
|
-
let o =
|
|
1184
|
+
let o = ji(e, t, n, r, i);
|
|
1063
1185
|
a.push(o);
|
|
1064
1186
|
}
|
|
1065
1187
|
}), p("div", { class: "uz-action-flex" }, { default: () => a });
|
|
1066
|
-
},
|
|
1188
|
+
}, Ni = (e) => {
|
|
1067
1189
|
switch (e) {
|
|
1068
1190
|
case "tertiary": return 1;
|
|
1069
1191
|
case "primary": return 2;
|
|
@@ -1073,7 +1195,7 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1073
1195
|
case "error": return 6;
|
|
1074
1196
|
default: return 0;
|
|
1075
1197
|
}
|
|
1076
|
-
},
|
|
1198
|
+
}, Pi = (e) => {
|
|
1077
1199
|
switch (e) {
|
|
1078
1200
|
case 1: return "tertiary";
|
|
1079
1201
|
case 2: return "primary";
|
|
@@ -1083,7 +1205,7 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1083
1205
|
case 6: return "error";
|
|
1084
1206
|
default: return "default";
|
|
1085
1207
|
}
|
|
1086
|
-
},
|
|
1208
|
+
}, Fi = (e) => {
|
|
1087
1209
|
switch (e) {
|
|
1088
1210
|
case "detailInside": return 0;
|
|
1089
1211
|
case "editInside": return 1;
|
|
@@ -1092,7 +1214,7 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1092
1214
|
case "enabledInside": return 4;
|
|
1093
1215
|
default: return e;
|
|
1094
1216
|
}
|
|
1095
|
-
},
|
|
1217
|
+
}, Ii = (e) => {
|
|
1096
1218
|
switch (e) {
|
|
1097
1219
|
case 0: return "detailInside";
|
|
1098
1220
|
case 1: return "editInside";
|
|
@@ -1101,66 +1223,66 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1101
1223
|
case 4: return "enabledInside";
|
|
1102
1224
|
default: return e;
|
|
1103
1225
|
}
|
|
1104
|
-
},
|
|
1226
|
+
}, Li = (e) => ({
|
|
1105
1227
|
t: 0,
|
|
1106
1228
|
k: e.key,
|
|
1107
1229
|
d: e?.disabled,
|
|
1108
1230
|
l: e?.loading,
|
|
1109
1231
|
i: e?.icon,
|
|
1110
|
-
c:
|
|
1232
|
+
c: Ni(e?.color),
|
|
1111
1233
|
b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
|
|
1112
1234
|
o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
|
|
1113
1235
|
p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
|
|
1114
1236
|
s: e?.optionsType,
|
|
1115
1237
|
u: e?.optionsSource,
|
|
1116
|
-
a:
|
|
1238
|
+
a: Fi(e?.action),
|
|
1117
1239
|
r: +!!e.footer,
|
|
1118
1240
|
g: +!!e.main,
|
|
1119
1241
|
h: +!!e.sub,
|
|
1120
1242
|
w: e?.width,
|
|
1121
1243
|
z: e?.onClick
|
|
1122
|
-
}),
|
|
1244
|
+
}), Ri = (e) => ({
|
|
1123
1245
|
type: "normal",
|
|
1124
1246
|
key: e.k,
|
|
1125
1247
|
disabled: e?.d,
|
|
1126
1248
|
loading: e?.l,
|
|
1127
1249
|
icon: e?.i,
|
|
1128
|
-
color:
|
|
1250
|
+
color: Pi(e?.c),
|
|
1129
1251
|
buttonText: e?.b ? decodeURIComponent(e?.b) : "",
|
|
1130
1252
|
confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
|
|
1131
1253
|
tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
|
|
1132
1254
|
optionsType: e?.s,
|
|
1133
1255
|
optionsSource: e?.u,
|
|
1134
|
-
action:
|
|
1256
|
+
action: Ii(e?.a),
|
|
1135
1257
|
footer: !!e.r,
|
|
1136
1258
|
sub: !!e.h,
|
|
1137
1259
|
main: !!e.g,
|
|
1138
1260
|
width: e?.w,
|
|
1139
1261
|
onClick: e?.z
|
|
1140
|
-
}),
|
|
1262
|
+
}), zi = (e) => {
|
|
1141
1263
|
let t = [];
|
|
1142
|
-
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({
|
|
1143
1265
|
t: 1,
|
|
1144
1266
|
k: n.key,
|
|
1145
1267
|
i: n?.icon,
|
|
1146
|
-
x:
|
|
1268
|
+
x: Ni(n?.color),
|
|
1147
1269
|
b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
|
|
1148
|
-
c: n.children.map((e) =>
|
|
1270
|
+
c: n.children.map((e) => Li(e))
|
|
1149
1271
|
});
|
|
1150
1272
|
return t;
|
|
1151
|
-
},
|
|
1273
|
+
}, Bi = (e) => {
|
|
1152
1274
|
if (e && e[0] && e[0].type) return e;
|
|
1153
1275
|
let t = [];
|
|
1154
|
-
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({
|
|
1155
1277
|
type: "group",
|
|
1156
1278
|
key: n.k,
|
|
1157
1279
|
icon: n?.i,
|
|
1158
|
-
color:
|
|
1280
|
+
color: Pi(n?.x),
|
|
1159
1281
|
buttonText: n?.b ? decodeURIComponent(n?.b) : "",
|
|
1160
|
-
children: n.c.map((e) =>
|
|
1282
|
+
children: n.c.map((e) => Ri(e))
|
|
1161
1283
|
});
|
|
1162
1284
|
return t;
|
|
1163
|
-
},
|
|
1285
|
+
}, Vi = f({
|
|
1164
1286
|
name: "UzBack",
|
|
1165
1287
|
components: {
|
|
1166
1288
|
NButton: R,
|
|
@@ -1185,7 +1307,7 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1185
1307
|
});
|
|
1186
1308
|
//#endregion
|
|
1187
1309
|
//#region components/back/index.vue
|
|
1188
|
-
function
|
|
1310
|
+
function Hi(e, t, n, i, a, s) {
|
|
1189
1311
|
let c = O("UzIcon"), l = O("NIcon"), d = O("NButton");
|
|
1190
1312
|
return S(), r(d, {
|
|
1191
1313
|
quaternary: "",
|
|
@@ -1199,7 +1321,7 @@ function mi(e, t, n, i, a, s) {
|
|
|
1199
1321
|
_: 1
|
|
1200
1322
|
}, 8, ["onClick"]);
|
|
1201
1323
|
}
|
|
1202
|
-
var
|
|
1324
|
+
var Ui = /*#__PURE__*/ W(Vi, [["render", Hi]]), Wi = f({
|
|
1203
1325
|
name: "UzFormItem",
|
|
1204
1326
|
components: {
|
|
1205
1327
|
NIcon: V,
|
|
@@ -1377,11 +1499,11 @@ var hi = /*#__PURE__*/ W(pi, [["render", mi]]), gi = f({
|
|
|
1377
1499
|
checkNumberMax: (t) => {
|
|
1378
1500
|
if (e.status !== 2) return t.params.maxKey ? Number(e.formValue[t.params.maxKey]) : t.params.max;
|
|
1379
1501
|
},
|
|
1380
|
-
selectFilter: (e, t) =>
|
|
1502
|
+
selectFilter: (e, t) => vr(t.label, e)
|
|
1381
1503
|
};
|
|
1382
1504
|
}
|
|
1383
|
-
}),
|
|
1384
|
-
function
|
|
1505
|
+
}), Gi = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
1506
|
+
function Ki(t, n, i, c, d, f) {
|
|
1385
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");
|
|
1386
1508
|
return t.item.input === "input" ? (S(), r(p, {
|
|
1387
1509
|
key: 0,
|
|
@@ -1686,7 +1808,7 @@ function vi(t, n, i, c, d, f) {
|
|
|
1686
1808
|
value: t.formValue[t.item.key],
|
|
1687
1809
|
disabled: t.checkDisabled()
|
|
1688
1810
|
}, {
|
|
1689
|
-
default: P(() => [o("div",
|
|
1811
|
+
default: P(() => [o("div", Gi, [(S(!0), a(e, null, E(t.item.params.options, (e) => (S(), r(x, {
|
|
1690
1812
|
key: e.value,
|
|
1691
1813
|
label: e.label,
|
|
1692
1814
|
value: e.value
|
|
@@ -1755,7 +1877,7 @@ function vi(t, n, i, c, d, f) {
|
|
|
1755
1877
|
"status"
|
|
1756
1878
|
])) : (S(), a(e, { key: 14 }, [], 64));
|
|
1757
1879
|
}
|
|
1758
|
-
var
|
|
1880
|
+
var qi = /*#__PURE__*/ W(Wi, [["render", Ki]]), Ji = f({
|
|
1759
1881
|
name: "UzForm",
|
|
1760
1882
|
components: {
|
|
1761
1883
|
NForm: me,
|
|
@@ -1763,7 +1885,7 @@ var yi = /*#__PURE__*/ W(gi, [["render", vi]]), bi = f({
|
|
|
1763
1885
|
NDivider: le,
|
|
1764
1886
|
NButton: R,
|
|
1765
1887
|
NIcon: V,
|
|
1766
|
-
UzFormItem:
|
|
1888
|
+
UzFormItem: qi
|
|
1767
1889
|
},
|
|
1768
1890
|
props: {
|
|
1769
1891
|
items: {
|
|
@@ -1840,12 +1962,12 @@ var yi = /*#__PURE__*/ W(gi, [["render", vi]]), bi = f({
|
|
|
1840
1962
|
}, p = (e, t) => {
|
|
1841
1963
|
switch (e) {
|
|
1842
1964
|
case "datetime":
|
|
1843
|
-
case "datetimerange": return
|
|
1965
|
+
case "datetimerange": return dr(t, "yyyy-MM-dd hh:mm:ss");
|
|
1844
1966
|
case "month":
|
|
1845
|
-
case "monthrange": return
|
|
1967
|
+
case "monthrange": return dr(t, "yyyy-MM");
|
|
1846
1968
|
case "year":
|
|
1847
|
-
case "yearrange": return
|
|
1848
|
-
default: return
|
|
1969
|
+
case "yearrange": return dr(t, "yyyy");
|
|
1970
|
+
default: return dr(t);
|
|
1849
1971
|
}
|
|
1850
1972
|
}, h = (e, t = !1) => {
|
|
1851
1973
|
let n = tt(e).startOf("day").diff(tt().startOf("day"), "day");
|
|
@@ -1968,8 +2090,8 @@ var yi = /*#__PURE__*/ W(gi, [["render", vi]]), bi = f({
|
|
|
1968
2090
|
}
|
|
1969
2091
|
};
|
|
1970
2092
|
}
|
|
1971
|
-
}),
|
|
1972
|
-
function
|
|
2093
|
+
}), Yi = ["onClick"];
|
|
2094
|
+
function Xi(t, n, s, c, d, f) {
|
|
1973
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");
|
|
1974
2096
|
return S(), a(e, null, [u(C, {
|
|
1975
2097
|
ref: "formRef",
|
|
@@ -1997,7 +2119,7 @@ function Si(t, n, s, c, d, f) {
|
|
|
1997
2119
|
}, [u(m, null, {
|
|
1998
2120
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
1999
2121
|
_: 1
|
|
2000
|
-
}), n[0] ||= l(" 新增 ", -1)], 8,
|
|
2122
|
+
}), n[0] ||= l(" 新增 ", -1)], 8, Yi)) : i("", !0),
|
|
2001
2123
|
s.form.showDays ? (S(), a("span", {
|
|
2002
2124
|
key: 1,
|
|
2003
2125
|
class: _(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
@@ -2058,7 +2180,7 @@ function Si(t, n, s, c, d, f) {
|
|
|
2058
2180
|
onOnSubmit: t.refreshOption
|
|
2059
2181
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
2060
2182
|
}
|
|
2061
|
-
var
|
|
2183
|
+
var Zi = /*#__PURE__*/ W(Ji, [["render", Xi]]), Qi = f({
|
|
2062
2184
|
name: "UzDraggableForm",
|
|
2063
2185
|
components: {
|
|
2064
2186
|
NForm: me,
|
|
@@ -2066,7 +2188,7 @@ var Ci = /*#__PURE__*/ W(bi, [["render", Si]]), wi = f({
|
|
|
2066
2188
|
NButton: R,
|
|
2067
2189
|
NIcon: V,
|
|
2068
2190
|
NDivider: le,
|
|
2069
|
-
UzFormItem:
|
|
2191
|
+
UzFormItem: qi,
|
|
2070
2192
|
VueDraggable: nt
|
|
2071
2193
|
},
|
|
2072
2194
|
props: {
|
|
@@ -2164,14 +2286,14 @@ var Ci = /*#__PURE__*/ W(bi, [["render", Si]]), wi = f({
|
|
|
2164
2286
|
}
|
|
2165
2287
|
};
|
|
2166
2288
|
}
|
|
2167
|
-
}),
|
|
2289
|
+
}), $i = {
|
|
2168
2290
|
key: 0,
|
|
2169
2291
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
|
|
2170
|
-
},
|
|
2292
|
+
}, ea = {
|
|
2171
2293
|
key: 1,
|
|
2172
2294
|
class: "uz-form-item-add"
|
|
2173
2295
|
};
|
|
2174
|
-
function
|
|
2296
|
+
function ta(t, n, s, c, d, f) {
|
|
2175
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");
|
|
2176
2298
|
return S(), r(w, {
|
|
2177
2299
|
ref: "formRef",
|
|
@@ -2209,11 +2331,11 @@ function Di(t, n, s, c, d, f) {
|
|
|
2209
2331
|
}, {
|
|
2210
2332
|
label: P(() => [
|
|
2211
2333
|
o("div", null, A(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
2212
|
-
s.source && s.form.createButton ? (S(), a("a",
|
|
2334
|
+
s.source && s.form.createButton ? (S(), a("a", $i, [u(m, null, {
|
|
2213
2335
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
2214
2336
|
_: 1
|
|
2215
2337
|
}), n[1] ||= l(" 新增 ", -1)])) : i("", !0),
|
|
2216
|
-
s.form.showDays ? (S(), a("span",
|
|
2338
|
+
s.form.showDays ? (S(), a("span", ea, " showDays ")) : i("", !0)
|
|
2217
2339
|
]),
|
|
2218
2340
|
default: P(() => [t.formItemIndex[0] === c && t.formItemIndex[1] === -1 ? (S(), r(h, {
|
|
2219
2341
|
key: 0,
|
|
@@ -2340,7 +2462,7 @@ function Di(t, n, s, c, d, f) {
|
|
|
2340
2462
|
"onClick"
|
|
2341
2463
|
]);
|
|
2342
2464
|
}
|
|
2343
|
-
var
|
|
2465
|
+
var na = /*#__PURE__*/ W(Qi, [["render", ta]]), ra = f({
|
|
2344
2466
|
name: "UzFormItemUpload",
|
|
2345
2467
|
components: {
|
|
2346
2468
|
NUpload: ze,
|
|
@@ -2385,7 +2507,7 @@ var Oi = /*#__PURE__*/ W(wi, [["render", Di]]), ki = f({
|
|
|
2385
2507
|
}), r.value = !1, o();
|
|
2386
2508
|
else {
|
|
2387
2509
|
let s = new FormData();
|
|
2388
|
-
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) => {
|
|
2389
2511
|
i.value.push({
|
|
2390
2512
|
id: e.file.id,
|
|
2391
2513
|
name: e.file.name,
|
|
@@ -2452,8 +2574,8 @@ var Oi = /*#__PURE__*/ W(wi, [["render", Di]]), ki = f({
|
|
|
2452
2574
|
}
|
|
2453
2575
|
};
|
|
2454
2576
|
}
|
|
2455
|
-
}),
|
|
2456
|
-
function
|
|
2577
|
+
}), ia = { class: "uz-form-upload-item-inner" }, aa = ["title"], oa = { key: 0 };
|
|
2578
|
+
function sa(t, n, s, c, d, f) {
|
|
2457
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");
|
|
2458
2580
|
return S(), r(b, {
|
|
2459
2581
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
@@ -2507,10 +2629,10 @@ function Ni(t, n, s, c, d, f) {
|
|
|
2507
2629
|
}, {
|
|
2508
2630
|
default: P(() => [u(p, { icon: "Document" })]),
|
|
2509
2631
|
_: 1
|
|
2510
|
-
}, 8, ["onClick"])), o("div",
|
|
2632
|
+
}, 8, ["onClick"])), o("div", ia, [o("div", {
|
|
2511
2633
|
class: "uz-form-upload-title uz-truncate",
|
|
2512
2634
|
title: e.name
|
|
2513
|
-
}, 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) }, {
|
|
2514
2636
|
trigger: P(() => [u(v, {
|
|
2515
2637
|
size: "small",
|
|
2516
2638
|
tertiary: ""
|
|
@@ -2539,7 +2661,7 @@ function Ni(t, n, s, c, d, f) {
|
|
|
2539
2661
|
_: 1
|
|
2540
2662
|
}, 8, ["show"]);
|
|
2541
2663
|
}
|
|
2542
|
-
var
|
|
2664
|
+
var ca = /*#__PURE__*/ W(ra, [["render", sa], ["__scopeId", "data-v-79565a09"]]), la = f({
|
|
2543
2665
|
name: "UzFormItemImage",
|
|
2544
2666
|
components: {
|
|
2545
2667
|
NImageGroup: ye,
|
|
@@ -2583,11 +2705,11 @@ var Pi = /*#__PURE__*/ W(ki, [["render", Ni], ["__scopeId", "data-v-79565a09"]])
|
|
|
2583
2705
|
}
|
|
2584
2706
|
};
|
|
2585
2707
|
}
|
|
2586
|
-
}),
|
|
2587
|
-
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) {
|
|
2588
2710
|
let f = O("UzIcon"), p = O("NIcon"), m = O("NImage"), h = O("NPopover"), g = O("NImageGroup");
|
|
2589
2711
|
return S(), r(g, null, {
|
|
2590
|
-
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, {
|
|
2591
2713
|
key: 0,
|
|
2592
2714
|
width: "40",
|
|
2593
2715
|
src: n
|
|
@@ -2619,7 +2741,7 @@ function Li(t, n, i, s, c, d) {
|
|
|
2619
2741
|
_: 1
|
|
2620
2742
|
});
|
|
2621
2743
|
}
|
|
2622
|
-
var
|
|
2744
|
+
var fa = /*#__PURE__*/ W(la, [["render", da]]), pa = f({
|
|
2623
2745
|
name: "UzFormItemTimesPicker",
|
|
2624
2746
|
components: { NSelect: Ae },
|
|
2625
2747
|
props: {
|
|
@@ -2669,10 +2791,10 @@ var Ri = /*#__PURE__*/ W(Fi, [["render", Li]]), zi = f({
|
|
|
2669
2791
|
}
|
|
2670
2792
|
};
|
|
2671
2793
|
}
|
|
2672
|
-
}),
|
|
2673
|
-
function
|
|
2794
|
+
}), ma = { class: "times-picker" };
|
|
2795
|
+
function ha(e, t, n, r, i, o) {
|
|
2674
2796
|
let s = O("NSelect");
|
|
2675
|
-
return S(), a("div",
|
|
2797
|
+
return S(), a("div", ma, [
|
|
2676
2798
|
u(s, {
|
|
2677
2799
|
value: e.h,
|
|
2678
2800
|
options: e.times,
|
|
@@ -2720,10 +2842,10 @@ function Vi(e, t, n, r, i, o) {
|
|
|
2720
2842
|
])
|
|
2721
2843
|
]);
|
|
2722
2844
|
}
|
|
2723
|
-
var
|
|
2845
|
+
var ga = /*#__PURE__*/ W(pa, [["render", ha], ["__scopeId", "data-v-12b4d7e3"]]);
|
|
2724
2846
|
//#endregion
|
|
2725
2847
|
//#region components/hooks/useDebounceFn.ts
|
|
2726
|
-
function
|
|
2848
|
+
function _a(e, t = 1e3) {
|
|
2727
2849
|
let n = $e(e, t);
|
|
2728
2850
|
return {
|
|
2729
2851
|
run: n,
|
|
@@ -2733,24 +2855,24 @@ function Ui(e, t = 1e3) {
|
|
|
2733
2855
|
}
|
|
2734
2856
|
//#endregion
|
|
2735
2857
|
//#region components/bom/index.vue?vue&type=script&lang.ts
|
|
2736
|
-
var
|
|
2858
|
+
var va = [
|
|
2737
2859
|
"var(--primary)",
|
|
2738
2860
|
"var(--green)",
|
|
2739
2861
|
"var(--yellow)",
|
|
2740
2862
|
"var(--purple)"
|
|
2741
|
-
],
|
|
2863
|
+
], ya = (e) => {
|
|
2742
2864
|
if (e == null || e === "") return null;
|
|
2743
2865
|
if (typeof e == "string") {
|
|
2744
2866
|
let t = Number.parseFloat(e);
|
|
2745
2867
|
return Number.isFinite(t) ? e.includes("%") || t > 1 ? t / 100 : t : null;
|
|
2746
2868
|
}
|
|
2747
2869
|
return Number.isFinite(e) ? e > 1 ? e / 100 : e : null;
|
|
2748
|
-
},
|
|
2749
|
-
let t = Number(e.quantity), n =
|
|
2870
|
+
}, ba = (e) => {
|
|
2871
|
+
let t = Number(e.quantity), n = ya(e.lossRate);
|
|
2750
2872
|
if (!Number.isFinite(t) || n === null || n < 0) return null;
|
|
2751
2873
|
let r = 1 - n;
|
|
2752
2874
|
return r > 0 ? Math.ceil(t / r) : null;
|
|
2753
|
-
},
|
|
2875
|
+
}, xa = (e) => e === null ? "—" : e.toLocaleString("zh-CN"), Sa = [
|
|
2754
2876
|
{
|
|
2755
2877
|
title: "编码",
|
|
2756
2878
|
key: "code",
|
|
@@ -2795,7 +2917,7 @@ var Wi = [
|
|
|
2795
2917
|
title: "含损耗用量",
|
|
2796
2918
|
key: "required_quantity",
|
|
2797
2919
|
width: 120,
|
|
2798
|
-
render: (e) =>
|
|
2920
|
+
render: (e) => xa(ba(e))
|
|
2799
2921
|
},
|
|
2800
2922
|
{
|
|
2801
2923
|
title: "备注",
|
|
@@ -2803,7 +2925,7 @@ var Wi = [
|
|
|
2803
2925
|
width: 220,
|
|
2804
2926
|
ellipsis: { tooltip: !0 }
|
|
2805
2927
|
}
|
|
2806
|
-
],
|
|
2928
|
+
], Ca = f({
|
|
2807
2929
|
name: "UzBom",
|
|
2808
2930
|
components: { NDataTable: se },
|
|
2809
2931
|
props: {
|
|
@@ -2849,7 +2971,7 @@ var Wi = [
|
|
|
2849
2971
|
}
|
|
2850
2972
|
let n = new Set(t), r = o.value.map((t) => e.get(t) ?? t).filter((e) => n.has(e));
|
|
2851
2973
|
(r.length !== o.value.length || r.some((e, t) => e !== o.value[t])) && (o.value = r);
|
|
2852
|
-
}, { run: h, flush: g, cancel: _ } =
|
|
2974
|
+
}, { run: h, flush: g, cancel: _ } = _a(() => m(u(a.value)), 200), v = /* @__PURE__ */ new WeakMap(), b = (e) => {
|
|
2853
2975
|
let t = v.get(e);
|
|
2854
2976
|
if (t) return t;
|
|
2855
2977
|
let n = new Proxy(e, { set(e, t, n) {
|
|
@@ -2944,7 +3066,7 @@ var Wi = [
|
|
|
2944
3066
|
align: "center",
|
|
2945
3067
|
titleAlign: "center",
|
|
2946
3068
|
className: "uz-bom-action-cell",
|
|
2947
|
-
render: (e) =>
|
|
3069
|
+
render: (e) => Mi({
|
|
2948
3070
|
buttons: [{
|
|
2949
3071
|
type: "normal",
|
|
2950
3072
|
key: "add",
|
|
@@ -2973,14 +3095,14 @@ var Wi = [
|
|
|
2973
3095
|
title: e.label,
|
|
2974
3096
|
key: e.key,
|
|
2975
3097
|
width: 160,
|
|
2976
|
-
render: (t, n) => p(
|
|
3098
|
+
render: (t, n) => p(qi, {
|
|
2977
3099
|
item: e,
|
|
2978
3100
|
formValue: b(t),
|
|
2979
3101
|
status: 1,
|
|
2980
3102
|
itemIndex: n
|
|
2981
3103
|
})
|
|
2982
3104
|
}))), k = n(() => {
|
|
2983
|
-
let [e, ...t] =
|
|
3105
|
+
let [e, ...t] = Sa;
|
|
2984
3106
|
return [
|
|
2985
3107
|
E,
|
|
2986
3108
|
e,
|
|
@@ -2998,7 +3120,7 @@ var Wi = [
|
|
|
2998
3120
|
if (!Number.isFinite(t) || t < 1) return null;
|
|
2999
3121
|
let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
|
|
3000
3122
|
return {
|
|
3001
|
-
color:
|
|
3123
|
+
color: va[n - 1],
|
|
3002
3124
|
opacity: Math.min(.1 + r * .05, .4)
|
|
3003
3125
|
};
|
|
3004
3126
|
};
|
|
@@ -3017,10 +3139,10 @@ var Wi = [
|
|
|
3017
3139
|
handleExpandedRowKeysChange: A
|
|
3018
3140
|
};
|
|
3019
3141
|
}
|
|
3020
|
-
}),
|
|
3021
|
-
function
|
|
3142
|
+
}), wa = { class: "uz-bom" };
|
|
3143
|
+
function Ta(e, t, n, r, i, o) {
|
|
3022
3144
|
let s = O("NDataTable");
|
|
3023
|
-
return S(), a("div",
|
|
3145
|
+
return S(), a("div", wa, [u(s, {
|
|
3024
3146
|
columns: e.tableColumns,
|
|
3025
3147
|
data: e.innerData,
|
|
3026
3148
|
"row-props": e.getRowProps,
|
|
@@ -3047,13 +3169,13 @@ function Zi(e, t, n, r, i, o) {
|
|
|
3047
3169
|
"onUpdate:expandedRowKeys"
|
|
3048
3170
|
])]);
|
|
3049
3171
|
}
|
|
3050
|
-
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) => {
|
|
3051
3173
|
let i = r * Math.PI / 180;
|
|
3052
3174
|
return {
|
|
3053
3175
|
x: e + n * Math.cos(i),
|
|
3054
3176
|
y: t + n * Math.sin(i)
|
|
3055
3177
|
};
|
|
3056
|
-
},
|
|
3178
|
+
}, Va = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, Ha = (e, t, n, r, i, a) => {
|
|
3057
3179
|
if (a <= 0) return "";
|
|
3058
3180
|
let o = n + r / 2, s = n - r / 2;
|
|
3059
3181
|
if (a >= 359.999) {
|
|
@@ -3065,16 +3187,16 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3065
3187
|
`A ${s} ${s} 0 1 0 ${i}`
|
|
3066
3188
|
].join(" ");
|
|
3067
3189
|
}
|
|
3068
|
-
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);
|
|
3069
3191
|
return [
|
|
3070
|
-
`M ${
|
|
3071
|
-
`A ${o} ${o} 0 ${m} 1 ${
|
|
3072
|
-
`A ${p} ${p} 0 0 1 ${
|
|
3073
|
-
`A ${s} ${s} 0 ${m} 0 ${
|
|
3074
|
-
`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)}`,
|
|
3075
3197
|
"Z"
|
|
3076
3198
|
].join(" ");
|
|
3077
|
-
},
|
|
3199
|
+
}, Ua = (e) => {
|
|
3078
3200
|
if (!e) return "";
|
|
3079
3201
|
let t = e.toLowerCase();
|
|
3080
3202
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -3088,7 +3210,7 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3088
3210
|
return e.join(",");
|
|
3089
3211
|
}
|
|
3090
3212
|
return "0,0,0";
|
|
3091
|
-
},
|
|
3213
|
+
}, Wa = f({
|
|
3092
3214
|
name: "UzCircle",
|
|
3093
3215
|
components: { UzNumberFlow: it },
|
|
3094
3216
|
props: {
|
|
@@ -3111,10 +3233,10 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3111
3233
|
}
|
|
3112
3234
|
},
|
|
3113
3235
|
setup(e) {
|
|
3114
|
-
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) => {
|
|
3115
3237
|
let t = Number(e) - 50;
|
|
3116
3238
|
return t < 0 && (t = 0), t;
|
|
3117
|
-
})},1)`), a = n(() => `rgba(${
|
|
3239
|
+
})},1)`), a = n(() => `rgba(${Ua(e.color)},1)`), o = n(() => {
|
|
3118
3240
|
let t = Number(e.circle);
|
|
3119
3241
|
return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
|
|
3120
3242
|
}), s = T(o.value), c;
|
|
@@ -3146,49 +3268,49 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3146
3268
|
remainingLength: 0,
|
|
3147
3269
|
remainingStart: 0
|
|
3148
3270
|
};
|
|
3149
|
-
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;
|
|
3150
3272
|
return {
|
|
3151
3273
|
activeLength: a,
|
|
3152
3274
|
activeStart: r / 2,
|
|
3153
3275
|
remainingLength: o,
|
|
3154
3276
|
remainingStart: r / 2 + a + r
|
|
3155
3277
|
};
|
|
3156
|
-
}), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() =>
|
|
3157
|
-
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;
|
|
3158
3280
|
if (e === 0) return {
|
|
3159
3281
|
activeLength: 0,
|
|
3160
|
-
remainingLength:
|
|
3282
|
+
remainingLength: La,
|
|
3161
3283
|
remainingStart: 0
|
|
3162
3284
|
};
|
|
3163
3285
|
if (t === 0) return {
|
|
3164
|
-
activeLength:
|
|
3286
|
+
activeLength: La,
|
|
3165
3287
|
remainingLength: 0,
|
|
3166
3288
|
remainingStart: 0
|
|
3167
3289
|
};
|
|
3168
|
-
let n = Math.min(
|
|
3290
|
+
let n = Math.min(Ra, e, t);
|
|
3169
3291
|
return {
|
|
3170
3292
|
activeLength: e - n / 2,
|
|
3171
3293
|
remainingLength: t - n / 2,
|
|
3172
3294
|
remainingStart: e + n / 2
|
|
3173
3295
|
};
|
|
3174
|
-
}), 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));
|
|
3175
3297
|
return {
|
|
3176
3298
|
color: n(() => e.color),
|
|
3177
3299
|
colorA: i,
|
|
3178
3300
|
colorB: a,
|
|
3179
|
-
fullRadius:
|
|
3180
|
-
fullStrokeWidth:
|
|
3301
|
+
fullRadius: Da,
|
|
3302
|
+
fullStrokeWidth: Oa,
|
|
3181
3303
|
fullCircumference: Q,
|
|
3182
3304
|
fullActiveLength: u,
|
|
3183
3305
|
fullActiveStart: d,
|
|
3184
3306
|
fullRemainingLength: f,
|
|
3185
3307
|
fullRemainingStart: p,
|
|
3186
3308
|
fullRemainingPath: m,
|
|
3187
|
-
gaugeCenterY:
|
|
3188
|
-
gaugeRadius:
|
|
3189
|
-
gaugeStrokeWidth:
|
|
3190
|
-
gaugeCircumference:
|
|
3191
|
-
gaugeTransform:
|
|
3309
|
+
gaugeCenterY: ja,
|
|
3310
|
+
gaugeRadius: Ma,
|
|
3311
|
+
gaugeStrokeWidth: Na,
|
|
3312
|
+
gaugeCircumference: Ia,
|
|
3313
|
+
gaugeTransform: za,
|
|
3192
3314
|
gaugeActiveLength: g,
|
|
3193
3315
|
gaugeRemainingLength: _,
|
|
3194
3316
|
gaugeRemainingStart: v,
|
|
@@ -3197,31 +3319,31 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3197
3319
|
blurFilterId: r
|
|
3198
3320
|
};
|
|
3199
3321
|
}
|
|
3200
|
-
}),
|
|
3322
|
+
}), Ga = { class: "uz-circle" }, Ka = {
|
|
3201
3323
|
key: 0,
|
|
3202
3324
|
viewBox: "0 0 120 120",
|
|
3203
3325
|
"aria-hidden": "true"
|
|
3204
|
-
},
|
|
3326
|
+
}, qa = ["id"], Ja = ["stop-color"], Ya = ["stop-color"], Xa = ["id"], Za = [
|
|
3205
3327
|
"r",
|
|
3206
3328
|
"stroke-width",
|
|
3207
3329
|
"stroke-dasharray",
|
|
3208
3330
|
"stroke-dashoffset",
|
|
3209
3331
|
"filter",
|
|
3210
3332
|
"stroke"
|
|
3211
|
-
],
|
|
3333
|
+
], Qa = [
|
|
3212
3334
|
"d",
|
|
3213
3335
|
"fill",
|
|
3214
3336
|
"filter"
|
|
3215
|
-
],
|
|
3337
|
+
], $a = {
|
|
3216
3338
|
class: "uz-circle__unit",
|
|
3217
3339
|
x: "60",
|
|
3218
3340
|
y: "82",
|
|
3219
3341
|
"text-anchor": "middle"
|
|
3220
|
-
},
|
|
3342
|
+
}, eo = {
|
|
3221
3343
|
key: 1,
|
|
3222
3344
|
viewBox: "0 0 120 120",
|
|
3223
3345
|
"aria-hidden": "true"
|
|
3224
|
-
},
|
|
3346
|
+
}, to = ["id"], no = ["stop-color"], ro = ["stop-color"], io = ["id"], ao = [
|
|
3225
3347
|
"cy",
|
|
3226
3348
|
"r",
|
|
3227
3349
|
"stroke-width",
|
|
@@ -3229,19 +3351,19 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3229
3351
|
"transform",
|
|
3230
3352
|
"filter",
|
|
3231
3353
|
"stroke"
|
|
3232
|
-
],
|
|
3354
|
+
], oo = [
|
|
3233
3355
|
"d",
|
|
3234
3356
|
"fill",
|
|
3235
3357
|
"filter"
|
|
3236
|
-
],
|
|
3358
|
+
], so = {
|
|
3237
3359
|
class: "uz-circle__unit uz-circle__unit--gauge",
|
|
3238
3360
|
x: "60",
|
|
3239
3361
|
y: "90",
|
|
3240
3362
|
"text-anchor": "middle"
|
|
3241
3363
|
};
|
|
3242
|
-
function
|
|
3364
|
+
function co(e, t, n, r, s, c) {
|
|
3243
3365
|
let l = O("UzNumberFlow");
|
|
3244
|
-
return S(), a("div",
|
|
3366
|
+
return S(), a("div", Ga, [e.mode === 0 ? (S(), a("svg", Ka, [
|
|
3245
3367
|
o("defs", null, [o("linearGradient", {
|
|
3246
3368
|
id: `uz-progress-grad-${e.uniqueId}`,
|
|
3247
3369
|
x1: "1",
|
|
@@ -3251,10 +3373,10 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3251
3373
|
}, [o("stop", {
|
|
3252
3374
|
offset: "0%",
|
|
3253
3375
|
"stop-color": e.colorA
|
|
3254
|
-
}, null, 8,
|
|
3376
|
+
}, null, 8, Ja), o("stop", {
|
|
3255
3377
|
offset: "50%",
|
|
3256
3378
|
"stop-color": e.colorB
|
|
3257
|
-
}, null, 8,
|
|
3379
|
+
}, null, 8, Ya)], 8, qa), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
|
|
3258
3380
|
o("feOffset", {
|
|
3259
3381
|
result: "offOut",
|
|
3260
3382
|
in: "SourceGraphic",
|
|
@@ -3271,7 +3393,7 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3271
3393
|
in2: "blurOut",
|
|
3272
3394
|
mode: "normal"
|
|
3273
3395
|
}, null, -1)
|
|
3274
|
-
]], 8,
|
|
3396
|
+
]], 8, Xa)]),
|
|
3275
3397
|
e.fullActiveLength > 0 ? (S(), a("circle", {
|
|
3276
3398
|
key: 0,
|
|
3277
3399
|
class: "uz-circle__progress",
|
|
@@ -3286,7 +3408,7 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3286
3408
|
transform: "rotate(-90 60 60)",
|
|
3287
3409
|
filter: `url(#${e.blurFilterId})`,
|
|
3288
3410
|
stroke: `url(#uz-progress-grad-${e.uniqueId})`
|
|
3289
|
-
}, null, 8,
|
|
3411
|
+
}, null, 8, Za)) : i("", !0),
|
|
3290
3412
|
e.fullRemainingPath ? (S(), a("path", {
|
|
3291
3413
|
key: 1,
|
|
3292
3414
|
class: "uz-circle__progress",
|
|
@@ -3294,9 +3416,9 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3294
3416
|
fill: e.color,
|
|
3295
3417
|
"fill-opacity": "0.1",
|
|
3296
3418
|
filter: `url(#${e.blurFilterId})`
|
|
3297
|
-
}, null, 8,
|
|
3298
|
-
o("text",
|
|
3299
|
-
])) : (S(), a("svg",
|
|
3419
|
+
}, null, 8, Qa)) : i("", !0),
|
|
3420
|
+
o("text", $a, A(e.circleUnit), 1)
|
|
3421
|
+
])) : (S(), a("svg", eo, [
|
|
3300
3422
|
o("defs", null, [o("linearGradient", {
|
|
3301
3423
|
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
3302
3424
|
x1: "1",
|
|
@@ -3306,10 +3428,10 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3306
3428
|
}, [o("stop", {
|
|
3307
3429
|
offset: "0%",
|
|
3308
3430
|
"stop-color": e.colorA
|
|
3309
|
-
}, null, 8,
|
|
3431
|
+
}, null, 8, no), o("stop", {
|
|
3310
3432
|
offset: "50%",
|
|
3311
3433
|
"stop-color": e.colorB
|
|
3312
|
-
}, null, 8,
|
|
3434
|
+
}, null, 8, ro)], 8, to), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
|
|
3313
3435
|
o("feOffset", {
|
|
3314
3436
|
result: "offOut",
|
|
3315
3437
|
in: "SourceGraphic",
|
|
@@ -3326,7 +3448,7 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3326
3448
|
in2: "blurOut",
|
|
3327
3449
|
mode: "normal"
|
|
3328
3450
|
}, null, -1)
|
|
3329
|
-
]], 8,
|
|
3451
|
+
]], 8, io)]),
|
|
3330
3452
|
e.gaugeActiveLength > 0 ? (S(), a("circle", {
|
|
3331
3453
|
key: 0,
|
|
3332
3454
|
class: "uz-circle__progress",
|
|
@@ -3340,7 +3462,7 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3340
3462
|
transform: e.gaugeTransform,
|
|
3341
3463
|
filter: `url(#${e.blurFilterId})`,
|
|
3342
3464
|
stroke: `url(#uz-progress-grad-1-${e.uniqueId})`
|
|
3343
|
-
}, null, 8,
|
|
3465
|
+
}, null, 8, ao)) : i("", !0),
|
|
3344
3466
|
e.gaugeRemainingPath ? (S(), a("path", {
|
|
3345
3467
|
key: 1,
|
|
3346
3468
|
class: "uz-circle__progress",
|
|
@@ -3348,11 +3470,11 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3348
3470
|
fill: e.color,
|
|
3349
3471
|
"fill-opacity": "0.1",
|
|
3350
3472
|
filter: `url(#${e.blurFilterId})`
|
|
3351
|
-
}, null, 8,
|
|
3352
|
-
o("text",
|
|
3473
|
+
}, null, 8, oo)) : i("", !0),
|
|
3474
|
+
o("text", so, A(e.circleUnit), 1)
|
|
3353
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)]);
|
|
3354
3476
|
}
|
|
3355
|
-
var
|
|
3477
|
+
var lo = /*#__PURE__*/ W(Wa, [["render", co]]), uo = f({
|
|
3356
3478
|
name: "UzCamera",
|
|
3357
3479
|
components: {
|
|
3358
3480
|
NButton: R,
|
|
@@ -3444,11 +3566,11 @@ var Fa = /*#__PURE__*/ W(ga, [["render", Pa]]), Ia = f({
|
|
|
3444
3566
|
closeAll: d
|
|
3445
3567
|
};
|
|
3446
3568
|
}
|
|
3447
|
-
}),
|
|
3569
|
+
}), fo = ["width", "height"], po = ["width", "height"], mo = { class: "uz-scan-video" }, ho = {
|
|
3448
3570
|
ref: "videoRef",
|
|
3449
3571
|
playsInline: ""
|
|
3450
3572
|
};
|
|
3451
|
-
function
|
|
3573
|
+
function go(t, n, s, c, u, d) {
|
|
3452
3574
|
let f = O("NButton"), p = O("NModal");
|
|
3453
3575
|
return S(), a(e, null, [
|
|
3454
3576
|
t.mode === "button" ? (S(), r(f, {
|
|
@@ -3480,7 +3602,7 @@ function Va(t, n, s, c, u, d) {
|
|
|
3480
3602
|
id: "uz-scan-canvas",
|
|
3481
3603
|
width: t.width,
|
|
3482
3604
|
height: t.height
|
|
3483
|
-
}, null, 8,
|
|
3605
|
+
}, null, 8, fo)], 4)]),
|
|
3484
3606
|
_: 1
|
|
3485
3607
|
}, 8, [
|
|
3486
3608
|
"show",
|
|
@@ -3498,11 +3620,11 @@ function Va(t, n, s, c, u, d) {
|
|
|
3498
3620
|
id: "uz-scan-canvas",
|
|
3499
3621
|
width: t.width,
|
|
3500
3622
|
height: t.height
|
|
3501
|
-
}, null, 8,
|
|
3502
|
-
o("div",
|
|
3623
|
+
}, null, 8, po)], 4)) : i("", !0),
|
|
3624
|
+
o("div", mo, [o("video", ho, null, 512)])
|
|
3503
3625
|
], 64);
|
|
3504
3626
|
}
|
|
3505
|
-
var
|
|
3627
|
+
var _o = /*#__PURE__*/ W(uo, [["render", go]]), vo = /* @__PURE__ */ new WeakMap(), yo = f({
|
|
3506
3628
|
name: "UzSearchBar",
|
|
3507
3629
|
components: {
|
|
3508
3630
|
NIcon: V,
|
|
@@ -3513,7 +3635,7 @@ var Ha = /*#__PURE__*/ W(Ia, [["render", Va]]), Ua = /* @__PURE__ */ new WeakMap
|
|
|
3513
3635
|
NInputGroup: xe,
|
|
3514
3636
|
NInputGroupLabel: Se,
|
|
3515
3637
|
NPopover: De,
|
|
3516
|
-
UzFormItem:
|
|
3638
|
+
UzFormItem: qi
|
|
3517
3639
|
},
|
|
3518
3640
|
props: {
|
|
3519
3641
|
data: {
|
|
@@ -3551,10 +3673,10 @@ var Ha = /*#__PURE__*/ W(Ia, [["render", Va]]), Ua = /* @__PURE__ */ new WeakMap
|
|
|
3551
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);
|
|
3552
3674
|
}
|
|
3553
3675
|
});
|
|
3554
|
-
n.observe(e),
|
|
3676
|
+
n.observe(e), vo.set(e, n);
|
|
3555
3677
|
},
|
|
3556
3678
|
unmounted: (e) => {
|
|
3557
|
-
|
|
3679
|
+
vo.get(e)?.disconnect(), vo.delete(e);
|
|
3558
3680
|
}
|
|
3559
3681
|
} },
|
|
3560
3682
|
emits: ["update:loading", "on-update:value"],
|
|
@@ -3669,24 +3791,24 @@ var Ha = /*#__PURE__*/ W(Ia, [["render", Va]]), Ua = /* @__PURE__ */ new WeakMap
|
|
|
3669
3791
|
tabButtonType: b
|
|
3670
3792
|
};
|
|
3671
3793
|
}
|
|
3672
|
-
}),
|
|
3794
|
+
}), bo = { class: "uz-flex uz-justify-between uz-gap-2" }, xo = {
|
|
3673
3795
|
key: 0,
|
|
3674
3796
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-2 uz-w-full"
|
|
3675
|
-
},
|
|
3797
|
+
}, So = { key: 0 }, Co = { class: "uz-flex-1" }, wo = {
|
|
3676
3798
|
key: 1,
|
|
3677
3799
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
3678
|
-
},
|
|
3800
|
+
}, To = {
|
|
3679
3801
|
key: 0,
|
|
3680
3802
|
class: "uz-search-fields-collapse"
|
|
3681
3803
|
};
|
|
3682
|
-
function
|
|
3804
|
+
function Eo(n, s, c, d, f, p) {
|
|
3683
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");
|
|
3684
3806
|
return S(), a("div", {
|
|
3685
3807
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
3686
3808
|
onKeyup: s[1] ||= I((e) => n.doSearch(!1), ["enter"])
|
|
3687
|
-
}, [o("div",
|
|
3809
|
+
}, [o("div", bo, [n.enableHeader ? (S(), a("div", xo, [
|
|
3688
3810
|
D(n.$slots, "header"),
|
|
3689
|
-
n.tabList && n.tabList.length > 0 ? (S(), a("div",
|
|
3811
|
+
n.tabList && n.tabList.length > 0 ? (S(), a("div", So, [u(h, null, {
|
|
3690
3812
|
default: P(() => [(S(!0), a(e, null, E(n.tabList, (e) => (S(), r(m, {
|
|
3691
3813
|
key: e.value,
|
|
3692
3814
|
type: n.tabButtonType(e),
|
|
@@ -3698,7 +3820,7 @@ function Za(n, s, c, d, f, p) {
|
|
|
3698
3820
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
3699
3821
|
_: 1
|
|
3700
3822
|
})])) : i("", !0),
|
|
3701
|
-
F((S(), a("div",
|
|
3823
|
+
F((S(), a("div", Co, [u(C, {
|
|
3702
3824
|
"x-gap": "8",
|
|
3703
3825
|
"y-gap": "8",
|
|
3704
3826
|
cols: n.cols,
|
|
@@ -3735,7 +3857,7 @@ function Za(n, s, c, d, f, p) {
|
|
|
3735
3857
|
}, 1032, ["span"]))), 128)) : i("", !0)]),
|
|
3736
3858
|
_: 1
|
|
3737
3859
|
}, 8, ["cols"])])), [[ee]])
|
|
3738
|
-
])) : i("", !0), n.enableHeader ? (S(), a("div",
|
|
3860
|
+
])) : i("", !0), n.enableHeader ? (S(), a("div", wo, [
|
|
3739
3861
|
n.more ? (S(), r(m, {
|
|
3740
3862
|
key: 0,
|
|
3741
3863
|
secondary: "",
|
|
@@ -3785,7 +3907,7 @@ function Za(n, s, c, d, f, p) {
|
|
|
3785
3907
|
})) : i("", !0),
|
|
3786
3908
|
D(n.$slots, "action")
|
|
3787
3909
|
])) : i("", !0)]), u(t, { name: "uz-search-fields" }, {
|
|
3788
|
-
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, {
|
|
3789
3911
|
"x-gap": "8",
|
|
3790
3912
|
"y-gap": "8",
|
|
3791
3913
|
cols: 4
|
|
@@ -3820,7 +3942,7 @@ function Za(n, s, c, d, f, p) {
|
|
|
3820
3942
|
_: 1
|
|
3821
3943
|
})], 32);
|
|
3822
3944
|
}
|
|
3823
|
-
var
|
|
3945
|
+
var Do = /*#__PURE__*/ W(yo, [["render", Eo]]), Oo = f({
|
|
3824
3946
|
name: "UzSearchMobileBar",
|
|
3825
3947
|
components: {
|
|
3826
3948
|
NIcon: V,
|
|
@@ -3831,7 +3953,7 @@ var Qa = /*#__PURE__*/ W(Wa, [["render", Za]]), $a = f({
|
|
|
3831
3953
|
NGridItem: _e,
|
|
3832
3954
|
NInputGroup: xe,
|
|
3833
3955
|
NInputGroupLabel: Se,
|
|
3834
|
-
UzFormItem:
|
|
3956
|
+
UzFormItem: qi
|
|
3835
3957
|
},
|
|
3836
3958
|
props: {
|
|
3837
3959
|
data: {
|
|
@@ -3909,10 +4031,10 @@ var Qa = /*#__PURE__*/ W(Wa, [["render", Za]]), $a = f({
|
|
|
3909
4031
|
clearAll: l
|
|
3910
4032
|
};
|
|
3911
4033
|
}
|
|
3912
|
-
}),
|
|
3913
|
-
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) {
|
|
3914
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");
|
|
3915
|
-
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, {
|
|
3916
4038
|
key: 0,
|
|
3917
4039
|
secondary: "",
|
|
3918
4040
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
@@ -3937,7 +4059,7 @@ function ro(t, n, s, c, d, f) {
|
|
|
3937
4059
|
title: "查询",
|
|
3938
4060
|
closable: ""
|
|
3939
4061
|
}, {
|
|
3940
|
-
footer: P(() => [o("div",
|
|
4062
|
+
footer: P(() => [o("div", jo, [u(h, {
|
|
3941
4063
|
secondary: "",
|
|
3942
4064
|
loading: t.loading,
|
|
3943
4065
|
onClick: t.clearAll,
|
|
@@ -3992,7 +4114,7 @@ function ro(t, n, s, c, d, f) {
|
|
|
3992
4114
|
_: 1
|
|
3993
4115
|
}, 8, ["show"])], 64);
|
|
3994
4116
|
}
|
|
3995
|
-
var
|
|
4117
|
+
var No = /*#__PURE__*/ W(Oo, [["render", Mo]]), Po = /(?<=\[)(.+?)(?=\])/g, Fo = {
|
|
3996
4118
|
index: 1,
|
|
3997
4119
|
selection: 0,
|
|
3998
4120
|
pagination: 1,
|
|
@@ -4010,10 +4132,10 @@ var io = /*#__PURE__*/ W($a, [["render", ro]]), ao = /(?<=\[)(.+?)(?=\])/g, oo =
|
|
|
4010
4132
|
placement: "right",
|
|
4011
4133
|
summary: ""
|
|
4012
4134
|
};
|
|
4013
|
-
function
|
|
4135
|
+
function Io(e) {
|
|
4014
4136
|
return Function("return " + e)();
|
|
4015
4137
|
}
|
|
4016
|
-
var
|
|
4138
|
+
var Lo = () => new Promise((e) => {
|
|
4017
4139
|
let t = window.localStorage.getItem("city");
|
|
4018
4140
|
if (t) e(JSON.parse(t));
|
|
4019
4141
|
else {
|
|
@@ -4026,12 +4148,12 @@ var co = () => new Promise((e) => {
|
|
|
4026
4148
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
4027
4149
|
}, 500);
|
|
4028
4150
|
}
|
|
4029
|
-
}),
|
|
4151
|
+
}), Ro = async (e, t, n) => {
|
|
4030
4152
|
if (t && typeof t == "string") {
|
|
4031
|
-
let r = t.match(
|
|
4153
|
+
let r = t.match(Po);
|
|
4032
4154
|
if (r && t.indexOf("return") === -1) {
|
|
4033
4155
|
let t = r[0].split(":");
|
|
4034
|
-
if (t[0] === "date") return (t) =>
|
|
4156
|
+
if (t[0] === "date") return (t) => dr(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
4035
4157
|
if (t[0] === "city") return (t) => t[`${e}Str`];
|
|
4036
4158
|
if (t[0] === "modules" && n && Object.keys(n).length > 0) {
|
|
4037
4159
|
let e = r[0].replace("modules:", ""), t = Object.keys(n).find((t) => t.includes(e));
|
|
@@ -4049,7 +4171,7 @@ var co = () => new Promise((e) => {
|
|
|
4049
4171
|
}
|
|
4050
4172
|
}
|
|
4051
4173
|
return t && typeof t == "function" ? (e, n) => t(e, n, p) : "";
|
|
4052
|
-
},
|
|
4174
|
+
}, zo = (e, t, n) => {
|
|
4053
4175
|
let r = t.map((t) => {
|
|
4054
4176
|
let r = [], i = t.id;
|
|
4055
4177
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -4062,35 +4184,35 @@ var co = () => new Promise((e) => {
|
|
|
4062
4184
|
};
|
|
4063
4185
|
});
|
|
4064
4186
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
4065
|
-
},
|
|
4066
|
-
function
|
|
4067
|
-
|
|
4187
|
+
}, Bo = /* @__PURE__ */ new Map();
|
|
4188
|
+
function Vo() {
|
|
4189
|
+
Bo.clear();
|
|
4068
4190
|
}
|
|
4069
|
-
async function
|
|
4191
|
+
async function Ho(e, t = !1) {
|
|
4070
4192
|
let n = e.split("."), r = !1;
|
|
4071
|
-
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))), {
|
|
4072
4194
|
sourceData: r,
|
|
4073
4195
|
n
|
|
4074
4196
|
};
|
|
4075
4197
|
}
|
|
4076
|
-
async function
|
|
4198
|
+
async function Uo(e) {
|
|
4077
4199
|
return new Promise((t, n) => {
|
|
4078
4200
|
let r = Y(`dynamicTable_${e}`, !1);
|
|
4079
|
-
r &&
|
|
4201
|
+
r && Bo.has(`dynamicTable_${e}`) ? t(r) : _i(e, r ? r.createTime : null).then((n) => {
|
|
4080
4202
|
if (n) {
|
|
4081
4203
|
let r = {
|
|
4082
4204
|
createTime: n.createTime,
|
|
4083
4205
|
tableTitle: n.tableTitle,
|
|
4084
4206
|
viewJson: n.viewJson
|
|
4085
4207
|
};
|
|
4086
|
-
J(`dynamicTable_${e}`, r, 0),
|
|
4087
|
-
} 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);
|
|
4088
4210
|
}).catch(() => {
|
|
4089
4211
|
n();
|
|
4090
4212
|
});
|
|
4091
4213
|
});
|
|
4092
4214
|
}
|
|
4093
|
-
var
|
|
4215
|
+
var Wo = (e) => e.map((e) => {
|
|
4094
4216
|
let t = {};
|
|
4095
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)), {
|
|
4096
4218
|
i: e.input,
|
|
@@ -4165,7 +4287,7 @@ var go = (e) => e.map((e) => {
|
|
|
4165
4287
|
p: { s: +!!e.form.expand.show }
|
|
4166
4288
|
}
|
|
4167
4289
|
};
|
|
4168
|
-
}),
|
|
4290
|
+
}), Go = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
4169
4291
|
let t = {};
|
|
4170
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)), {
|
|
4171
4293
|
input: e.i,
|
|
@@ -4240,12 +4362,12 @@ var go = (e) => e.map((e) => {
|
|
|
4240
4362
|
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
4241
4363
|
}
|
|
4242
4364
|
};
|
|
4243
|
-
}),
|
|
4365
|
+
}), Ko = (e) => ({
|
|
4244
4366
|
f: e.fetch,
|
|
4245
4367
|
n: e.fetchFn,
|
|
4246
4368
|
o: e.when_drawer_open,
|
|
4247
4369
|
b: e.when_before_save
|
|
4248
|
-
}),
|
|
4370
|
+
}), qo = (e) => e ? e.fetch ? e : {
|
|
4249
4371
|
fetch: e.f,
|
|
4250
4372
|
fetchFn: e.n,
|
|
4251
4373
|
when_drawer_open: e.o,
|
|
@@ -4255,7 +4377,7 @@ var go = (e) => e.map((e) => {
|
|
|
4255
4377
|
fetchFn: "",
|
|
4256
4378
|
when_drawer_open: "",
|
|
4257
4379
|
when_before_save: ""
|
|
4258
|
-
},
|
|
4380
|
+
}, Jo = (e) => ({
|
|
4259
4381
|
i: e.index,
|
|
4260
4382
|
s: e.selection,
|
|
4261
4383
|
p: e.pagination,
|
|
@@ -4271,7 +4393,7 @@ var go = (e) => e.map((e) => {
|
|
|
4271
4393
|
h: e.drawerHeight,
|
|
4272
4394
|
l: e.placement,
|
|
4273
4395
|
r: e.summary
|
|
4274
|
-
}),
|
|
4396
|
+
}), Yo = (e) => {
|
|
4275
4397
|
let t = {};
|
|
4276
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 : {
|
|
4277
4399
|
index: e.i,
|
|
@@ -4289,9 +4411,9 @@ var go = (e) => e.map((e) => {
|
|
|
4289
4411
|
drawerHeight: e.h,
|
|
4290
4412
|
placement: e.l,
|
|
4291
4413
|
summary: e.r
|
|
4292
|
-
}), Object.assign({},
|
|
4414
|
+
}), Object.assign({}, Fo, U(t));
|
|
4293
4415
|
};
|
|
4294
|
-
function
|
|
4416
|
+
function Xo(e, t, n, r) {
|
|
4295
4417
|
return new Promise(async (i, a) => {
|
|
4296
4418
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
|
|
4297
4419
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -4326,21 +4448,21 @@ function So(e, t, n, r) {
|
|
|
4326
4448
|
disabled: !0
|
|
4327
4449
|
}];
|
|
4328
4450
|
if (e.params.immediately || r) {
|
|
4329
|
-
let { sourceData: t, n: r } = await
|
|
4451
|
+
let { sourceData: t, n: r } = await Ho(e.source);
|
|
4330
4452
|
if (t && Array.isArray(t)) {
|
|
4331
4453
|
if (e.sourceFn) {
|
|
4332
4454
|
let r = e.sourceFn;
|
|
4333
4455
|
n = Function("sourceData", r)(t);
|
|
4334
|
-
} else n =
|
|
4456
|
+
} else n = zo(e, t, r);
|
|
4335
4457
|
}
|
|
4336
4458
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
4337
|
-
let { sourceData: t, n } = await
|
|
4459
|
+
let { sourceData: t, n } = await Ho(e.source);
|
|
4338
4460
|
if (t && Array.isArray(t)) {
|
|
4339
4461
|
if (e.sourceFn) {
|
|
4340
4462
|
let n = e.sourceFn;
|
|
4341
4463
|
return Function("sourceData", n)(t);
|
|
4342
4464
|
}
|
|
4343
|
-
return
|
|
4465
|
+
return zo(e, t, n);
|
|
4344
4466
|
}
|
|
4345
4467
|
};
|
|
4346
4468
|
if (e.params.options = n, e.form.backfill && t) {
|
|
@@ -4374,27 +4496,27 @@ function So(e, t, n, r) {
|
|
|
4374
4496
|
q(e);
|
|
4375
4497
|
}
|
|
4376
4498
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
4377
|
-
let t = await
|
|
4499
|
+
let t = await Lo();
|
|
4378
4500
|
e.params.options = t;
|
|
4379
4501
|
}
|
|
4380
4502
|
if (e.input === "subTable" && e.params.link) {
|
|
4381
|
-
let t = await
|
|
4503
|
+
let t = await Uo(e.params.link).catch(() => {
|
|
4382
4504
|
a();
|
|
4383
4505
|
});
|
|
4384
4506
|
if (t) try {
|
|
4385
4507
|
let n = rt.parse(t.viewJson);
|
|
4386
|
-
n.suffix && (e._suffix =
|
|
4387
|
-
let r =
|
|
4508
|
+
n.suffix && (e._suffix = Bi(n.suffix));
|
|
4509
|
+
let r = Go(n.table);
|
|
4388
4510
|
r.forEach((e) => {
|
|
4389
4511
|
e.table.sorter = !1;
|
|
4390
4512
|
});
|
|
4391
4513
|
let i = r.filter((e) => e.input === "subTable");
|
|
4392
4514
|
if (i) for await (let e of i) {
|
|
4393
|
-
let t = await
|
|
4515
|
+
let t = await Uo(e.params.link).catch(() => {
|
|
4394
4516
|
a();
|
|
4395
4517
|
});
|
|
4396
4518
|
if (t) try {
|
|
4397
|
-
let n = rt.parse(t.viewJson), r =
|
|
4519
|
+
let n = rt.parse(t.viewJson), r = Go(n.table);
|
|
4398
4520
|
r.forEach((e) => {
|
|
4399
4521
|
e.table.sorter = !1;
|
|
4400
4522
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -4428,7 +4550,7 @@ function So(e, t, n, r) {
|
|
|
4428
4550
|
});
|
|
4429
4551
|
});
|
|
4430
4552
|
}
|
|
4431
|
-
async function
|
|
4553
|
+
async function Zo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
4432
4554
|
let s = 0, c = [], l = [], u = {
|
|
4433
4555
|
key: "",
|
|
4434
4556
|
link: "",
|
|
@@ -4443,25 +4565,25 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4443
4565
|
for await (let [e, s] of m.entries()) {
|
|
4444
4566
|
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
|
|
4445
4567
|
if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
4446
|
-
let { sourceData: t, n } = await
|
|
4568
|
+
let { sourceData: t, n } = await Ho(s.source, a && e === 0);
|
|
4447
4569
|
if (t && Array.isArray(t)) {
|
|
4448
4570
|
if (s.sourceFn) {
|
|
4449
4571
|
let e = s.sourceFn, n = Function("sourceData", e);
|
|
4450
4572
|
s.params.options = n(t);
|
|
4451
|
-
} else s.params.options =
|
|
4573
|
+
} else s.params.options = zo(s, t, n);
|
|
4452
4574
|
}
|
|
4453
4575
|
} else s.params.options = [{
|
|
4454
4576
|
label: "加载中......",
|
|
4455
4577
|
value: "loading",
|
|
4456
4578
|
disabled: !0
|
|
4457
4579
|
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4458
|
-
let { sourceData: e, n: t } = await
|
|
4580
|
+
let { sourceData: e, n: t } = await Ho(s.source);
|
|
4459
4581
|
if (e && Array.isArray(e)) {
|
|
4460
4582
|
if (s.sourceFn) {
|
|
4461
4583
|
let t = s.sourceFn;
|
|
4462
4584
|
return Function("sourceData", t)(e);
|
|
4463
4585
|
}
|
|
4464
|
-
return
|
|
4586
|
+
return zo(s, e, t);
|
|
4465
4587
|
}
|
|
4466
4588
|
};
|
|
4467
4589
|
}
|
|
@@ -4469,7 +4591,7 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4469
4591
|
let t = s.params.options.find((t) => t.value === e[s.key]);
|
|
4470
4592
|
if (t) return t.label;
|
|
4471
4593
|
}), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
|
|
4472
|
-
return p(
|
|
4594
|
+
return p(fa, { value: e[s.key] }, { default: () => null });
|
|
4473
4595
|
});
|
|
4474
4596
|
let f = {
|
|
4475
4597
|
input: s.input,
|
|
@@ -4484,7 +4606,7 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4484
4606
|
tooltip: !0,
|
|
4485
4607
|
"line-clamp": s.table.clamp ?? 0
|
|
4486
4608
|
} : !1,
|
|
4487
|
-
render: s.table.render ? await
|
|
4609
|
+
render: s.table.render ? await Ro(s.key, s.table.render, i) : void 0,
|
|
4488
4610
|
show: K.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
4489
4611
|
pin: !!s.table.fixed,
|
|
4490
4612
|
fixTemp: s.table.fixed
|
|
@@ -4506,7 +4628,7 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4506
4628
|
...s.form.rule,
|
|
4507
4629
|
index: t
|
|
4508
4630
|
} : void 0
|
|
4509
|
-
}, { default: () => p(
|
|
4631
|
+
}, { default: () => p(qi, {
|
|
4510
4632
|
item: s,
|
|
4511
4633
|
formValue: e,
|
|
4512
4634
|
status: n,
|
|
@@ -4519,34 +4641,34 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4519
4641
|
if (s.search.title && (s.label = s.search.title), s.search.source) {
|
|
4520
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;
|
|
4521
4643
|
else if (s.params.immediately || s.search.defaultValue) {
|
|
4522
|
-
let { sourceData: e, n: t } = await
|
|
4644
|
+
let { sourceData: e, n: t } = await Ho(s.search.source);
|
|
4523
4645
|
if (e && Array.isArray(e)) {
|
|
4524
4646
|
if (s.sourceFn) {
|
|
4525
4647
|
let t = s.sourceFn, n = Function("sourceData", t);
|
|
4526
4648
|
s.params.options = n(e);
|
|
4527
|
-
} else s.params.options =
|
|
4649
|
+
} else s.params.options = zo(s, e, t);
|
|
4528
4650
|
}
|
|
4529
4651
|
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4530
|
-
let { sourceData: e, n: t } = await
|
|
4652
|
+
let { sourceData: e, n: t } = await Ho(s.search.source);
|
|
4531
4653
|
if (e && Array.isArray(e)) {
|
|
4532
4654
|
if (s.sourceFn) {
|
|
4533
4655
|
let t = s.sourceFn;
|
|
4534
4656
|
return Function("sourceData", t)(e);
|
|
4535
4657
|
}
|
|
4536
|
-
return
|
|
4658
|
+
return zo(s, e, t);
|
|
4537
4659
|
}
|
|
4538
4660
|
};
|
|
4539
4661
|
}
|
|
4540
|
-
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) {
|
|
4541
4663
|
let e = U(s);
|
|
4542
4664
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
4543
|
-
let { sourceData: t, n } = await
|
|
4665
|
+
let { sourceData: t, n } = await Ho(e.source || e.search.source);
|
|
4544
4666
|
if (t && Array.isArray(t)) {
|
|
4545
4667
|
if (e.sourceFn) {
|
|
4546
4668
|
let n = e.sourceFn;
|
|
4547
4669
|
return Function("sourceData", n)(t);
|
|
4548
4670
|
}
|
|
4549
|
-
return
|
|
4671
|
+
return zo(e, t, n);
|
|
4550
4672
|
}
|
|
4551
4673
|
}), c.push({
|
|
4552
4674
|
input: e.input,
|
|
@@ -4600,7 +4722,7 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4600
4722
|
}
|
|
4601
4723
|
//#endregion
|
|
4602
4724
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
4603
|
-
var
|
|
4725
|
+
var Qo = f({
|
|
4604
4726
|
name: "UzSpin",
|
|
4605
4727
|
components: {
|
|
4606
4728
|
NButton: R,
|
|
@@ -4646,7 +4768,7 @@ var wo = f({
|
|
|
4646
4768
|
});
|
|
4647
4769
|
//#endregion
|
|
4648
4770
|
//#region components/spin/index.vue
|
|
4649
|
-
function
|
|
4771
|
+
function $o(e, t, n, i, a, s) {
|
|
4650
4772
|
let c = O("NEllipsis"), d = O("NButton"), f = O("NSpin");
|
|
4651
4773
|
return S(), r(f, { show: e.value }, {
|
|
4652
4774
|
description: P(() => [
|
|
@@ -4674,7 +4796,7 @@ function To(e, t, n, i, a, s) {
|
|
|
4674
4796
|
_: 3
|
|
4675
4797
|
}, 8, ["show"]);
|
|
4676
4798
|
}
|
|
4677
|
-
var
|
|
4799
|
+
var es = /*#__PURE__*/ W(Qo, [["render", $o]]), ts = f({
|
|
4678
4800
|
name: "UzTableExpand",
|
|
4679
4801
|
components: {
|
|
4680
4802
|
NDataTable: se,
|
|
@@ -4700,8 +4822,8 @@ var Eo = /*#__PURE__*/ W(wo, [["render", To]]), Do = f({
|
|
|
4700
4822
|
} catch (e) {
|
|
4701
4823
|
q(e);
|
|
4702
4824
|
}
|
|
4703
|
-
|
|
4704
|
-
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) => ({
|
|
4705
4827
|
...e,
|
|
4706
4828
|
sorter: !1,
|
|
4707
4829
|
resizable: !1
|
|
@@ -4722,7 +4844,7 @@ var Eo = /*#__PURE__*/ W(wo, [["render", To]]), Do = f({
|
|
|
4722
4844
|
});
|
|
4723
4845
|
//#endregion
|
|
4724
4846
|
//#region components/table/components/expand.vue
|
|
4725
|
-
function
|
|
4847
|
+
function ns(e, t, n, i, a, o) {
|
|
4726
4848
|
let s = O("NDataTable");
|
|
4727
4849
|
return S(), r(s, {
|
|
4728
4850
|
columns: e.columns,
|
|
@@ -4741,18 +4863,18 @@ function Oo(e, t, n, i, a, o) {
|
|
|
4741
4863
|
"scroll-x"
|
|
4742
4864
|
]);
|
|
4743
4865
|
}
|
|
4744
|
-
var
|
|
4866
|
+
var rs = /*#__PURE__*/ W(ts, [["render", ns]]), is = f({
|
|
4745
4867
|
components: { NSkeleton: je },
|
|
4746
4868
|
setup() {
|
|
4747
4869
|
return {};
|
|
4748
4870
|
}
|
|
4749
|
-
}),
|
|
4750
|
-
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) {
|
|
4751
4873
|
let c = O("NSkeleton");
|
|
4752
|
-
return S(), a("div",
|
|
4874
|
+
return S(), a("div", as, [o("div", os, [u(c, {
|
|
4753
4875
|
width: 120,
|
|
4754
4876
|
size: "medium"
|
|
4755
|
-
}), o("div",
|
|
4877
|
+
}), o("div", ss, [
|
|
4756
4878
|
u(c, {
|
|
4757
4879
|
width: 180,
|
|
4758
4880
|
size: "medium"
|
|
@@ -4785,7 +4907,7 @@ function Po(e, t, n, r, i, s) {
|
|
|
4785
4907
|
}
|
|
4786
4908
|
//#endregion
|
|
4787
4909
|
//#region components/table/index.vue?vue&type=script&lang.ts
|
|
4788
|
-
var
|
|
4910
|
+
var ls = f({
|
|
4789
4911
|
name: "UzTable",
|
|
4790
4912
|
components: {
|
|
4791
4913
|
NDataTable: se,
|
|
@@ -4795,9 +4917,9 @@ var Fo = f({
|
|
|
4795
4917
|
NCheckbox: ie,
|
|
4796
4918
|
NSpin: Ne,
|
|
4797
4919
|
VueDraggable: nt,
|
|
4798
|
-
UzSpin:
|
|
4799
|
-
TableExpand:
|
|
4800
|
-
SkeletonLoading: /* @__PURE__ */ W(
|
|
4920
|
+
UzSpin: es,
|
|
4921
|
+
TableExpand: rs,
|
|
4922
|
+
SkeletonLoading: /* @__PURE__ */ W(is, [["render", cs]])
|
|
4801
4923
|
},
|
|
4802
4924
|
props: {
|
|
4803
4925
|
id: {
|
|
@@ -4937,7 +5059,7 @@ var Fo = f({
|
|
|
4937
5059
|
fetchFn: "",
|
|
4938
5060
|
when_drawer_open: "",
|
|
4939
5061
|
when_before_save: ""
|
|
4940
|
-
}), 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) => {
|
|
4941
5063
|
t("update:rowKeys", {
|
|
4942
5064
|
keys: e,
|
|
4943
5065
|
rows: U(n)
|
|
@@ -4971,7 +5093,7 @@ var Fo = f({
|
|
|
4971
5093
|
else if (I.value.fetchFn) {
|
|
4972
5094
|
let e = I.value.fetchFn;
|
|
4973
5095
|
r = Function("POST", "queryData", e)(Z, { ...t });
|
|
4974
|
-
} else r =
|
|
5096
|
+
} else r = vi({
|
|
4975
5097
|
...t,
|
|
4976
5098
|
tableId: n
|
|
4977
5099
|
});
|
|
@@ -4985,7 +5107,7 @@ var Fo = f({
|
|
|
4985
5107
|
else if (I.value.fetchFn) {
|
|
4986
5108
|
let e = I.value.fetchFn;
|
|
4987
5109
|
r = Function("POST", "queryData", e)(Z, { id: t.id });
|
|
4988
|
-
} else r =
|
|
5110
|
+
} else r = vi({
|
|
4989
5111
|
id: t.id,
|
|
4990
5112
|
tableId: n
|
|
4991
5113
|
});
|
|
@@ -4994,24 +5116,24 @@ var Fo = f({
|
|
|
4994
5116
|
let r = e.id || o.params.id;
|
|
4995
5117
|
e.enableLoading && (_.value = !0, t("update:loading", !0));
|
|
4996
5118
|
let i = U(k.value);
|
|
4997
|
-
n && delete i.orderby, I.value.fetch ?
|
|
4998
|
-
let n =
|
|
5119
|
+
n && delete i.orderby, I.value.fetch ? Ci([I.value.fetch], "", i).then((e) => {
|
|
5120
|
+
let n = ur(e);
|
|
4999
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);
|
|
5000
5122
|
}).catch(() => {
|
|
5001
5123
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5002
5124
|
}) : de(i).then((e) => {
|
|
5003
|
-
let n =
|
|
5125
|
+
let n = ur(e);
|
|
5004
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);
|
|
5005
5127
|
}).catch(() => {
|
|
5006
5128
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5007
5129
|
});
|
|
5008
5130
|
}, pe = (e) => {
|
|
5009
|
-
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();
|
|
5010
5132
|
}, me = () => {
|
|
5011
5133
|
let e = k.value.query.page + 1;
|
|
5012
5134
|
e > k.value.query.pageMax && (e = 1), k.value.query.page = e, u.value && (u.value.scrollTop = 0), B();
|
|
5013
5135
|
}, he = (e) => {
|
|
5014
|
-
k.value.query.pageSize = e, k.value.query.page = 1,
|
|
5136
|
+
k.value.query.pageSize = e, k.value.query.page = 1, lr(), B();
|
|
5015
5137
|
}, ge = (e) => {
|
|
5016
5138
|
e && e.order ? k.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete k.value.orderby, B();
|
|
5017
5139
|
}, _e = () => {
|
|
@@ -5035,7 +5157,7 @@ var Fo = f({
|
|
|
5035
5157
|
show: !0,
|
|
5036
5158
|
ellipsis: !1,
|
|
5037
5159
|
width: 180,
|
|
5038
|
-
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") })]
|
|
5039
5161
|
}, {
|
|
5040
5162
|
title: "更新人/时间",
|
|
5041
5163
|
key: "updateTime",
|
|
@@ -5044,9 +5166,9 @@ var Fo = f({
|
|
|
5044
5166
|
show: !0,
|
|
5045
5167
|
ellipsis: !0,
|
|
5046
5168
|
width: 180,
|
|
5047
|
-
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") })]
|
|
5048
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) => {
|
|
5049
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await
|
|
5171
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Xo(N.value, e, () => f.value?.getFormValues());
|
|
5050
5172
|
return x.value = t, {
|
|
5051
5173
|
form: t,
|
|
5052
5174
|
fillingDefaultValue: n,
|
|
@@ -5135,7 +5257,7 @@ var Fo = f({
|
|
|
5135
5257
|
...n,
|
|
5136
5258
|
tableId: a,
|
|
5137
5259
|
sub_table_ids: r
|
|
5138
|
-
}) :
|
|
5260
|
+
}) : bi({
|
|
5139
5261
|
...n,
|
|
5140
5262
|
tableId: a,
|
|
5141
5263
|
sub_table_ids: r
|
|
@@ -5153,7 +5275,7 @@ var Fo = f({
|
|
|
5153
5275
|
});
|
|
5154
5276
|
};
|
|
5155
5277
|
} else if (n.type !== "group" && n.action === "disabledInside") n.onClick = (t) => {
|
|
5156
|
-
|
|
5278
|
+
yi({
|
|
5157
5279
|
tableId: e.id || o.params.id,
|
|
5158
5280
|
...t,
|
|
5159
5281
|
is_disabled: "1"
|
|
@@ -5162,7 +5284,7 @@ var Fo = f({
|
|
|
5162
5284
|
}).catch(() => null);
|
|
5163
5285
|
};
|
|
5164
5286
|
else if (n.type !== "group" && n.action === "enabledInside") n.onClick = (t) => {
|
|
5165
|
-
|
|
5287
|
+
yi({
|
|
5166
5288
|
tableId: e.id || o.params.id,
|
|
5167
5289
|
...t,
|
|
5168
5290
|
is_disabled: "0"
|
|
@@ -5175,7 +5297,7 @@ var Fo = f({
|
|
|
5175
5297
|
n.onClick = (t) => {
|
|
5176
5298
|
fe(t).then((t) => {
|
|
5177
5299
|
let r = t && t[0];
|
|
5178
|
-
|
|
5300
|
+
Ci([n.action], r.id, r).then((t) => {
|
|
5179
5301
|
if (e && typeof e == "string") {
|
|
5180
5302
|
try {
|
|
5181
5303
|
Function("rowData", "res", e)(r, t).then((e) => {
|
|
@@ -5214,8 +5336,8 @@ var Fo = f({
|
|
|
5214
5336
|
};
|
|
5215
5337
|
}
|
|
5216
5338
|
}, Te = async () => {
|
|
5217
|
-
re.value = !1,
|
|
5218
|
-
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);
|
|
5219
5341
|
!l.value && L.value.index && n.unshift({
|
|
5220
5342
|
title: "#",
|
|
5221
5343
|
key: "index",
|
|
@@ -5257,7 +5379,7 @@ var Fo = f({
|
|
|
5257
5379
|
hide: !0,
|
|
5258
5380
|
width: Number(typeof L.value.actionWidth == "string" ? L.value.actionWidth.replace("px", "") : L.value.actionWidth),
|
|
5259
5381
|
render(t) {
|
|
5260
|
-
return
|
|
5382
|
+
return Mi({
|
|
5261
5383
|
buttons: e,
|
|
5262
5384
|
rowData: t,
|
|
5263
5385
|
callback: B,
|
|
@@ -5271,8 +5393,8 @@ var Fo = f({
|
|
|
5271
5393
|
if (c) {
|
|
5272
5394
|
let e = Y(`tables_filter_${c}`, !1);
|
|
5273
5395
|
if (e) try {
|
|
5274
|
-
let t = await
|
|
5275
|
-
t && (e = JSON.parse(t), u =
|
|
5396
|
+
let t = await xi(c);
|
|
5397
|
+
t && (e = JSON.parse(t), u = yr(n, e));
|
|
5276
5398
|
} catch {}
|
|
5277
5399
|
}
|
|
5278
5400
|
a.link && u.unshift({
|
|
@@ -5284,7 +5406,7 @@ var Fo = f({
|
|
|
5284
5406
|
filter: "default",
|
|
5285
5407
|
filterOptionValue: null,
|
|
5286
5408
|
renderFilterMenu: () => p("div", { class: "uz-table-filter" }, [p(R, { onClick: ze }, { default: () => s("Common.expand") }), p(R, { onClick: Be }, { default: () => s("Common.contract") })]),
|
|
5287
|
-
renderExpand: (e) => p(
|
|
5409
|
+
renderExpand: (e) => p(rs, {
|
|
5288
5410
|
data: a,
|
|
5289
5411
|
value: e
|
|
5290
5412
|
})
|
|
@@ -5305,12 +5427,12 @@ var Fo = f({
|
|
|
5305
5427
|
let e = 0;
|
|
5306
5428
|
S.value.forEach((t) => {
|
|
5307
5429
|
t.show && (e += Number(t.width || 140));
|
|
5308
|
-
}), 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({
|
|
5309
5431
|
table_id: n,
|
|
5310
5432
|
data: JSON.stringify(t)
|
|
5311
5433
|
}).catch(() => null);
|
|
5312
5434
|
}
|
|
5313
|
-
}, { run: ke } =
|
|
5435
|
+
}, { run: ke } = _a(Oe), { run: Ae } = _a((e, t) => {
|
|
5314
5436
|
let n = [];
|
|
5315
5437
|
S.value.forEach((r) => {
|
|
5316
5438
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -5337,7 +5459,7 @@ var Fo = f({
|
|
|
5337
5459
|
i = e.formFetch ? e.formFetch({
|
|
5338
5460
|
tableId: a,
|
|
5339
5461
|
...t
|
|
5340
|
-
}) :
|
|
5462
|
+
}) : yi({
|
|
5341
5463
|
tableId: a,
|
|
5342
5464
|
...t
|
|
5343
5465
|
}), i.then(() => {
|
|
@@ -5351,14 +5473,14 @@ var Fo = f({
|
|
|
5351
5473
|
fetchFn: "",
|
|
5352
5474
|
when_drawer_open: "",
|
|
5353
5475
|
when_before_save: ""
|
|
5354
|
-
}, L.value =
|
|
5476
|
+
}, L.value = Yo();
|
|
5355
5477
|
}, Pe = (t) => {
|
|
5356
5478
|
let n = rt.parse(t.viewJson);
|
|
5357
|
-
y.value = t.tableTitle, N.value =
|
|
5358
|
-
let r =
|
|
5359
|
-
F.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value =
|
|
5360
|
-
let i =
|
|
5361
|
-
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;
|
|
5362
5484
|
}, Fe = async () => {
|
|
5363
5485
|
v.value = !1, Ne();
|
|
5364
5486
|
let t = e.id || o.params.id;
|
|
@@ -5375,7 +5497,7 @@ var Fo = f({
|
|
|
5375
5497
|
ne.value = s("Notice.network"), re.value = !0;
|
|
5376
5498
|
return;
|
|
5377
5499
|
}
|
|
5378
|
-
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) => {
|
|
5379
5501
|
Pe(e), await Te();
|
|
5380
5502
|
}).catch((e) => {
|
|
5381
5503
|
ne.value = e?.message || s("Notice.network"), re.value = !0;
|
|
@@ -5416,7 +5538,7 @@ var Fo = f({
|
|
|
5416
5538
|
if (_.value) return;
|
|
5417
5539
|
_.value = !0;
|
|
5418
5540
|
let t = e.id || o.params.id;
|
|
5419
|
-
t && (
|
|
5541
|
+
t && (or(`tables_filter_${t}`), Si({
|
|
5420
5542
|
table_id: t,
|
|
5421
5543
|
data: null
|
|
5422
5544
|
}).catch(() => null).finally(() => {
|
|
@@ -5443,7 +5565,7 @@ var Fo = f({
|
|
|
5443
5565
|
}), M(() => e.height, () => {
|
|
5444
5566
|
De();
|
|
5445
5567
|
}), M([() => o.params.id, () => e.id], async () => {
|
|
5446
|
-
|
|
5568
|
+
lr(), await Fe();
|
|
5447
5569
|
}), M(() => e.defaultCheckedRowKeys, (e) => {
|
|
5448
5570
|
let t = e || [], n = z.value.filter((e) => t.includes(e.id));
|
|
5449
5571
|
ie.value = t, z.value = n;
|
|
@@ -5494,14 +5616,14 @@ var Fo = f({
|
|
|
5494
5616
|
}
|
|
5495
5617
|
};
|
|
5496
5618
|
}
|
|
5497
|
-
}),
|
|
5619
|
+
}), us = { class: "uz-com-title" }, ds = {
|
|
5498
5620
|
ref: "mRef",
|
|
5499
5621
|
class: "uz-table-m-content"
|
|
5500
|
-
},
|
|
5622
|
+
}, fs = {
|
|
5501
5623
|
key: 1,
|
|
5502
5624
|
class: "uz-transform-fade-in"
|
|
5503
|
-
},
|
|
5504
|
-
function
|
|
5625
|
+
}, ps = { class: "uz-com-title" }, ms = ["data-index"];
|
|
5626
|
+
function hs(t, n, c, d, f, p) {
|
|
5505
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");
|
|
5506
5628
|
return S(), a("div", {
|
|
5507
5629
|
class: "uz-table",
|
|
@@ -5566,7 +5688,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5566
5688
|
key: "0"
|
|
5567
5689
|
} : {
|
|
5568
5690
|
name: "header",
|
|
5569
|
-
fn: P(() => [o("div",
|
|
5691
|
+
fn: P(() => [o("div", us, A(t.title), 1)]),
|
|
5570
5692
|
key: "1"
|
|
5571
5693
|
}]), 1032, [
|
|
5572
5694
|
"data",
|
|
@@ -5574,7 +5696,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5574
5696
|
"cache",
|
|
5575
5697
|
"loading",
|
|
5576
5698
|
"onOnUpdate:value"
|
|
5577
|
-
]), o("div",
|
|
5699
|
+
]), o("div", ds, [u(C, {
|
|
5578
5700
|
tableColumns: t.tableCols,
|
|
5579
5701
|
tableData: t.tableData,
|
|
5580
5702
|
tableQueries: t.tableQueries,
|
|
@@ -5592,7 +5714,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5592
5714
|
"minH",
|
|
5593
5715
|
"maxH",
|
|
5594
5716
|
"onUpdate:rowKeys"
|
|
5595
|
-
])], 512)], 2)) : (S(), a("div",
|
|
5717
|
+
])], 512)], 2)) : (S(), a("div", fs, [u(te, {
|
|
5596
5718
|
data: t.searchData,
|
|
5597
5719
|
id: t.id || t.route.params.id,
|
|
5598
5720
|
cache: t.tableOption.cache,
|
|
@@ -5647,7 +5769,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5647
5769
|
_: 1
|
|
5648
5770
|
})]),
|
|
5649
5771
|
_: 1
|
|
5650
|
-
})], 8,
|
|
5772
|
+
})], 8, ms)), [[j, !e.hide]])), 128)), u(h, {
|
|
5651
5773
|
block: "",
|
|
5652
5774
|
tertiary: "",
|
|
5653
5775
|
loading: t.loading,
|
|
@@ -5701,7 +5823,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5701
5823
|
key: "0"
|
|
5702
5824
|
} : {
|
|
5703
5825
|
name: "header",
|
|
5704
|
-
fn: P(() => [o("div",
|
|
5826
|
+
fn: P(() => [o("div", ps, A(t.title), 1)]),
|
|
5705
5827
|
key: "1"
|
|
5706
5828
|
}]), 1032, [
|
|
5707
5829
|
"data",
|
|
@@ -5762,10 +5884,10 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5762
5884
|
u(I, { ref: "drawerRef" }, null, 512)
|
|
5763
5885
|
], 4);
|
|
5764
5886
|
}
|
|
5765
|
-
var
|
|
5887
|
+
var gs = /*#__PURE__*/ W(ls, [["render", hs]]), _s = f({
|
|
5766
5888
|
name: "UzTableChild",
|
|
5767
5889
|
components: {
|
|
5768
|
-
UzIcon:
|
|
5890
|
+
UzIcon: In,
|
|
5769
5891
|
NSpin: Ne,
|
|
5770
5892
|
NButton: R,
|
|
5771
5893
|
NIcon: V,
|
|
@@ -5791,7 +5913,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5791
5913
|
emits: ["update:value"],
|
|
5792
5914
|
setup(e, { emit: t, expose: r }) {
|
|
5793
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) => {
|
|
5794
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
5916
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await Xo(U(n ?? e.item.params.columns), t, void 0, !0);
|
|
5795
5917
|
return S.value = r, i;
|
|
5796
5918
|
}, D = async (t) => {
|
|
5797
5919
|
if (h.value) return;
|
|
@@ -5822,7 +5944,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5822
5944
|
});
|
|
5823
5945
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
5824
5946
|
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
5825
|
-
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;
|
|
5826
5948
|
r.unshift({
|
|
5827
5949
|
title: " ",
|
|
5828
5950
|
key: "index",
|
|
@@ -5841,7 +5963,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5841
5963
|
hide: !0,
|
|
5842
5964
|
show: !0,
|
|
5843
5965
|
render() {
|
|
5844
|
-
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" }) }));
|
|
5845
5967
|
}
|
|
5846
5968
|
}), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
|
|
5847
5969
|
title: () => l("Common.action"),
|
|
@@ -5855,7 +5977,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5855
5977
|
width: 60,
|
|
5856
5978
|
render(t, n) {
|
|
5857
5979
|
let r = [];
|
|
5858
|
-
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) => {
|
|
5859
5981
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
5860
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({
|
|
5861
5983
|
type: "normal",
|
|
@@ -5867,7 +5989,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5867
5989
|
let n = e.item.params.deleteFn;
|
|
5868
5990
|
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
|
|
5869
5991
|
}
|
|
5870
|
-
}),
|
|
5992
|
+
}), Mi({
|
|
5871
5993
|
buttons: r,
|
|
5872
5994
|
rowData: t
|
|
5873
5995
|
});
|
|
@@ -5998,14 +6120,14 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5998
6120
|
}
|
|
5999
6121
|
};
|
|
6000
6122
|
}
|
|
6001
|
-
}),
|
|
6123
|
+
}), vs = { class: "uz-flex-1 uz-w-full" }, ys = { class: "uz-flex uz-justify-between" }, bs = { class: "uz-com-title" }, xs = {
|
|
6002
6124
|
key: 0,
|
|
6003
6125
|
class: "uz-table-asterisk"
|
|
6004
|
-
},
|
|
6005
|
-
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) {
|
|
6006
6128
|
let m = O("UzIcon"), h = O("NIcon"), g = O("NButton"), v = O("NDataTable"), y = O("NForm");
|
|
6007
|
-
return S(), a("div",
|
|
6008
|
-
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, [
|
|
6009
6131
|
t.status === 2 ? i("", !0) : (S(!0), a(e, { key: 0 }, E(t.suffixes, (e) => (S(), r(g, {
|
|
6010
6132
|
key: e.key,
|
|
6011
6133
|
type: e.color,
|
|
@@ -6078,7 +6200,7 @@ function Xo(t, n, c, d, f, p) {
|
|
|
6078
6200
|
"scroll-x",
|
|
6079
6201
|
"class",
|
|
6080
6202
|
"row-class-name"
|
|
6081
|
-
])) : 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, {
|
|
6082
6204
|
key: 0,
|
|
6083
6205
|
type: "success",
|
|
6084
6206
|
secondary: "",
|
|
@@ -6107,7 +6229,7 @@ function Xo(t, n, c, d, f, p) {
|
|
|
6107
6229
|
}, 8, ["model"])
|
|
6108
6230
|
]);
|
|
6109
6231
|
}
|
|
6110
|
-
var
|
|
6232
|
+
var Ts = /*#__PURE__*/ W(_s, [["render", ws]]), Es = f({
|
|
6111
6233
|
name: "UzTableQuestChild",
|
|
6112
6234
|
components: { NDataTable: se },
|
|
6113
6235
|
props: {
|
|
@@ -6135,7 +6257,7 @@ var Zo = /*#__PURE__*/ W(Uo, [["render", Xo]]), Qo = f({
|
|
|
6135
6257
|
}), o.value = t, i.value = !1;
|
|
6136
6258
|
}
|
|
6137
6259
|
}, l = async (i) => {
|
|
6138
|
-
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;
|
|
6139
6261
|
c.unshift({
|
|
6140
6262
|
title: " ",
|
|
6141
6263
|
key: "index",
|
|
@@ -6154,7 +6276,7 @@ var Zo = /*#__PURE__*/ W(Uo, [["render", Xo]]), Qo = f({
|
|
|
6154
6276
|
hide: !0,
|
|
6155
6277
|
width: 60,
|
|
6156
6278
|
render(t) {
|
|
6157
|
-
return
|
|
6279
|
+
return Mi({ buttons: [{
|
|
6158
6280
|
type: "normal",
|
|
6159
6281
|
color: "primary",
|
|
6160
6282
|
key: "detail",
|
|
@@ -6175,7 +6297,7 @@ var Zo = /*#__PURE__*/ W(Uo, [["render", Xo]]), Qo = f({
|
|
|
6175
6297
|
}), N(async () => {
|
|
6176
6298
|
try {
|
|
6177
6299
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
6178
|
-
let t = await
|
|
6300
|
+
let t = await vi({
|
|
6179
6301
|
tableId: e.item.params.link,
|
|
6180
6302
|
params: [{
|
|
6181
6303
|
key: e.item.params.searchKey,
|
|
@@ -6209,11 +6331,11 @@ var Zo = /*#__PURE__*/ W(Uo, [["render", Xo]]), Qo = f({
|
|
|
6209
6331
|
tableScrollX: s
|
|
6210
6332
|
};
|
|
6211
6333
|
}
|
|
6212
|
-
}),
|
|
6213
|
-
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) {
|
|
6214
6336
|
let c = O("NDataTable"), l = O("UzTableDrawer");
|
|
6215
|
-
return S(), a("div",
|
|
6216
|
-
o("div",
|
|
6337
|
+
return S(), a("div", Ds, [
|
|
6338
|
+
o("div", Os, [o("div", ks, A(e.item.label), 1)]),
|
|
6217
6339
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
6218
6340
|
u(c, {
|
|
6219
6341
|
columns: e.columns,
|
|
@@ -6235,7 +6357,7 @@ function ns(e, t, n, r, i, s) {
|
|
|
6235
6357
|
u(l, { ref: "drawerRef" }, null, 512)
|
|
6236
6358
|
]);
|
|
6237
6359
|
}
|
|
6238
|
-
var
|
|
6360
|
+
var js = /*#__PURE__*/ W(Es, [["render", As]]), Ms = f({
|
|
6239
6361
|
name: "UzTableDrawer",
|
|
6240
6362
|
components: {
|
|
6241
6363
|
NButton: R,
|
|
@@ -6276,7 +6398,7 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6276
6398
|
}), b = T(!1), x = T(), S = () => {
|
|
6277
6399
|
a.value?.restoreValidation(), c.value = {}, p.value = !1, f.value = !1, u.value = !1, t("update:show", !1);
|
|
6278
6400
|
}, C = () => {
|
|
6279
|
-
s.value === 2 ? S() :
|
|
6401
|
+
s.value === 2 ? S() : ar.info({
|
|
6280
6402
|
title: "提示",
|
|
6281
6403
|
content: "关闭后修改的数据将不保留,确定关闭?",
|
|
6282
6404
|
positiveText: "确定",
|
|
@@ -6307,11 +6429,11 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6307
6429
|
linkFn: t
|
|
6308
6430
|
};
|
|
6309
6431
|
let r = e.split(".")[0];
|
|
6310
|
-
|
|
6432
|
+
Uo(r).then((e) => {
|
|
6311
6433
|
g(async () => {
|
|
6312
6434
|
let t = rt.parse(e.viewJson);
|
|
6313
|
-
d.value =
|
|
6314
|
-
let { form: i } = await
|
|
6435
|
+
d.value = Yo(t.option), u.value = !0;
|
|
6436
|
+
let { form: i } = await Xo(Go(t.table), n);
|
|
6315
6437
|
y.value = t.trigger, n && w(n);
|
|
6316
6438
|
let a = Y(`tables_cache_link_${r}`, !1);
|
|
6317
6439
|
a && (c.value = a), g(() => {
|
|
@@ -6360,7 +6482,7 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6360
6482
|
}
|
|
6361
6483
|
if (x.value) {
|
|
6362
6484
|
x.value(e, () => {
|
|
6363
|
-
|
|
6485
|
+
or(`tables_cache_${o.value}`), S();
|
|
6364
6486
|
}, (e) => {
|
|
6365
6487
|
_.value = 1, h.value = e;
|
|
6366
6488
|
});
|
|
@@ -6368,11 +6490,11 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6368
6490
|
}
|
|
6369
6491
|
{
|
|
6370
6492
|
let n = l.value.link.split(".")[0];
|
|
6371
|
-
|
|
6493
|
+
yi({
|
|
6372
6494
|
tableId: n,
|
|
6373
6495
|
...e
|
|
6374
6496
|
}).then(() => {
|
|
6375
|
-
|
|
6497
|
+
Vo(), vi({ tableId: n }).then((e) => {
|
|
6376
6498
|
let r = l.value.link.split("."), i;
|
|
6377
6499
|
if (l.value.linkFn) {
|
|
6378
6500
|
let t = l.value.linkFn;
|
|
@@ -6383,7 +6505,7 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6383
6505
|
disabled: e?.status === "0",
|
|
6384
6506
|
params: e
|
|
6385
6507
|
}));
|
|
6386
|
-
p.value = !1,
|
|
6508
|
+
p.value = !1, or(`tables_cache_link_${n}`), t("on-submit", i), S();
|
|
6387
6509
|
}).catch((e) => {
|
|
6388
6510
|
_.value = 1, h.value = e;
|
|
6389
6511
|
});
|
|
@@ -6405,11 +6527,11 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6405
6527
|
}
|
|
6406
6528
|
};
|
|
6407
6529
|
}
|
|
6408
|
-
}),
|
|
6530
|
+
}), Ns = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, Ps = {
|
|
6409
6531
|
key: 0,
|
|
6410
6532
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
6411
|
-
},
|
|
6412
|
-
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) {
|
|
6413
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");
|
|
6414
6536
|
return S(), a(e, null, [u(x, {
|
|
6415
6537
|
show: t.drawer,
|
|
@@ -6435,7 +6557,7 @@ function ls(t, n, c, d, f, p) {
|
|
|
6435
6557
|
message: t.spinMsg,
|
|
6436
6558
|
status: t.spinStatus
|
|
6437
6559
|
}, {
|
|
6438
|
-
default: P(() => [o("div",
|
|
6560
|
+
default: P(() => [o("div", Ns, [t.skeletonShow ? (S(), a("div", Ps, [
|
|
6439
6561
|
u(m, {
|
|
6440
6562
|
size: "large",
|
|
6441
6563
|
style: { height: "156px" }
|
|
@@ -6498,7 +6620,7 @@ function ls(t, n, c, d, f, p) {
|
|
|
6498
6620
|
_: 2
|
|
6499
6621
|
}, [t.formStatus === 2 ? void 0 : {
|
|
6500
6622
|
name: "footer",
|
|
6501
|
-
fn: P(() => [o("div",
|
|
6623
|
+
fn: P(() => [o("div", Fs, [t.isMobile ? i("", !0) : (S(), r(v, {
|
|
6502
6624
|
key: 0,
|
|
6503
6625
|
loading: t.spinShow,
|
|
6504
6626
|
type: "success",
|
|
@@ -6507,7 +6629,7 @@ function ls(t, n, c, d, f, p) {
|
|
|
6507
6629
|
}, {
|
|
6508
6630
|
default: P(() => [l(A(t.$t("OCR.ocr")), 1)]),
|
|
6509
6631
|
_: 1
|
|
6510
|
-
}, 8, ["loading"])), o("div",
|
|
6632
|
+
}, 8, ["loading"])), o("div", Is, [
|
|
6511
6633
|
u(v, {
|
|
6512
6634
|
loading: t.spinShow,
|
|
6513
6635
|
class: "uz-drawer-button",
|
|
@@ -6575,7 +6697,7 @@ function ls(t, n, c, d, f, p) {
|
|
|
6575
6697
|
_: 1
|
|
6576
6698
|
}, 8, ["show"])], 64);
|
|
6577
6699
|
}
|
|
6578
|
-
var
|
|
6700
|
+
var Rs = /*#__PURE__*/ W(Ms, [["render", Ls]]), zs = f({
|
|
6579
6701
|
name: "UzTableMobileList",
|
|
6580
6702
|
props: {
|
|
6581
6703
|
tableData: {
|
|
@@ -6593,12 +6715,12 @@ var us = /*#__PURE__*/ W(is, [["render", ls]]), ds = f({
|
|
|
6593
6715
|
},
|
|
6594
6716
|
emits: ["update:row-keys"],
|
|
6595
6717
|
setup() {}
|
|
6596
|
-
}),
|
|
6718
|
+
}), Bs = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Vs = {
|
|
6597
6719
|
key: 1,
|
|
6598
6720
|
class: "uz-table-mobile-group-txt"
|
|
6599
6721
|
};
|
|
6600
|
-
function
|
|
6601
|
-
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", {
|
|
6602
6724
|
key: n.key,
|
|
6603
6725
|
class: _(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
|
|
6604
6726
|
style: v(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
|
|
@@ -6609,11 +6731,11 @@ function ms(t, n, s, c, l, u) {
|
|
|
6609
6731
|
class: "mobile"
|
|
6610
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(() => {
|
|
6611
6733
|
if (t.tableData) return n.render(t.tableData, t.tableIndex);
|
|
6612
|
-
}), { key: 0 })) : (S(), a("div",
|
|
6734
|
+
}), { key: 0 })) : (S(), a("div", Vs, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
6613
6735
|
}
|
|
6614
6736
|
//#endregion
|
|
6615
6737
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
6616
|
-
var
|
|
6738
|
+
var Us = f({
|
|
6617
6739
|
name: "UzTableMobile",
|
|
6618
6740
|
components: {
|
|
6619
6741
|
NCheckbox: ie,
|
|
@@ -6621,7 +6743,7 @@ var hs = f({
|
|
|
6621
6743
|
NPagination: Te,
|
|
6622
6744
|
NCheckboxGroup: z,
|
|
6623
6745
|
NRadioGroup: ke,
|
|
6624
|
-
UzTableMobileList: /* @__PURE__ */ W(
|
|
6746
|
+
UzTableMobileList: /* @__PURE__ */ W(zs, [["render", Hs], ["__scopeId", "data-v-84c394fe"]])
|
|
6625
6747
|
},
|
|
6626
6748
|
props: {
|
|
6627
6749
|
tableData: {
|
|
@@ -6668,17 +6790,17 @@ var hs = f({
|
|
|
6668
6790
|
}
|
|
6669
6791
|
};
|
|
6670
6792
|
}
|
|
6671
|
-
}),
|
|
6793
|
+
}), Ws = {
|
|
6672
6794
|
key: 0,
|
|
6673
6795
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6674
|
-
},
|
|
6796
|
+
}, Gs = {
|
|
6675
6797
|
key: 0,
|
|
6676
6798
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6677
|
-
},
|
|
6799
|
+
}, Ks = {
|
|
6678
6800
|
key: 0,
|
|
6679
6801
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6680
6802
|
};
|
|
6681
|
-
function
|
|
6803
|
+
function qs(t, n, o, s, c, l) {
|
|
6682
6804
|
let d = O("UzTableMobileList"), f = O("NCheckbox"), p = O("NPagination"), m = O("NCheckboxGroup"), h = O("NRadio"), g = O("NRadioGroup");
|
|
6683
6805
|
return t.selection === 2 ? (S(), r(m, {
|
|
6684
6806
|
key: 0,
|
|
@@ -6705,7 +6827,7 @@ function ys(t, n, o, s, c, l) {
|
|
|
6705
6827
|
"tableColumns"
|
|
6706
6828
|
])]),
|
|
6707
6829
|
_: 2
|
|
6708
|
-
}, 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, {
|
|
6709
6831
|
page: t.tableQueries.query.page,
|
|
6710
6832
|
"onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6711
6833
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6747,7 +6869,7 @@ function ys(t, n, o, s, c, l) {
|
|
|
6747
6869
|
"tableColumns"
|
|
6748
6870
|
])]),
|
|
6749
6871
|
_: 2
|
|
6750
|
-
}, 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, {
|
|
6751
6873
|
page: t.tableQueries.query.page,
|
|
6752
6874
|
"onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6753
6875
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6782,7 +6904,7 @@ function ys(t, n, o, s, c, l) {
|
|
|
6782
6904
|
"tableData",
|
|
6783
6905
|
"tableIndex",
|
|
6784
6906
|
"tableColumns"
|
|
6785
|
-
])]))), 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, {
|
|
6786
6908
|
page: t.tableQueries.query.page,
|
|
6787
6909
|
"onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6788
6910
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6795,10 +6917,10 @@ function ys(t, n, o, s, c, l) {
|
|
|
6795
6917
|
"onUpdate:page"
|
|
6796
6918
|
])])) : i("", !0)], 4));
|
|
6797
6919
|
}
|
|
6798
|
-
var
|
|
6920
|
+
var Js = /*#__PURE__*/ W(Us, [["render", qs], ["__scopeId", "data-v-70b54e3b"]]), Ys = f({
|
|
6799
6921
|
name: "UzTableFile",
|
|
6800
6922
|
components: {
|
|
6801
|
-
UzIcon:
|
|
6923
|
+
UzIcon: In,
|
|
6802
6924
|
NDropdown: fe,
|
|
6803
6925
|
NButton: R,
|
|
6804
6926
|
NModal: we,
|
|
@@ -6824,11 +6946,11 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6824
6946
|
let { t: n } = Ze(), r = Je(), i = Ue(), a = T(!1), o = T(!1), s = T(), c = T(""), l = T([{
|
|
6825
6947
|
label: n("Common.import"),
|
|
6826
6948
|
key: "import",
|
|
6827
|
-
icon: () => p(V, null, { default: () => p(
|
|
6949
|
+
icon: () => p(V, null, { default: () => p(In, { icon: "CloudUpload" }) })
|
|
6828
6950
|
}, {
|
|
6829
6951
|
label: n("Common.export"),
|
|
6830
6952
|
key: "export",
|
|
6831
|
-
icon: () => p(V, null, { default: () => p(
|
|
6953
|
+
icon: () => p(V, null, { default: () => p(In, { icon: "CloudDownload" }) })
|
|
6832
6954
|
}]), u = T([
|
|
6833
6955
|
{
|
|
6834
6956
|
title: "文件名称",
|
|
@@ -6871,14 +6993,14 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6871
6993
|
}), m = () => {
|
|
6872
6994
|
s.value = null;
|
|
6873
6995
|
}, h = () => {
|
|
6874
|
-
o.value || (o.value = !0,
|
|
6996
|
+
o.value || (o.value = !0, wi(r.params.id).then((t) => {
|
|
6875
6997
|
let n = document.createElement("a");
|
|
6876
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);
|
|
6877
6999
|
}).catch(() => null).finally(() => {
|
|
6878
7000
|
o.value = !1;
|
|
6879
7001
|
}));
|
|
6880
7002
|
}, g = () => {
|
|
6881
|
-
o.value || (o.value = !0,
|
|
7003
|
+
o.value || (o.value = !0, gi("excel/import", s.value).then(() => {
|
|
6882
7004
|
i.success({
|
|
6883
7005
|
content: "导入执行中...",
|
|
6884
7006
|
duration: 3e3
|
|
@@ -6892,7 +7014,7 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6892
7014
|
o.value = !1, _();
|
|
6893
7015
|
}));
|
|
6894
7016
|
}, _ = () => {
|
|
6895
|
-
o.value || (o.value = !0,
|
|
7017
|
+
o.value || (o.value = !0, Ti(r.params.id).then((e) => {
|
|
6896
7018
|
d.value = e;
|
|
6897
7019
|
}).catch(() => null).finally(() => {
|
|
6898
7020
|
o.value = !1;
|
|
@@ -6910,7 +7032,7 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6910
7032
|
return;
|
|
6911
7033
|
}
|
|
6912
7034
|
if (t === "export") {
|
|
6913
|
-
|
|
7035
|
+
ar.info({
|
|
6914
7036
|
title: "提示",
|
|
6915
7037
|
content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
|
|
6916
7038
|
positiveText: "确定",
|
|
@@ -6918,7 +7040,7 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6918
7040
|
draggable: !0,
|
|
6919
7041
|
onPositiveClick: () => {
|
|
6920
7042
|
let t = e.query ?? {};
|
|
6921
|
-
|
|
7043
|
+
Ei({
|
|
6922
7044
|
tableKey: r.params.id,
|
|
6923
7045
|
...t
|
|
6924
7046
|
}).then(() => {
|
|
@@ -6944,11 +7066,11 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6944
7066
|
}
|
|
6945
7067
|
};
|
|
6946
7068
|
}
|
|
6947
|
-
}),
|
|
7069
|
+
}), Xs = { class: "uz-file-port-modal" }, Zs = {
|
|
6948
7070
|
key: 1,
|
|
6949
7071
|
class: "uz-file-port-panel"
|
|
6950
|
-
},
|
|
6951
|
-
function
|
|
7072
|
+
}, Qs = { class: "uz-flex uz-justify-between" };
|
|
7073
|
+
function $s(t, n, i, s, c, d) {
|
|
6952
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");
|
|
6953
7075
|
return S(), a(e, null, [u(h, {
|
|
6954
7076
|
trigger: "hover",
|
|
@@ -6983,8 +7105,8 @@ function Ts(t, n, i, s, c, d) {
|
|
|
6983
7105
|
default: P(() => [...n[1] ||= [l(" 下载模板 ", -1)]]),
|
|
6984
7106
|
_: 1
|
|
6985
7107
|
}, 8, ["onClick"])]),
|
|
6986
|
-
default: P(() => [o("div",
|
|
6987
|
-
t.rawFile ? (S(), a("div",
|
|
7108
|
+
default: P(() => [o("div", Xs, [
|
|
7109
|
+
t.rawFile ? (S(), a("div", Zs, [
|
|
6988
7110
|
n[5] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
6989
7111
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6990
7112
|
viewBox: "0 0 24 24",
|
|
@@ -7031,7 +7153,7 @@ function Ts(t, n, i, s, c, d) {
|
|
|
7031
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)]]),
|
|
7032
7154
|
_: 1
|
|
7033
7155
|
}, 8, ["on-before-upload"])),
|
|
7034
|
-
o("div",
|
|
7156
|
+
o("div", Qs, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), u(m, {
|
|
7035
7157
|
onClick: t.init,
|
|
7036
7158
|
loading: t.loading,
|
|
7037
7159
|
secondary: ""
|
|
@@ -7054,7 +7176,7 @@ function Ts(t, n, i, s, c, d) {
|
|
|
7054
7176
|
_: 1
|
|
7055
7177
|
}, 8, ["show", "on-after-leave"])], 64);
|
|
7056
7178
|
}
|
|
7057
|
-
var
|
|
7179
|
+
var ec = /*#__PURE__*/ W(Ys, [["render", $s], ["__scopeId", "data-v-21238151"]]), $ = w({
|
|
7058
7180
|
page: {
|
|
7059
7181
|
label: "首页",
|
|
7060
7182
|
key: "/",
|
|
@@ -7065,7 +7187,7 @@ var Es = /*#__PURE__*/ W(xs, [["render", Ts], ["__scopeId", "data-v-21238151"]])
|
|
|
7065
7187
|
active: "/",
|
|
7066
7188
|
thumbnail: []
|
|
7067
7189
|
});
|
|
7068
|
-
function
|
|
7190
|
+
function tc(e) {
|
|
7069
7191
|
$.cache = e.cache, $.page = {
|
|
7070
7192
|
label: e.label,
|
|
7071
7193
|
key: e.key,
|
|
@@ -7080,35 +7202,35 @@ function Ds(e) {
|
|
|
7080
7202
|
closable: !1
|
|
7081
7203
|
}];
|
|
7082
7204
|
}
|
|
7083
|
-
function
|
|
7084
|
-
$.active = e,
|
|
7205
|
+
function nc(e) {
|
|
7206
|
+
$.active = e, Rn.push(e), J($.cache, $, 0);
|
|
7085
7207
|
}
|
|
7086
|
-
function
|
|
7208
|
+
function rc(e, t) {
|
|
7087
7209
|
let n = $.thumbnail.find((t) => t.key === e);
|
|
7088
7210
|
n && (n.key = t, $.active = t, J($.cache, $, 0));
|
|
7089
7211
|
}
|
|
7090
|
-
function
|
|
7212
|
+
function ic(e) {
|
|
7091
7213
|
let t = $.thumbnail.find((t) => t.path === e.key);
|
|
7092
|
-
t ? ($.active = t.key, J($.cache, $, 0),
|
|
7214
|
+
t ? ($.active = t.key, J($.cache, $, 0), Rn.push(t.key)) : ($.active = e.key, $.thumbnail.push({
|
|
7093
7215
|
...e,
|
|
7094
7216
|
path: e.key,
|
|
7095
7217
|
closable: !0
|
|
7096
|
-
}),
|
|
7218
|
+
}), Rn.push(e.key));
|
|
7097
7219
|
}
|
|
7098
|
-
function
|
|
7220
|
+
function ac(e) {
|
|
7099
7221
|
let t = $.thumbnail.findIndex((t) => t.key === e);
|
|
7100
7222
|
if ($.thumbnail.splice(t, 1), $.active === e) {
|
|
7101
7223
|
let e = $.thumbnail[t - 1]?.key || "";
|
|
7102
|
-
$.active = e,
|
|
7224
|
+
$.active = e, Rn.push(e);
|
|
7103
7225
|
}
|
|
7104
7226
|
J($.cache, $, 0);
|
|
7105
7227
|
}
|
|
7106
|
-
function
|
|
7107
|
-
$.active = $.page.path, $.thumbnail = [$.page],
|
|
7228
|
+
function oc() {
|
|
7229
|
+
$.active = $.page.path, $.thumbnail = [$.page], Rn.push($.page.path), J($.cache, $, 0);
|
|
7108
7230
|
}
|
|
7109
7231
|
//#endregion
|
|
7110
7232
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
7111
|
-
var
|
|
7233
|
+
var sc = f({
|
|
7112
7234
|
name: "UzThumbnail",
|
|
7113
7235
|
components: {
|
|
7114
7236
|
NTabs: Ie,
|
|
@@ -7129,29 +7251,29 @@ var Ns = f({
|
|
|
7129
7251
|
setup(e, { slots: t }) {
|
|
7130
7252
|
let n = T(!!t.prefix), r = Je();
|
|
7131
7253
|
return b(() => {
|
|
7132
|
-
|
|
7254
|
+
tc(e.option), $.active !== r.path && rc(r.path, r.fullPath);
|
|
7133
7255
|
}), M(() => r, (e) => {
|
|
7134
|
-
$.active === r.path &&
|
|
7256
|
+
$.active === r.path && rc(e.path, e.fullPath);
|
|
7135
7257
|
}, { deep: !0 }), M(() => e.option, (e) => {
|
|
7136
|
-
|
|
7258
|
+
tc(e);
|
|
7137
7259
|
}, { deep: !0 }), {
|
|
7138
7260
|
thumbnailStore: $,
|
|
7139
7261
|
isSlotPrefix: n,
|
|
7140
7262
|
handleClose: (e) => {
|
|
7141
|
-
|
|
7263
|
+
ac(e);
|
|
7142
7264
|
},
|
|
7143
7265
|
handleChange: (e) => {
|
|
7144
|
-
|
|
7266
|
+
nc(e);
|
|
7145
7267
|
},
|
|
7146
7268
|
handleClear: () => {
|
|
7147
|
-
|
|
7269
|
+
oc();
|
|
7148
7270
|
}
|
|
7149
7271
|
};
|
|
7150
7272
|
}
|
|
7151
7273
|
});
|
|
7152
7274
|
//#endregion
|
|
7153
7275
|
//#region components/thumbnail/index.vue
|
|
7154
|
-
function
|
|
7276
|
+
function cc(t, n, i, o, c, d) {
|
|
7155
7277
|
let f = O("NTabPane"), p = O("UzIcon"), m = O("NIcon"), h = O("NButton"), g = O("NPopconfirm"), _ = O("NFlex"), v = O("NTabs");
|
|
7156
7278
|
return S(), r(v, {
|
|
7157
7279
|
value: t.thumbnailStore.active,
|
|
@@ -7200,33 +7322,33 @@ function Ps(t, n, i, o, c, d) {
|
|
|
7200
7322
|
"on-update:value"
|
|
7201
7323
|
]);
|
|
7202
7324
|
}
|
|
7203
|
-
var
|
|
7204
|
-
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover =
|
|
7205
|
-
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 = {
|
|
7206
7328
|
common: {
|
|
7207
7329
|
inputColor: "rgba(var(--input))",
|
|
7208
7330
|
borderColor: "rgba(var(--border), 0.7)",
|
|
7209
7331
|
borderRadius: "var(--borderRadius)",
|
|
7210
|
-
primaryColor:
|
|
7211
|
-
primaryColorHover:
|
|
7212
|
-
primaryColorPressed:
|
|
7213
|
-
primaryColorSuppl:
|
|
7214
|
-
infoColor:
|
|
7215
|
-
infoColorHover:
|
|
7216
|
-
infoColorPressed:
|
|
7217
|
-
infoColorSuppl:
|
|
7218
|
-
successColor:
|
|
7219
|
-
successColorHover:
|
|
7220
|
-
successColorPressed:
|
|
7221
|
-
successColorSuppl:
|
|
7222
|
-
warningColor:
|
|
7223
|
-
warningColorHover:
|
|
7224
|
-
warningColorPressed:
|
|
7225
|
-
warningColorSuppl:
|
|
7226
|
-
errorColor:
|
|
7227
|
-
errorColorHover:
|
|
7228
|
-
errorColorPressed:
|
|
7229
|
-
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,
|
|
7230
7352
|
cardColor: "#fff"
|
|
7231
7353
|
},
|
|
7232
7354
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -7240,7 +7362,7 @@ var Ks = {
|
|
|
7240
7362
|
borderRadius: "8px",
|
|
7241
7363
|
color: "#c0c0c0"
|
|
7242
7364
|
}
|
|
7243
|
-
},
|
|
7365
|
+
}, xc = H, Sc = f({
|
|
7244
7366
|
name: "UzWrap",
|
|
7245
7367
|
components: { NConfigProvider: oe },
|
|
7246
7368
|
setup() {
|
|
@@ -7248,14 +7370,14 @@ var Ks = {
|
|
|
7248
7370
|
zhCN: We,
|
|
7249
7371
|
dateZhCN: He,
|
|
7250
7372
|
commonStore: K,
|
|
7251
|
-
lightTheme:
|
|
7252
|
-
darkTheme:
|
|
7373
|
+
lightTheme: bc,
|
|
7374
|
+
darkTheme: xc
|
|
7253
7375
|
};
|
|
7254
7376
|
}
|
|
7255
7377
|
});
|
|
7256
7378
|
//#endregion
|
|
7257
7379
|
//#region components/wrap/index.vue
|
|
7258
|
-
function
|
|
7380
|
+
function Cc(e, t, n, i, a, o) {
|
|
7259
7381
|
let s = O("NConfigProvider");
|
|
7260
7382
|
return S(), r(s, {
|
|
7261
7383
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -7274,10 +7396,10 @@ function Ys(e, t, n, i, a, o) {
|
|
|
7274
7396
|
"date-locale"
|
|
7275
7397
|
]);
|
|
7276
7398
|
}
|
|
7277
|
-
var
|
|
7399
|
+
var wc = /*#__PURE__*/ W(Sc, [["render", Cc]]);
|
|
7278
7400
|
//#endregion
|
|
7279
7401
|
//#region components/ocr/preprocess.ts
|
|
7280
|
-
function
|
|
7402
|
+
function Tc(e) {
|
|
7281
7403
|
let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
|
|
7282
7404
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
7283
7405
|
let r = 0;
|
|
@@ -7292,7 +7414,7 @@ function Zs(e) {
|
|
|
7292
7414
|
}
|
|
7293
7415
|
return c;
|
|
7294
7416
|
}
|
|
7295
|
-
function
|
|
7417
|
+
function Ec(e, t) {
|
|
7296
7418
|
return new Promise((n, r) => {
|
|
7297
7419
|
let i = new Image();
|
|
7298
7420
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -7325,7 +7447,7 @@ function Qs(e, t) {
|
|
|
7325
7447
|
}
|
|
7326
7448
|
let u = t.threshold;
|
|
7327
7449
|
if (t.binarize) {
|
|
7328
|
-
t.autoThreshold && (u =
|
|
7450
|
+
t.autoThreshold && (u = Tc(l));
|
|
7329
7451
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
7330
7452
|
let n = l[t] < u ? 0 : 255;
|
|
7331
7453
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -7348,7 +7470,7 @@ function Qs(e, t) {
|
|
|
7348
7470
|
}
|
|
7349
7471
|
//#endregion
|
|
7350
7472
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
7351
|
-
var
|
|
7473
|
+
var Dc = f({
|
|
7352
7474
|
name: "UzOcr",
|
|
7353
7475
|
components: {
|
|
7354
7476
|
NButton: R,
|
|
@@ -7385,7 +7507,7 @@ var $s = f({
|
|
|
7385
7507
|
tessedit_char_blacklist: "|"
|
|
7386
7508
|
}), a.value), v = async () => {
|
|
7387
7509
|
if (f.value) try {
|
|
7388
|
-
let e = await
|
|
7510
|
+
let e = await Ec(f.value, {
|
|
7389
7511
|
enabled: o.value,
|
|
7390
7512
|
scale: s.value,
|
|
7391
7513
|
grayscale: !0,
|
|
@@ -7422,7 +7544,7 @@ var $s = f({
|
|
|
7422
7544
|
t.value = !0, r.value = e("OCR.analysis");
|
|
7423
7545
|
let a = n;
|
|
7424
7546
|
if (o.value || s.value > 1) try {
|
|
7425
|
-
let e = await
|
|
7547
|
+
let e = await Ec(n, {
|
|
7426
7548
|
enabled: o.value,
|
|
7427
7549
|
scale: s.value,
|
|
7428
7550
|
grayscale: !0,
|
|
@@ -7484,25 +7606,25 @@ var $s = f({
|
|
|
7484
7606
|
t: e
|
|
7485
7607
|
};
|
|
7486
7608
|
}
|
|
7487
|
-
}),
|
|
7609
|
+
}), Oc = { class: "uz-ocr" }, kc = { class: "uz-ocr-left-col" }, Ac = { class: "uz-ocr-upload-card" }, jc = { class: "uz-ocr-upload-title" }, Mc = {
|
|
7488
7610
|
key: 1,
|
|
7489
7611
|
class: "uz-ocr-preview-panel"
|
|
7490
|
-
},
|
|
7612
|
+
}, Nc = { class: "uz-ocr-preview-box" }, Pc = ["src"], Fc = {
|
|
7491
7613
|
key: 0,
|
|
7492
7614
|
class: "uz-ocr-threshold-badge"
|
|
7493
|
-
},
|
|
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 = {
|
|
7494
7616
|
key: 0,
|
|
7495
7617
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
7496
|
-
},
|
|
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 = {
|
|
7497
7619
|
key: 0,
|
|
7498
7620
|
class: "uz-ocr-empty-state"
|
|
7499
|
-
},
|
|
7621
|
+
}, Xc = { class: "uz-empty-text" }, Zc = {
|
|
7500
7622
|
key: 1,
|
|
7501
7623
|
class: "uz-ocr-result-tabs"
|
|
7502
7624
|
};
|
|
7503
|
-
function
|
|
7625
|
+
function Qc(e, t, n, s, c, d) {
|
|
7504
7626
|
let f = O("NUpload"), p = O("NTabPane"), m = O("NTabs"), h = O("NButton"), g = O("NSpace"), _ = O("NSwitch"), v = O("NSelect");
|
|
7505
|
-
return S(), a("div",
|
|
7627
|
+
return S(), a("div", Oc, [o("div", kc, [e.rawImage ? (S(), a("div", Mc, [u(m, {
|
|
7506
7628
|
value: e.imagePreviewTab,
|
|
7507
7629
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
7508
7630
|
type: "segment",
|
|
@@ -7512,21 +7634,21 @@ function wc(e, t, n, s, c, d) {
|
|
|
7512
7634
|
name: "processed",
|
|
7513
7635
|
tab: e.t("OCR.previewProcessed")
|
|
7514
7636
|
}, {
|
|
7515
|
-
default: P(() => [o("div",
|
|
7637
|
+
default: P(() => [o("div", Nc, [o("img", {
|
|
7516
7638
|
src: e.processedImage,
|
|
7517
7639
|
alt: "Processed Preview",
|
|
7518
7640
|
class: "uz-ocr-preview-img"
|
|
7519
|
-
}, null, 8,
|
|
7641
|
+
}, null, 8, Pc), e.preEnabled && e.preBinarize ? (S(), a("div", Fc, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
|
|
7520
7642
|
_: 1
|
|
7521
7643
|
}, 8, ["tab"]), u(p, {
|
|
7522
7644
|
name: "raw",
|
|
7523
7645
|
tab: e.t("OCR.previewRaw")
|
|
7524
7646
|
}, {
|
|
7525
|
-
default: P(() => [o("div",
|
|
7647
|
+
default: P(() => [o("div", Ic, [o("img", {
|
|
7526
7648
|
src: e.rawImage,
|
|
7527
7649
|
alt: "Raw Preview",
|
|
7528
7650
|
class: "uz-ocr-preview-img"
|
|
7529
|
-
}, null, 8,
|
|
7651
|
+
}, null, 8, Lc)])]),
|
|
7530
7652
|
_: 1
|
|
7531
7653
|
}, 8, ["tab"])]),
|
|
7532
7654
|
_: 1
|
|
@@ -7560,7 +7682,7 @@ function wc(e, t, n, s, c, d) {
|
|
|
7560
7682
|
"directory-dnd": "",
|
|
7561
7683
|
class: "uz-w-full"
|
|
7562
7684
|
}, {
|
|
7563
|
-
default: P(() => [o("div",
|
|
7685
|
+
default: P(() => [o("div", Ac, [
|
|
7564
7686
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
7565
7687
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7566
7688
|
viewBox: "0 0 24 24",
|
|
@@ -7568,79 +7690,79 @@ function wc(e, t, n, s, c, d) {
|
|
|
7568
7690
|
height: "40",
|
|
7569
7691
|
fill: "currentColor"
|
|
7570
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),
|
|
7571
|
-
o("div",
|
|
7693
|
+
o("div", jc, A(e.t("OCR.scan")), 1),
|
|
7572
7694
|
t[5] ||= o("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
7573
7695
|
])]),
|
|
7574
7696
|
_: 1
|
|
7575
|
-
}, 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(_, {
|
|
7576
7698
|
value: e.preEnabled,
|
|
7577
7699
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
7578
7700
|
size: "small"
|
|
7579
|
-
}, 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, {
|
|
7580
7702
|
value: e.preScale,
|
|
7581
7703
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
7582
7704
|
options: e.scaleOptions,
|
|
7583
7705
|
size: "small",
|
|
7584
7706
|
class: "uz-settings-select"
|
|
7585
|
-
}, null, 8, ["value", "options"])]), o("div",
|
|
7707
|
+
}, null, 8, ["value", "options"])]), o("div", Wc, [o("span", Gc, A(e.t("OCR.contrast")), 1), u(_, {
|
|
7586
7708
|
value: e.preContrast,
|
|
7587
7709
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
7588
7710
|
size: "small"
|
|
7589
|
-
}, 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)]))])]);
|
|
7590
7712
|
}
|
|
7591
|
-
var
|
|
7592
|
-
IconList: () =>
|
|
7593
|
-
ReIconList: () =>
|
|
7713
|
+
var $c = /*#__PURE__*/ W(Dc, [["render", Qc], ["__scopeId", "data-v-c7224ff5"]]), el = /* @__PURE__ */ dt({
|
|
7714
|
+
IconList: () => Ln,
|
|
7715
|
+
ReIconList: () => Fn,
|
|
7594
7716
|
UzActionButton: () => ft,
|
|
7595
|
-
UzBack: () =>
|
|
7596
|
-
UzBom: () =>
|
|
7597
|
-
UzCamera: () =>
|
|
7598
|
-
UzCircle: () =>
|
|
7599
|
-
UzDraggableForm: () =>
|
|
7600
|
-
UzForm: () =>
|
|
7601
|
-
UzFormItem: () =>
|
|
7602
|
-
UzFormItemImage: () =>
|
|
7603
|
-
UzFormItemTimesPicker: () =>
|
|
7604
|
-
UzFormItemUpload: () =>
|
|
7605
|
-
UzIcon: () =>
|
|
7606
|
-
UzOcr: () =>
|
|
7607
|
-
UzSearchBar: () =>
|
|
7608
|
-
UzSearchMobileBar: () =>
|
|
7609
|
-
UzSpin: () =>
|
|
7610
|
-
UzTable: () =>
|
|
7611
|
-
UzTableChild: () =>
|
|
7612
|
-
UzTableDrawer: () =>
|
|
7613
|
-
UzTableFile: () =>
|
|
7614
|
-
UzTableMobile: () =>
|
|
7615
|
-
UzTableQuestChild: () =>
|
|
7616
|
-
UzThumbnail: () =>
|
|
7617
|
-
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,
|
|
7618
7740
|
commonStore: () => K,
|
|
7619
|
-
fnActionReduction: () =>
|
|
7620
|
-
fnActionSimplify: () =>
|
|
7621
|
-
fnAddThumbnail: () =>
|
|
7622
|
-
fnClearAllThumbnail: () =>
|
|
7623
|
-
fnDeleteThumbnail: () =>
|
|
7624
|
-
fnGetTableData: () =>
|
|
7625
|
-
fnOptionReduction: () =>
|
|
7626
|
-
fnOptionSimplify: () =>
|
|
7627
|
-
fnPrepareFormData: () =>
|
|
7628
|
-
fnPrepareTableData: () =>
|
|
7629
|
-
fnRenderAction: () =>
|
|
7630
|
-
fnSetLang: () =>
|
|
7631
|
-
fnSetTheme: () =>
|
|
7632
|
-
fnSetThumbnail: () =>
|
|
7633
|
-
fnTableReduction: () =>
|
|
7634
|
-
fnTableSimplify: () =>
|
|
7635
|
-
fnTriggersReduction: () =>
|
|
7636
|
-
fnTriggersSimplify: () =>
|
|
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,
|
|
7637
7759
|
i18n: () => G
|
|
7638
|
-
}),
|
|
7639
|
-
function
|
|
7640
|
-
|
|
7760
|
+
}), tl = 3840, nl = 2160, rl = w({ scale: 1 });
|
|
7761
|
+
function il(e, t) {
|
|
7762
|
+
tl = e, nl = t;
|
|
7641
7763
|
}
|
|
7642
|
-
function
|
|
7643
|
-
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));
|
|
7644
7766
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
7645
7767
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
7646
7768
|
e = t > 1 ? 1 : t;
|
|
@@ -7648,17 +7770,17 @@ function jc() {
|
|
|
7648
7770
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
7649
7771
|
e = n > 1 ? 1 : n;
|
|
7650
7772
|
}
|
|
7651
|
-
|
|
7773
|
+
rl.scale = e;
|
|
7652
7774
|
}
|
|
7653
|
-
function
|
|
7654
|
-
let e = $e(
|
|
7775
|
+
function ol() {
|
|
7776
|
+
let e = $e(al, 200);
|
|
7655
7777
|
return e(), window.addEventListener("resize", e), () => {
|
|
7656
|
-
|
|
7778
|
+
tl = 3840, nl = 2160, window.removeEventListener("resize", e);
|
|
7657
7779
|
};
|
|
7658
7780
|
}
|
|
7659
7781
|
//#endregion
|
|
7660
7782
|
//#region components/hooks/useThrottleFn.ts
|
|
7661
|
-
function
|
|
7783
|
+
function sl(e, t = 1e3) {
|
|
7662
7784
|
let r = T(e), i = n(() => et((...e) => r.value([...e]), t));
|
|
7663
7785
|
return x(() => {
|
|
7664
7786
|
i.value.cancel();
|
|
@@ -7670,16 +7792,16 @@ function Nc(e, t = 1e3) {
|
|
|
7670
7792
|
}
|
|
7671
7793
|
//#endregion
|
|
7672
7794
|
//#region components/hooks/useLocalStorage.ts
|
|
7673
|
-
function
|
|
7795
|
+
function cl(e, t) {
|
|
7674
7796
|
return [T(Y(e, t?.defaultValue)), (n) => {
|
|
7675
|
-
n === void 0 ?
|
|
7797
|
+
n === void 0 ? or(e) : J(e, n, t?.expired || "1 Day");
|
|
7676
7798
|
}];
|
|
7677
7799
|
}
|
|
7678
7800
|
//#endregion
|
|
7679
7801
|
//#region components/hooks/useQuery.ts
|
|
7680
|
-
function
|
|
7802
|
+
function ll(e, t, n) {
|
|
7681
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 = () => {
|
|
7682
|
-
|
|
7804
|
+
fi(), clearInterval(o.value), o.value = null;
|
|
7683
7805
|
}, p = async () => {
|
|
7684
7806
|
if (!s.value) {
|
|
7685
7807
|
h(!0, "loading");
|
|
@@ -7715,7 +7837,7 @@ function Fc(e, t, n) {
|
|
|
7715
7837
|
}, g = (e) => {
|
|
7716
7838
|
l.value = e;
|
|
7717
7839
|
}, _ = () => {
|
|
7718
|
-
|
|
7840
|
+
fi(), i.value && i.value();
|
|
7719
7841
|
}, v = () => {
|
|
7720
7842
|
_(), p(), n?.pollingInterval && (f(), o.value = setInterval(() => {
|
|
7721
7843
|
p();
|
|
@@ -7743,26 +7865,26 @@ function Fc(e, t, n) {
|
|
|
7743
7865
|
}
|
|
7744
7866
|
//#endregion
|
|
7745
7867
|
//#region package.json
|
|
7746
|
-
var
|
|
7747
|
-
async function
|
|
7868
|
+
var ul = "0.1.112", dl;
|
|
7869
|
+
async function fl() {
|
|
7748
7870
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7749
7871
|
method: "HEAD",
|
|
7750
7872
|
cache: "no-cache"
|
|
7751
7873
|
});
|
|
7752
7874
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
7753
7875
|
}
|
|
7754
|
-
async function
|
|
7755
|
-
let e = await
|
|
7756
|
-
|
|
7876
|
+
async function pl() {
|
|
7877
|
+
let e = await fl();
|
|
7878
|
+
dl !== e && Un(!0);
|
|
7757
7879
|
}
|
|
7758
|
-
async function
|
|
7759
|
-
|
|
7760
|
-
|
|
7880
|
+
async function ml() {
|
|
7881
|
+
dl = await fl(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
7882
|
+
pl();
|
|
7761
7883
|
}, 6e4);
|
|
7762
7884
|
}
|
|
7763
7885
|
//#endregion
|
|
7764
7886
|
//#region components/create.ts
|
|
7765
|
-
function
|
|
7887
|
+
function hl({ components: e = [] } = {}) {
|
|
7766
7888
|
let t = [];
|
|
7767
7889
|
function n(e, t, n) {
|
|
7768
7890
|
e.component(t) || e.component(t, n);
|
|
@@ -7775,16 +7897,16 @@ function Vc({ components: e = [] } = {}) {
|
|
|
7775
7897
|
});
|
|
7776
7898
|
}), i)) {
|
|
7777
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);
|
|
7778
|
-
|
|
7900
|
+
Wn(e), Bn(o), Vn(l), Hn(c), G.global.locale.value = l, a && ml(), t && ni(r, t, n);
|
|
7779
7901
|
}
|
|
7780
7902
|
}
|
|
7781
7903
|
return {
|
|
7782
|
-
version:
|
|
7904
|
+
version: ul,
|
|
7783
7905
|
install: r
|
|
7784
7906
|
};
|
|
7785
7907
|
}
|
|
7786
7908
|
//#endregion
|
|
7787
7909
|
//#region components/preset.ts
|
|
7788
|
-
var
|
|
7910
|
+
var gl = hl({ components: Object.keys(el).map((e) => el[e]) }), _l = gl.install;
|
|
7789
7911
|
//#endregion
|
|
7790
|
-
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 };
|