@unizhen/ui 0.1.110 → 0.1.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/ui.js
CHANGED
|
@@ -43,7 +43,7 @@ var ut = Object.defineProperty, dt = (e, t) => {
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
setup(e) {
|
|
46
|
-
return () =>
|
|
46
|
+
return () => fi({
|
|
47
47
|
buttons: e.data,
|
|
48
48
|
rowData: e.rowData,
|
|
49
49
|
hProps: e.hProps
|
|
@@ -107,7 +107,29 @@ var wt = /*#__PURE__*/ W(xt, [["render", Ct]]), Tt = {}, Et = {
|
|
|
107
107
|
fill: "none"
|
|
108
108
|
};
|
|
109
109
|
function Dt(e, t) {
|
|
110
|
-
return S(), a("svg", Et, [...t[0] ||= [
|
|
110
|
+
return S(), a("svg", Et, [...t[0] ||= [
|
|
111
|
+
o("path", {
|
|
112
|
+
opacity: "0.5",
|
|
113
|
+
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",
|
|
114
|
+
fill: "currentColor"
|
|
115
|
+
}, null, -1),
|
|
116
|
+
o("path", {
|
|
117
|
+
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",
|
|
118
|
+
fill: "currentColor"
|
|
119
|
+
}, null, -1),
|
|
120
|
+
o("path", {
|
|
121
|
+
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",
|
|
122
|
+
fill: "currentColor"
|
|
123
|
+
}, null, -1)
|
|
124
|
+
]]);
|
|
125
|
+
}
|
|
126
|
+
var Ot = /*#__PURE__*/ W(Tt, [["render", Dt]]), kt = {}, At = {
|
|
127
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
128
|
+
viewBox: "0 0 24 24",
|
|
129
|
+
fill: "none"
|
|
130
|
+
};
|
|
131
|
+
function jt(e, t) {
|
|
132
|
+
return S(), a("svg", At, [...t[0] ||= [o("g", { opacity: "0.5" }, [o("path", {
|
|
111
133
|
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
134
|
fill: "currentColor"
|
|
113
135
|
})], -1), o("path", {
|
|
@@ -117,13 +139,13 @@ function Dt(e, t) {
|
|
|
117
139
|
fill: "currentColor"
|
|
118
140
|
}, null, -1)]]);
|
|
119
141
|
}
|
|
120
|
-
var
|
|
142
|
+
var Mt = /*#__PURE__*/ W(kt, [["render", jt]]), Nt = {}, Pt = {
|
|
121
143
|
xmlns: "http://www.w3.org/2000/svg",
|
|
122
144
|
viewBox: "0 0 24 24",
|
|
123
145
|
fill: "none"
|
|
124
146
|
};
|
|
125
|
-
function
|
|
126
|
-
return S(), a("svg",
|
|
147
|
+
function Ft(e, t) {
|
|
148
|
+
return S(), a("svg", Pt, [...t[0] ||= [o("g", { opacity: "0.5" }, [o("path", {
|
|
127
149
|
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
150
|
fill: "currentColor"
|
|
129
151
|
})], -1), o("path", {
|
|
@@ -133,13 +155,13 @@ function jt(e, t) {
|
|
|
133
155
|
fill: "currentColor"
|
|
134
156
|
}, null, -1)]]);
|
|
135
157
|
}
|
|
136
|
-
var
|
|
158
|
+
var It = /*#__PURE__*/ W(Nt, [["render", Ft]]), Lt = {}, Rt = {
|
|
137
159
|
xmlns: "http://www.w3.org/2000/svg",
|
|
138
160
|
viewBox: "0 0 24 24",
|
|
139
161
|
fill: "none"
|
|
140
162
|
};
|
|
141
|
-
function
|
|
142
|
-
return S(), a("svg",
|
|
163
|
+
function zt(e, t) {
|
|
164
|
+
return S(), a("svg", Rt, [...t[0] ||= [
|
|
143
165
|
o("path", {
|
|
144
166
|
opacity: "0.5",
|
|
145
167
|
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 +181,21 @@ function Ft(e, t) {
|
|
|
159
181
|
}, null, -1)
|
|
160
182
|
]]);
|
|
161
183
|
}
|
|
162
|
-
var
|
|
184
|
+
var Bt = /*#__PURE__*/ W(Lt, [["render", zt]]), Vt = {}, Ht = {
|
|
163
185
|
xmlns: "http://www.w3.org/2000/svg",
|
|
164
186
|
viewBox: "0 0 24 24",
|
|
165
187
|
fill: "none"
|
|
166
188
|
};
|
|
167
|
-
function
|
|
168
|
-
return S(), a("svg",
|
|
189
|
+
function Ut(e, t) {
|
|
190
|
+
return S(), a("svg", Ht, [...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)]]);
|
|
169
191
|
}
|
|
170
|
-
var
|
|
192
|
+
var Wt = /*#__PURE__*/ W(Vt, [["render", Ut]]), Gt = {}, Kt = {
|
|
171
193
|
xmlns: "http://www.w3.org/2000/svg",
|
|
172
194
|
viewBox: "0 0 24 24",
|
|
173
195
|
fill: "none"
|
|
174
196
|
};
|
|
175
|
-
function
|
|
176
|
-
return S(), a("svg",
|
|
197
|
+
function qt(e, t) {
|
|
198
|
+
return S(), a("svg", Kt, [...t[0] ||= [
|
|
177
199
|
o("path", {
|
|
178
200
|
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
201
|
fill: "currentColor"
|
|
@@ -191,21 +213,29 @@ function Ut(e, t) {
|
|
|
191
213
|
}, null, -1)
|
|
192
214
|
]]);
|
|
193
215
|
}
|
|
194
|
-
var
|
|
216
|
+
var Jt = /*#__PURE__*/ W(Gt, [["render", qt]]), Yt = {}, Xt = {
|
|
195
217
|
xmlns: "http://www.w3.org/2000/svg",
|
|
196
218
|
viewBox: "0 0 24 24",
|
|
197
219
|
fill: "none"
|
|
198
220
|
};
|
|
199
|
-
function
|
|
200
|
-
return S(), a("svg",
|
|
221
|
+
function Zt(e, t) {
|
|
222
|
+
return S(), a("svg", Xt, [...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
223
|
}
|
|
202
|
-
var
|
|
224
|
+
var Qt = /*#__PURE__*/ W(Yt, [["render", Zt]]), $t = {}, en = {
|
|
203
225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
204
226
|
viewBox: "0 0 24 24",
|
|
205
227
|
fill: "none"
|
|
206
228
|
};
|
|
207
|
-
function
|
|
208
|
-
return S(), a("svg",
|
|
229
|
+
function tn(e, t) {
|
|
230
|
+
return S(), a("svg", en, [...t[0] ||= [c("<path d=\"M17.1211 2.87868C16.2424 2 14.8282 2 11.9998 2C9.17134 2 7.75712 2 6.87844 2.87868C6.38608 3.37105 6.16961 4.03157 6.07444 5.01484C6.63368 4.99996 7.25183 4.99998 7.92943 5H16.0706C16.748 4.99998 17.366 4.99996 17.9251 5.01483C17.8299 4.03156 17.6135 3.37105 17.1211 2.87868Z\" fill=\"currentColor\"></path><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M18 14.5C18 17.3284 18 20.2426 17.1213 21.1213C16.2426 22 14.8284 22 12 22C9.17158 22 7.75736 22 6.87868 21.1213C6 20.2426 6 17.3284 6 14.5H18ZM15.75 16.75C15.75 17.1642 15.4142 17.5 15 17.5H9C8.58579 17.5 8.25 17.1642 8.25 16.75C8.25 16.3358 8.58579 16 9 16H15C15.4142 16 15.75 16.3358 15.75 16.75ZM13.75 19.75C13.75 20.1642 13.4142 20.5 13 20.5H9C8.58579 20.5 8.25 20.1642 8.25 19.75C8.25 19.3358 8.58579 19 9 19H13C13.4142 19 13.75 19.3358 13.75 19.75Z\" fill=\"currentColor\"></path><g opacity=\"0.5\"><path d=\"M15 17.5C15.4142 17.5 15.75 17.1642 15.75 16.75C15.75 16.3358 15.4142 16 15 16H9C8.58579 16 8.25 16.3358 8.25 16.75C8.25 17.1642 8.58579 17.5 9 17.5H15Z\" fill=\"currentColor\"></path><path d=\"M13 20.5C13.4142 20.5 13.75 20.1642 13.75 19.75C13.75 19.3358 13.4142 19 13 19H9C8.58579 19 8.25 19.3358 8.25 19.75C8.25 20.1642 8.58579 20.5 9 20.5H13Z\" fill=\"currentColor\"></path></g><path opacity=\"0.5\" d=\"M16 6H8C5.17157 6 3.75736 6 2.87868 6.87868C2 7.75736 2 9.17157 2 12C2 14.8284 2 16.2426 2.87868 17.1213C3.37323 17.6159 4.03743 17.8321 5.02795 17.9266C4.99998 17.2038 4.99999 15.3522 5 14.5C4.72386 14.5 4.5 14.2761 4.5 14C4.5 13.7239 4.72386 13.5 5 13.5H19C19.2761 13.5 19.5 13.7239 19.5 14C19.5 14.2761 19.2761 14.5003 19 14.5003C19 15.3525 19 17.2039 18.9721 17.9266C19.9626 17.8321 20.6268 17.6159 21.1213 17.1213C22 16.2426 22 14.8284 22 12C22 9.17157 22 7.75736 21.1213 6.87868C20.2426 6 18.8284 6 16 6Z\" fill=\"currentColor\"></path><path d=\"M9 10.75C9.41421 10.75 9.75 10.4142 9.75 10C9.75 9.58579 9.41421 9.25 9 9.25H6C5.58579 9.25 5.25 9.58579 5.25 10C5.25 10.4142 5.58579 10.75 6 10.75H9Z\" fill=\"currentColor\"></path><path d=\"M18 10C18 10.5523 17.5523 11 17 11C16.4477 11 16 10.5523 16 10C16 9.44772 16.4477 9 17 9C17.5523 9 18 9.44772 18 10Z\" fill=\"currentColor\"></path>", 6)]]);
|
|
231
|
+
}
|
|
232
|
+
var nn = /*#__PURE__*/ W($t, [["render", tn]]), rn = {}, an = {
|
|
233
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
234
|
+
viewBox: "0 0 24 24",
|
|
235
|
+
fill: "none"
|
|
236
|
+
};
|
|
237
|
+
function on(e, t) {
|
|
238
|
+
return S(), a("svg", an, [...t[0] ||= [o("path", {
|
|
209
239
|
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
240
|
fill: "currentColor"
|
|
211
241
|
}, null, -1), o("path", {
|
|
@@ -214,60 +244,52 @@ function Zt(e, t) {
|
|
|
214
244
|
fill: "currentColor"
|
|
215
245
|
}, null, -1)]]);
|
|
216
246
|
}
|
|
217
|
-
var
|
|
247
|
+
var sn = /*#__PURE__*/ W(rn, [["render", on]]), cn = {}, ln = {
|
|
218
248
|
xmlns: "http://www.w3.org/2000/svg",
|
|
219
249
|
viewBox: "0 0 24 24",
|
|
220
250
|
fill: "none"
|
|
221
251
|
};
|
|
222
|
-
function
|
|
223
|
-
return S(), a("svg",
|
|
252
|
+
function un(e, t) {
|
|
253
|
+
return S(), a("svg", ln, [...t[0] ||= [o("path", {
|
|
224
254
|
"fill-rule": "evenodd",
|
|
225
255
|
"clip-rule": "evenodd",
|
|
226
256
|
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
257
|
fill: "currentColor"
|
|
228
258
|
}, null, -1)]]);
|
|
229
259
|
}
|
|
230
|
-
var
|
|
260
|
+
var dn = /*#__PURE__*/ W(cn, [["render", un]]), fn = {}, pn = {
|
|
231
261
|
xmlns: "http://www.w3.org/2000/svg",
|
|
232
262
|
viewBox: "0 0 24 24",
|
|
233
263
|
fill: "none"
|
|
234
264
|
};
|
|
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
|
-
]]);
|
|
265
|
+
function mn(e, t) {
|
|
266
|
+
return S(), a("svg", pn, [...t[0] ||= [o("path", {
|
|
267
|
+
opacity: "0.5",
|
|
268
|
+
d: "M3.03414 8.89004C2.5536 5.68645 2.31333 4.08466 3.21098 3.04233C4.10862 2 5.72833 2 8.96776 2H15.0335C18.2729 2 19.8927 2 20.7903 3.04233C21.6879 4.08466 21.4477 5.68646 20.9671 8.89004L19.7671 16.89C19.4015 19.3276 19.2187 20.5464 18.3747 21.2732C17.5308 22 16.2984 22 13.8335 22H10.1678C7.70289 22 6.47046 22 5.62653 21.2732C4.7826 20.5464 4.59978 19.3276 4.23414 16.89L3.03414 8.89004Z",
|
|
269
|
+
fill: "currentColor"
|
|
270
|
+
}, null, -1), o("path", {
|
|
271
|
+
"fill-rule": "evenodd",
|
|
272
|
+
"clip-rule": "evenodd",
|
|
273
|
+
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",
|
|
274
|
+
fill: "currentColor"
|
|
275
|
+
}, null, -1)]]);
|
|
256
276
|
}
|
|
257
|
-
var
|
|
277
|
+
var hn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
258
278
|
"./Add.vue": gt,
|
|
259
279
|
"./ArrowDown.vue": bt,
|
|
260
280
|
"./ArrowLeft.vue": wt,
|
|
261
|
-
"./
|
|
262
|
-
"./
|
|
263
|
-
"./
|
|
264
|
-
"./
|
|
265
|
-
"./
|
|
266
|
-
"./
|
|
267
|
-
"./
|
|
268
|
-
"./
|
|
269
|
-
"./
|
|
270
|
-
|
|
281
|
+
"./ChatLine.vue": Ot,
|
|
282
|
+
"./CloudDownload.vue": Mt,
|
|
283
|
+
"./CloudUpload.vue": It,
|
|
284
|
+
"./Document.vue": Bt,
|
|
285
|
+
"./Filter.vue": Wt,
|
|
286
|
+
"./Gallery.vue": Jt,
|
|
287
|
+
"./List.vue": Qt,
|
|
288
|
+
"./Printer.vue": nn,
|
|
289
|
+
"./Refresh.vue": sn,
|
|
290
|
+
"./Search.vue": dn,
|
|
291
|
+
"./Trash.vue": /* @__PURE__ */ W(fn, [["render", mn]])
|
|
292
|
+
})).map(([e, t]) => [e.slice(2, -4), t])), gn = f({
|
|
271
293
|
name: "UzIcon",
|
|
272
294
|
props: {
|
|
273
295
|
icon: {
|
|
@@ -284,7 +306,7 @@ var sn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
284
306
|
let t = T(!0), n = T(), r = (r) => {
|
|
285
307
|
if (t.value = !1, r && typeof r == "string") {
|
|
286
308
|
try {
|
|
287
|
-
Object.keys(e.extendIcons).length > 0 ? n.value = e.extendIcons[r] : n.value =
|
|
309
|
+
Object.keys(e.extendIcons).length > 0 ? n.value = e.extendIcons[r] : n.value = _n[r];
|
|
288
310
|
} catch {}
|
|
289
311
|
g(() => {
|
|
290
312
|
t.value = !0;
|
|
@@ -297,18 +319,18 @@ var sn = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
297
319
|
r(e);
|
|
298
320
|
}), () => t.value ? n.value && n.value.render(null, []) : null;
|
|
299
321
|
}
|
|
300
|
-
}),
|
|
301
|
-
function
|
|
302
|
-
return
|
|
322
|
+
}), _n = hn, G;
|
|
323
|
+
function vn(e, t = "/") {
|
|
324
|
+
return G = Ke({
|
|
303
325
|
history: qe(t),
|
|
304
326
|
routes: e,
|
|
305
327
|
scrollBehavior: () => ({
|
|
306
328
|
left: 0,
|
|
307
329
|
top: 0
|
|
308
330
|
})
|
|
309
|
-
}),
|
|
331
|
+
}), G;
|
|
310
332
|
}
|
|
311
|
-
var
|
|
333
|
+
var yn = Xe({
|
|
312
334
|
legacy: !1,
|
|
313
335
|
locale: "zh-CN",
|
|
314
336
|
messages: {
|
|
@@ -408,16 +430,16 @@ var G = Xe({
|
|
|
408
430
|
language: !1,
|
|
409
431
|
lang: "zh-CN"
|
|
410
432
|
});
|
|
411
|
-
function
|
|
433
|
+
function bn(e) {
|
|
412
434
|
K.language = e;
|
|
413
435
|
}
|
|
414
|
-
function
|
|
436
|
+
function xn(e) {
|
|
415
437
|
let t;
|
|
416
438
|
t = e || (K.lang === "zh-CN" ? "en-US" : "zh-CN"), J("lang", t, 0), K.lang = t;
|
|
417
439
|
let n = document.body;
|
|
418
|
-
n.dataset.lang = t,
|
|
440
|
+
n.dataset.lang = t, yn.global.locale.value = t;
|
|
419
441
|
}
|
|
420
|
-
function
|
|
442
|
+
function Sn(e) {
|
|
421
443
|
let t = document.body;
|
|
422
444
|
t.classList.add("remove-all-transition");
|
|
423
445
|
let n = document.querySelector("meta[name=theme-color]");
|
|
@@ -425,45 +447,45 @@ function mn(e) {
|
|
|
425
447
|
t.classList.remove("remove-all-transition");
|
|
426
448
|
}, 0);
|
|
427
449
|
}
|
|
428
|
-
function
|
|
450
|
+
function Cn(e) {
|
|
429
451
|
K.needUpdate = e;
|
|
430
452
|
}
|
|
431
|
-
function
|
|
453
|
+
function wn(e) {
|
|
432
454
|
K.title = e;
|
|
433
455
|
}
|
|
434
|
-
var
|
|
456
|
+
var Tn = () => {
|
|
435
457
|
K.isMobile = window.screen.availWidth < 769;
|
|
436
458
|
};
|
|
437
|
-
window.addEventListener("resize",
|
|
459
|
+
window.addEventListener("resize", Tn), Tn();
|
|
438
460
|
//#endregion
|
|
439
461
|
//#region components/localStorage.ts
|
|
440
|
-
var
|
|
441
|
-
function
|
|
442
|
-
|
|
462
|
+
var En = window.localStorage;
|
|
463
|
+
function Dn(e, t) {
|
|
464
|
+
En.setItem(e, JSON.stringify(t));
|
|
443
465
|
}
|
|
444
|
-
function
|
|
445
|
-
let t =
|
|
466
|
+
function On(e) {
|
|
467
|
+
let t = En.getItem(e);
|
|
446
468
|
if (t) return JSON.parse(t);
|
|
447
469
|
}
|
|
448
|
-
function
|
|
449
|
-
|
|
470
|
+
function kn(e) {
|
|
471
|
+
En.removeItem(e);
|
|
450
472
|
}
|
|
451
|
-
function
|
|
473
|
+
function An() {
|
|
452
474
|
return Date.parse(String(/* @__PURE__ */ new Date()));
|
|
453
475
|
}
|
|
454
|
-
var
|
|
476
|
+
var jn = "local-", Mn = new class {
|
|
455
477
|
namespace;
|
|
456
478
|
mapKey;
|
|
457
479
|
map;
|
|
458
480
|
constructor(e = "") {
|
|
459
|
-
this.namespace = e, this.mapKey =
|
|
481
|
+
this.namespace = e, this.mapKey = jn + this.namespace, this.map = On(this.mapKey) || {};
|
|
460
482
|
}
|
|
461
483
|
set(e, t, n = 0) {
|
|
462
484
|
let r = this.getReallyKey(e), i = {
|
|
463
485
|
expires: n,
|
|
464
|
-
time:
|
|
486
|
+
time: An()
|
|
465
487
|
};
|
|
466
|
-
|
|
488
|
+
Dn(r, t), this.map[e] = i, Dn(this.mapKey, this.map);
|
|
467
489
|
}
|
|
468
490
|
getReallyKey(e) {
|
|
469
491
|
return this.namespace + "-" + e;
|
|
@@ -471,9 +493,9 @@ var Cn = "local-", wn = new class {
|
|
|
471
493
|
get(e, t) {
|
|
472
494
|
let n = this.getReallyKey(e), r = this.map[e];
|
|
473
495
|
if (r) {
|
|
474
|
-
let i =
|
|
496
|
+
let i = On(n);
|
|
475
497
|
if (r.expires > 0) {
|
|
476
|
-
if (
|
|
498
|
+
if (An() - r.time <= r.expires) return i === !1 || i ? i : t;
|
|
477
499
|
this.delete(e);
|
|
478
500
|
} else return i === !1 || i ? i : t;
|
|
479
501
|
}
|
|
@@ -481,7 +503,7 @@ var Cn = "local-", wn = new class {
|
|
|
481
503
|
}
|
|
482
504
|
delete(e) {
|
|
483
505
|
let t = this.getReallyKey(e);
|
|
484
|
-
delete this.map[e],
|
|
506
|
+
delete this.map[e], Dn(this.mapKey, this.map), kn(t);
|
|
485
507
|
}
|
|
486
508
|
deleteByPrefix(e) {
|
|
487
509
|
for (let t in this.map) t.indexOf(e) > -1 && this.delete(t);
|
|
@@ -489,12 +511,12 @@ var Cn = "local-", wn = new class {
|
|
|
489
511
|
deleteAll() {
|
|
490
512
|
for (let e in this.map) this.delete(e);
|
|
491
513
|
}
|
|
492
|
-
}("uz"),
|
|
514
|
+
}("uz"), Nn = new Intl.Collator("zh-Hans-u-co-pinyin"), Pn = [..."阿八嚓哒妸发旮哈讥咔垃妈拏噢妑七呥仨他屲夕丫帀"], Fn = [..."ABCDEFGHJKLMNOPQRSTWXYZ"], { notification: In, dialog: Ln } = Ve(["notification", "dialog"], {
|
|
493
515
|
configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
|
|
494
516
|
notificationProviderProps: { placement: "bottom-right" }
|
|
495
|
-
}),
|
|
517
|
+
}), Rn = In, zn = Ln;
|
|
496
518
|
function q(e) {
|
|
497
|
-
console.log(e),
|
|
519
|
+
console.log(e), In.error({
|
|
498
520
|
content: e.message,
|
|
499
521
|
duration: 3e3
|
|
500
522
|
});
|
|
@@ -516,18 +538,18 @@ function J(e, t, n = "1 Day") {
|
|
|
516
538
|
}
|
|
517
539
|
n = Number(t[0]) * e;
|
|
518
540
|
}
|
|
519
|
-
|
|
541
|
+
Mn.set(e, t, n);
|
|
520
542
|
}
|
|
521
543
|
function Y(e, t) {
|
|
522
|
-
return
|
|
544
|
+
return Mn.get(e, t);
|
|
523
545
|
}
|
|
524
|
-
var
|
|
525
|
-
|
|
526
|
-
},
|
|
527
|
-
|
|
528
|
-
},
|
|
529
|
-
|
|
530
|
-
},
|
|
546
|
+
var Bn = (e) => {
|
|
547
|
+
Mn.delete(e);
|
|
548
|
+
}, Vn = (e) => {
|
|
549
|
+
Mn.deleteByPrefix(e);
|
|
550
|
+
}, Hn = () => {
|
|
551
|
+
Mn.deleteAll();
|
|
552
|
+
}, Un = (e = 0) => {
|
|
531
553
|
let t = document.documentElement, n = document.querySelectorAll(".uz-table-m-content");
|
|
532
554
|
t && (t.scrollTop = e, setTimeout(() => {
|
|
533
555
|
t.scrollTop = e;
|
|
@@ -535,7 +557,7 @@ var Mn = (e) => {
|
|
|
535
557
|
t.scrollTop = e;
|
|
536
558
|
});
|
|
537
559
|
};
|
|
538
|
-
function
|
|
560
|
+
function Wn(e) {
|
|
539
561
|
if (!e.records) {
|
|
540
562
|
let t = e;
|
|
541
563
|
return {
|
|
@@ -579,7 +601,7 @@ function In(e) {
|
|
|
579
601
|
records: e.records
|
|
580
602
|
};
|
|
581
603
|
}
|
|
582
|
-
var
|
|
604
|
+
var Gn = (e, t = "yyyy-MM-dd") => {
|
|
583
605
|
if (!e) return "";
|
|
584
606
|
typeof e == "string" && (e = e.replace(/年/g, "-").replace(/月/g, "-").replace(/日/g, ""));
|
|
585
607
|
let n = new Date(e);
|
|
@@ -597,9 +619,9 @@ var Ln = (e, t = "yyyy-MM-dd") => {
|
|
|
597
619
|
RegExp.$1.length !== 1 && (n = ("00" + r[e]).substr(("" + r[e]).length)), t = t.replace(RegExp.$1, n);
|
|
598
620
|
}
|
|
599
621
|
return t;
|
|
600
|
-
},
|
|
622
|
+
}, Kn = (e) => {
|
|
601
623
|
document.title = `${e} - ${K.title}`;
|
|
602
|
-
},
|
|
624
|
+
}, qn = (e, t = 500) => {
|
|
603
625
|
let n = e, r, i = !1, a = function(...e) {
|
|
604
626
|
if (i) {
|
|
605
627
|
n.apply(a, e), i = !1;
|
|
@@ -611,10 +633,10 @@ var Ln = (e, t = "yyyy-MM-dd") => {
|
|
|
611
633
|
};
|
|
612
634
|
return a;
|
|
613
635
|
};
|
|
614
|
-
function
|
|
636
|
+
function Jn(e, t) {
|
|
615
637
|
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
638
|
}
|
|
617
|
-
function
|
|
639
|
+
function Yn(e, t = 0) {
|
|
618
640
|
let n = [
|
|
619
641
|
"",
|
|
620
642
|
"k",
|
|
@@ -624,20 +646,20 @@ function Vn(e, t = 0) {
|
|
|
624
646
|
], r = Math.floor(Math.log10(Math.abs(e)) / 3), i = Math.max(0, Math.min(r, n.length - 1)), a = n[i];
|
|
625
647
|
return a ? (e / 10 ** (i * 3)).toFixed(t) + a : (e / 10 ** (i * 3)).toFixed(0);
|
|
626
648
|
}
|
|
627
|
-
function
|
|
649
|
+
function Xn(e) {
|
|
628
650
|
if (/^[a-z0-9]$/i.test(e)) return e.toLowerCase();
|
|
629
651
|
if (!/^[\u4e00-\u9fff]$/.test(e)) return "";
|
|
630
|
-
for (let t =
|
|
652
|
+
for (let t = Pn.length - 1; t >= 0; --t) if (Nn.compare(e, Pn[t]) >= 0) return Fn[t].toLowerCase();
|
|
631
653
|
return "";
|
|
632
654
|
}
|
|
633
|
-
function
|
|
634
|
-
return [...String(e)].map(
|
|
655
|
+
function Zn(e) {
|
|
656
|
+
return [...String(e)].map(Xn).join("");
|
|
635
657
|
}
|
|
636
|
-
function
|
|
658
|
+
function Qn(e, t) {
|
|
637
659
|
let n = String(t).trim().toLowerCase();
|
|
638
|
-
return n === "" || e.toLowerCase().includes(n) ||
|
|
660
|
+
return n === "" || e.toLowerCase().includes(n) || Zn(e).includes(n);
|
|
639
661
|
}
|
|
640
|
-
function
|
|
662
|
+
function $n(e, t) {
|
|
641
663
|
e.forEach((e) => {
|
|
642
664
|
let n = t.find((t) => t.key === e.key);
|
|
643
665
|
n && (e.hide = n.hide, e.show = n.show, e.width = n.width);
|
|
@@ -650,8 +672,8 @@ function Gn(e, t) {
|
|
|
650
672
|
}
|
|
651
673
|
//#endregion
|
|
652
674
|
//#region components/monitor.ts
|
|
653
|
-
var
|
|
654
|
-
let e =
|
|
675
|
+
var er = 500, tr = 300, nr = [], rr = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakSet(), or, sr, cr, lr, ur, dr, fr = !1, pr = () => typeof navigator > "u" ? "" : navigator.userAgent.toLocaleUpperCase(), mr = () => {
|
|
676
|
+
let e = pr(), t = /ANDROID ([\d.]+)/.exec(e);
|
|
655
677
|
if (t) return `Android ${t[1]}`;
|
|
656
678
|
let n = /(?:IPHONE|IPAD).*OS ([\d_]+)/.exec(e);
|
|
657
679
|
if (n) return `${e.includes("IPAD") ? "iPad" : "iPhone"} ${n[1].replace(/_/g, ".")}`;
|
|
@@ -666,8 +688,8 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
666
688
|
}[r[1]] ?? `Windows NT ${r[1]}`;
|
|
667
689
|
let i = /MAC OS X ([\d_]+)/.exec(e);
|
|
668
690
|
return i ? `macOS ${i[1].replace(/_/g, ".")}` : "Other Platform";
|
|
669
|
-
},
|
|
670
|
-
let e =
|
|
691
|
+
}, hr = () => {
|
|
692
|
+
let e = pr();
|
|
671
693
|
for (let [t, n] of [
|
|
672
694
|
[/EDG(?:A|IOS)?\/([\d.]+)/, "Edge"],
|
|
673
695
|
[/OPR\/([\d.]+)/, "Opera"],
|
|
@@ -682,7 +704,7 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
682
704
|
if (r) return `${n} ${r[1]}`;
|
|
683
705
|
}
|
|
684
706
|
return "Others";
|
|
685
|
-
},
|
|
707
|
+
}, gr = (e, t) => e.length > t ? `${e.slice(0, t)}…` : e, _r = (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]"), vr = (e) => {
|
|
686
708
|
let t = /* @__PURE__ */ new WeakSet();
|
|
687
709
|
try {
|
|
688
710
|
return JSON.stringify(e, (e, n) => {
|
|
@@ -696,7 +718,7 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
696
718
|
} catch {
|
|
697
719
|
return String(e);
|
|
698
720
|
}
|
|
699
|
-
},
|
|
721
|
+
}, yr = (e) => e instanceof Error ? gr(_r(`${e.name && e.name !== "Error" ? `${e.name}: ` : ""}${e.message || "Unknown error"}`), er) : gr(_r((typeof e == "string" ? e : vr(e)).trim() || "Unknown error"), er), br = (e) => {
|
|
700
722
|
let t = String(e || "");
|
|
701
723
|
if (!t) return "";
|
|
702
724
|
try {
|
|
@@ -705,7 +727,7 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
705
727
|
} catch {
|
|
706
728
|
return t.split(/[?#]/, 1)[0];
|
|
707
729
|
}
|
|
708
|
-
},
|
|
730
|
+
}, xr = (e, t) => {
|
|
709
731
|
let n = [];
|
|
710
732
|
try {
|
|
711
733
|
let t = new URL(e, location.href).searchParams.toString();
|
|
@@ -722,8 +744,8 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
722
744
|
}), n.push(e.join("&"));
|
|
723
745
|
} 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
746
|
}
|
|
725
|
-
return
|
|
726
|
-
},
|
|
747
|
+
return gr(_r(n.filter(Boolean).join(" | ")), tr);
|
|
748
|
+
}, Sr = (e) => {
|
|
727
749
|
let t;
|
|
728
750
|
if (typeof TextEncoder < "u") {
|
|
729
751
|
let n = new TextEncoder().encode(e);
|
|
@@ -738,8 +760,8 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
738
760
|
t = n.map((e) => String.fromCharCode(e)).join("");
|
|
739
761
|
}
|
|
740
762
|
return window.btoa(t);
|
|
741
|
-
},
|
|
742
|
-
let n =
|
|
763
|
+
}, Cr = (e, t) => {
|
|
764
|
+
let n = Sr(t), r = () => {
|
|
743
765
|
let t = new XMLHttpRequest();
|
|
744
766
|
t.open("POST", e, !0), t.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"), t.send(n);
|
|
745
767
|
}, i = () => {
|
|
@@ -749,7 +771,7 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
749
771
|
try {
|
|
750
772
|
r();
|
|
751
773
|
} catch {}
|
|
752
|
-
}, a =
|
|
774
|
+
}, a = cr ?? window.fetch;
|
|
753
775
|
if (typeof a == "function") {
|
|
754
776
|
a.call(window, e, {
|
|
755
777
|
method: "POST",
|
|
@@ -763,87 +785,87 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
763
785
|
return;
|
|
764
786
|
}
|
|
765
787
|
i();
|
|
766
|
-
},
|
|
767
|
-
if (!
|
|
768
|
-
|
|
788
|
+
}, wr = (e, t) => (n, r, i) => {
|
|
789
|
+
if (!fr) {
|
|
790
|
+
fr = !0;
|
|
769
791
|
try {
|
|
770
|
-
let a =
|
|
771
|
-
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 &&
|
|
792
|
+
let a = yr(i);
|
|
793
|
+
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 && Cr(e, vr({
|
|
772
794
|
type: n,
|
|
773
795
|
time: Date.now(),
|
|
774
|
-
url:
|
|
775
|
-
browser:
|
|
776
|
-
platform:
|
|
796
|
+
url: br(r) || br(location.href),
|
|
797
|
+
browser: hr(),
|
|
798
|
+
platform: mr(),
|
|
777
799
|
message: `[${n}] [${window.document.title}] [${a}]`,
|
|
778
800
|
info: t ? t() : ""
|
|
779
801
|
}));
|
|
780
802
|
} catch {} finally {
|
|
781
|
-
|
|
803
|
+
fr = !1;
|
|
782
804
|
}
|
|
783
805
|
}
|
|
784
|
-
},
|
|
785
|
-
for (let r of
|
|
786
|
-
},
|
|
787
|
-
let t =
|
|
788
|
-
return
|
|
789
|
-
},
|
|
790
|
-
|
|
791
|
-
let t =
|
|
792
|
-
t && !
|
|
806
|
+
}, Tr = (e, t, n) => {
|
|
807
|
+
for (let r of nr) r.report(e, t, n);
|
|
808
|
+
}, Er = (e) => {
|
|
809
|
+
let t = br(e);
|
|
810
|
+
return nr.some((e) => e.endpoint === t);
|
|
811
|
+
}, Dr = (e) => {
|
|
812
|
+
ar.has(e) || (ar.add(e), e.addEventListener("error", () => {
|
|
813
|
+
let t = ir.get(e);
|
|
814
|
+
t && !Er(t.url) && Tr(3, t.url, `${t.method} network error`);
|
|
793
815
|
}), e.addEventListener("timeout", () => {
|
|
794
|
-
let t =
|
|
795
|
-
t && !
|
|
816
|
+
let t = ir.get(e);
|
|
817
|
+
t && !Er(t.url) && Tr(3, t.url, `${t.method} timeout`);
|
|
796
818
|
}), e.addEventListener("loadend", () => {
|
|
797
|
-
let t =
|
|
798
|
-
if (!t || e.status < 400 ||
|
|
819
|
+
let t = ir.get(e);
|
|
820
|
+
if (!t || e.status < 400 || Er(t.url)) return;
|
|
799
821
|
let n = Date.now() - t.startTime;
|
|
800
|
-
|
|
822
|
+
Tr(3, t.url, `${t.method} ${e.status} (${n}ms)`);
|
|
801
823
|
}));
|
|
802
|
-
},
|
|
803
|
-
|
|
804
|
-
|
|
824
|
+
}, Or = () => {
|
|
825
|
+
or || sr || lr || ur || typeof XMLHttpRequest > "u" || (or = XMLHttpRequest.prototype.open, sr = XMLHttpRequest.prototype.send, lr = function(e, t, ...n) {
|
|
826
|
+
ir.set(this, {
|
|
805
827
|
method: String(e).toUpperCase(),
|
|
806
828
|
url: String(t),
|
|
807
829
|
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 (
|
|
830
|
+
}), Dr(this), or?.call(this, e, t, n[0] ?? !0, n[1] ?? null, n[2] ?? null);
|
|
831
|
+
}, XMLHttpRequest.prototype.open = lr, ur = function(e) {
|
|
832
|
+
let t = ir.get(this);
|
|
833
|
+
t && (t.startTime = Date.now()), sr?.call(this, e ?? null);
|
|
834
|
+
}, XMLHttpRequest.prototype.send = ur);
|
|
835
|
+
}, kr = () => {
|
|
836
|
+
or && XMLHttpRequest.prototype.open === lr && (XMLHttpRequest.prototype.open = or, or = void 0, lr = void 0), sr && XMLHttpRequest.prototype.send === ur && (XMLHttpRequest.prototype.send = sr, sr = void 0, ur = void 0);
|
|
837
|
+
}, Ar = () => {
|
|
838
|
+
if (cr || typeof window.fetch != "function") return;
|
|
817
839
|
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 =
|
|
840
|
+
cr = e, dr = async function(t, n) {
|
|
841
|
+
let r = typeof Request < "u" && t instanceof Request, i = r ? t.url : String(t), a = String(n?.method || r && t.method || "GET").toUpperCase(), o = xr(i, n?.body), s = o ? ` | Params: ${o}` : "", c = Date.now();
|
|
820
842
|
try {
|
|
821
843
|
let r = await e.call(this, t, n);
|
|
822
|
-
return !r.ok && !
|
|
844
|
+
return !r.ok && !Er(i) && Tr(3, i, `${a} ${r.status} (${Date.now() - c}ms)${s}`), r;
|
|
823
845
|
} catch (e) {
|
|
824
|
-
throw
|
|
846
|
+
throw Er(i) || Tr(3, i, `${a} network error: ${yr(e)}${s}`), e;
|
|
825
847
|
}
|
|
826
|
-
}, window.fetch =
|
|
827
|
-
},
|
|
828
|
-
|
|
829
|
-
},
|
|
830
|
-
|
|
831
|
-
},
|
|
832
|
-
|
|
833
|
-
},
|
|
834
|
-
|
|
835
|
-
},
|
|
836
|
-
|
|
848
|
+
}, window.fetch = dr;
|
|
849
|
+
}, jr = () => {
|
|
850
|
+
cr && window.fetch === dr && (window.fetch = cr, cr = void 0, dr = void 0);
|
|
851
|
+
}, Mr = (e) => {
|
|
852
|
+
Tr(1, e.filename || location.href, e.error || e.message);
|
|
853
|
+
}, Nr = (e) => {
|
|
854
|
+
Tr(1, location.href, `Promise: ${yr(e.reason)}`);
|
|
855
|
+
}, Pr = () => {
|
|
856
|
+
nr.length === 1 && (Or(), Ar(), window.addEventListener("error", Mr), window.addEventListener("unhandledrejection", Nr));
|
|
857
|
+
}, Fr = () => {
|
|
858
|
+
nr.length > 0 || (kr(), jr(), window.removeEventListener("error", Mr), window.removeEventListener("unhandledrejection", Nr));
|
|
837
859
|
};
|
|
838
|
-
function
|
|
860
|
+
function Ir(e, t, n) {
|
|
839
861
|
if (!t || typeof window > "u" || typeof navigator > "u") return;
|
|
840
|
-
let r =
|
|
862
|
+
let r = rr.get(e);
|
|
841
863
|
if (r) return r;
|
|
842
|
-
let i =
|
|
843
|
-
endpoint:
|
|
864
|
+
let i = wr(t, n), a = {
|
|
865
|
+
endpoint: br(t),
|
|
844
866
|
report: i
|
|
845
867
|
};
|
|
846
|
-
|
|
868
|
+
nr.push(a), Pr();
|
|
847
869
|
let o = e.config.errorHandler, s = (e, t, n) => {
|
|
848
870
|
i(2, location.href, e), o?.(e, t, n);
|
|
849
871
|
};
|
|
@@ -851,14 +873,14 @@ function Or(e, t, n) {
|
|
|
851
873
|
let c = !1, l = () => {
|
|
852
874
|
if (c) return;
|
|
853
875
|
c = !0, e.config.errorHandler === s && (e.config.errorHandler = o);
|
|
854
|
-
let t =
|
|
855
|
-
t >= 0 &&
|
|
876
|
+
let t = nr.indexOf(a);
|
|
877
|
+
t >= 0 && nr.splice(t, 1), rr.delete(e), Fr();
|
|
856
878
|
};
|
|
857
|
-
return
|
|
879
|
+
return rr.set(e, l), e.onUnmount(l), l;
|
|
858
880
|
}
|
|
859
|
-
var
|
|
860
|
-
|
|
861
|
-
}, X = /* @__PURE__ */ new Map(),
|
|
881
|
+
var Lr = (e, t, n) => {
|
|
882
|
+
Tr(e, t, n);
|
|
883
|
+
}, X = /* @__PURE__ */ new Map(), Rr = Object.prototype.hasOwnProperty, zr = 300, Br = (e) => {
|
|
862
884
|
if (e == null) return "";
|
|
863
885
|
let t;
|
|
864
886
|
if (typeof e == "string") t = e;
|
|
@@ -867,44 +889,44 @@ var kr = (e, t, n) => {
|
|
|
867
889
|
} catch {
|
|
868
890
|
t = String(e);
|
|
869
891
|
}
|
|
870
|
-
return t.length >
|
|
892
|
+
return t.length > zr ? `${t.slice(0, zr)}…` : t;
|
|
871
893
|
};
|
|
872
|
-
function
|
|
894
|
+
function Vr(e, t) {
|
|
873
895
|
let n = [];
|
|
874
896
|
for (let r in e) {
|
|
875
|
-
if (!
|
|
897
|
+
if (!Rr.call(e, r)) continue;
|
|
876
898
|
let i = e[r], a = encodeURIComponent(r), o;
|
|
877
|
-
o = typeof i == "object" ?
|
|
899
|
+
o = typeof i == "object" ? Vr(i, t ? t + "[" + a + "]" : a) : (t ? t + "[" + a + "]" : a) + "=" + encodeURIComponent(i), n.push(o);
|
|
878
900
|
}
|
|
879
901
|
return n.join("&");
|
|
880
902
|
}
|
|
881
|
-
var
|
|
903
|
+
var Hr = (e) => {
|
|
882
904
|
let t = e["content-disposition"];
|
|
883
905
|
if (t) {
|
|
884
906
|
let e = t.match(/filename=(?<fileName>.+)/);
|
|
885
907
|
return e && e.groups && e.groups.fileName;
|
|
886
908
|
}
|
|
887
909
|
return "";
|
|
888
|
-
},
|
|
910
|
+
}, Ur = Ge.create({
|
|
889
911
|
timeout: 3e5,
|
|
890
912
|
responseType: "json",
|
|
891
913
|
headers: { "Content-Type": "application/json" }
|
|
892
914
|
});
|
|
893
|
-
|
|
894
|
-
var
|
|
895
|
-
|
|
896
|
-
e.cancelToken =
|
|
915
|
+
Ur.defaults.timeout = 3e5;
|
|
916
|
+
var Wr = Ge.CancelToken.source();
|
|
917
|
+
Ur.interceptors.request.use((e) => {
|
|
918
|
+
e.cancelToken = Wr.token, e.headers.Language = K.lang, e.headers.Platform = K.isMobile ? "mobile" : "pc";
|
|
897
919
|
let t = Y("token", !1);
|
|
898
920
|
if (e.headers && t && (e.headers.token = t), e.method?.toLocaleUpperCase() === "GET") {
|
|
899
|
-
let t =
|
|
921
|
+
let t = Vr(e.data);
|
|
900
922
|
t && (e.url = `${e.url}?${t}`);
|
|
901
923
|
}
|
|
902
924
|
return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
|
|
903
|
-
}, (e) => Promise.reject(e)),
|
|
925
|
+
}, (e) => Promise.reject(e)), Ur.interceptors.response.use((e) => {
|
|
904
926
|
let t = e.data;
|
|
905
|
-
if (t.code === 401) return
|
|
927
|
+
if (t.code === 401) return Bn("token"), G.replace("/login"), Promise.reject(!1);
|
|
906
928
|
if (e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
|
|
907
|
-
let t =
|
|
929
|
+
let t = Hr(e.headers);
|
|
908
930
|
return Promise.resolve({
|
|
909
931
|
fileName: decodeURIComponent(t),
|
|
910
932
|
data: e.data
|
|
@@ -915,30 +937,30 @@ Fr.interceptors.request.use((e) => {
|
|
|
915
937
|
return Promise.resolve(e);
|
|
916
938
|
}
|
|
917
939
|
{
|
|
918
|
-
|
|
919
|
-
let n = t.message, r =
|
|
920
|
-
return
|
|
921
|
-
content: n ||
|
|
940
|
+
Rn.destroyAll();
|
|
941
|
+
let n = t.message, r = Br(e.config.data ?? e.config.params);
|
|
942
|
+
return Lr(3, e.config.url || location.href, `Fetch ${t.code ?? "error"}: ${n || "Unknown error"}${r ? ` | Params: ${r}` : ""}`), Rn.error({
|
|
943
|
+
content: n || yn.global.t("Notice.error"),
|
|
922
944
|
duration: 3e3
|
|
923
945
|
}), Promise.reject(n);
|
|
924
946
|
}
|
|
925
|
-
}, (e) => e ? (
|
|
926
|
-
content:
|
|
947
|
+
}, (e) => e ? (Rn.destroyAll(), e.code === "ERR_NETWORK" ? (Rn.error({
|
|
948
|
+
content: yn.global.t("Notice.network"),
|
|
927
949
|
duration: 3e3
|
|
928
|
-
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (
|
|
929
|
-
content:
|
|
950
|
+
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (Bn("token"), window.location.href = "/mom/login"), Rn.error({
|
|
951
|
+
content: yn.global.t("Notice.error"),
|
|
930
952
|
duration: 3e3
|
|
931
|
-
}), Promise.reject(
|
|
932
|
-
var
|
|
933
|
-
|
|
934
|
-
},
|
|
953
|
+
}), Promise.reject(yn.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(yn.global.t("Notice.error")));
|
|
954
|
+
var Gr = "/apiserver/", Kr = () => {
|
|
955
|
+
Wr.cancel(), Wr = Ge.CancelToken.source();
|
|
956
|
+
}, qr = (e, t, n = "json", r = 3e5) => {
|
|
935
957
|
let i = JSON.stringify({
|
|
936
958
|
fetchUri: e,
|
|
937
959
|
...t
|
|
938
960
|
});
|
|
939
961
|
if (X.has(i)) return X.get(i);
|
|
940
|
-
let a =
|
|
941
|
-
url: `${
|
|
962
|
+
let a = Ur({
|
|
963
|
+
url: `${Gr}${e}`,
|
|
942
964
|
method: "GET",
|
|
943
965
|
data: t,
|
|
944
966
|
responseType: n,
|
|
@@ -953,53 +975,53 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
953
975
|
...t
|
|
954
976
|
});
|
|
955
977
|
if (X.has(i)) return X.get(i);
|
|
956
|
-
let a =
|
|
957
|
-
url: `${
|
|
978
|
+
let a = Ur({
|
|
979
|
+
url: `${Gr}${e}`,
|
|
958
980
|
method: "POST",
|
|
959
981
|
data: t,
|
|
960
982
|
responseType: n,
|
|
961
983
|
timeout: r
|
|
962
984
|
}).then((e) => (X.delete(i), Promise.resolve(e))).catch((e) => (X.delete(i), Promise.reject(e)));
|
|
963
985
|
return X.set(i, a), a;
|
|
964
|
-
},
|
|
965
|
-
url: `${
|
|
986
|
+
}, Jr = (e, t = {}, n = "blob", r = 3e5) => Ur({
|
|
987
|
+
url: `${Gr}${e}`,
|
|
966
988
|
method: "POST",
|
|
967
989
|
data: t,
|
|
968
990
|
responseType: n,
|
|
969
991
|
timeout: r
|
|
970
|
-
}),
|
|
992
|
+
}), Yr = (e) => Ur(e), Xr = (e, t) => Ur({
|
|
971
993
|
headers: { "Content-Type": "multipart/form-data" },
|
|
972
|
-
url: `${
|
|
994
|
+
url: `${Gr}${e}`,
|
|
973
995
|
method: "POST",
|
|
974
996
|
data: t
|
|
975
|
-
}),
|
|
997
|
+
}), Zr = (e, t) => Z("dynamic-table/createTime", {
|
|
976
998
|
id: e,
|
|
977
999
|
createTime: t
|
|
978
|
-
}),
|
|
1000
|
+
}), Qr = (e) => Z("table/query", e), $r = (e) => Z("table/submit", e), ei = (e) => Z("table/delete", e), ti = (e) => Z("dataBind/query", { table_id: e }), ni = (e) => Z("dataBind/submit", e), ri = (e, t, n) => Z("calculation/sqlExecute", {
|
|
979
1001
|
calculationIds: e,
|
|
980
1002
|
linkId: t,
|
|
981
1003
|
...n
|
|
982
|
-
}),
|
|
1004
|
+
}), ii = (e) => Jr("excel/template", { tableKey: e }, "arraybuffer"), ai = (e) => Z("excel/record/query", {
|
|
983
1005
|
recordType: "import",
|
|
984
1006
|
tableKey: e
|
|
985
|
-
}),
|
|
1007
|
+
}), oi = (e) => Z("excel/exportData", e), si = (e, t) => p(Re, { style: { "max-width": "300px" } }, {
|
|
986
1008
|
trigger: () => e,
|
|
987
1009
|
default: () => typeof t == "function" ? t() : t
|
|
988
|
-
}),
|
|
1010
|
+
}), ci = (e, t, n, r) => {
|
|
989
1011
|
try {
|
|
990
1012
|
Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
|
|
991
1013
|
n && n();
|
|
992
|
-
}, (e) =>
|
|
1014
|
+
}, (e) => Qr({
|
|
993
1015
|
id: e,
|
|
994
1016
|
tableId: r
|
|
995
|
-
}), (e) =>
|
|
1017
|
+
}), (e) => $r({
|
|
996
1018
|
tableId: r,
|
|
997
1019
|
...e
|
|
998
|
-
}),
|
|
1020
|
+
}), Rn, Z);
|
|
999
1021
|
} catch (e) {
|
|
1000
1022
|
q(e);
|
|
1001
1023
|
}
|
|
1002
|
-
},
|
|
1024
|
+
}, li = (e, t, n, r, i) => {
|
|
1003
1025
|
let a = {
|
|
1004
1026
|
secondary: i?.secondary || !1,
|
|
1005
1027
|
tertiary: i?.tertiary || !1,
|
|
@@ -1014,36 +1036,36 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1014
1036
|
if (!e.confirmText) {
|
|
1015
1037
|
if (e.onClick && typeof e.onClick == "string") {
|
|
1016
1038
|
let i = e.onClick;
|
|
1017
|
-
a.onClick = () =>
|
|
1039
|
+
a.onClick = () => ci(i, t, n, r);
|
|
1018
1040
|
}
|
|
1019
1041
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
1020
1042
|
}
|
|
1021
|
-
return e.icon && (o.icon = () => p(V, {}, { default: () => p(
|
|
1022
|
-
},
|
|
1043
|
+
return e.icon && (o.icon = () => p(V, {}, { default: () => p(gn, { icon: e.icon }, { default: () => null }) })), p(R, a, o);
|
|
1044
|
+
}, ui = (e, t, n, r, i) => {
|
|
1023
1045
|
let a = { placement: "left" };
|
|
1024
1046
|
if (typeof t.onClick == "string") {
|
|
1025
1047
|
let e = t.onClick;
|
|
1026
|
-
a["on-positive-click"] = () =>
|
|
1048
|
+
a["on-positive-click"] = () => ci(e, n, r, i);
|
|
1027
1049
|
} else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
|
|
1028
1050
|
return p(Ee, a, {
|
|
1029
1051
|
default: () => p("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
|
|
1030
1052
|
trigger: () => e
|
|
1031
1053
|
});
|
|
1032
|
-
},
|
|
1033
|
-
let a =
|
|
1034
|
-
return e.confirmText && (a =
|
|
1035
|
-
},
|
|
1054
|
+
}, di = (e, t, n, r, i) => {
|
|
1055
|
+
let a = li(e, t, n, r, i);
|
|
1056
|
+
return e.confirmText && (a = ui(a, e, t, n, r)), !e.confirmText && e.tooltipText && (a = si(a, e.tooltipText)), a;
|
|
1057
|
+
}, fi = ({ buttons: e, rowData: t = {}, callback: n, tableId: r, hProps: i }) => {
|
|
1036
1058
|
let a = [];
|
|
1037
1059
|
return e.forEach((e) => {
|
|
1038
1060
|
if (e.type === "group") {
|
|
1039
1061
|
let o = [];
|
|
1040
1062
|
e.children && e.children.length > 0 && e.children.forEach((a, s) => {
|
|
1041
|
-
o.push(
|
|
1063
|
+
o.push(di({
|
|
1042
1064
|
...a,
|
|
1043
1065
|
tooltipText: void 0
|
|
1044
1066
|
}, t, n, r, i)), s < e.children.length - 1 && o.push(p("div", { class: "uz-action-split" }, { default: () => "" }));
|
|
1045
1067
|
}), a.push(p(De, { trigger: "click" }, {
|
|
1046
|
-
trigger: () =>
|
|
1068
|
+
trigger: () => li({
|
|
1047
1069
|
type: "normal",
|
|
1048
1070
|
key: e.key,
|
|
1049
1071
|
icon: e.icon,
|
|
@@ -1059,11 +1081,11 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1059
1081
|
}));
|
|
1060
1082
|
}
|
|
1061
1083
|
if (e.type === "normal") {
|
|
1062
|
-
let o =
|
|
1084
|
+
let o = di(e, t, n, r, i);
|
|
1063
1085
|
a.push(o);
|
|
1064
1086
|
}
|
|
1065
1087
|
}), p("div", { class: "uz-action-flex" }, { default: () => a });
|
|
1066
|
-
},
|
|
1088
|
+
}, pi = (e) => {
|
|
1067
1089
|
switch (e) {
|
|
1068
1090
|
case "tertiary": return 1;
|
|
1069
1091
|
case "primary": return 2;
|
|
@@ -1073,7 +1095,7 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1073
1095
|
case "error": return 6;
|
|
1074
1096
|
default: return 0;
|
|
1075
1097
|
}
|
|
1076
|
-
},
|
|
1098
|
+
}, mi = (e) => {
|
|
1077
1099
|
switch (e) {
|
|
1078
1100
|
case 1: return "tertiary";
|
|
1079
1101
|
case 2: return "primary";
|
|
@@ -1083,7 +1105,7 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1083
1105
|
case 6: return "error";
|
|
1084
1106
|
default: return "default";
|
|
1085
1107
|
}
|
|
1086
|
-
},
|
|
1108
|
+
}, hi = (e) => {
|
|
1087
1109
|
switch (e) {
|
|
1088
1110
|
case "detailInside": return 0;
|
|
1089
1111
|
case "editInside": return 1;
|
|
@@ -1092,7 +1114,7 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1092
1114
|
case "enabledInside": return 4;
|
|
1093
1115
|
default: return e;
|
|
1094
1116
|
}
|
|
1095
|
-
},
|
|
1117
|
+
}, gi = (e) => {
|
|
1096
1118
|
switch (e) {
|
|
1097
1119
|
case 0: return "detailInside";
|
|
1098
1120
|
case 1: return "editInside";
|
|
@@ -1101,66 +1123,66 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1101
1123
|
case 4: return "enabledInside";
|
|
1102
1124
|
default: return e;
|
|
1103
1125
|
}
|
|
1104
|
-
},
|
|
1126
|
+
}, _i = (e) => ({
|
|
1105
1127
|
t: 0,
|
|
1106
1128
|
k: e.key,
|
|
1107
1129
|
d: e?.disabled,
|
|
1108
1130
|
l: e?.loading,
|
|
1109
1131
|
i: e?.icon,
|
|
1110
|
-
c:
|
|
1132
|
+
c: pi(e?.color),
|
|
1111
1133
|
b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
|
|
1112
1134
|
o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
|
|
1113
1135
|
p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
|
|
1114
1136
|
s: e?.optionsType,
|
|
1115
1137
|
u: e?.optionsSource,
|
|
1116
|
-
a:
|
|
1138
|
+
a: hi(e?.action),
|
|
1117
1139
|
r: +!!e.footer,
|
|
1118
1140
|
g: +!!e.main,
|
|
1119
1141
|
h: +!!e.sub,
|
|
1120
1142
|
w: e?.width,
|
|
1121
1143
|
z: e?.onClick
|
|
1122
|
-
}),
|
|
1144
|
+
}), vi = (e) => ({
|
|
1123
1145
|
type: "normal",
|
|
1124
1146
|
key: e.k,
|
|
1125
1147
|
disabled: e?.d,
|
|
1126
1148
|
loading: e?.l,
|
|
1127
1149
|
icon: e?.i,
|
|
1128
|
-
color:
|
|
1150
|
+
color: mi(e?.c),
|
|
1129
1151
|
buttonText: e?.b ? decodeURIComponent(e?.b) : "",
|
|
1130
1152
|
confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
|
|
1131
1153
|
tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
|
|
1132
1154
|
optionsType: e?.s,
|
|
1133
1155
|
optionsSource: e?.u,
|
|
1134
|
-
action:
|
|
1156
|
+
action: gi(e?.a),
|
|
1135
1157
|
footer: !!e.r,
|
|
1136
1158
|
sub: !!e.h,
|
|
1137
1159
|
main: !!e.g,
|
|
1138
1160
|
width: e?.w,
|
|
1139
1161
|
onClick: e?.z
|
|
1140
|
-
}),
|
|
1162
|
+
}), yi = (e) => {
|
|
1141
1163
|
let t = [];
|
|
1142
|
-
for (let n of e) n.type === "normal" && t.push(
|
|
1164
|
+
for (let n of e) n.type === "normal" && t.push(_i(n)), n.type === "group" && t.push({
|
|
1143
1165
|
t: 1,
|
|
1144
1166
|
k: n.key,
|
|
1145
1167
|
i: n?.icon,
|
|
1146
|
-
x:
|
|
1168
|
+
x: pi(n?.color),
|
|
1147
1169
|
b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
|
|
1148
|
-
c: n.children.map((e) =>
|
|
1170
|
+
c: n.children.map((e) => _i(e))
|
|
1149
1171
|
});
|
|
1150
1172
|
return t;
|
|
1151
|
-
},
|
|
1173
|
+
}, bi = (e) => {
|
|
1152
1174
|
if (e && e[0] && e[0].type) return e;
|
|
1153
1175
|
let t = [];
|
|
1154
|
-
for (let n of e) n.t === 0 && t.push(
|
|
1176
|
+
for (let n of e) n.t === 0 && t.push(vi(n)), n.t === 1 && t.push({
|
|
1155
1177
|
type: "group",
|
|
1156
1178
|
key: n.k,
|
|
1157
1179
|
icon: n?.i,
|
|
1158
|
-
color:
|
|
1180
|
+
color: mi(n?.x),
|
|
1159
1181
|
buttonText: n?.b ? decodeURIComponent(n?.b) : "",
|
|
1160
|
-
children: n.c.map((e) =>
|
|
1182
|
+
children: n.c.map((e) => vi(e))
|
|
1161
1183
|
});
|
|
1162
1184
|
return t;
|
|
1163
|
-
},
|
|
1185
|
+
}, xi = f({
|
|
1164
1186
|
name: "UzBack",
|
|
1165
1187
|
components: {
|
|
1166
1188
|
NButton: R,
|
|
@@ -1185,7 +1207,7 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1185
1207
|
});
|
|
1186
1208
|
//#endregion
|
|
1187
1209
|
//#region components/back/index.vue
|
|
1188
|
-
function
|
|
1210
|
+
function Si(e, t, n, i, a, s) {
|
|
1189
1211
|
let c = O("UzIcon"), l = O("NIcon"), d = O("NButton");
|
|
1190
1212
|
return S(), r(d, {
|
|
1191
1213
|
quaternary: "",
|
|
@@ -1199,7 +1221,7 @@ function mi(e, t, n, i, a, s) {
|
|
|
1199
1221
|
_: 1
|
|
1200
1222
|
}, 8, ["onClick"]);
|
|
1201
1223
|
}
|
|
1202
|
-
var
|
|
1224
|
+
var Ci = /*#__PURE__*/ W(xi, [["render", Si]]), wi = f({
|
|
1203
1225
|
name: "UzFormItem",
|
|
1204
1226
|
components: {
|
|
1205
1227
|
NIcon: V,
|
|
@@ -1377,11 +1399,11 @@ var hi = /*#__PURE__*/ W(pi, [["render", mi]]), gi = f({
|
|
|
1377
1399
|
checkNumberMax: (t) => {
|
|
1378
1400
|
if (e.status !== 2) return t.params.maxKey ? Number(e.formValue[t.params.maxKey]) : t.params.max;
|
|
1379
1401
|
},
|
|
1380
|
-
selectFilter: (e, t) =>
|
|
1402
|
+
selectFilter: (e, t) => Qn(t.label, e)
|
|
1381
1403
|
};
|
|
1382
1404
|
}
|
|
1383
|
-
}),
|
|
1384
|
-
function
|
|
1405
|
+
}), Ti = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
1406
|
+
function Ei(t, n, i, c, d, f) {
|
|
1385
1407
|
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
1408
|
return t.item.input === "input" ? (S(), r(p, {
|
|
1387
1409
|
key: 0,
|
|
@@ -1686,7 +1708,7 @@ function vi(t, n, i, c, d, f) {
|
|
|
1686
1708
|
value: t.formValue[t.item.key],
|
|
1687
1709
|
disabled: t.checkDisabled()
|
|
1688
1710
|
}, {
|
|
1689
|
-
default: P(() => [o("div",
|
|
1711
|
+
default: P(() => [o("div", Ti, [(S(!0), a(e, null, E(t.item.params.options, (e) => (S(), r(x, {
|
|
1690
1712
|
key: e.value,
|
|
1691
1713
|
label: e.label,
|
|
1692
1714
|
value: e.value
|
|
@@ -1755,7 +1777,7 @@ function vi(t, n, i, c, d, f) {
|
|
|
1755
1777
|
"status"
|
|
1756
1778
|
])) : (S(), a(e, { key: 14 }, [], 64));
|
|
1757
1779
|
}
|
|
1758
|
-
var
|
|
1780
|
+
var Di = /*#__PURE__*/ W(wi, [["render", Ei]]), Oi = f({
|
|
1759
1781
|
name: "UzForm",
|
|
1760
1782
|
components: {
|
|
1761
1783
|
NForm: me,
|
|
@@ -1763,7 +1785,7 @@ var yi = /*#__PURE__*/ W(gi, [["render", vi]]), bi = f({
|
|
|
1763
1785
|
NDivider: le,
|
|
1764
1786
|
NButton: R,
|
|
1765
1787
|
NIcon: V,
|
|
1766
|
-
UzFormItem:
|
|
1788
|
+
UzFormItem: Di
|
|
1767
1789
|
},
|
|
1768
1790
|
props: {
|
|
1769
1791
|
items: {
|
|
@@ -1840,12 +1862,12 @@ var yi = /*#__PURE__*/ W(gi, [["render", vi]]), bi = f({
|
|
|
1840
1862
|
}, p = (e, t) => {
|
|
1841
1863
|
switch (e) {
|
|
1842
1864
|
case "datetime":
|
|
1843
|
-
case "datetimerange": return
|
|
1865
|
+
case "datetimerange": return Gn(t, "yyyy-MM-dd hh:mm:ss");
|
|
1844
1866
|
case "month":
|
|
1845
|
-
case "monthrange": return
|
|
1867
|
+
case "monthrange": return Gn(t, "yyyy-MM");
|
|
1846
1868
|
case "year":
|
|
1847
|
-
case "yearrange": return
|
|
1848
|
-
default: return
|
|
1869
|
+
case "yearrange": return Gn(t, "yyyy");
|
|
1870
|
+
default: return Gn(t);
|
|
1849
1871
|
}
|
|
1850
1872
|
}, h = (e, t = !1) => {
|
|
1851
1873
|
let n = tt(e).startOf("day").diff(tt().startOf("day"), "day");
|
|
@@ -1968,8 +1990,8 @@ var yi = /*#__PURE__*/ W(gi, [["render", vi]]), bi = f({
|
|
|
1968
1990
|
}
|
|
1969
1991
|
};
|
|
1970
1992
|
}
|
|
1971
|
-
}),
|
|
1972
|
-
function
|
|
1993
|
+
}), ki = ["onClick"];
|
|
1994
|
+
function Ai(t, n, s, c, d, f) {
|
|
1973
1995
|
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
1996
|
return S(), a(e, null, [u(C, {
|
|
1975
1997
|
ref: "formRef",
|
|
@@ -1997,7 +2019,7 @@ function Si(t, n, s, c, d, f) {
|
|
|
1997
2019
|
}, [u(m, null, {
|
|
1998
2020
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
1999
2021
|
_: 1
|
|
2000
|
-
}), n[0] ||= l(" 新增 ", -1)], 8,
|
|
2022
|
+
}), n[0] ||= l(" 新增 ", -1)], 8, ki)) : i("", !0),
|
|
2001
2023
|
s.form.showDays ? (S(), a("span", {
|
|
2002
2024
|
key: 1,
|
|
2003
2025
|
class: _(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
@@ -2058,7 +2080,7 @@ function Si(t, n, s, c, d, f) {
|
|
|
2058
2080
|
onOnSubmit: t.refreshOption
|
|
2059
2081
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
2060
2082
|
}
|
|
2061
|
-
var
|
|
2083
|
+
var ji = /*#__PURE__*/ W(Oi, [["render", Ai]]), Mi = f({
|
|
2062
2084
|
name: "UzDraggableForm",
|
|
2063
2085
|
components: {
|
|
2064
2086
|
NForm: me,
|
|
@@ -2066,7 +2088,7 @@ var Ci = /*#__PURE__*/ W(bi, [["render", Si]]), wi = f({
|
|
|
2066
2088
|
NButton: R,
|
|
2067
2089
|
NIcon: V,
|
|
2068
2090
|
NDivider: le,
|
|
2069
|
-
UzFormItem:
|
|
2091
|
+
UzFormItem: Di,
|
|
2070
2092
|
VueDraggable: nt
|
|
2071
2093
|
},
|
|
2072
2094
|
props: {
|
|
@@ -2164,14 +2186,14 @@ var Ci = /*#__PURE__*/ W(bi, [["render", Si]]), wi = f({
|
|
|
2164
2186
|
}
|
|
2165
2187
|
};
|
|
2166
2188
|
}
|
|
2167
|
-
}),
|
|
2189
|
+
}), Ni = {
|
|
2168
2190
|
key: 0,
|
|
2169
2191
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
|
|
2170
|
-
},
|
|
2192
|
+
}, Pi = {
|
|
2171
2193
|
key: 1,
|
|
2172
2194
|
class: "uz-form-item-add"
|
|
2173
2195
|
};
|
|
2174
|
-
function
|
|
2196
|
+
function Fi(t, n, s, c, d, f) {
|
|
2175
2197
|
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
2198
|
return S(), r(w, {
|
|
2177
2199
|
ref: "formRef",
|
|
@@ -2209,11 +2231,11 @@ function Di(t, n, s, c, d, f) {
|
|
|
2209
2231
|
}, {
|
|
2210
2232
|
label: P(() => [
|
|
2211
2233
|
o("div", null, A(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
2212
|
-
s.source && s.form.createButton ? (S(), a("a",
|
|
2234
|
+
s.source && s.form.createButton ? (S(), a("a", Ni, [u(m, null, {
|
|
2213
2235
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
2214
2236
|
_: 1
|
|
2215
2237
|
}), n[1] ||= l(" 新增 ", -1)])) : i("", !0),
|
|
2216
|
-
s.form.showDays ? (S(), a("span",
|
|
2238
|
+
s.form.showDays ? (S(), a("span", Pi, " showDays ")) : i("", !0)
|
|
2217
2239
|
]),
|
|
2218
2240
|
default: P(() => [t.formItemIndex[0] === c && t.formItemIndex[1] === -1 ? (S(), r(h, {
|
|
2219
2241
|
key: 0,
|
|
@@ -2340,7 +2362,7 @@ function Di(t, n, s, c, d, f) {
|
|
|
2340
2362
|
"onClick"
|
|
2341
2363
|
]);
|
|
2342
2364
|
}
|
|
2343
|
-
var
|
|
2365
|
+
var Ii = /*#__PURE__*/ W(Mi, [["render", Fi]]), Li = f({
|
|
2344
2366
|
name: "UzFormItemUpload",
|
|
2345
2367
|
components: {
|
|
2346
2368
|
NUpload: ze,
|
|
@@ -2385,7 +2407,7 @@ var Oi = /*#__PURE__*/ W(wi, [["render", Di]]), ki = f({
|
|
|
2385
2407
|
}), r.value = !1, o();
|
|
2386
2408
|
else {
|
|
2387
2409
|
let s = new FormData();
|
|
2388
|
-
s.append("file", e.file.file), s.append("name", e.file.name),
|
|
2410
|
+
s.append("file", e.file.file), s.append("name", e.file.name), Xr("file/cos/upload", s).then((o) => {
|
|
2389
2411
|
i.value.push({
|
|
2390
2412
|
id: e.file.id,
|
|
2391
2413
|
name: e.file.name,
|
|
@@ -2452,8 +2474,8 @@ var Oi = /*#__PURE__*/ W(wi, [["render", Di]]), ki = f({
|
|
|
2452
2474
|
}
|
|
2453
2475
|
};
|
|
2454
2476
|
}
|
|
2455
|
-
}),
|
|
2456
|
-
function
|
|
2477
|
+
}), Ri = { class: "uz-form-upload-item-inner" }, zi = ["title"], Bi = { key: 0 };
|
|
2478
|
+
function Vi(t, n, s, c, d, f) {
|
|
2457
2479
|
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
2480
|
return S(), r(b, {
|
|
2459
2481
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
@@ -2507,10 +2529,10 @@ function Ni(t, n, s, c, d, f) {
|
|
|
2507
2529
|
}, {
|
|
2508
2530
|
default: P(() => [u(p, { icon: "Document" })]),
|
|
2509
2531
|
_: 1
|
|
2510
|
-
}, 8, ["onClick"])), o("div",
|
|
2532
|
+
}, 8, ["onClick"])), o("div", Ri, [o("div", {
|
|
2511
2533
|
class: "uz-form-upload-title uz-truncate",
|
|
2512
2534
|
title: e.name
|
|
2513
|
-
}, A(e.name), 9,
|
|
2535
|
+
}, A(e.name), 9, zi), t.status === 2 ? i("", !0) : (S(), a("div", Bi, [u(y, { onPositiveClick: (e) => t.doDelete(s) }, {
|
|
2514
2536
|
trigger: P(() => [u(v, {
|
|
2515
2537
|
size: "small",
|
|
2516
2538
|
tertiary: ""
|
|
@@ -2539,7 +2561,7 @@ function Ni(t, n, s, c, d, f) {
|
|
|
2539
2561
|
_: 1
|
|
2540
2562
|
}, 8, ["show"]);
|
|
2541
2563
|
}
|
|
2542
|
-
var
|
|
2564
|
+
var Hi = /*#__PURE__*/ W(Li, [["render", Vi], ["__scopeId", "data-v-79565a09"]]), Ui = f({
|
|
2543
2565
|
name: "UzFormItemImage",
|
|
2544
2566
|
components: {
|
|
2545
2567
|
NImageGroup: ye,
|
|
@@ -2583,11 +2605,11 @@ var Pi = /*#__PURE__*/ W(ki, [["render", Ni], ["__scopeId", "data-v-79565a09"]])
|
|
|
2583
2605
|
}
|
|
2584
2606
|
};
|
|
2585
2607
|
}
|
|
2586
|
-
}),
|
|
2587
|
-
function
|
|
2608
|
+
}), Wi = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
|
|
2609
|
+
function Gi(t, n, i, s, c, d) {
|
|
2588
2610
|
let f = O("UzIcon"), p = O("NIcon"), m = O("NImage"), h = O("NPopover"), g = O("NImageGroup");
|
|
2589
2611
|
return S(), r(g, null, {
|
|
2590
|
-
default: P(() => [o("div",
|
|
2612
|
+
default: P(() => [o("div", Wi, [(S(!0), a(e, null, E(t.imgs, (n) => (S(), a(e, null, [t.isAssetTypeAnImage(n) ? (S(), r(m, {
|
|
2591
2613
|
key: 0,
|
|
2592
2614
|
width: "40",
|
|
2593
2615
|
src: n
|
|
@@ -2619,7 +2641,7 @@ function Li(t, n, i, s, c, d) {
|
|
|
2619
2641
|
_: 1
|
|
2620
2642
|
});
|
|
2621
2643
|
}
|
|
2622
|
-
var
|
|
2644
|
+
var Ki = /*#__PURE__*/ W(Ui, [["render", Gi]]), qi = f({
|
|
2623
2645
|
name: "UzFormItemTimesPicker",
|
|
2624
2646
|
components: { NSelect: Ae },
|
|
2625
2647
|
props: {
|
|
@@ -2669,10 +2691,10 @@ var Ri = /*#__PURE__*/ W(Fi, [["render", Li]]), zi = f({
|
|
|
2669
2691
|
}
|
|
2670
2692
|
};
|
|
2671
2693
|
}
|
|
2672
|
-
}),
|
|
2673
|
-
function
|
|
2694
|
+
}), Ji = { class: "times-picker" };
|
|
2695
|
+
function Yi(e, t, n, r, i, o) {
|
|
2674
2696
|
let s = O("NSelect");
|
|
2675
|
-
return S(), a("div",
|
|
2697
|
+
return S(), a("div", Ji, [
|
|
2676
2698
|
u(s, {
|
|
2677
2699
|
value: e.h,
|
|
2678
2700
|
options: e.times,
|
|
@@ -2720,10 +2742,10 @@ function Vi(e, t, n, r, i, o) {
|
|
|
2720
2742
|
])
|
|
2721
2743
|
]);
|
|
2722
2744
|
}
|
|
2723
|
-
var
|
|
2745
|
+
var Xi = /*#__PURE__*/ W(qi, [["render", Yi], ["__scopeId", "data-v-12b4d7e3"]]);
|
|
2724
2746
|
//#endregion
|
|
2725
2747
|
//#region components/hooks/useDebounceFn.ts
|
|
2726
|
-
function
|
|
2748
|
+
function Zi(e, t = 1e3) {
|
|
2727
2749
|
let n = $e(e, t);
|
|
2728
2750
|
return {
|
|
2729
2751
|
run: n,
|
|
@@ -2733,24 +2755,24 @@ function Ui(e, t = 1e3) {
|
|
|
2733
2755
|
}
|
|
2734
2756
|
//#endregion
|
|
2735
2757
|
//#region components/bom/index.vue?vue&type=script&lang.ts
|
|
2736
|
-
var
|
|
2758
|
+
var Qi = [
|
|
2737
2759
|
"var(--primary)",
|
|
2738
2760
|
"var(--green)",
|
|
2739
2761
|
"var(--yellow)",
|
|
2740
2762
|
"var(--purple)"
|
|
2741
|
-
],
|
|
2763
|
+
], $i = (e) => {
|
|
2742
2764
|
if (e == null || e === "") return null;
|
|
2743
2765
|
if (typeof e == "string") {
|
|
2744
2766
|
let t = Number.parseFloat(e);
|
|
2745
2767
|
return Number.isFinite(t) ? e.includes("%") || t > 1 ? t / 100 : t : null;
|
|
2746
2768
|
}
|
|
2747
2769
|
return Number.isFinite(e) ? e > 1 ? e / 100 : e : null;
|
|
2748
|
-
},
|
|
2749
|
-
let t = Number(e.quantity), n =
|
|
2770
|
+
}, ea = (e) => {
|
|
2771
|
+
let t = Number(e.quantity), n = $i(e.lossRate);
|
|
2750
2772
|
if (!Number.isFinite(t) || n === null || n < 0) return null;
|
|
2751
2773
|
let r = 1 - n;
|
|
2752
2774
|
return r > 0 ? Math.ceil(t / r) : null;
|
|
2753
|
-
},
|
|
2775
|
+
}, ta = (e) => e === null ? "—" : e.toLocaleString("zh-CN"), na = [
|
|
2754
2776
|
{
|
|
2755
2777
|
title: "编码",
|
|
2756
2778
|
key: "code",
|
|
@@ -2795,7 +2817,7 @@ var Wi = [
|
|
|
2795
2817
|
title: "含损耗用量",
|
|
2796
2818
|
key: "required_quantity",
|
|
2797
2819
|
width: 120,
|
|
2798
|
-
render: (e) =>
|
|
2820
|
+
render: (e) => ta(ea(e))
|
|
2799
2821
|
},
|
|
2800
2822
|
{
|
|
2801
2823
|
title: "备注",
|
|
@@ -2803,7 +2825,7 @@ var Wi = [
|
|
|
2803
2825
|
width: 220,
|
|
2804
2826
|
ellipsis: { tooltip: !0 }
|
|
2805
2827
|
}
|
|
2806
|
-
],
|
|
2828
|
+
], ra = f({
|
|
2807
2829
|
name: "UzBom",
|
|
2808
2830
|
components: { NDataTable: se },
|
|
2809
2831
|
props: {
|
|
@@ -2849,7 +2871,7 @@ var Wi = [
|
|
|
2849
2871
|
}
|
|
2850
2872
|
let n = new Set(t), r = o.value.map((t) => e.get(t) ?? t).filter((e) => n.has(e));
|
|
2851
2873
|
(r.length !== o.value.length || r.some((e, t) => e !== o.value[t])) && (o.value = r);
|
|
2852
|
-
}, { run: h, flush: g, cancel: _ } =
|
|
2874
|
+
}, { run: h, flush: g, cancel: _ } = Zi(() => m(u(a.value)), 200), v = /* @__PURE__ */ new WeakMap(), b = (e) => {
|
|
2853
2875
|
let t = v.get(e);
|
|
2854
2876
|
if (t) return t;
|
|
2855
2877
|
let n = new Proxy(e, { set(e, t, n) {
|
|
@@ -2944,7 +2966,7 @@ var Wi = [
|
|
|
2944
2966
|
align: "center",
|
|
2945
2967
|
titleAlign: "center",
|
|
2946
2968
|
className: "uz-bom-action-cell",
|
|
2947
|
-
render: (e) =>
|
|
2969
|
+
render: (e) => fi({
|
|
2948
2970
|
buttons: [{
|
|
2949
2971
|
type: "normal",
|
|
2950
2972
|
key: "add",
|
|
@@ -2973,14 +2995,14 @@ var Wi = [
|
|
|
2973
2995
|
title: e.label,
|
|
2974
2996
|
key: e.key,
|
|
2975
2997
|
width: 160,
|
|
2976
|
-
render: (t, n) => p(
|
|
2998
|
+
render: (t, n) => p(Di, {
|
|
2977
2999
|
item: e,
|
|
2978
3000
|
formValue: b(t),
|
|
2979
3001
|
status: 1,
|
|
2980
3002
|
itemIndex: n
|
|
2981
3003
|
})
|
|
2982
3004
|
}))), k = n(() => {
|
|
2983
|
-
let [e, ...t] =
|
|
3005
|
+
let [e, ...t] = na;
|
|
2984
3006
|
return [
|
|
2985
3007
|
E,
|
|
2986
3008
|
e,
|
|
@@ -2998,7 +3020,7 @@ var Wi = [
|
|
|
2998
3020
|
if (!Number.isFinite(t) || t < 1) return null;
|
|
2999
3021
|
let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
|
|
3000
3022
|
return {
|
|
3001
|
-
color:
|
|
3023
|
+
color: Qi[n - 1],
|
|
3002
3024
|
opacity: Math.min(.1 + r * .05, .4)
|
|
3003
3025
|
};
|
|
3004
3026
|
};
|
|
@@ -3017,10 +3039,10 @@ var Wi = [
|
|
|
3017
3039
|
handleExpandedRowKeysChange: A
|
|
3018
3040
|
};
|
|
3019
3041
|
}
|
|
3020
|
-
}),
|
|
3021
|
-
function
|
|
3042
|
+
}), ia = { class: "uz-bom" };
|
|
3043
|
+
function aa(e, t, n, r, i, o) {
|
|
3022
3044
|
let s = O("NDataTable");
|
|
3023
|
-
return S(), a("div",
|
|
3045
|
+
return S(), a("div", ia, [u(s, {
|
|
3024
3046
|
columns: e.tableColumns,
|
|
3025
3047
|
data: e.innerData,
|
|
3026
3048
|
"row-props": e.getRowProps,
|
|
@@ -3047,13 +3069,13 @@ function Zi(e, t, n, r, i, o) {
|
|
|
3047
3069
|
"onUpdate:expandedRowKeys"
|
|
3048
3070
|
])]);
|
|
3049
3071
|
}
|
|
3050
|
-
var
|
|
3072
|
+
var oa = /*#__PURE__*/ W(ra, [["render", aa]]), sa = 46, ca = 8, Q = 2 * Math.PI * sa, la = ca, ua = 19, da = 69, fa = 52, pa = 8, ma = 135, ha = 270, ga = 2 * Math.PI * fa, _a = ha / 360 * ga, va = 11, ya = `rotate(${ma} 60 ${da})`, ba = (e, t, n, r) => {
|
|
3051
3073
|
let i = r * Math.PI / 180;
|
|
3052
3074
|
return {
|
|
3053
3075
|
x: e + n * Math.cos(i),
|
|
3054
3076
|
y: t + n * Math.sin(i)
|
|
3055
3077
|
};
|
|
3056
|
-
},
|
|
3078
|
+
}, xa = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, Sa = (e, t, n, r, i, a) => {
|
|
3057
3079
|
if (a <= 0) return "";
|
|
3058
3080
|
let o = n + r / 2, s = n - r / 2;
|
|
3059
3081
|
if (a >= 359.999) {
|
|
@@ -3065,16 +3087,16 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3065
3087
|
`A ${s} ${s} 0 1 0 ${i}`
|
|
3066
3088
|
].join(" ");
|
|
3067
3089
|
}
|
|
3068
|
-
let c = i + a, l =
|
|
3090
|
+
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
3091
|
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 ${
|
|
3092
|
+
`M ${xa(l)}`,
|
|
3093
|
+
`A ${o} ${o} 0 ${m} 1 ${xa(u)}`,
|
|
3094
|
+
`A ${p} ${p} 0 0 1 ${xa(d)}`,
|
|
3095
|
+
`A ${s} ${s} 0 ${m} 0 ${xa(f)}`,
|
|
3096
|
+
`A ${p} ${p} 0 0 1 ${xa(l)}`,
|
|
3075
3097
|
"Z"
|
|
3076
3098
|
].join(" ");
|
|
3077
|
-
},
|
|
3099
|
+
}, Ca = (e) => {
|
|
3078
3100
|
if (!e) return "";
|
|
3079
3101
|
let t = e.toLowerCase();
|
|
3080
3102
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -3088,7 +3110,7 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3088
3110
|
return e.join(",");
|
|
3089
3111
|
}
|
|
3090
3112
|
return "0,0,0";
|
|
3091
|
-
},
|
|
3113
|
+
}, wa = f({
|
|
3092
3114
|
name: "UzCircle",
|
|
3093
3115
|
components: { UzNumberFlow: it },
|
|
3094
3116
|
props: {
|
|
@@ -3111,10 +3133,10 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3111
3133
|
}
|
|
3112
3134
|
},
|
|
3113
3135
|
setup(e) {
|
|
3114
|
-
let t = te(), r = `uz-blurs-${t}`, i = n(() => `rgba(${
|
|
3136
|
+
let t = te(), r = `uz-blurs-${t}`, i = n(() => `rgba(${Ca(e.color).split(",").map((e) => {
|
|
3115
3137
|
let t = Number(e) - 50;
|
|
3116
3138
|
return t < 0 && (t = 0), t;
|
|
3117
|
-
})},1)`), a = n(() => `rgba(${
|
|
3139
|
+
})},1)`), a = n(() => `rgba(${Ca(e.color)},1)`), o = n(() => {
|
|
3118
3140
|
let t = Number(e.circle);
|
|
3119
3141
|
return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
|
|
3120
3142
|
}), s = T(o.value), c;
|
|
@@ -3146,49 +3168,49 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3146
3168
|
remainingLength: 0,
|
|
3147
3169
|
remainingStart: 0
|
|
3148
3170
|
};
|
|
3149
|
-
let n = Math.min(1, Math.min(e, t) /
|
|
3171
|
+
let n = Math.min(1, Math.min(e, t) / ua), r = la + 3 * n, i = ca * n, a = e < ua ? i : Q - (t < ua ? i : t - r) - r * 2, o = Q - a - r * 2;
|
|
3150
3172
|
return {
|
|
3151
3173
|
activeLength: a,
|
|
3152
3174
|
activeStart: r / 2,
|
|
3153
3175
|
remainingLength: o,
|
|
3154
3176
|
remainingStart: r / 2 + a + r
|
|
3155
3177
|
};
|
|
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 =
|
|
3178
|
+
}), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() => Sa(60, 60, sa, ca, -90 + p.value / Q * 360, f.value / Q * 360)), h = n(() => {
|
|
3179
|
+
let e = _a * (s.value / 100), t = _a - e;
|
|
3158
3180
|
if (e === 0) return {
|
|
3159
3181
|
activeLength: 0,
|
|
3160
|
-
remainingLength:
|
|
3182
|
+
remainingLength: _a,
|
|
3161
3183
|
remainingStart: 0
|
|
3162
3184
|
};
|
|
3163
3185
|
if (t === 0) return {
|
|
3164
|
-
activeLength:
|
|
3186
|
+
activeLength: _a,
|
|
3165
3187
|
remainingLength: 0,
|
|
3166
3188
|
remainingStart: 0
|
|
3167
3189
|
};
|
|
3168
|
-
let n = Math.min(
|
|
3190
|
+
let n = Math.min(va, e, t);
|
|
3169
3191
|
return {
|
|
3170
3192
|
activeLength: e - n / 2,
|
|
3171
3193
|
remainingLength: t - n / 2,
|
|
3172
3194
|
remainingStart: e + n / 2
|
|
3173
3195
|
};
|
|
3174
|
-
}), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), v = n(() => h.value.remainingStart), b = n(() =>
|
|
3196
|
+
}), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), v = n(() => h.value.remainingStart), b = n(() => Sa(60, da, fa, pa, ma + v.value / ga * 360, _.value / ga * 360));
|
|
3175
3197
|
return {
|
|
3176
3198
|
color: n(() => e.color),
|
|
3177
3199
|
colorA: i,
|
|
3178
3200
|
colorB: a,
|
|
3179
|
-
fullRadius:
|
|
3180
|
-
fullStrokeWidth:
|
|
3201
|
+
fullRadius: sa,
|
|
3202
|
+
fullStrokeWidth: ca,
|
|
3181
3203
|
fullCircumference: Q,
|
|
3182
3204
|
fullActiveLength: u,
|
|
3183
3205
|
fullActiveStart: d,
|
|
3184
3206
|
fullRemainingLength: f,
|
|
3185
3207
|
fullRemainingStart: p,
|
|
3186
3208
|
fullRemainingPath: m,
|
|
3187
|
-
gaugeCenterY:
|
|
3188
|
-
gaugeRadius:
|
|
3189
|
-
gaugeStrokeWidth:
|
|
3190
|
-
gaugeCircumference:
|
|
3191
|
-
gaugeTransform:
|
|
3209
|
+
gaugeCenterY: da,
|
|
3210
|
+
gaugeRadius: fa,
|
|
3211
|
+
gaugeStrokeWidth: pa,
|
|
3212
|
+
gaugeCircumference: ga,
|
|
3213
|
+
gaugeTransform: ya,
|
|
3192
3214
|
gaugeActiveLength: g,
|
|
3193
3215
|
gaugeRemainingLength: _,
|
|
3194
3216
|
gaugeRemainingStart: v,
|
|
@@ -3197,31 +3219,31 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3197
3219
|
blurFilterId: r
|
|
3198
3220
|
};
|
|
3199
3221
|
}
|
|
3200
|
-
}),
|
|
3222
|
+
}), Ta = { class: "uz-circle" }, Ea = {
|
|
3201
3223
|
key: 0,
|
|
3202
3224
|
viewBox: "0 0 120 120",
|
|
3203
3225
|
"aria-hidden": "true"
|
|
3204
|
-
},
|
|
3226
|
+
}, Da = ["id"], Oa = ["stop-color"], ka = ["stop-color"], Aa = ["id"], ja = [
|
|
3205
3227
|
"r",
|
|
3206
3228
|
"stroke-width",
|
|
3207
3229
|
"stroke-dasharray",
|
|
3208
3230
|
"stroke-dashoffset",
|
|
3209
3231
|
"filter",
|
|
3210
3232
|
"stroke"
|
|
3211
|
-
],
|
|
3233
|
+
], Ma = [
|
|
3212
3234
|
"d",
|
|
3213
3235
|
"fill",
|
|
3214
3236
|
"filter"
|
|
3215
|
-
],
|
|
3237
|
+
], Na = {
|
|
3216
3238
|
class: "uz-circle__unit",
|
|
3217
3239
|
x: "60",
|
|
3218
3240
|
y: "82",
|
|
3219
3241
|
"text-anchor": "middle"
|
|
3220
|
-
},
|
|
3242
|
+
}, Pa = {
|
|
3221
3243
|
key: 1,
|
|
3222
3244
|
viewBox: "0 0 120 120",
|
|
3223
3245
|
"aria-hidden": "true"
|
|
3224
|
-
},
|
|
3246
|
+
}, Fa = ["id"], Ia = ["stop-color"], La = ["stop-color"], Ra = ["id"], za = [
|
|
3225
3247
|
"cy",
|
|
3226
3248
|
"r",
|
|
3227
3249
|
"stroke-width",
|
|
@@ -3229,19 +3251,19 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3229
3251
|
"transform",
|
|
3230
3252
|
"filter",
|
|
3231
3253
|
"stroke"
|
|
3232
|
-
],
|
|
3254
|
+
], Ba = [
|
|
3233
3255
|
"d",
|
|
3234
3256
|
"fill",
|
|
3235
3257
|
"filter"
|
|
3236
|
-
],
|
|
3258
|
+
], Va = {
|
|
3237
3259
|
class: "uz-circle__unit uz-circle__unit--gauge",
|
|
3238
3260
|
x: "60",
|
|
3239
3261
|
y: "90",
|
|
3240
3262
|
"text-anchor": "middle"
|
|
3241
3263
|
};
|
|
3242
|
-
function
|
|
3264
|
+
function Ha(e, t, n, r, s, c) {
|
|
3243
3265
|
let l = O("UzNumberFlow");
|
|
3244
|
-
return S(), a("div",
|
|
3266
|
+
return S(), a("div", Ta, [e.mode === 0 ? (S(), a("svg", Ea, [
|
|
3245
3267
|
o("defs", null, [o("linearGradient", {
|
|
3246
3268
|
id: `uz-progress-grad-${e.uniqueId}`,
|
|
3247
3269
|
x1: "1",
|
|
@@ -3251,10 +3273,10 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3251
3273
|
}, [o("stop", {
|
|
3252
3274
|
offset: "0%",
|
|
3253
3275
|
"stop-color": e.colorA
|
|
3254
|
-
}, null, 8,
|
|
3276
|
+
}, null, 8, Oa), o("stop", {
|
|
3255
3277
|
offset: "50%",
|
|
3256
3278
|
"stop-color": e.colorB
|
|
3257
|
-
}, null, 8,
|
|
3279
|
+
}, null, 8, ka)], 8, Da), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
|
|
3258
3280
|
o("feOffset", {
|
|
3259
3281
|
result: "offOut",
|
|
3260
3282
|
in: "SourceGraphic",
|
|
@@ -3271,7 +3293,7 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3271
3293
|
in2: "blurOut",
|
|
3272
3294
|
mode: "normal"
|
|
3273
3295
|
}, null, -1)
|
|
3274
|
-
]], 8,
|
|
3296
|
+
]], 8, Aa)]),
|
|
3275
3297
|
e.fullActiveLength > 0 ? (S(), a("circle", {
|
|
3276
3298
|
key: 0,
|
|
3277
3299
|
class: "uz-circle__progress",
|
|
@@ -3286,7 +3308,7 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3286
3308
|
transform: "rotate(-90 60 60)",
|
|
3287
3309
|
filter: `url(#${e.blurFilterId})`,
|
|
3288
3310
|
stroke: `url(#uz-progress-grad-${e.uniqueId})`
|
|
3289
|
-
}, null, 8,
|
|
3311
|
+
}, null, 8, ja)) : i("", !0),
|
|
3290
3312
|
e.fullRemainingPath ? (S(), a("path", {
|
|
3291
3313
|
key: 1,
|
|
3292
3314
|
class: "uz-circle__progress",
|
|
@@ -3294,9 +3316,9 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3294
3316
|
fill: e.color,
|
|
3295
3317
|
"fill-opacity": "0.1",
|
|
3296
3318
|
filter: `url(#${e.blurFilterId})`
|
|
3297
|
-
}, null, 8,
|
|
3298
|
-
o("text",
|
|
3299
|
-
])) : (S(), a("svg",
|
|
3319
|
+
}, null, 8, Ma)) : i("", !0),
|
|
3320
|
+
o("text", Na, A(e.circleUnit), 1)
|
|
3321
|
+
])) : (S(), a("svg", Pa, [
|
|
3300
3322
|
o("defs", null, [o("linearGradient", {
|
|
3301
3323
|
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
3302
3324
|
x1: "1",
|
|
@@ -3306,10 +3328,10 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3306
3328
|
}, [o("stop", {
|
|
3307
3329
|
offset: "0%",
|
|
3308
3330
|
"stop-color": e.colorA
|
|
3309
|
-
}, null, 8,
|
|
3331
|
+
}, null, 8, Ia), o("stop", {
|
|
3310
3332
|
offset: "50%",
|
|
3311
3333
|
"stop-color": e.colorB
|
|
3312
|
-
}, null, 8,
|
|
3334
|
+
}, null, 8, La)], 8, Fa), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
|
|
3313
3335
|
o("feOffset", {
|
|
3314
3336
|
result: "offOut",
|
|
3315
3337
|
in: "SourceGraphic",
|
|
@@ -3326,7 +3348,7 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3326
3348
|
in2: "blurOut",
|
|
3327
3349
|
mode: "normal"
|
|
3328
3350
|
}, null, -1)
|
|
3329
|
-
]], 8,
|
|
3351
|
+
]], 8, Ra)]),
|
|
3330
3352
|
e.gaugeActiveLength > 0 ? (S(), a("circle", {
|
|
3331
3353
|
key: 0,
|
|
3332
3354
|
class: "uz-circle__progress",
|
|
@@ -3340,7 +3362,7 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3340
3362
|
transform: e.gaugeTransform,
|
|
3341
3363
|
filter: `url(#${e.blurFilterId})`,
|
|
3342
3364
|
stroke: `url(#uz-progress-grad-1-${e.uniqueId})`
|
|
3343
|
-
}, null, 8,
|
|
3365
|
+
}, null, 8, za)) : i("", !0),
|
|
3344
3366
|
e.gaugeRemainingPath ? (S(), a("path", {
|
|
3345
3367
|
key: 1,
|
|
3346
3368
|
class: "uz-circle__progress",
|
|
@@ -3348,11 +3370,11 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3348
3370
|
fill: e.color,
|
|
3349
3371
|
"fill-opacity": "0.1",
|
|
3350
3372
|
filter: `url(#${e.blurFilterId})`
|
|
3351
|
-
}, null, 8,
|
|
3352
|
-
o("text",
|
|
3373
|
+
}, null, 8, Ba)) : i("", !0),
|
|
3374
|
+
o("text", Va, A(e.circleUnit), 1)
|
|
3353
3375
|
])), 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
3376
|
}
|
|
3355
|
-
var
|
|
3377
|
+
var Ua = /*#__PURE__*/ W(wa, [["render", Ha]]), Wa = f({
|
|
3356
3378
|
name: "UzCamera",
|
|
3357
3379
|
components: {
|
|
3358
3380
|
NButton: R,
|
|
@@ -3444,11 +3466,11 @@ var Fa = /*#__PURE__*/ W(ga, [["render", Pa]]), Ia = f({
|
|
|
3444
3466
|
closeAll: d
|
|
3445
3467
|
};
|
|
3446
3468
|
}
|
|
3447
|
-
}),
|
|
3469
|
+
}), Ga = ["width", "height"], Ka = ["width", "height"], qa = { class: "uz-scan-video" }, Ja = {
|
|
3448
3470
|
ref: "videoRef",
|
|
3449
3471
|
playsInline: ""
|
|
3450
3472
|
};
|
|
3451
|
-
function
|
|
3473
|
+
function Ya(t, n, s, c, u, d) {
|
|
3452
3474
|
let f = O("NButton"), p = O("NModal");
|
|
3453
3475
|
return S(), a(e, null, [
|
|
3454
3476
|
t.mode === "button" ? (S(), r(f, {
|
|
@@ -3480,7 +3502,7 @@ function Va(t, n, s, c, u, d) {
|
|
|
3480
3502
|
id: "uz-scan-canvas",
|
|
3481
3503
|
width: t.width,
|
|
3482
3504
|
height: t.height
|
|
3483
|
-
}, null, 8,
|
|
3505
|
+
}, null, 8, Ga)], 4)]),
|
|
3484
3506
|
_: 1
|
|
3485
3507
|
}, 8, [
|
|
3486
3508
|
"show",
|
|
@@ -3498,11 +3520,11 @@ function Va(t, n, s, c, u, d) {
|
|
|
3498
3520
|
id: "uz-scan-canvas",
|
|
3499
3521
|
width: t.width,
|
|
3500
3522
|
height: t.height
|
|
3501
|
-
}, null, 8,
|
|
3502
|
-
o("div",
|
|
3523
|
+
}, null, 8, Ka)], 4)) : i("", !0),
|
|
3524
|
+
o("div", qa, [o("video", Ja, null, 512)])
|
|
3503
3525
|
], 64);
|
|
3504
3526
|
}
|
|
3505
|
-
var
|
|
3527
|
+
var Xa = /*#__PURE__*/ W(Wa, [["render", Ya]]), Za = /* @__PURE__ */ new WeakMap(), Qa = f({
|
|
3506
3528
|
name: "UzSearchBar",
|
|
3507
3529
|
components: {
|
|
3508
3530
|
NIcon: V,
|
|
@@ -3513,7 +3535,7 @@ var Ha = /*#__PURE__*/ W(Ia, [["render", Va]]), Ua = /* @__PURE__ */ new WeakMap
|
|
|
3513
3535
|
NInputGroup: xe,
|
|
3514
3536
|
NInputGroupLabel: Se,
|
|
3515
3537
|
NPopover: De,
|
|
3516
|
-
UzFormItem:
|
|
3538
|
+
UzFormItem: Di
|
|
3517
3539
|
},
|
|
3518
3540
|
props: {
|
|
3519
3541
|
data: {
|
|
@@ -3551,10 +3573,10 @@ var Ha = /*#__PURE__*/ W(Ia, [["render", Va]]), Ua = /* @__PURE__ */ new WeakMap
|
|
|
3551
3573
|
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
3574
|
}
|
|
3553
3575
|
});
|
|
3554
|
-
n.observe(e),
|
|
3576
|
+
n.observe(e), Za.set(e, n);
|
|
3555
3577
|
},
|
|
3556
3578
|
unmounted: (e) => {
|
|
3557
|
-
|
|
3579
|
+
Za.get(e)?.disconnect(), Za.delete(e);
|
|
3558
3580
|
}
|
|
3559
3581
|
} },
|
|
3560
3582
|
emits: ["update:loading", "on-update:value"],
|
|
@@ -3669,24 +3691,24 @@ var Ha = /*#__PURE__*/ W(Ia, [["render", Va]]), Ua = /* @__PURE__ */ new WeakMap
|
|
|
3669
3691
|
tabButtonType: b
|
|
3670
3692
|
};
|
|
3671
3693
|
}
|
|
3672
|
-
}),
|
|
3694
|
+
}), $a = { class: "uz-flex uz-justify-between uz-gap-2" }, eo = {
|
|
3673
3695
|
key: 0,
|
|
3674
3696
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-2 uz-w-full"
|
|
3675
|
-
},
|
|
3697
|
+
}, to = { key: 0 }, no = { class: "uz-flex-1" }, ro = {
|
|
3676
3698
|
key: 1,
|
|
3677
3699
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
3678
|
-
},
|
|
3700
|
+
}, io = {
|
|
3679
3701
|
key: 0,
|
|
3680
3702
|
class: "uz-search-fields-collapse"
|
|
3681
3703
|
};
|
|
3682
|
-
function
|
|
3704
|
+
function ao(n, s, c, d, f, p) {
|
|
3683
3705
|
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
3706
|
return S(), a("div", {
|
|
3685
3707
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
3686
3708
|
onKeyup: s[1] ||= I((e) => n.doSearch(!1), ["enter"])
|
|
3687
|
-
}, [o("div",
|
|
3709
|
+
}, [o("div", $a, [n.enableHeader ? (S(), a("div", eo, [
|
|
3688
3710
|
D(n.$slots, "header"),
|
|
3689
|
-
n.tabList && n.tabList.length > 0 ? (S(), a("div",
|
|
3711
|
+
n.tabList && n.tabList.length > 0 ? (S(), a("div", to, [u(h, null, {
|
|
3690
3712
|
default: P(() => [(S(!0), a(e, null, E(n.tabList, (e) => (S(), r(m, {
|
|
3691
3713
|
key: e.value,
|
|
3692
3714
|
type: n.tabButtonType(e),
|
|
@@ -3698,7 +3720,7 @@ function Za(n, s, c, d, f, p) {
|
|
|
3698
3720
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
3699
3721
|
_: 1
|
|
3700
3722
|
})])) : i("", !0),
|
|
3701
|
-
F((S(), a("div",
|
|
3723
|
+
F((S(), a("div", no, [u(C, {
|
|
3702
3724
|
"x-gap": "8",
|
|
3703
3725
|
"y-gap": "8",
|
|
3704
3726
|
cols: n.cols,
|
|
@@ -3735,7 +3757,7 @@ function Za(n, s, c, d, f, p) {
|
|
|
3735
3757
|
}, 1032, ["span"]))), 128)) : i("", !0)]),
|
|
3736
3758
|
_: 1
|
|
3737
3759
|
}, 8, ["cols"])])), [[ee]])
|
|
3738
|
-
])) : i("", !0), n.enableHeader ? (S(), a("div",
|
|
3760
|
+
])) : i("", !0), n.enableHeader ? (S(), a("div", ro, [
|
|
3739
3761
|
n.more ? (S(), r(m, {
|
|
3740
3762
|
key: 0,
|
|
3741
3763
|
secondary: "",
|
|
@@ -3785,7 +3807,7 @@ function Za(n, s, c, d, f, p) {
|
|
|
3785
3807
|
})) : i("", !0),
|
|
3786
3808
|
D(n.$slots, "action")
|
|
3787
3809
|
])) : i("", !0)]), u(t, { name: "uz-search-fields" }, {
|
|
3788
|
-
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div",
|
|
3810
|
+
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div", io, [u(C, {
|
|
3789
3811
|
"x-gap": "8",
|
|
3790
3812
|
"y-gap": "8",
|
|
3791
3813
|
cols: 4
|
|
@@ -3820,7 +3842,7 @@ function Za(n, s, c, d, f, p) {
|
|
|
3820
3842
|
_: 1
|
|
3821
3843
|
})], 32);
|
|
3822
3844
|
}
|
|
3823
|
-
var
|
|
3845
|
+
var oo = /*#__PURE__*/ W(Qa, [["render", ao]]), so = f({
|
|
3824
3846
|
name: "UzSearchMobileBar",
|
|
3825
3847
|
components: {
|
|
3826
3848
|
NIcon: V,
|
|
@@ -3831,7 +3853,7 @@ var Qa = /*#__PURE__*/ W(Wa, [["render", Za]]), $a = f({
|
|
|
3831
3853
|
NGridItem: _e,
|
|
3832
3854
|
NInputGroup: xe,
|
|
3833
3855
|
NInputGroupLabel: Se,
|
|
3834
|
-
UzFormItem:
|
|
3856
|
+
UzFormItem: Di
|
|
3835
3857
|
},
|
|
3836
3858
|
props: {
|
|
3837
3859
|
data: {
|
|
@@ -3909,10 +3931,10 @@ var Qa = /*#__PURE__*/ W(Wa, [["render", Za]]), $a = f({
|
|
|
3909
3931
|
clearAll: l
|
|
3910
3932
|
};
|
|
3911
3933
|
}
|
|
3912
|
-
}),
|
|
3913
|
-
function
|
|
3934
|
+
}), co = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, lo = { class: "uz-flex uz-gap-2" }, uo = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
3935
|
+
function fo(t, n, s, c, d, f) {
|
|
3914
3936
|
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",
|
|
3937
|
+
return S(), a(e, null, [o("div", co, [D(t.$slots, "header"), o("div", lo, [t.itemData && Object.keys(t.itemData).length > 0 ? (S(), r(h, {
|
|
3916
3938
|
key: 0,
|
|
3917
3939
|
secondary: "",
|
|
3918
3940
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
@@ -3937,7 +3959,7 @@ function ro(t, n, s, c, d, f) {
|
|
|
3937
3959
|
title: "查询",
|
|
3938
3960
|
closable: ""
|
|
3939
3961
|
}, {
|
|
3940
|
-
footer: P(() => [o("div",
|
|
3962
|
+
footer: P(() => [o("div", uo, [u(h, {
|
|
3941
3963
|
secondary: "",
|
|
3942
3964
|
loading: t.loading,
|
|
3943
3965
|
onClick: t.clearAll,
|
|
@@ -3992,7 +4014,7 @@ function ro(t, n, s, c, d, f) {
|
|
|
3992
4014
|
_: 1
|
|
3993
4015
|
}, 8, ["show"])], 64);
|
|
3994
4016
|
}
|
|
3995
|
-
var
|
|
4017
|
+
var po = /*#__PURE__*/ W(so, [["render", fo]]), mo = /(?<=\[)(.+?)(?=\])/g, ho = {
|
|
3996
4018
|
index: 1,
|
|
3997
4019
|
selection: 0,
|
|
3998
4020
|
pagination: 1,
|
|
@@ -4010,10 +4032,10 @@ var io = /*#__PURE__*/ W($a, [["render", ro]]), ao = /(?<=\[)(.+?)(?=\])/g, oo =
|
|
|
4010
4032
|
placement: "right",
|
|
4011
4033
|
summary: ""
|
|
4012
4034
|
};
|
|
4013
|
-
function
|
|
4035
|
+
function go(e) {
|
|
4014
4036
|
return Function("return " + e)();
|
|
4015
4037
|
}
|
|
4016
|
-
var
|
|
4038
|
+
var _o = () => new Promise((e) => {
|
|
4017
4039
|
let t = window.localStorage.getItem("city");
|
|
4018
4040
|
if (t) e(JSON.parse(t));
|
|
4019
4041
|
else {
|
|
@@ -4026,12 +4048,12 @@ var co = () => new Promise((e) => {
|
|
|
4026
4048
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
4027
4049
|
}, 500);
|
|
4028
4050
|
}
|
|
4029
|
-
}),
|
|
4051
|
+
}), vo = async (e, t, n) => {
|
|
4030
4052
|
if (t && typeof t == "string") {
|
|
4031
|
-
let r = t.match(
|
|
4053
|
+
let r = t.match(mo);
|
|
4032
4054
|
if (r && t.indexOf("return") === -1) {
|
|
4033
4055
|
let t = r[0].split(":");
|
|
4034
|
-
if (t[0] === "date") return (t) =>
|
|
4056
|
+
if (t[0] === "date") return (t) => Gn(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
4035
4057
|
if (t[0] === "city") return (t) => t[`${e}Str`];
|
|
4036
4058
|
if (t[0] === "modules" && n && Object.keys(n).length > 0) {
|
|
4037
4059
|
let e = r[0].replace("modules:", ""), t = Object.keys(n).find((t) => t.includes(e));
|
|
@@ -4049,7 +4071,7 @@ var co = () => new Promise((e) => {
|
|
|
4049
4071
|
}
|
|
4050
4072
|
}
|
|
4051
4073
|
return t && typeof t == "function" ? (e, n) => t(e, n, p) : "";
|
|
4052
|
-
},
|
|
4074
|
+
}, yo = (e, t, n) => {
|
|
4053
4075
|
let r = t.map((t) => {
|
|
4054
4076
|
let r = [], i = t.id;
|
|
4055
4077
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -4062,35 +4084,35 @@ var co = () => new Promise((e) => {
|
|
|
4062
4084
|
};
|
|
4063
4085
|
});
|
|
4064
4086
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
4065
|
-
},
|
|
4066
|
-
function
|
|
4067
|
-
|
|
4087
|
+
}, bo = /* @__PURE__ */ new Map();
|
|
4088
|
+
function xo() {
|
|
4089
|
+
bo.clear();
|
|
4068
4090
|
}
|
|
4069
|
-
async function
|
|
4091
|
+
async function So(e, t = !1) {
|
|
4070
4092
|
let n = e.split("."), r = !1;
|
|
4071
|
-
return n.length > 1 && (
|
|
4093
|
+
return n.length > 1 && (bo.has(n[0]) && !t ? r = U(bo.get(n[0])) : (r = await Qr({ tableId: n[0] }), bo.set(n[0], r))), {
|
|
4072
4094
|
sourceData: r,
|
|
4073
4095
|
n
|
|
4074
4096
|
};
|
|
4075
4097
|
}
|
|
4076
|
-
async function
|
|
4098
|
+
async function Co(e) {
|
|
4077
4099
|
return new Promise((t, n) => {
|
|
4078
4100
|
let r = Y(`dynamicTable_${e}`, !1);
|
|
4079
|
-
r &&
|
|
4101
|
+
r && bo.has(`dynamicTable_${e}`) ? t(r) : Zr(e, r ? r.createTime : null).then((n) => {
|
|
4080
4102
|
if (n) {
|
|
4081
4103
|
let r = {
|
|
4082
4104
|
createTime: n.createTime,
|
|
4083
4105
|
tableTitle: n.tableTitle,
|
|
4084
4106
|
viewJson: n.viewJson
|
|
4085
4107
|
};
|
|
4086
|
-
J(`dynamicTable_${e}`, r, 0),
|
|
4087
|
-
} else
|
|
4108
|
+
J(`dynamicTable_${e}`, r, 0), bo.set(`dynamicTable_${e}`, !0), Vn("tables_"), t(n);
|
|
4109
|
+
} else bo.set(`dynamicTable_${e}`, !0), t(r);
|
|
4088
4110
|
}).catch(() => {
|
|
4089
4111
|
n();
|
|
4090
4112
|
});
|
|
4091
4113
|
});
|
|
4092
4114
|
}
|
|
4093
|
-
var
|
|
4115
|
+
var wo = (e) => e.map((e) => {
|
|
4094
4116
|
let t = {};
|
|
4095
4117
|
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
4118
|
i: e.input,
|
|
@@ -4165,7 +4187,7 @@ var go = (e) => e.map((e) => {
|
|
|
4165
4187
|
p: { s: +!!e.form.expand.show }
|
|
4166
4188
|
}
|
|
4167
4189
|
};
|
|
4168
|
-
}),
|
|
4190
|
+
}), To = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
4169
4191
|
let t = {};
|
|
4170
4192
|
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
4193
|
input: e.i,
|
|
@@ -4240,12 +4262,12 @@ var go = (e) => e.map((e) => {
|
|
|
4240
4262
|
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
4241
4263
|
}
|
|
4242
4264
|
};
|
|
4243
|
-
}),
|
|
4265
|
+
}), Eo = (e) => ({
|
|
4244
4266
|
f: e.fetch,
|
|
4245
4267
|
n: e.fetchFn,
|
|
4246
4268
|
o: e.when_drawer_open,
|
|
4247
4269
|
b: e.when_before_save
|
|
4248
|
-
}),
|
|
4270
|
+
}), Do = (e) => e ? e.fetch ? e : {
|
|
4249
4271
|
fetch: e.f,
|
|
4250
4272
|
fetchFn: e.n,
|
|
4251
4273
|
when_drawer_open: e.o,
|
|
@@ -4255,7 +4277,7 @@ var go = (e) => e.map((e) => {
|
|
|
4255
4277
|
fetchFn: "",
|
|
4256
4278
|
when_drawer_open: "",
|
|
4257
4279
|
when_before_save: ""
|
|
4258
|
-
},
|
|
4280
|
+
}, Oo = (e) => ({
|
|
4259
4281
|
i: e.index,
|
|
4260
4282
|
s: e.selection,
|
|
4261
4283
|
p: e.pagination,
|
|
@@ -4271,7 +4293,7 @@ var go = (e) => e.map((e) => {
|
|
|
4271
4293
|
h: e.drawerHeight,
|
|
4272
4294
|
l: e.placement,
|
|
4273
4295
|
r: e.summary
|
|
4274
|
-
}),
|
|
4296
|
+
}), ko = (e) => {
|
|
4275
4297
|
let t = {};
|
|
4276
4298
|
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
4299
|
index: e.i,
|
|
@@ -4289,9 +4311,9 @@ var go = (e) => e.map((e) => {
|
|
|
4289
4311
|
drawerHeight: e.h,
|
|
4290
4312
|
placement: e.l,
|
|
4291
4313
|
summary: e.r
|
|
4292
|
-
}), Object.assign({},
|
|
4314
|
+
}), Object.assign({}, ho, U(t));
|
|
4293
4315
|
};
|
|
4294
|
-
function
|
|
4316
|
+
function Ao(e, t, n, r) {
|
|
4295
4317
|
return new Promise(async (i, a) => {
|
|
4296
4318
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
|
|
4297
4319
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -4326,21 +4348,21 @@ function So(e, t, n, r) {
|
|
|
4326
4348
|
disabled: !0
|
|
4327
4349
|
}];
|
|
4328
4350
|
if (e.params.immediately || r) {
|
|
4329
|
-
let { sourceData: t, n: r } = await
|
|
4351
|
+
let { sourceData: t, n: r } = await So(e.source);
|
|
4330
4352
|
if (t && Array.isArray(t)) {
|
|
4331
4353
|
if (e.sourceFn) {
|
|
4332
4354
|
let r = e.sourceFn;
|
|
4333
4355
|
n = Function("sourceData", r)(t);
|
|
4334
|
-
} else n =
|
|
4356
|
+
} else n = yo(e, t, r);
|
|
4335
4357
|
}
|
|
4336
4358
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
4337
|
-
let { sourceData: t, n } = await
|
|
4359
|
+
let { sourceData: t, n } = await So(e.source);
|
|
4338
4360
|
if (t && Array.isArray(t)) {
|
|
4339
4361
|
if (e.sourceFn) {
|
|
4340
4362
|
let n = e.sourceFn;
|
|
4341
4363
|
return Function("sourceData", n)(t);
|
|
4342
4364
|
}
|
|
4343
|
-
return
|
|
4365
|
+
return yo(e, t, n);
|
|
4344
4366
|
}
|
|
4345
4367
|
};
|
|
4346
4368
|
if (e.params.options = n, e.form.backfill && t) {
|
|
@@ -4374,27 +4396,27 @@ function So(e, t, n, r) {
|
|
|
4374
4396
|
q(e);
|
|
4375
4397
|
}
|
|
4376
4398
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
4377
|
-
let t = await
|
|
4399
|
+
let t = await _o();
|
|
4378
4400
|
e.params.options = t;
|
|
4379
4401
|
}
|
|
4380
4402
|
if (e.input === "subTable" && e.params.link) {
|
|
4381
|
-
let t = await
|
|
4403
|
+
let t = await Co(e.params.link).catch(() => {
|
|
4382
4404
|
a();
|
|
4383
4405
|
});
|
|
4384
4406
|
if (t) try {
|
|
4385
4407
|
let n = rt.parse(t.viewJson);
|
|
4386
|
-
n.suffix && (e._suffix =
|
|
4387
|
-
let r =
|
|
4408
|
+
n.suffix && (e._suffix = bi(n.suffix));
|
|
4409
|
+
let r = To(n.table);
|
|
4388
4410
|
r.forEach((e) => {
|
|
4389
4411
|
e.table.sorter = !1;
|
|
4390
4412
|
});
|
|
4391
4413
|
let i = r.filter((e) => e.input === "subTable");
|
|
4392
4414
|
if (i) for await (let e of i) {
|
|
4393
|
-
let t = await
|
|
4415
|
+
let t = await Co(e.params.link).catch(() => {
|
|
4394
4416
|
a();
|
|
4395
4417
|
});
|
|
4396
4418
|
if (t) try {
|
|
4397
|
-
let n = rt.parse(t.viewJson), r =
|
|
4419
|
+
let n = rt.parse(t.viewJson), r = To(n.table);
|
|
4398
4420
|
r.forEach((e) => {
|
|
4399
4421
|
e.table.sorter = !1;
|
|
4400
4422
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -4428,7 +4450,7 @@ function So(e, t, n, r) {
|
|
|
4428
4450
|
});
|
|
4429
4451
|
});
|
|
4430
4452
|
}
|
|
4431
|
-
async function
|
|
4453
|
+
async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
4432
4454
|
let s = 0, c = [], l = [], u = {
|
|
4433
4455
|
key: "",
|
|
4434
4456
|
link: "",
|
|
@@ -4443,25 +4465,25 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4443
4465
|
for await (let [e, s] of m.entries()) {
|
|
4444
4466
|
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
|
|
4445
4467
|
if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
4446
|
-
let { sourceData: t, n } = await
|
|
4468
|
+
let { sourceData: t, n } = await So(s.source, a && e === 0);
|
|
4447
4469
|
if (t && Array.isArray(t)) {
|
|
4448
4470
|
if (s.sourceFn) {
|
|
4449
4471
|
let e = s.sourceFn, n = Function("sourceData", e);
|
|
4450
4472
|
s.params.options = n(t);
|
|
4451
|
-
} else s.params.options =
|
|
4473
|
+
} else s.params.options = yo(s, t, n);
|
|
4452
4474
|
}
|
|
4453
4475
|
} else s.params.options = [{
|
|
4454
4476
|
label: "加载中......",
|
|
4455
4477
|
value: "loading",
|
|
4456
4478
|
disabled: !0
|
|
4457
4479
|
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4458
|
-
let { sourceData: e, n: t } = await
|
|
4480
|
+
let { sourceData: e, n: t } = await So(s.source);
|
|
4459
4481
|
if (e && Array.isArray(e)) {
|
|
4460
4482
|
if (s.sourceFn) {
|
|
4461
4483
|
let t = s.sourceFn;
|
|
4462
4484
|
return Function("sourceData", t)(e);
|
|
4463
4485
|
}
|
|
4464
|
-
return
|
|
4486
|
+
return yo(s, e, t);
|
|
4465
4487
|
}
|
|
4466
4488
|
};
|
|
4467
4489
|
}
|
|
@@ -4469,7 +4491,7 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4469
4491
|
let t = s.params.options.find((t) => t.value === e[s.key]);
|
|
4470
4492
|
if (t) return t.label;
|
|
4471
4493
|
}), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
|
|
4472
|
-
return p(
|
|
4494
|
+
return p(Ki, { value: e[s.key] }, { default: () => null });
|
|
4473
4495
|
});
|
|
4474
4496
|
let f = {
|
|
4475
4497
|
input: s.input,
|
|
@@ -4484,7 +4506,7 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4484
4506
|
tooltip: !0,
|
|
4485
4507
|
"line-clamp": s.table.clamp ?? 0
|
|
4486
4508
|
} : !1,
|
|
4487
|
-
render: s.table.render ? await
|
|
4509
|
+
render: s.table.render ? await vo(s.key, s.table.render, i) : void 0,
|
|
4488
4510
|
show: K.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
4489
4511
|
pin: !!s.table.fixed,
|
|
4490
4512
|
fixTemp: s.table.fixed
|
|
@@ -4506,7 +4528,7 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4506
4528
|
...s.form.rule,
|
|
4507
4529
|
index: t
|
|
4508
4530
|
} : void 0
|
|
4509
|
-
}, { default: () => p(
|
|
4531
|
+
}, { default: () => p(Di, {
|
|
4510
4532
|
item: s,
|
|
4511
4533
|
formValue: e,
|
|
4512
4534
|
status: n,
|
|
@@ -4519,34 +4541,34 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4519
4541
|
if (s.search.title && (s.label = s.search.title), s.search.source) {
|
|
4520
4542
|
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
4543
|
else if (s.params.immediately || s.search.defaultValue) {
|
|
4522
|
-
let { sourceData: e, n: t } = await
|
|
4544
|
+
let { sourceData: e, n: t } = await So(s.search.source);
|
|
4523
4545
|
if (e && Array.isArray(e)) {
|
|
4524
4546
|
if (s.sourceFn) {
|
|
4525
4547
|
let t = s.sourceFn, n = Function("sourceData", t);
|
|
4526
4548
|
s.params.options = n(e);
|
|
4527
|
-
} else s.params.options =
|
|
4549
|
+
} else s.params.options = yo(s, e, t);
|
|
4528
4550
|
}
|
|
4529
4551
|
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4530
|
-
let { sourceData: e, n: t } = await
|
|
4552
|
+
let { sourceData: e, n: t } = await So(s.search.source);
|
|
4531
4553
|
if (e && Array.isArray(e)) {
|
|
4532
4554
|
if (s.sourceFn) {
|
|
4533
4555
|
let t = s.sourceFn;
|
|
4534
4556
|
return Function("sourceData", t)(e);
|
|
4535
4557
|
}
|
|
4536
|
-
return
|
|
4558
|
+
return yo(s, e, t);
|
|
4537
4559
|
}
|
|
4538
4560
|
};
|
|
4539
4561
|
}
|
|
4540
|
-
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue =
|
|
4562
|
+
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = go(s.search.defaultValue))), s.search.show) {
|
|
4541
4563
|
let e = U(s);
|
|
4542
4564
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
4543
|
-
let { sourceData: t, n } = await
|
|
4565
|
+
let { sourceData: t, n } = await So(e.source || e.search.source);
|
|
4544
4566
|
if (t && Array.isArray(t)) {
|
|
4545
4567
|
if (e.sourceFn) {
|
|
4546
4568
|
let n = e.sourceFn;
|
|
4547
4569
|
return Function("sourceData", n)(t);
|
|
4548
4570
|
}
|
|
4549
|
-
return
|
|
4571
|
+
return yo(e, t, n);
|
|
4550
4572
|
}
|
|
4551
4573
|
}), c.push({
|
|
4552
4574
|
input: e.input,
|
|
@@ -4600,7 +4622,7 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4600
4622
|
}
|
|
4601
4623
|
//#endregion
|
|
4602
4624
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
4603
|
-
var
|
|
4625
|
+
var Mo = f({
|
|
4604
4626
|
name: "UzSpin",
|
|
4605
4627
|
components: {
|
|
4606
4628
|
NButton: R,
|
|
@@ -4646,7 +4668,7 @@ var wo = f({
|
|
|
4646
4668
|
});
|
|
4647
4669
|
//#endregion
|
|
4648
4670
|
//#region components/spin/index.vue
|
|
4649
|
-
function
|
|
4671
|
+
function No(e, t, n, i, a, s) {
|
|
4650
4672
|
let c = O("NEllipsis"), d = O("NButton"), f = O("NSpin");
|
|
4651
4673
|
return S(), r(f, { show: e.value }, {
|
|
4652
4674
|
description: P(() => [
|
|
@@ -4674,7 +4696,7 @@ function To(e, t, n, i, a, s) {
|
|
|
4674
4696
|
_: 3
|
|
4675
4697
|
}, 8, ["show"]);
|
|
4676
4698
|
}
|
|
4677
|
-
var
|
|
4699
|
+
var Po = /*#__PURE__*/ W(Mo, [["render", No]]), Fo = f({
|
|
4678
4700
|
name: "UzTableExpand",
|
|
4679
4701
|
components: {
|
|
4680
4702
|
NDataTable: se,
|
|
@@ -4700,8 +4722,8 @@ var Eo = /*#__PURE__*/ W(wo, [["render", To]]), Do = f({
|
|
|
4700
4722
|
} catch (e) {
|
|
4701
4723
|
q(e);
|
|
4702
4724
|
}
|
|
4703
|
-
|
|
4704
|
-
let { tableColumns: r } = await
|
|
4725
|
+
Co(e.data.link).then(async (e) => {
|
|
4726
|
+
let { tableColumns: r } = await jo(To(rt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
|
|
4705
4727
|
...e,
|
|
4706
4728
|
sorter: !1,
|
|
4707
4729
|
resizable: !1
|
|
@@ -4722,7 +4744,7 @@ var Eo = /*#__PURE__*/ W(wo, [["render", To]]), Do = f({
|
|
|
4722
4744
|
});
|
|
4723
4745
|
//#endregion
|
|
4724
4746
|
//#region components/table/components/expand.vue
|
|
4725
|
-
function
|
|
4747
|
+
function Io(e, t, n, i, a, o) {
|
|
4726
4748
|
let s = O("NDataTable");
|
|
4727
4749
|
return S(), r(s, {
|
|
4728
4750
|
columns: e.columns,
|
|
@@ -4741,18 +4763,18 @@ function Oo(e, t, n, i, a, o) {
|
|
|
4741
4763
|
"scroll-x"
|
|
4742
4764
|
]);
|
|
4743
4765
|
}
|
|
4744
|
-
var
|
|
4766
|
+
var Lo = /*#__PURE__*/ W(Fo, [["render", Io]]), Ro = f({
|
|
4745
4767
|
components: { NSkeleton: je },
|
|
4746
4768
|
setup() {
|
|
4747
4769
|
return {};
|
|
4748
4770
|
}
|
|
4749
|
-
}),
|
|
4750
|
-
function
|
|
4771
|
+
}), zo = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Bo = { class: "uz-flex uz-justify-between" }, Vo = { class: "uz-flex uz-gap-1" };
|
|
4772
|
+
function Ho(e, t, n, r, i, s) {
|
|
4751
4773
|
let c = O("NSkeleton");
|
|
4752
|
-
return S(), a("div",
|
|
4774
|
+
return S(), a("div", zo, [o("div", Bo, [u(c, {
|
|
4753
4775
|
width: 120,
|
|
4754
4776
|
size: "medium"
|
|
4755
|
-
}), o("div",
|
|
4777
|
+
}), o("div", Vo, [
|
|
4756
4778
|
u(c, {
|
|
4757
4779
|
width: 180,
|
|
4758
4780
|
size: "medium"
|
|
@@ -4785,7 +4807,7 @@ function Po(e, t, n, r, i, s) {
|
|
|
4785
4807
|
}
|
|
4786
4808
|
//#endregion
|
|
4787
4809
|
//#region components/table/index.vue?vue&type=script&lang.ts
|
|
4788
|
-
var
|
|
4810
|
+
var Uo = f({
|
|
4789
4811
|
name: "UzTable",
|
|
4790
4812
|
components: {
|
|
4791
4813
|
NDataTable: se,
|
|
@@ -4795,9 +4817,9 @@ var Fo = f({
|
|
|
4795
4817
|
NCheckbox: ie,
|
|
4796
4818
|
NSpin: Ne,
|
|
4797
4819
|
VueDraggable: nt,
|
|
4798
|
-
UzSpin:
|
|
4799
|
-
TableExpand:
|
|
4800
|
-
SkeletonLoading: /* @__PURE__ */ W(
|
|
4820
|
+
UzSpin: Po,
|
|
4821
|
+
TableExpand: Lo,
|
|
4822
|
+
SkeletonLoading: /* @__PURE__ */ W(Ro, [["render", Ho]])
|
|
4801
4823
|
},
|
|
4802
4824
|
props: {
|
|
4803
4825
|
id: {
|
|
@@ -4937,7 +4959,7 @@ var Fo = f({
|
|
|
4937
4959
|
fetchFn: "",
|
|
4938
4960
|
when_drawer_open: "",
|
|
4939
4961
|
when_before_save: ""
|
|
4940
|
-
}), L = T(
|
|
4962
|
+
}), L = T(ko()), ne = T(""), re = T(!1), ie = T([]), z = T([]), ae = m("modules"), oe = (e) => e.id, se = (e, n) => {
|
|
4941
4963
|
t("update:rowKeys", {
|
|
4942
4964
|
keys: e,
|
|
4943
4965
|
rows: U(n)
|
|
@@ -4971,7 +4993,7 @@ var Fo = f({
|
|
|
4971
4993
|
else if (I.value.fetchFn) {
|
|
4972
4994
|
let e = I.value.fetchFn;
|
|
4973
4995
|
r = Function("POST", "queryData", e)(Z, { ...t });
|
|
4974
|
-
} else r =
|
|
4996
|
+
} else r = Qr({
|
|
4975
4997
|
...t,
|
|
4976
4998
|
tableId: n
|
|
4977
4999
|
});
|
|
@@ -4985,7 +5007,7 @@ var Fo = f({
|
|
|
4985
5007
|
else if (I.value.fetchFn) {
|
|
4986
5008
|
let e = I.value.fetchFn;
|
|
4987
5009
|
r = Function("POST", "queryData", e)(Z, { id: t.id });
|
|
4988
|
-
} else r =
|
|
5010
|
+
} else r = Qr({
|
|
4989
5011
|
id: t.id,
|
|
4990
5012
|
tableId: n
|
|
4991
5013
|
});
|
|
@@ -4994,24 +5016,24 @@ var Fo = f({
|
|
|
4994
5016
|
let r = e.id || o.params.id;
|
|
4995
5017
|
e.enableLoading && (_.value = !0, t("update:loading", !0));
|
|
4996
5018
|
let i = U(k.value);
|
|
4997
|
-
n && delete i.orderby, I.value.fetch ?
|
|
4998
|
-
let n =
|
|
5019
|
+
n && delete i.orderby, I.value.fetch ? ri([I.value.fetch], "", i).then((e) => {
|
|
5020
|
+
let n = Wn(e);
|
|
4999
5021
|
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
5022
|
}).catch(() => {
|
|
5001
5023
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5002
5024
|
}) : de(i).then((e) => {
|
|
5003
|
-
let n =
|
|
5025
|
+
let n = Wn(e);
|
|
5004
5026
|
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
5027
|
}).catch(() => {
|
|
5006
5028
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5007
5029
|
});
|
|
5008
5030
|
}, pe = (e) => {
|
|
5009
|
-
k.value.query.page = e, u.value && (u.value.scrollTop = 0),
|
|
5031
|
+
k.value.query.page = e, u.value && (u.value.scrollTop = 0), Un(), B();
|
|
5010
5032
|
}, me = () => {
|
|
5011
5033
|
let e = k.value.query.page + 1;
|
|
5012
5034
|
e > k.value.query.pageMax && (e = 1), k.value.query.page = e, u.value && (u.value.scrollTop = 0), B();
|
|
5013
5035
|
}, he = (e) => {
|
|
5014
|
-
k.value.query.pageSize = e, k.value.query.page = 1,
|
|
5036
|
+
k.value.query.pageSize = e, k.value.query.page = 1, Un(), B();
|
|
5015
5037
|
}, ge = (e) => {
|
|
5016
5038
|
e && e.order ? k.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete k.value.orderby, B();
|
|
5017
5039
|
}, _e = () => {
|
|
@@ -5035,7 +5057,7 @@ var Fo = f({
|
|
|
5035
5057
|
show: !0,
|
|
5036
5058
|
ellipsis: !1,
|
|
5037
5059
|
width: 180,
|
|
5038
|
-
render: (e) => [p("div", {}, { default: () => e.createBy }), p("div", {}, { default: () =>
|
|
5060
|
+
render: (e) => [p("div", {}, { default: () => e.createBy }), p("div", {}, { default: () => Gn(e.createTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5039
5061
|
}, {
|
|
5040
5062
|
title: "更新人/时间",
|
|
5041
5063
|
key: "updateTime",
|
|
@@ -5044,9 +5066,9 @@ var Fo = f({
|
|
|
5044
5066
|
show: !0,
|
|
5045
5067
|
ellipsis: !0,
|
|
5046
5068
|
width: 180,
|
|
5047
|
-
render: (e) => [p("div", {}, { default: () => e.updateBy }), p("div", {}, { default: () =>
|
|
5069
|
+
render: (e) => [p("div", {}, { default: () => e.updateBy }), p("div", {}, { default: () => Gn(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5048
5070
|
}], 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
|
|
5071
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Ao(N.value, e, () => f.value?.getFormValues());
|
|
5050
5072
|
return x.value = t, {
|
|
5051
5073
|
form: t,
|
|
5052
5074
|
fillingDefaultValue: n,
|
|
@@ -5135,7 +5157,7 @@ var Fo = f({
|
|
|
5135
5157
|
...n,
|
|
5136
5158
|
tableId: a,
|
|
5137
5159
|
sub_table_ids: r
|
|
5138
|
-
}) :
|
|
5160
|
+
}) : ei({
|
|
5139
5161
|
...n,
|
|
5140
5162
|
tableId: a,
|
|
5141
5163
|
sub_table_ids: r
|
|
@@ -5153,7 +5175,7 @@ var Fo = f({
|
|
|
5153
5175
|
});
|
|
5154
5176
|
};
|
|
5155
5177
|
} else if (n.type !== "group" && n.action === "disabledInside") n.onClick = (t) => {
|
|
5156
|
-
|
|
5178
|
+
$r({
|
|
5157
5179
|
tableId: e.id || o.params.id,
|
|
5158
5180
|
...t,
|
|
5159
5181
|
is_disabled: "1"
|
|
@@ -5162,7 +5184,7 @@ var Fo = f({
|
|
|
5162
5184
|
}).catch(() => null);
|
|
5163
5185
|
};
|
|
5164
5186
|
else if (n.type !== "group" && n.action === "enabledInside") n.onClick = (t) => {
|
|
5165
|
-
|
|
5187
|
+
$r({
|
|
5166
5188
|
tableId: e.id || o.params.id,
|
|
5167
5189
|
...t,
|
|
5168
5190
|
is_disabled: "0"
|
|
@@ -5175,7 +5197,7 @@ var Fo = f({
|
|
|
5175
5197
|
n.onClick = (t) => {
|
|
5176
5198
|
fe(t).then((t) => {
|
|
5177
5199
|
let r = t && t[0];
|
|
5178
|
-
|
|
5200
|
+
ri([n.action], r.id, r).then((t) => {
|
|
5179
5201
|
if (e && typeof e == "string") {
|
|
5180
5202
|
try {
|
|
5181
5203
|
Function("rowData", "res", e)(r, t).then((e) => {
|
|
@@ -5214,8 +5236,8 @@ var Fo = f({
|
|
|
5214
5236
|
};
|
|
5215
5237
|
}
|
|
5216
5238
|
}, Te = async () => {
|
|
5217
|
-
re.value = !1,
|
|
5218
|
-
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await
|
|
5239
|
+
re.value = !1, xo();
|
|
5240
|
+
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await jo(N.value, e.child, 0, () => ({}), ae);
|
|
5219
5241
|
!l.value && L.value.index && n.unshift({
|
|
5220
5242
|
title: "#",
|
|
5221
5243
|
key: "index",
|
|
@@ -5257,7 +5279,7 @@ var Fo = f({
|
|
|
5257
5279
|
hide: !0,
|
|
5258
5280
|
width: Number(typeof L.value.actionWidth == "string" ? L.value.actionWidth.replace("px", "") : L.value.actionWidth),
|
|
5259
5281
|
render(t) {
|
|
5260
|
-
return
|
|
5282
|
+
return fi({
|
|
5261
5283
|
buttons: e,
|
|
5262
5284
|
rowData: t,
|
|
5263
5285
|
callback: B,
|
|
@@ -5271,8 +5293,8 @@ var Fo = f({
|
|
|
5271
5293
|
if (c) {
|
|
5272
5294
|
let e = Y(`tables_filter_${c}`, !1);
|
|
5273
5295
|
if (e) try {
|
|
5274
|
-
let t = await
|
|
5275
|
-
t && (e = JSON.parse(t), u =
|
|
5296
|
+
let t = await ti(c);
|
|
5297
|
+
t && (e = JSON.parse(t), u = $n(n, e));
|
|
5276
5298
|
} catch {}
|
|
5277
5299
|
}
|
|
5278
5300
|
a.link && u.unshift({
|
|
@@ -5284,7 +5306,7 @@ var Fo = f({
|
|
|
5284
5306
|
filter: "default",
|
|
5285
5307
|
filterOptionValue: null,
|
|
5286
5308
|
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(
|
|
5309
|
+
renderExpand: (e) => p(Lo, {
|
|
5288
5310
|
data: a,
|
|
5289
5311
|
value: e
|
|
5290
5312
|
})
|
|
@@ -5305,12 +5327,12 @@ var Fo = f({
|
|
|
5305
5327
|
let e = 0;
|
|
5306
5328
|
S.value.forEach((t) => {
|
|
5307
5329
|
t.show && (e += Number(t.width || 140));
|
|
5308
|
-
}), D.value = e, J(`tables_filter_${n}`, t.filter((e) => e.key)),
|
|
5330
|
+
}), D.value = e, J(`tables_filter_${n}`, t.filter((e) => e.key)), ni({
|
|
5309
5331
|
table_id: n,
|
|
5310
5332
|
data: JSON.stringify(t)
|
|
5311
5333
|
}).catch(() => null);
|
|
5312
5334
|
}
|
|
5313
|
-
}, { run: ke } =
|
|
5335
|
+
}, { run: ke } = Zi(Oe), { run: Ae } = Zi((e, t) => {
|
|
5314
5336
|
let n = [];
|
|
5315
5337
|
S.value.forEach((r) => {
|
|
5316
5338
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -5337,7 +5359,7 @@ var Fo = f({
|
|
|
5337
5359
|
i = e.formFetch ? e.formFetch({
|
|
5338
5360
|
tableId: a,
|
|
5339
5361
|
...t
|
|
5340
|
-
}) :
|
|
5362
|
+
}) : $r({
|
|
5341
5363
|
tableId: a,
|
|
5342
5364
|
...t
|
|
5343
5365
|
}), i.then(() => {
|
|
@@ -5351,14 +5373,14 @@ var Fo = f({
|
|
|
5351
5373
|
fetchFn: "",
|
|
5352
5374
|
when_drawer_open: "",
|
|
5353
5375
|
when_before_save: ""
|
|
5354
|
-
}, L.value =
|
|
5376
|
+
}, L.value = ko();
|
|
5355
5377
|
}, Pe = (t) => {
|
|
5356
5378
|
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 &&
|
|
5379
|
+
y.value = t.tableTitle, N.value = To(n.table), P.value = bi(e.actions || n.action);
|
|
5380
|
+
let r = bi(n.suffix || []);
|
|
5381
|
+
F.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value = Do(n.trigger);
|
|
5382
|
+
let i = ko(e.options ?? n.option);
|
|
5383
|
+
t.tableTitle && i.title && Kn(t.tableTitle), L.value = i;
|
|
5362
5384
|
}, Fe = async () => {
|
|
5363
5385
|
v.value = !1, Ne();
|
|
5364
5386
|
let t = e.id || o.params.id;
|
|
@@ -5375,7 +5397,7 @@ var Fo = f({
|
|
|
5375
5397
|
ne.value = s("Notice.network"), re.value = !0;
|
|
5376
5398
|
return;
|
|
5377
5399
|
}
|
|
5378
|
-
De(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], L.value =
|
|
5400
|
+
De(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], L.value = ko(e.options), await Te()) : await Co(t).then(async (e) => {
|
|
5379
5401
|
Pe(e), await Te();
|
|
5380
5402
|
}).catch((e) => {
|
|
5381
5403
|
ne.value = e?.message || s("Notice.network"), re.value = !0;
|
|
@@ -5416,7 +5438,7 @@ var Fo = f({
|
|
|
5416
5438
|
if (_.value) return;
|
|
5417
5439
|
_.value = !0;
|
|
5418
5440
|
let t = e.id || o.params.id;
|
|
5419
|
-
t && (
|
|
5441
|
+
t && (Bn(`tables_filter_${t}`), ni({
|
|
5420
5442
|
table_id: t,
|
|
5421
5443
|
data: null
|
|
5422
5444
|
}).catch(() => null).finally(() => {
|
|
@@ -5443,7 +5465,7 @@ var Fo = f({
|
|
|
5443
5465
|
}), M(() => e.height, () => {
|
|
5444
5466
|
De();
|
|
5445
5467
|
}), M([() => o.params.id, () => e.id], async () => {
|
|
5446
|
-
|
|
5468
|
+
Un(), await Fe();
|
|
5447
5469
|
}), M(() => e.defaultCheckedRowKeys, (e) => {
|
|
5448
5470
|
let t = e || [], n = z.value.filter((e) => t.includes(e.id));
|
|
5449
5471
|
ie.value = t, z.value = n;
|
|
@@ -5494,14 +5516,14 @@ var Fo = f({
|
|
|
5494
5516
|
}
|
|
5495
5517
|
};
|
|
5496
5518
|
}
|
|
5497
|
-
}),
|
|
5519
|
+
}), Wo = { class: "uz-com-title" }, Go = {
|
|
5498
5520
|
ref: "mRef",
|
|
5499
5521
|
class: "uz-table-m-content"
|
|
5500
|
-
},
|
|
5522
|
+
}, Ko = {
|
|
5501
5523
|
key: 1,
|
|
5502
5524
|
class: "uz-transform-fade-in"
|
|
5503
|
-
},
|
|
5504
|
-
function
|
|
5525
|
+
}, qo = { class: "uz-com-title" }, Jo = ["data-index"];
|
|
5526
|
+
function Yo(t, n, c, d, f, p) {
|
|
5505
5527
|
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
5528
|
return S(), a("div", {
|
|
5507
5529
|
class: "uz-table",
|
|
@@ -5566,7 +5588,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5566
5588
|
key: "0"
|
|
5567
5589
|
} : {
|
|
5568
5590
|
name: "header",
|
|
5569
|
-
fn: P(() => [o("div",
|
|
5591
|
+
fn: P(() => [o("div", Wo, A(t.title), 1)]),
|
|
5570
5592
|
key: "1"
|
|
5571
5593
|
}]), 1032, [
|
|
5572
5594
|
"data",
|
|
@@ -5574,7 +5596,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5574
5596
|
"cache",
|
|
5575
5597
|
"loading",
|
|
5576
5598
|
"onOnUpdate:value"
|
|
5577
|
-
]), o("div",
|
|
5599
|
+
]), o("div", Go, [u(C, {
|
|
5578
5600
|
tableColumns: t.tableCols,
|
|
5579
5601
|
tableData: t.tableData,
|
|
5580
5602
|
tableQueries: t.tableQueries,
|
|
@@ -5592,7 +5614,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5592
5614
|
"minH",
|
|
5593
5615
|
"maxH",
|
|
5594
5616
|
"onUpdate:rowKeys"
|
|
5595
|
-
])], 512)], 2)) : (S(), a("div",
|
|
5617
|
+
])], 512)], 2)) : (S(), a("div", Ko, [u(te, {
|
|
5596
5618
|
data: t.searchData,
|
|
5597
5619
|
id: t.id || t.route.params.id,
|
|
5598
5620
|
cache: t.tableOption.cache,
|
|
@@ -5647,7 +5669,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5647
5669
|
_: 1
|
|
5648
5670
|
})]),
|
|
5649
5671
|
_: 1
|
|
5650
|
-
})], 8,
|
|
5672
|
+
})], 8, Jo)), [[j, !e.hide]])), 128)), u(h, {
|
|
5651
5673
|
block: "",
|
|
5652
5674
|
tertiary: "",
|
|
5653
5675
|
loading: t.loading,
|
|
@@ -5701,7 +5723,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5701
5723
|
key: "0"
|
|
5702
5724
|
} : {
|
|
5703
5725
|
name: "header",
|
|
5704
|
-
fn: P(() => [o("div",
|
|
5726
|
+
fn: P(() => [o("div", qo, A(t.title), 1)]),
|
|
5705
5727
|
key: "1"
|
|
5706
5728
|
}]), 1032, [
|
|
5707
5729
|
"data",
|
|
@@ -5762,10 +5784,10 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5762
5784
|
u(I, { ref: "drawerRef" }, null, 512)
|
|
5763
5785
|
], 4);
|
|
5764
5786
|
}
|
|
5765
|
-
var
|
|
5787
|
+
var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
5766
5788
|
name: "UzTableChild",
|
|
5767
5789
|
components: {
|
|
5768
|
-
UzIcon:
|
|
5790
|
+
UzIcon: gn,
|
|
5769
5791
|
NSpin: Ne,
|
|
5770
5792
|
NButton: R,
|
|
5771
5793
|
NIcon: V,
|
|
@@ -5791,7 +5813,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5791
5813
|
emits: ["update:value"],
|
|
5792
5814
|
setup(e, { emit: t, expose: r }) {
|
|
5793
5815
|
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
|
|
5816
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await Ao(U(n ?? e.item.params.columns), t, void 0, !0);
|
|
5795
5817
|
return S.value = r, i;
|
|
5796
5818
|
}, D = async (t) => {
|
|
5797
5819
|
if (h.value) return;
|
|
@@ -5822,7 +5844,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5822
5844
|
});
|
|
5823
5845
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
5824
5846
|
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
5825
|
-
let { tableColumns: r, tableWidth: i } = await
|
|
5847
|
+
let { tableColumns: r, tableWidth: i } = await jo(U(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
|
|
5826
5848
|
r.unshift({
|
|
5827
5849
|
title: " ",
|
|
5828
5850
|
key: "index",
|
|
@@ -5841,7 +5863,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5841
5863
|
hide: !0,
|
|
5842
5864
|
show: !0,
|
|
5843
5865
|
render() {
|
|
5844
|
-
return p("div", { class: "flex justify-center" }, p(V, {}, { default: () => p(
|
|
5866
|
+
return p("div", { class: "flex justify-center" }, p(V, {}, { default: () => p(gn, { icon: "Add" }) }));
|
|
5845
5867
|
}
|
|
5846
5868
|
}), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
|
|
5847
5869
|
title: () => l("Common.action"),
|
|
@@ -5855,7 +5877,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5855
5877
|
width: 60,
|
|
5856
5878
|
render(t, n) {
|
|
5857
5879
|
let r = [];
|
|
5858
|
-
return e.item.params.childActions && e.item.params.actions &&
|
|
5880
|
+
return e.item.params.childActions && e.item.params.actions && bi(e.item.params.actions).forEach((e) => {
|
|
5859
5881
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
5860
5882
|
}), 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
5883
|
type: "normal",
|
|
@@ -5867,7 +5889,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5867
5889
|
let n = e.item.params.deleteFn;
|
|
5868
5890
|
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
|
|
5869
5891
|
}
|
|
5870
|
-
}),
|
|
5892
|
+
}), fi({
|
|
5871
5893
|
buttons: r,
|
|
5872
5894
|
rowData: t
|
|
5873
5895
|
});
|
|
@@ -5998,14 +6020,14 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5998
6020
|
}
|
|
5999
6021
|
};
|
|
6000
6022
|
}
|
|
6001
|
-
}),
|
|
6023
|
+
}), Qo = { class: "uz-flex-1 uz-w-full" }, $o = { class: "uz-flex uz-justify-between" }, es = { class: "uz-com-title" }, ts = {
|
|
6002
6024
|
key: 0,
|
|
6003
6025
|
class: "uz-table-asterisk"
|
|
6004
|
-
},
|
|
6005
|
-
function
|
|
6026
|
+
}, ns = { class: "uz-flex uz-gap-2" }, rs = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
6027
|
+
function is(t, n, c, d, f, p) {
|
|
6006
6028
|
let m = O("UzIcon"), h = O("NIcon"), g = O("NButton"), v = O("NDataTable"), y = O("NForm");
|
|
6007
|
-
return S(), a("div",
|
|
6008
|
-
o("div",
|
|
6029
|
+
return S(), a("div", Qo, [
|
|
6030
|
+
o("div", $o, [o("div", es, [l(A(t.item.label) + " ", 1), t.item.form.rule.required ? (S(), a("span", ts, " \xA0* ")) : i("", !0)]), o("div", ns, [
|
|
6009
6031
|
t.status === 2 ? i("", !0) : (S(!0), a(e, { key: 0 }, E(t.suffixes, (e) => (S(), r(g, {
|
|
6010
6032
|
key: e.key,
|
|
6011
6033
|
type: e.color,
|
|
@@ -6078,7 +6100,7 @@ function Xo(t, n, c, d, f, p) {
|
|
|
6078
6100
|
"scroll-x",
|
|
6079
6101
|
"class",
|
|
6080
6102
|
"row-class-name"
|
|
6081
|
-
])) : i("", !0), o("div",
|
|
6103
|
+
])) : i("", !0), o("div", rs, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (S(), r(g, {
|
|
6082
6104
|
key: 0,
|
|
6083
6105
|
type: "success",
|
|
6084
6106
|
secondary: "",
|
|
@@ -6107,7 +6129,7 @@ function Xo(t, n, c, d, f, p) {
|
|
|
6107
6129
|
}, 8, ["model"])
|
|
6108
6130
|
]);
|
|
6109
6131
|
}
|
|
6110
|
-
var
|
|
6132
|
+
var as = /*#__PURE__*/ W(Zo, [["render", is]]), os = f({
|
|
6111
6133
|
name: "UzTableQuestChild",
|
|
6112
6134
|
components: { NDataTable: se },
|
|
6113
6135
|
props: {
|
|
@@ -6135,7 +6157,7 @@ var Zo = /*#__PURE__*/ W(Uo, [["render", Xo]]), Qo = f({
|
|
|
6135
6157
|
}), o.value = t, i.value = !1;
|
|
6136
6158
|
}
|
|
6137
6159
|
}, l = async (i) => {
|
|
6138
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
6160
|
+
let { tableColumns: c, tableWidth: l } = await jo(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
6139
6161
|
c.unshift({
|
|
6140
6162
|
title: " ",
|
|
6141
6163
|
key: "index",
|
|
@@ -6154,7 +6176,7 @@ var Zo = /*#__PURE__*/ W(Uo, [["render", Xo]]), Qo = f({
|
|
|
6154
6176
|
hide: !0,
|
|
6155
6177
|
width: 60,
|
|
6156
6178
|
render(t) {
|
|
6157
|
-
return
|
|
6179
|
+
return fi({ buttons: [{
|
|
6158
6180
|
type: "normal",
|
|
6159
6181
|
color: "primary",
|
|
6160
6182
|
key: "detail",
|
|
@@ -6175,7 +6197,7 @@ var Zo = /*#__PURE__*/ W(Uo, [["render", Xo]]), Qo = f({
|
|
|
6175
6197
|
}), N(async () => {
|
|
6176
6198
|
try {
|
|
6177
6199
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
6178
|
-
let t = await
|
|
6200
|
+
let t = await Qr({
|
|
6179
6201
|
tableId: e.item.params.link,
|
|
6180
6202
|
params: [{
|
|
6181
6203
|
key: e.item.params.searchKey,
|
|
@@ -6209,11 +6231,11 @@ var Zo = /*#__PURE__*/ W(Uo, [["render", Xo]]), Qo = f({
|
|
|
6209
6231
|
tableScrollX: s
|
|
6210
6232
|
};
|
|
6211
6233
|
}
|
|
6212
|
-
}),
|
|
6213
|
-
function
|
|
6234
|
+
}), ss = { class: "uz-flex-1 uz-w-full" }, cs = { class: "uz-flex uz-justify-between" }, ls = { class: "uz-com-title" };
|
|
6235
|
+
function us(e, t, n, r, i, s) {
|
|
6214
6236
|
let c = O("NDataTable"), l = O("UzTableDrawer");
|
|
6215
|
-
return S(), a("div",
|
|
6216
|
-
o("div",
|
|
6237
|
+
return S(), a("div", ss, [
|
|
6238
|
+
o("div", cs, [o("div", ls, A(e.item.label), 1)]),
|
|
6217
6239
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
6218
6240
|
u(c, {
|
|
6219
6241
|
columns: e.columns,
|
|
@@ -6235,7 +6257,7 @@ function ns(e, t, n, r, i, s) {
|
|
|
6235
6257
|
u(l, { ref: "drawerRef" }, null, 512)
|
|
6236
6258
|
]);
|
|
6237
6259
|
}
|
|
6238
|
-
var
|
|
6260
|
+
var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
6239
6261
|
name: "UzTableDrawer",
|
|
6240
6262
|
components: {
|
|
6241
6263
|
NButton: R,
|
|
@@ -6276,7 +6298,7 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6276
6298
|
}), b = T(!1), x = T(), S = () => {
|
|
6277
6299
|
a.value?.restoreValidation(), c.value = {}, p.value = !1, f.value = !1, u.value = !1, t("update:show", !1);
|
|
6278
6300
|
}, C = () => {
|
|
6279
|
-
s.value === 2 ? S() :
|
|
6301
|
+
s.value === 2 ? S() : zn.info({
|
|
6280
6302
|
title: "提示",
|
|
6281
6303
|
content: "关闭后修改的数据将不保留,确定关闭?",
|
|
6282
6304
|
positiveText: "确定",
|
|
@@ -6307,11 +6329,11 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6307
6329
|
linkFn: t
|
|
6308
6330
|
};
|
|
6309
6331
|
let r = e.split(".")[0];
|
|
6310
|
-
|
|
6332
|
+
Co(r).then((e) => {
|
|
6311
6333
|
g(async () => {
|
|
6312
6334
|
let t = rt.parse(e.viewJson);
|
|
6313
|
-
d.value =
|
|
6314
|
-
let { form: i } = await
|
|
6335
|
+
d.value = ko(t.option), u.value = !0;
|
|
6336
|
+
let { form: i } = await Ao(To(t.table), n);
|
|
6315
6337
|
y.value = t.trigger, n && w(n);
|
|
6316
6338
|
let a = Y(`tables_cache_link_${r}`, !1);
|
|
6317
6339
|
a && (c.value = a), g(() => {
|
|
@@ -6360,7 +6382,7 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6360
6382
|
}
|
|
6361
6383
|
if (x.value) {
|
|
6362
6384
|
x.value(e, () => {
|
|
6363
|
-
|
|
6385
|
+
Bn(`tables_cache_${o.value}`), S();
|
|
6364
6386
|
}, (e) => {
|
|
6365
6387
|
_.value = 1, h.value = e;
|
|
6366
6388
|
});
|
|
@@ -6368,11 +6390,11 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6368
6390
|
}
|
|
6369
6391
|
{
|
|
6370
6392
|
let n = l.value.link.split(".")[0];
|
|
6371
|
-
|
|
6393
|
+
$r({
|
|
6372
6394
|
tableId: n,
|
|
6373
6395
|
...e
|
|
6374
6396
|
}).then(() => {
|
|
6375
|
-
|
|
6397
|
+
xo(), Qr({ tableId: n }).then((e) => {
|
|
6376
6398
|
let r = l.value.link.split("."), i;
|
|
6377
6399
|
if (l.value.linkFn) {
|
|
6378
6400
|
let t = l.value.linkFn;
|
|
@@ -6383,7 +6405,7 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6383
6405
|
disabled: e?.status === "0",
|
|
6384
6406
|
params: e
|
|
6385
6407
|
}));
|
|
6386
|
-
p.value = !1,
|
|
6408
|
+
p.value = !1, Bn(`tables_cache_link_${n}`), t("on-submit", i), S();
|
|
6387
6409
|
}).catch((e) => {
|
|
6388
6410
|
_.value = 1, h.value = e;
|
|
6389
6411
|
});
|
|
@@ -6405,11 +6427,11 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6405
6427
|
}
|
|
6406
6428
|
};
|
|
6407
6429
|
}
|
|
6408
|
-
}),
|
|
6430
|
+
}), ps = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, ms = {
|
|
6409
6431
|
key: 0,
|
|
6410
6432
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
6411
|
-
},
|
|
6412
|
-
function
|
|
6433
|
+
}, hs = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, gs = { class: "uz-flex uz-gap-2" };
|
|
6434
|
+
function _s(t, n, c, d, f, p) {
|
|
6413
6435
|
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
6436
|
return S(), a(e, null, [u(x, {
|
|
6415
6437
|
show: t.drawer,
|
|
@@ -6435,7 +6457,7 @@ function ls(t, n, c, d, f, p) {
|
|
|
6435
6457
|
message: t.spinMsg,
|
|
6436
6458
|
status: t.spinStatus
|
|
6437
6459
|
}, {
|
|
6438
|
-
default: P(() => [o("div",
|
|
6460
|
+
default: P(() => [o("div", ps, [t.skeletonShow ? (S(), a("div", ms, [
|
|
6439
6461
|
u(m, {
|
|
6440
6462
|
size: "large",
|
|
6441
6463
|
style: { height: "156px" }
|
|
@@ -6498,7 +6520,7 @@ function ls(t, n, c, d, f, p) {
|
|
|
6498
6520
|
_: 2
|
|
6499
6521
|
}, [t.formStatus === 2 ? void 0 : {
|
|
6500
6522
|
name: "footer",
|
|
6501
|
-
fn: P(() => [o("div",
|
|
6523
|
+
fn: P(() => [o("div", hs, [t.isMobile ? i("", !0) : (S(), r(v, {
|
|
6502
6524
|
key: 0,
|
|
6503
6525
|
loading: t.spinShow,
|
|
6504
6526
|
type: "success",
|
|
@@ -6507,7 +6529,7 @@ function ls(t, n, c, d, f, p) {
|
|
|
6507
6529
|
}, {
|
|
6508
6530
|
default: P(() => [l(A(t.$t("OCR.ocr")), 1)]),
|
|
6509
6531
|
_: 1
|
|
6510
|
-
}, 8, ["loading"])), o("div",
|
|
6532
|
+
}, 8, ["loading"])), o("div", gs, [
|
|
6511
6533
|
u(v, {
|
|
6512
6534
|
loading: t.spinShow,
|
|
6513
6535
|
class: "uz-drawer-button",
|
|
@@ -6575,7 +6597,7 @@ function ls(t, n, c, d, f, p) {
|
|
|
6575
6597
|
_: 1
|
|
6576
6598
|
}, 8, ["show"])], 64);
|
|
6577
6599
|
}
|
|
6578
|
-
var
|
|
6600
|
+
var vs = /*#__PURE__*/ W(fs, [["render", _s]]), ys = f({
|
|
6579
6601
|
name: "UzTableMobileList",
|
|
6580
6602
|
props: {
|
|
6581
6603
|
tableData: {
|
|
@@ -6593,12 +6615,12 @@ var us = /*#__PURE__*/ W(is, [["render", ls]]), ds = f({
|
|
|
6593
6615
|
},
|
|
6594
6616
|
emits: ["update:row-keys"],
|
|
6595
6617
|
setup() {}
|
|
6596
|
-
}),
|
|
6618
|
+
}), bs = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, xs = {
|
|
6597
6619
|
key: 1,
|
|
6598
6620
|
class: "uz-table-mobile-group-txt"
|
|
6599
6621
|
};
|
|
6600
|
-
function
|
|
6601
|
-
return S(), a("div",
|
|
6622
|
+
function Ss(t, n, s, c, l, u) {
|
|
6623
|
+
return S(), a("div", bs, [(S(!0), a(e, null, E(t.tableColumns, (n) => (S(), a("div", {
|
|
6602
6624
|
key: n.key,
|
|
6603
6625
|
class: _(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
|
|
6604
6626
|
style: v(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
|
|
@@ -6609,11 +6631,11 @@ function ms(t, n, s, c, l, u) {
|
|
|
6609
6631
|
class: "mobile"
|
|
6610
6632
|
})) : 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
6633
|
if (t.tableData) return n.render(t.tableData, t.tableIndex);
|
|
6612
|
-
}), { key: 0 })) : (S(), a("div",
|
|
6634
|
+
}), { key: 0 })) : (S(), a("div", xs, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
6613
6635
|
}
|
|
6614
6636
|
//#endregion
|
|
6615
6637
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
6616
|
-
var
|
|
6638
|
+
var Cs = f({
|
|
6617
6639
|
name: "UzTableMobile",
|
|
6618
6640
|
components: {
|
|
6619
6641
|
NCheckbox: ie,
|
|
@@ -6621,7 +6643,7 @@ var hs = f({
|
|
|
6621
6643
|
NPagination: Te,
|
|
6622
6644
|
NCheckboxGroup: z,
|
|
6623
6645
|
NRadioGroup: ke,
|
|
6624
|
-
UzTableMobileList: /* @__PURE__ */ W(
|
|
6646
|
+
UzTableMobileList: /* @__PURE__ */ W(ys, [["render", Ss], ["__scopeId", "data-v-84c394fe"]])
|
|
6625
6647
|
},
|
|
6626
6648
|
props: {
|
|
6627
6649
|
tableData: {
|
|
@@ -6668,17 +6690,17 @@ var hs = f({
|
|
|
6668
6690
|
}
|
|
6669
6691
|
};
|
|
6670
6692
|
}
|
|
6671
|
-
}),
|
|
6693
|
+
}), ws = {
|
|
6672
6694
|
key: 0,
|
|
6673
6695
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6674
|
-
},
|
|
6696
|
+
}, Ts = {
|
|
6675
6697
|
key: 0,
|
|
6676
6698
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6677
|
-
},
|
|
6699
|
+
}, Es = {
|
|
6678
6700
|
key: 0,
|
|
6679
6701
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6680
6702
|
};
|
|
6681
|
-
function
|
|
6703
|
+
function Ds(t, n, o, s, c, l) {
|
|
6682
6704
|
let d = O("UzTableMobileList"), f = O("NCheckbox"), p = O("NPagination"), m = O("NCheckboxGroup"), h = O("NRadio"), g = O("NRadioGroup");
|
|
6683
6705
|
return t.selection === 2 ? (S(), r(m, {
|
|
6684
6706
|
key: 0,
|
|
@@ -6705,7 +6727,7 @@ function ys(t, n, o, s, c, l) {
|
|
|
6705
6727
|
"tableColumns"
|
|
6706
6728
|
])]),
|
|
6707
6729
|
_: 2
|
|
6708
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
6730
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", ws, [u(p, {
|
|
6709
6731
|
page: t.tableQueries.query.page,
|
|
6710
6732
|
"onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6711
6733
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6747,7 +6769,7 @@ function ys(t, n, o, s, c, l) {
|
|
|
6747
6769
|
"tableColumns"
|
|
6748
6770
|
])]),
|
|
6749
6771
|
_: 2
|
|
6750
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
6772
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Ts, [u(p, {
|
|
6751
6773
|
page: t.tableQueries.query.page,
|
|
6752
6774
|
"onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6753
6775
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6782,7 +6804,7 @@ function ys(t, n, o, s, c, l) {
|
|
|
6782
6804
|
"tableData",
|
|
6783
6805
|
"tableIndex",
|
|
6784
6806
|
"tableColumns"
|
|
6785
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
6807
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Es, [u(p, {
|
|
6786
6808
|
page: t.tableQueries.query.page,
|
|
6787
6809
|
"onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6788
6810
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6795,10 +6817,10 @@ function ys(t, n, o, s, c, l) {
|
|
|
6795
6817
|
"onUpdate:page"
|
|
6796
6818
|
])])) : i("", !0)], 4));
|
|
6797
6819
|
}
|
|
6798
|
-
var
|
|
6820
|
+
var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]]), ks = f({
|
|
6799
6821
|
name: "UzTableFile",
|
|
6800
6822
|
components: {
|
|
6801
|
-
UzIcon:
|
|
6823
|
+
UzIcon: gn,
|
|
6802
6824
|
NDropdown: fe,
|
|
6803
6825
|
NButton: R,
|
|
6804
6826
|
NModal: we,
|
|
@@ -6824,11 +6846,11 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6824
6846
|
let { t: n } = Ze(), r = Je(), i = Ue(), a = T(!1), o = T(!1), s = T(), c = T(""), l = T([{
|
|
6825
6847
|
label: n("Common.import"),
|
|
6826
6848
|
key: "import",
|
|
6827
|
-
icon: () => p(V, null, { default: () => p(
|
|
6849
|
+
icon: () => p(V, null, { default: () => p(gn, { icon: "CloudUpload" }) })
|
|
6828
6850
|
}, {
|
|
6829
6851
|
label: n("Common.export"),
|
|
6830
6852
|
key: "export",
|
|
6831
|
-
icon: () => p(V, null, { default: () => p(
|
|
6853
|
+
icon: () => p(V, null, { default: () => p(gn, { icon: "CloudDownload" }) })
|
|
6832
6854
|
}]), u = T([
|
|
6833
6855
|
{
|
|
6834
6856
|
title: "文件名称",
|
|
@@ -6871,14 +6893,14 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6871
6893
|
}), m = () => {
|
|
6872
6894
|
s.value = null;
|
|
6873
6895
|
}, h = () => {
|
|
6874
|
-
o.value || (o.value = !0,
|
|
6896
|
+
o.value || (o.value = !0, ii(r.params.id).then((t) => {
|
|
6875
6897
|
let n = document.createElement("a");
|
|
6876
6898
|
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
6899
|
}).catch(() => null).finally(() => {
|
|
6878
6900
|
o.value = !1;
|
|
6879
6901
|
}));
|
|
6880
6902
|
}, g = () => {
|
|
6881
|
-
o.value || (o.value = !0,
|
|
6903
|
+
o.value || (o.value = !0, Xr("excel/import", s.value).then(() => {
|
|
6882
6904
|
i.success({
|
|
6883
6905
|
content: "导入执行中...",
|
|
6884
6906
|
duration: 3e3
|
|
@@ -6892,7 +6914,7 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6892
6914
|
o.value = !1, _();
|
|
6893
6915
|
}));
|
|
6894
6916
|
}, _ = () => {
|
|
6895
|
-
o.value || (o.value = !0,
|
|
6917
|
+
o.value || (o.value = !0, ai(r.params.id).then((e) => {
|
|
6896
6918
|
d.value = e;
|
|
6897
6919
|
}).catch(() => null).finally(() => {
|
|
6898
6920
|
o.value = !1;
|
|
@@ -6910,7 +6932,7 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6910
6932
|
return;
|
|
6911
6933
|
}
|
|
6912
6934
|
if (t === "export") {
|
|
6913
|
-
|
|
6935
|
+
zn.info({
|
|
6914
6936
|
title: "提示",
|
|
6915
6937
|
content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
|
|
6916
6938
|
positiveText: "确定",
|
|
@@ -6918,7 +6940,7 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6918
6940
|
draggable: !0,
|
|
6919
6941
|
onPositiveClick: () => {
|
|
6920
6942
|
let t = e.query ?? {};
|
|
6921
|
-
|
|
6943
|
+
oi({
|
|
6922
6944
|
tableKey: r.params.id,
|
|
6923
6945
|
...t
|
|
6924
6946
|
}).then(() => {
|
|
@@ -6944,11 +6966,11 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6944
6966
|
}
|
|
6945
6967
|
};
|
|
6946
6968
|
}
|
|
6947
|
-
}),
|
|
6969
|
+
}), As = { class: "uz-file-port-modal" }, js = {
|
|
6948
6970
|
key: 1,
|
|
6949
6971
|
class: "uz-file-port-panel"
|
|
6950
|
-
},
|
|
6951
|
-
function
|
|
6972
|
+
}, Ms = { class: "uz-flex uz-justify-between" };
|
|
6973
|
+
function Ns(t, n, i, s, c, d) {
|
|
6952
6974
|
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
6975
|
return S(), a(e, null, [u(h, {
|
|
6954
6976
|
trigger: "hover",
|
|
@@ -6983,8 +7005,8 @@ function Ts(t, n, i, s, c, d) {
|
|
|
6983
7005
|
default: P(() => [...n[1] ||= [l(" 下载模板 ", -1)]]),
|
|
6984
7006
|
_: 1
|
|
6985
7007
|
}, 8, ["onClick"])]),
|
|
6986
|
-
default: P(() => [o("div",
|
|
6987
|
-
t.rawFile ? (S(), a("div",
|
|
7008
|
+
default: P(() => [o("div", As, [
|
|
7009
|
+
t.rawFile ? (S(), a("div", js, [
|
|
6988
7010
|
n[5] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
6989
7011
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6990
7012
|
viewBox: "0 0 24 24",
|
|
@@ -7031,7 +7053,7 @@ function Ts(t, n, i, s, c, d) {
|
|
|
7031
7053
|
}, [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
7054
|
_: 1
|
|
7033
7055
|
}, 8, ["on-before-upload"])),
|
|
7034
|
-
o("div",
|
|
7056
|
+
o("div", Ms, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), u(m, {
|
|
7035
7057
|
onClick: t.init,
|
|
7036
7058
|
loading: t.loading,
|
|
7037
7059
|
secondary: ""
|
|
@@ -7054,7 +7076,7 @@ function Ts(t, n, i, s, c, d) {
|
|
|
7054
7076
|
_: 1
|
|
7055
7077
|
}, 8, ["show", "on-after-leave"])], 64);
|
|
7056
7078
|
}
|
|
7057
|
-
var
|
|
7079
|
+
var Ps = /*#__PURE__*/ W(ks, [["render", Ns], ["__scopeId", "data-v-21238151"]]), $ = w({
|
|
7058
7080
|
page: {
|
|
7059
7081
|
label: "首页",
|
|
7060
7082
|
key: "/",
|
|
@@ -7065,7 +7087,7 @@ var Es = /*#__PURE__*/ W(xs, [["render", Ts], ["__scopeId", "data-v-21238151"]])
|
|
|
7065
7087
|
active: "/",
|
|
7066
7088
|
thumbnail: []
|
|
7067
7089
|
});
|
|
7068
|
-
function
|
|
7090
|
+
function Fs(e) {
|
|
7069
7091
|
$.cache = e.cache, $.page = {
|
|
7070
7092
|
label: e.label,
|
|
7071
7093
|
key: e.key,
|
|
@@ -7080,35 +7102,35 @@ function Ds(e) {
|
|
|
7080
7102
|
closable: !1
|
|
7081
7103
|
}];
|
|
7082
7104
|
}
|
|
7083
|
-
function
|
|
7084
|
-
$.active = e,
|
|
7105
|
+
function Is(e) {
|
|
7106
|
+
$.active = e, G.push(e), J($.cache, $, 0);
|
|
7085
7107
|
}
|
|
7086
|
-
function
|
|
7108
|
+
function Ls(e, t) {
|
|
7087
7109
|
let n = $.thumbnail.find((t) => t.key === e);
|
|
7088
7110
|
n && (n.key = t, $.active = t, J($.cache, $, 0));
|
|
7089
7111
|
}
|
|
7090
|
-
function
|
|
7112
|
+
function Rs(e) {
|
|
7091
7113
|
let t = $.thumbnail.find((t) => t.path === e.key);
|
|
7092
|
-
t ? ($.active = t.key, J($.cache, $, 0),
|
|
7114
|
+
t ? ($.active = t.key, J($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
|
|
7093
7115
|
...e,
|
|
7094
7116
|
path: e.key,
|
|
7095
7117
|
closable: !0
|
|
7096
|
-
}),
|
|
7118
|
+
}), G.push(e.key));
|
|
7097
7119
|
}
|
|
7098
|
-
function
|
|
7120
|
+
function zs(e) {
|
|
7099
7121
|
let t = $.thumbnail.findIndex((t) => t.key === e);
|
|
7100
7122
|
if ($.thumbnail.splice(t, 1), $.active === e) {
|
|
7101
7123
|
let e = $.thumbnail[t - 1]?.key || "";
|
|
7102
|
-
$.active = e,
|
|
7124
|
+
$.active = e, G.push(e);
|
|
7103
7125
|
}
|
|
7104
7126
|
J($.cache, $, 0);
|
|
7105
7127
|
}
|
|
7106
|
-
function
|
|
7107
|
-
$.active = $.page.path, $.thumbnail = [$.page],
|
|
7128
|
+
function Bs() {
|
|
7129
|
+
$.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), J($.cache, $, 0);
|
|
7108
7130
|
}
|
|
7109
7131
|
//#endregion
|
|
7110
7132
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
7111
|
-
var
|
|
7133
|
+
var Vs = f({
|
|
7112
7134
|
name: "UzThumbnail",
|
|
7113
7135
|
components: {
|
|
7114
7136
|
NTabs: Ie,
|
|
@@ -7129,29 +7151,29 @@ var Ns = f({
|
|
|
7129
7151
|
setup(e, { slots: t }) {
|
|
7130
7152
|
let n = T(!!t.prefix), r = Je();
|
|
7131
7153
|
return b(() => {
|
|
7132
|
-
|
|
7154
|
+
Fs(e.option), $.active !== r.path && Ls(r.path, r.fullPath);
|
|
7133
7155
|
}), M(() => r, (e) => {
|
|
7134
|
-
$.active === r.path &&
|
|
7156
|
+
$.active === r.path && Ls(e.path, e.fullPath);
|
|
7135
7157
|
}, { deep: !0 }), M(() => e.option, (e) => {
|
|
7136
|
-
|
|
7158
|
+
Fs(e);
|
|
7137
7159
|
}, { deep: !0 }), {
|
|
7138
7160
|
thumbnailStore: $,
|
|
7139
7161
|
isSlotPrefix: n,
|
|
7140
7162
|
handleClose: (e) => {
|
|
7141
|
-
|
|
7163
|
+
zs(e);
|
|
7142
7164
|
},
|
|
7143
7165
|
handleChange: (e) => {
|
|
7144
|
-
|
|
7166
|
+
Is(e);
|
|
7145
7167
|
},
|
|
7146
7168
|
handleClear: () => {
|
|
7147
|
-
|
|
7169
|
+
Bs();
|
|
7148
7170
|
}
|
|
7149
7171
|
};
|
|
7150
7172
|
}
|
|
7151
7173
|
});
|
|
7152
7174
|
//#endregion
|
|
7153
7175
|
//#region components/thumbnail/index.vue
|
|
7154
|
-
function
|
|
7176
|
+
function Hs(t, n, i, o, c, d) {
|
|
7155
7177
|
let f = O("NTabPane"), p = O("UzIcon"), m = O("NIcon"), h = O("NButton"), g = O("NPopconfirm"), _ = O("NFlex"), v = O("NTabs");
|
|
7156
7178
|
return S(), r(v, {
|
|
7157
7179
|
value: t.thumbnailStore.active,
|
|
@@ -7200,33 +7222,33 @@ function Ps(t, n, i, o, c, d) {
|
|
|
7200
7222
|
"on-update:value"
|
|
7201
7223
|
]);
|
|
7202
7224
|
}
|
|
7203
|
-
var
|
|
7204
|
-
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover =
|
|
7205
|
-
var
|
|
7225
|
+
var Us = /*#__PURE__*/ W(Vs, [["render", Hs]]), Ws = "#007AFF", Gs = "#0A84FF", Ks = "#FF9500", qs = "#FF9F0A", Js = "#28CD41", Ys = "#32D74B", Xs = "#FFCC00", Zs = "#FFD60A", Qs = "#FF3B30", $s = "#FF453A";
|
|
7226
|
+
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = Gs, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = qs, H.common.successColor = "#32D74B", H.common.successColorHover = Ys, H.common.warningColor = "#FFD60A", H.common.successColorHover = Zs, H.common.errorColor = "#FF453A", H.common.errorColorHover = $s, 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";
|
|
7227
|
+
var ec = {
|
|
7206
7228
|
common: {
|
|
7207
7229
|
inputColor: "rgba(var(--input))",
|
|
7208
7230
|
borderColor: "rgba(var(--border), 0.7)",
|
|
7209
7231
|
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:
|
|
7232
|
+
primaryColor: Ws,
|
|
7233
|
+
primaryColorHover: Gs,
|
|
7234
|
+
primaryColorPressed: Ws,
|
|
7235
|
+
primaryColorSuppl: Ws,
|
|
7236
|
+
infoColor: Ks,
|
|
7237
|
+
infoColorHover: qs,
|
|
7238
|
+
infoColorPressed: Ks,
|
|
7239
|
+
infoColorSuppl: Ks,
|
|
7240
|
+
successColor: Js,
|
|
7241
|
+
successColorHover: Ys,
|
|
7242
|
+
successColorPressed: Js,
|
|
7243
|
+
successColorSuppl: Js,
|
|
7244
|
+
warningColor: Xs,
|
|
7245
|
+
warningColorHover: Zs,
|
|
7246
|
+
warningColorPressed: Xs,
|
|
7247
|
+
warningColorSuppl: Xs,
|
|
7248
|
+
errorColor: Qs,
|
|
7249
|
+
errorColorHover: $s,
|
|
7250
|
+
errorColorPressed: Qs,
|
|
7251
|
+
errorColorSuppl: Qs,
|
|
7230
7252
|
cardColor: "#fff"
|
|
7231
7253
|
},
|
|
7232
7254
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -7240,7 +7262,7 @@ var Ks = {
|
|
|
7240
7262
|
borderRadius: "8px",
|
|
7241
7263
|
color: "#c0c0c0"
|
|
7242
7264
|
}
|
|
7243
|
-
},
|
|
7265
|
+
}, tc = H, nc = f({
|
|
7244
7266
|
name: "UzWrap",
|
|
7245
7267
|
components: { NConfigProvider: oe },
|
|
7246
7268
|
setup() {
|
|
@@ -7248,14 +7270,14 @@ var Ks = {
|
|
|
7248
7270
|
zhCN: We,
|
|
7249
7271
|
dateZhCN: He,
|
|
7250
7272
|
commonStore: K,
|
|
7251
|
-
lightTheme:
|
|
7252
|
-
darkTheme:
|
|
7273
|
+
lightTheme: ec,
|
|
7274
|
+
darkTheme: tc
|
|
7253
7275
|
};
|
|
7254
7276
|
}
|
|
7255
7277
|
});
|
|
7256
7278
|
//#endregion
|
|
7257
7279
|
//#region components/wrap/index.vue
|
|
7258
|
-
function
|
|
7280
|
+
function rc(e, t, n, i, a, o) {
|
|
7259
7281
|
let s = O("NConfigProvider");
|
|
7260
7282
|
return S(), r(s, {
|
|
7261
7283
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -7274,10 +7296,10 @@ function Ys(e, t, n, i, a, o) {
|
|
|
7274
7296
|
"date-locale"
|
|
7275
7297
|
]);
|
|
7276
7298
|
}
|
|
7277
|
-
var
|
|
7299
|
+
var ic = /*#__PURE__*/ W(nc, [["render", rc]]);
|
|
7278
7300
|
//#endregion
|
|
7279
7301
|
//#region components/ocr/preprocess.ts
|
|
7280
|
-
function
|
|
7302
|
+
function ac(e) {
|
|
7281
7303
|
let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
|
|
7282
7304
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
7283
7305
|
let r = 0;
|
|
@@ -7292,7 +7314,7 @@ function Zs(e) {
|
|
|
7292
7314
|
}
|
|
7293
7315
|
return c;
|
|
7294
7316
|
}
|
|
7295
|
-
function
|
|
7317
|
+
function oc(e, t) {
|
|
7296
7318
|
return new Promise((n, r) => {
|
|
7297
7319
|
let i = new Image();
|
|
7298
7320
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -7325,7 +7347,7 @@ function Qs(e, t) {
|
|
|
7325
7347
|
}
|
|
7326
7348
|
let u = t.threshold;
|
|
7327
7349
|
if (t.binarize) {
|
|
7328
|
-
t.autoThreshold && (u =
|
|
7350
|
+
t.autoThreshold && (u = ac(l));
|
|
7329
7351
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
7330
7352
|
let n = l[t] < u ? 0 : 255;
|
|
7331
7353
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -7348,7 +7370,7 @@ function Qs(e, t) {
|
|
|
7348
7370
|
}
|
|
7349
7371
|
//#endregion
|
|
7350
7372
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
7351
|
-
var
|
|
7373
|
+
var sc = f({
|
|
7352
7374
|
name: "UzOcr",
|
|
7353
7375
|
components: {
|
|
7354
7376
|
NButton: R,
|
|
@@ -7385,7 +7407,7 @@ var $s = f({
|
|
|
7385
7407
|
tessedit_char_blacklist: "|"
|
|
7386
7408
|
}), a.value), v = async () => {
|
|
7387
7409
|
if (f.value) try {
|
|
7388
|
-
let e = await
|
|
7410
|
+
let e = await oc(f.value, {
|
|
7389
7411
|
enabled: o.value,
|
|
7390
7412
|
scale: s.value,
|
|
7391
7413
|
grayscale: !0,
|
|
@@ -7422,7 +7444,7 @@ var $s = f({
|
|
|
7422
7444
|
t.value = !0, r.value = e("OCR.analysis");
|
|
7423
7445
|
let a = n;
|
|
7424
7446
|
if (o.value || s.value > 1) try {
|
|
7425
|
-
let e = await
|
|
7447
|
+
let e = await oc(n, {
|
|
7426
7448
|
enabled: o.value,
|
|
7427
7449
|
scale: s.value,
|
|
7428
7450
|
grayscale: !0,
|
|
@@ -7484,25 +7506,25 @@ var $s = f({
|
|
|
7484
7506
|
t: e
|
|
7485
7507
|
};
|
|
7486
7508
|
}
|
|
7487
|
-
}),
|
|
7509
|
+
}), cc = { class: "uz-ocr" }, lc = { class: "uz-ocr-left-col" }, uc = { class: "uz-ocr-upload-card" }, dc = { class: "uz-ocr-upload-title" }, fc = {
|
|
7488
7510
|
key: 1,
|
|
7489
7511
|
class: "uz-ocr-preview-panel"
|
|
7490
|
-
},
|
|
7512
|
+
}, pc = { class: "uz-ocr-preview-box" }, mc = ["src"], hc = {
|
|
7491
7513
|
key: 0,
|
|
7492
7514
|
class: "uz-ocr-threshold-badge"
|
|
7493
|
-
},
|
|
7515
|
+
}, gc = { class: "uz-ocr-preview-box" }, _c = ["src"], vc = { class: "uz-ocr-settings-form" }, yc = { class: "uz-settings-row" }, bc = { class: "uz-settings-label" }, xc = {
|
|
7494
7516
|
key: 0,
|
|
7495
7517
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
7496
|
-
},
|
|
7518
|
+
}, Sc = { class: "uz-settings-row" }, Cc = { class: "uz-settings-label" }, wc = { class: "uz-settings-row" }, Tc = { class: "uz-settings-label" }, Ec = { class: "uz-ocr-right-col" }, Dc = { class: "uz-ocr-result-header" }, Oc = { class: "uz-result-title" }, kc = {
|
|
7497
7519
|
key: 0,
|
|
7498
7520
|
class: "uz-ocr-empty-state"
|
|
7499
|
-
},
|
|
7521
|
+
}, Ac = { class: "uz-empty-text" }, jc = {
|
|
7500
7522
|
key: 1,
|
|
7501
7523
|
class: "uz-ocr-result-tabs"
|
|
7502
7524
|
};
|
|
7503
|
-
function
|
|
7525
|
+
function Mc(e, t, n, s, c, d) {
|
|
7504
7526
|
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",
|
|
7527
|
+
return S(), a("div", cc, [o("div", lc, [e.rawImage ? (S(), a("div", fc, [u(m, {
|
|
7506
7528
|
value: e.imagePreviewTab,
|
|
7507
7529
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
7508
7530
|
type: "segment",
|
|
@@ -7512,21 +7534,21 @@ function wc(e, t, n, s, c, d) {
|
|
|
7512
7534
|
name: "processed",
|
|
7513
7535
|
tab: e.t("OCR.previewProcessed")
|
|
7514
7536
|
}, {
|
|
7515
|
-
default: P(() => [o("div",
|
|
7537
|
+
default: P(() => [o("div", pc, [o("img", {
|
|
7516
7538
|
src: e.processedImage,
|
|
7517
7539
|
alt: "Processed Preview",
|
|
7518
7540
|
class: "uz-ocr-preview-img"
|
|
7519
|
-
}, null, 8,
|
|
7541
|
+
}, null, 8, mc), e.preEnabled && e.preBinarize ? (S(), a("div", hc, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
|
|
7520
7542
|
_: 1
|
|
7521
7543
|
}, 8, ["tab"]), u(p, {
|
|
7522
7544
|
name: "raw",
|
|
7523
7545
|
tab: e.t("OCR.previewRaw")
|
|
7524
7546
|
}, {
|
|
7525
|
-
default: P(() => [o("div",
|
|
7547
|
+
default: P(() => [o("div", gc, [o("img", {
|
|
7526
7548
|
src: e.rawImage,
|
|
7527
7549
|
alt: "Raw Preview",
|
|
7528
7550
|
class: "uz-ocr-preview-img"
|
|
7529
|
-
}, null, 8,
|
|
7551
|
+
}, null, 8, _c)])]),
|
|
7530
7552
|
_: 1
|
|
7531
7553
|
}, 8, ["tab"])]),
|
|
7532
7554
|
_: 1
|
|
@@ -7560,7 +7582,7 @@ function wc(e, t, n, s, c, d) {
|
|
|
7560
7582
|
"directory-dnd": "",
|
|
7561
7583
|
class: "uz-w-full"
|
|
7562
7584
|
}, {
|
|
7563
|
-
default: P(() => [o("div",
|
|
7585
|
+
default: P(() => [o("div", uc, [
|
|
7564
7586
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
7565
7587
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7566
7588
|
viewBox: "0 0 24 24",
|
|
@@ -7568,79 +7590,79 @@ function wc(e, t, n, s, c, d) {
|
|
|
7568
7590
|
height: "40",
|
|
7569
7591
|
fill: "currentColor"
|
|
7570
7592
|
}, [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",
|
|
7593
|
+
o("div", dc, A(e.t("OCR.scan")), 1),
|
|
7572
7594
|
t[5] ||= o("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
7573
7595
|
])]),
|
|
7574
7596
|
_: 1
|
|
7575
|
-
}, 8, ["on-before-upload"])), o("div",
|
|
7597
|
+
}, 8, ["on-before-upload"])), o("div", vc, [o("div", yc, [o("span", bc, A(e.t("OCR.preprocess")), 1), u(_, {
|
|
7576
7598
|
value: e.preEnabled,
|
|
7577
7599
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
7578
7600
|
size: "small"
|
|
7579
|
-
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div",
|
|
7601
|
+
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div", xc, [o("div", Sc, [o("span", Cc, A(e.t("OCR.scale")), 1), u(v, {
|
|
7580
7602
|
value: e.preScale,
|
|
7581
7603
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
7582
7604
|
options: e.scaleOptions,
|
|
7583
7605
|
size: "small",
|
|
7584
7606
|
class: "uz-settings-select"
|
|
7585
|
-
}, null, 8, ["value", "options"])]), o("div",
|
|
7607
|
+
}, null, 8, ["value", "options"])]), o("div", wc, [o("span", Tc, A(e.t("OCR.contrast")), 1), u(_, {
|
|
7586
7608
|
value: e.preContrast,
|
|
7587
7609
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
7588
7610
|
size: "small"
|
|
7589
|
-
}, null, 8, ["value"])])])) : i("", !0)])]), o("div",
|
|
7611
|
+
}, null, 8, ["value"])])])) : i("", !0)])]), o("div", Ec, [o("div", Dc, [o("span", Oc, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (S(), a("div", jc, A(e.fullText), 1)) : (S(), a("div", kc, [t[7] ||= o("div", { class: "uz-empty-icon" }, "📝", -1), o("div", Ac, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
|
|
7590
7612
|
}
|
|
7591
|
-
var
|
|
7592
|
-
IconList: () =>
|
|
7593
|
-
ReIconList: () =>
|
|
7613
|
+
var Nc = /*#__PURE__*/ W(sc, [["render", Mc], ["__scopeId", "data-v-c7224ff5"]]), Pc = /* @__PURE__ */ dt({
|
|
7614
|
+
IconList: () => _n,
|
|
7615
|
+
ReIconList: () => hn,
|
|
7594
7616
|
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: () =>
|
|
7617
|
+
UzBack: () => Ci,
|
|
7618
|
+
UzBom: () => oa,
|
|
7619
|
+
UzCamera: () => Xa,
|
|
7620
|
+
UzCircle: () => Ua,
|
|
7621
|
+
UzDraggableForm: () => Ii,
|
|
7622
|
+
UzForm: () => ji,
|
|
7623
|
+
UzFormItem: () => Di,
|
|
7624
|
+
UzFormItemImage: () => Ki,
|
|
7625
|
+
UzFormItemTimesPicker: () => Xi,
|
|
7626
|
+
UzFormItemUpload: () => Hi,
|
|
7627
|
+
UzIcon: () => gn,
|
|
7628
|
+
UzOcr: () => Nc,
|
|
7629
|
+
UzSearchBar: () => oo,
|
|
7630
|
+
UzSearchMobileBar: () => po,
|
|
7631
|
+
UzSpin: () => Po,
|
|
7632
|
+
UzTable: () => Xo,
|
|
7633
|
+
UzTableChild: () => as,
|
|
7634
|
+
UzTableDrawer: () => vs,
|
|
7635
|
+
UzTableFile: () => Ps,
|
|
7636
|
+
UzTableMobile: () => Os,
|
|
7637
|
+
UzTableQuestChild: () => ds,
|
|
7638
|
+
UzThumbnail: () => Us,
|
|
7639
|
+
UzWrap: () => ic,
|
|
7618
7640
|
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: () =>
|
|
7637
|
-
i18n: () =>
|
|
7638
|
-
}),
|
|
7639
|
-
function
|
|
7640
|
-
|
|
7641
|
+
fnActionReduction: () => bi,
|
|
7642
|
+
fnActionSimplify: () => yi,
|
|
7643
|
+
fnAddThumbnail: () => Rs,
|
|
7644
|
+
fnClearAllThumbnail: () => Bs,
|
|
7645
|
+
fnDeleteThumbnail: () => zs,
|
|
7646
|
+
fnGetTableData: () => Co,
|
|
7647
|
+
fnOptionReduction: () => ko,
|
|
7648
|
+
fnOptionSimplify: () => Oo,
|
|
7649
|
+
fnPrepareFormData: () => Ao,
|
|
7650
|
+
fnPrepareTableData: () => jo,
|
|
7651
|
+
fnRenderAction: () => fi,
|
|
7652
|
+
fnSetLang: () => xn,
|
|
7653
|
+
fnSetTheme: () => Sn,
|
|
7654
|
+
fnSetThumbnail: () => Is,
|
|
7655
|
+
fnTableReduction: () => To,
|
|
7656
|
+
fnTableSimplify: () => wo,
|
|
7657
|
+
fnTriggersReduction: () => Do,
|
|
7658
|
+
fnTriggersSimplify: () => Eo,
|
|
7659
|
+
i18n: () => yn
|
|
7660
|
+
}), Fc = 3840, Ic = 2160, Lc = w({ scale: 1 });
|
|
7661
|
+
function Rc(e, t) {
|
|
7662
|
+
Fc = e, Ic = t;
|
|
7641
7663
|
}
|
|
7642
|
-
function
|
|
7643
|
-
let e = 1, t = window.innerWidth, n = window.innerHeight, r =
|
|
7664
|
+
function zc() {
|
|
7665
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = Fc, i = Ic, a = parseFloat((r / i).toFixed(5));
|
|
7644
7666
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
7645
7667
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
7646
7668
|
e = t > 1 ? 1 : t;
|
|
@@ -7648,17 +7670,17 @@ function jc() {
|
|
|
7648
7670
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
7649
7671
|
e = n > 1 ? 1 : n;
|
|
7650
7672
|
}
|
|
7651
|
-
|
|
7673
|
+
Lc.scale = e;
|
|
7652
7674
|
}
|
|
7653
|
-
function
|
|
7654
|
-
let e = $e(
|
|
7675
|
+
function Bc() {
|
|
7676
|
+
let e = $e(zc, 200);
|
|
7655
7677
|
return e(), window.addEventListener("resize", e), () => {
|
|
7656
|
-
|
|
7678
|
+
Fc = 3840, Ic = 2160, window.removeEventListener("resize", e);
|
|
7657
7679
|
};
|
|
7658
7680
|
}
|
|
7659
7681
|
//#endregion
|
|
7660
7682
|
//#region components/hooks/useThrottleFn.ts
|
|
7661
|
-
function
|
|
7683
|
+
function Vc(e, t = 1e3) {
|
|
7662
7684
|
let r = T(e), i = n(() => et((...e) => r.value([...e]), t));
|
|
7663
7685
|
return x(() => {
|
|
7664
7686
|
i.value.cancel();
|
|
@@ -7670,16 +7692,16 @@ function Nc(e, t = 1e3) {
|
|
|
7670
7692
|
}
|
|
7671
7693
|
//#endregion
|
|
7672
7694
|
//#region components/hooks/useLocalStorage.ts
|
|
7673
|
-
function
|
|
7695
|
+
function Hc(e, t) {
|
|
7674
7696
|
return [T(Y(e, t?.defaultValue)), (n) => {
|
|
7675
|
-
n === void 0 ?
|
|
7697
|
+
n === void 0 ? Bn(e) : J(e, n, t?.expired || "1 Day");
|
|
7676
7698
|
}];
|
|
7677
7699
|
}
|
|
7678
7700
|
//#endregion
|
|
7679
7701
|
//#region components/hooks/useQuery.ts
|
|
7680
|
-
function
|
|
7702
|
+
function Uc(e, t, n) {
|
|
7681
7703
|
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
|
-
|
|
7704
|
+
Kr(), clearInterval(o.value), o.value = null;
|
|
7683
7705
|
}, p = async () => {
|
|
7684
7706
|
if (!s.value) {
|
|
7685
7707
|
h(!0, "loading");
|
|
@@ -7715,7 +7737,7 @@ function Fc(e, t, n) {
|
|
|
7715
7737
|
}, g = (e) => {
|
|
7716
7738
|
l.value = e;
|
|
7717
7739
|
}, _ = () => {
|
|
7718
|
-
|
|
7740
|
+
Kr(), i.value && i.value();
|
|
7719
7741
|
}, v = () => {
|
|
7720
7742
|
_(), p(), n?.pollingInterval && (f(), o.value = setInterval(() => {
|
|
7721
7743
|
p();
|
|
@@ -7743,26 +7765,26 @@ function Fc(e, t, n) {
|
|
|
7743
7765
|
}
|
|
7744
7766
|
//#endregion
|
|
7745
7767
|
//#region package.json
|
|
7746
|
-
var
|
|
7747
|
-
async function
|
|
7768
|
+
var Wc = "0.1.111", Gc;
|
|
7769
|
+
async function Kc() {
|
|
7748
7770
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7749
7771
|
method: "HEAD",
|
|
7750
7772
|
cache: "no-cache"
|
|
7751
7773
|
});
|
|
7752
7774
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
7753
7775
|
}
|
|
7754
|
-
async function
|
|
7755
|
-
let e = await
|
|
7756
|
-
|
|
7776
|
+
async function qc() {
|
|
7777
|
+
let e = await Kc();
|
|
7778
|
+
Gc !== e && Cn(!0);
|
|
7757
7779
|
}
|
|
7758
|
-
async function
|
|
7759
|
-
|
|
7760
|
-
|
|
7780
|
+
async function Jc() {
|
|
7781
|
+
Gc = await Kc(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
7782
|
+
qc();
|
|
7761
7783
|
}, 6e4);
|
|
7762
7784
|
}
|
|
7763
7785
|
//#endregion
|
|
7764
7786
|
//#region components/create.ts
|
|
7765
|
-
function
|
|
7787
|
+
function Yc({ components: e = [] } = {}) {
|
|
7766
7788
|
let t = [];
|
|
7767
7789
|
function n(e, t, n) {
|
|
7768
7790
|
e.component(t) || e.component(t, n);
|
|
@@ -7775,16 +7797,16 @@ function Vc({ components: e = [] } = {}) {
|
|
|
7775
7797
|
});
|
|
7776
7798
|
}), i)) {
|
|
7777
7799
|
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
|
-
|
|
7800
|
+
wn(e), bn(o), xn(l), Sn(c), yn.global.locale.value = l, a && Jc(), t && Ir(r, t, n);
|
|
7779
7801
|
}
|
|
7780
7802
|
}
|
|
7781
7803
|
return {
|
|
7782
|
-
version:
|
|
7804
|
+
version: Wc,
|
|
7783
7805
|
install: r
|
|
7784
7806
|
};
|
|
7785
7807
|
}
|
|
7786
7808
|
//#endregion
|
|
7787
7809
|
//#region components/preset.ts
|
|
7788
|
-
var
|
|
7810
|
+
var Xc = Yc({ components: Object.keys(Pc).map((e) => Pc[e]) }), Zc = Xc.install;
|
|
7789
7811
|
//#endregion
|
|
7790
|
-
export {
|
|
7812
|
+
export { Jr as BLOB, Yr as CUSTOM, Xr as FILE, qr as GET, _n as IconList, Z as POST, hn as ReIconList, ft as UzActionButton, Ci as UzBack, oa as UzBom, Xa as UzCamera, Ua as UzCircle, Ii as UzDraggableForm, ji as UzForm, Di as UzFormItem, Ki as UzFormItemImage, Xi as UzFormItemTimesPicker, Hi as UzFormItemUpload, gn as UzIcon, Nc as UzOcr, oo as UzSearchBar, po as UzSearchMobileBar, Po as UzSpin, Xo as UzTable, as as UzTableChild, vs as UzTableDrawer, Ps as UzTableFile, Os as UzTableMobile, ds as UzTableQuestChild, Us as UzThumbnail, ic as UzWrap, K as commonStore, Yc as create, tc as darkTheme, Xc as default, bi as fnActionReduction, yi as fnActionSimplify, Rs as fnAddThumbnail, Kr as fnCancelFetch, Bs as fnClearAllThumbnail, zc as fnComputedScale, vn as fnCreateRouter, Bn as fnDelStorage, Hn as fnDelStorageAll, Vn as fnDelStorageByPrefix, zs as fnDeleteThumbnail, zn as fnDialog, q as fnErrorLog, Qn as fnFilterByPinyinInitials, Gn as fnFormatTime, Yn as fnFormatUnits, Jn as fnFullScreen, Y as fnGetStorage, Co as fnGetTableData, Bc as fnListenerScale, Rn as fnNotification, ko as fnOptionReduction, Oo as fnOptionSimplify, Wn as fnPageModel2Naive, Ao as fnPrepareFormData, jo as fnPrepareTableData, fi as fnRenderAction, Un as fnScrollTop, xn as fnSetLang, Rc as fnSetNormalWidthAndHeight, J as fnSetStorage, Sn as fnSetTheme, Is as fnSetThumbnail, To as fnTableReduction, wo as fnTableSimplify, qn as fnThrottle, Kn as fnTitle, Do as fnTriggersReduction, Eo as fnTriggersSimplify, yn as i18n, Zc as install, ec as lightTheme, $n as mergeColumns, G as router, Lc as scaleStore, Zi as useDebounceFn, Hc as useLocalStorage, Uc as useQuery, Vc as useThrottleFn };
|