@unizhen/ui 0.1.109 → 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/components/icon/index.vue.d.ts +9 -0
- package/lib/components/icon/reicon/ChatLine.vue.d.ts +4 -0
- package/lib/components/icon/reicon/Printer.vue.d.ts +4 -0
- package/lib/components/table/child.vue.d.ts +9 -0
- package/lib/components/table/components/file.vue.d.ts +9 -0
- package/lib/ui.js +737 -706
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -43,7 +43,7 @@ var ut = Object.defineProperty, dt = (e, t) => {
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
setup(e) {
|
|
46
|
-
return () =>
|
|
46
|
+
return () => 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,92 +244,93 @@ 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
|
-
props: {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
294
|
+
props: {
|
|
295
|
+
icon: {
|
|
296
|
+
required: !0,
|
|
297
|
+
type: [String, Object],
|
|
298
|
+
default: ""
|
|
299
|
+
},
|
|
300
|
+
extendIcons: {
|
|
301
|
+
type: [Object],
|
|
302
|
+
default: () => ({})
|
|
303
|
+
}
|
|
304
|
+
},
|
|
277
305
|
setup(e) {
|
|
278
|
-
let t = T(!0), n = T(), r = (
|
|
279
|
-
if (t.value = !1,
|
|
280
|
-
|
|
306
|
+
let t = T(!0), n = T(), r = (r) => {
|
|
307
|
+
if (t.value = !1, r && typeof r == "string") {
|
|
308
|
+
try {
|
|
309
|
+
Object.keys(e.extendIcons).length > 0 ? n.value = e.extendIcons[r] : n.value = _n[r];
|
|
310
|
+
} catch {}
|
|
311
|
+
g(() => {
|
|
281
312
|
t.value = !0;
|
|
282
313
|
});
|
|
283
314
|
return;
|
|
284
315
|
}
|
|
285
|
-
n.value =
|
|
316
|
+
n.value = r;
|
|
286
317
|
};
|
|
287
318
|
return r(e.icon), M(() => e.icon, (e) => {
|
|
288
319
|
r(e);
|
|
289
320
|
}), () => t.value ? n.value && n.value.render(null, []) : null;
|
|
290
321
|
}
|
|
291
|
-
}),
|
|
292
|
-
function
|
|
293
|
-
return
|
|
322
|
+
}), _n = hn, G;
|
|
323
|
+
function vn(e, t = "/") {
|
|
324
|
+
return G = Ke({
|
|
294
325
|
history: qe(t),
|
|
295
326
|
routes: e,
|
|
296
327
|
scrollBehavior: () => ({
|
|
297
328
|
left: 0,
|
|
298
329
|
top: 0
|
|
299
330
|
})
|
|
300
|
-
}),
|
|
331
|
+
}), G;
|
|
301
332
|
}
|
|
302
|
-
var
|
|
333
|
+
var yn = Xe({
|
|
303
334
|
legacy: !1,
|
|
304
335
|
locale: "zh-CN",
|
|
305
336
|
messages: {
|
|
@@ -399,16 +430,16 @@ var G = Xe({
|
|
|
399
430
|
language: !1,
|
|
400
431
|
lang: "zh-CN"
|
|
401
432
|
});
|
|
402
|
-
function
|
|
433
|
+
function bn(e) {
|
|
403
434
|
K.language = e;
|
|
404
435
|
}
|
|
405
|
-
function
|
|
436
|
+
function xn(e) {
|
|
406
437
|
let t;
|
|
407
438
|
t = e || (K.lang === "zh-CN" ? "en-US" : "zh-CN"), J("lang", t, 0), K.lang = t;
|
|
408
439
|
let n = document.body;
|
|
409
|
-
n.dataset.lang = t,
|
|
440
|
+
n.dataset.lang = t, yn.global.locale.value = t;
|
|
410
441
|
}
|
|
411
|
-
function
|
|
442
|
+
function Sn(e) {
|
|
412
443
|
let t = document.body;
|
|
413
444
|
t.classList.add("remove-all-transition");
|
|
414
445
|
let n = document.querySelector("meta[name=theme-color]");
|
|
@@ -416,45 +447,45 @@ function mn(e) {
|
|
|
416
447
|
t.classList.remove("remove-all-transition");
|
|
417
448
|
}, 0);
|
|
418
449
|
}
|
|
419
|
-
function
|
|
450
|
+
function Cn(e) {
|
|
420
451
|
K.needUpdate = e;
|
|
421
452
|
}
|
|
422
|
-
function
|
|
453
|
+
function wn(e) {
|
|
423
454
|
K.title = e;
|
|
424
455
|
}
|
|
425
|
-
var
|
|
456
|
+
var Tn = () => {
|
|
426
457
|
K.isMobile = window.screen.availWidth < 769;
|
|
427
458
|
};
|
|
428
|
-
window.addEventListener("resize",
|
|
459
|
+
window.addEventListener("resize", Tn), Tn();
|
|
429
460
|
//#endregion
|
|
430
461
|
//#region components/localStorage.ts
|
|
431
|
-
var
|
|
432
|
-
function
|
|
433
|
-
|
|
462
|
+
var En = window.localStorage;
|
|
463
|
+
function Dn(e, t) {
|
|
464
|
+
En.setItem(e, JSON.stringify(t));
|
|
434
465
|
}
|
|
435
|
-
function
|
|
436
|
-
let t =
|
|
466
|
+
function On(e) {
|
|
467
|
+
let t = En.getItem(e);
|
|
437
468
|
if (t) return JSON.parse(t);
|
|
438
469
|
}
|
|
439
|
-
function
|
|
440
|
-
|
|
470
|
+
function kn(e) {
|
|
471
|
+
En.removeItem(e);
|
|
441
472
|
}
|
|
442
|
-
function
|
|
473
|
+
function An() {
|
|
443
474
|
return Date.parse(String(/* @__PURE__ */ new Date()));
|
|
444
475
|
}
|
|
445
|
-
var
|
|
476
|
+
var jn = "local-", Mn = new class {
|
|
446
477
|
namespace;
|
|
447
478
|
mapKey;
|
|
448
479
|
map;
|
|
449
480
|
constructor(e = "") {
|
|
450
|
-
this.namespace = e, this.mapKey =
|
|
481
|
+
this.namespace = e, this.mapKey = jn + this.namespace, this.map = On(this.mapKey) || {};
|
|
451
482
|
}
|
|
452
483
|
set(e, t, n = 0) {
|
|
453
484
|
let r = this.getReallyKey(e), i = {
|
|
454
485
|
expires: n,
|
|
455
|
-
time:
|
|
486
|
+
time: An()
|
|
456
487
|
};
|
|
457
|
-
|
|
488
|
+
Dn(r, t), this.map[e] = i, Dn(this.mapKey, this.map);
|
|
458
489
|
}
|
|
459
490
|
getReallyKey(e) {
|
|
460
491
|
return this.namespace + "-" + e;
|
|
@@ -462,9 +493,9 @@ var Cn = "local-", wn = new class {
|
|
|
462
493
|
get(e, t) {
|
|
463
494
|
let n = this.getReallyKey(e), r = this.map[e];
|
|
464
495
|
if (r) {
|
|
465
|
-
let i =
|
|
496
|
+
let i = On(n);
|
|
466
497
|
if (r.expires > 0) {
|
|
467
|
-
if (
|
|
498
|
+
if (An() - r.time <= r.expires) return i === !1 || i ? i : t;
|
|
468
499
|
this.delete(e);
|
|
469
500
|
} else return i === !1 || i ? i : t;
|
|
470
501
|
}
|
|
@@ -472,7 +503,7 @@ var Cn = "local-", wn = new class {
|
|
|
472
503
|
}
|
|
473
504
|
delete(e) {
|
|
474
505
|
let t = this.getReallyKey(e);
|
|
475
|
-
delete this.map[e],
|
|
506
|
+
delete this.map[e], Dn(this.mapKey, this.map), kn(t);
|
|
476
507
|
}
|
|
477
508
|
deleteByPrefix(e) {
|
|
478
509
|
for (let t in this.map) t.indexOf(e) > -1 && this.delete(t);
|
|
@@ -480,12 +511,12 @@ var Cn = "local-", wn = new class {
|
|
|
480
511
|
deleteAll() {
|
|
481
512
|
for (let e in this.map) this.delete(e);
|
|
482
513
|
}
|
|
483
|
-
}("uz"),
|
|
514
|
+
}("uz"), Nn = new Intl.Collator("zh-Hans-u-co-pinyin"), Pn = [..."阿八嚓哒妸发旮哈讥咔垃妈拏噢妑七呥仨他屲夕丫帀"], Fn = [..."ABCDEFGHJKLMNOPQRSTWXYZ"], { notification: In, dialog: Ln } = Ve(["notification", "dialog"], {
|
|
484
515
|
configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
|
|
485
516
|
notificationProviderProps: { placement: "bottom-right" }
|
|
486
|
-
}),
|
|
517
|
+
}), Rn = In, zn = Ln;
|
|
487
518
|
function q(e) {
|
|
488
|
-
console.log(e),
|
|
519
|
+
console.log(e), In.error({
|
|
489
520
|
content: e.message,
|
|
490
521
|
duration: 3e3
|
|
491
522
|
});
|
|
@@ -507,18 +538,18 @@ function J(e, t, n = "1 Day") {
|
|
|
507
538
|
}
|
|
508
539
|
n = Number(t[0]) * e;
|
|
509
540
|
}
|
|
510
|
-
|
|
541
|
+
Mn.set(e, t, n);
|
|
511
542
|
}
|
|
512
543
|
function Y(e, t) {
|
|
513
|
-
return
|
|
544
|
+
return Mn.get(e, t);
|
|
514
545
|
}
|
|
515
|
-
var
|
|
516
|
-
|
|
517
|
-
},
|
|
518
|
-
|
|
519
|
-
},
|
|
520
|
-
|
|
521
|
-
},
|
|
546
|
+
var Bn = (e) => {
|
|
547
|
+
Mn.delete(e);
|
|
548
|
+
}, Vn = (e) => {
|
|
549
|
+
Mn.deleteByPrefix(e);
|
|
550
|
+
}, Hn = () => {
|
|
551
|
+
Mn.deleteAll();
|
|
552
|
+
}, Un = (e = 0) => {
|
|
522
553
|
let t = document.documentElement, n = document.querySelectorAll(".uz-table-m-content");
|
|
523
554
|
t && (t.scrollTop = e, setTimeout(() => {
|
|
524
555
|
t.scrollTop = e;
|
|
@@ -526,7 +557,7 @@ var Mn = (e) => {
|
|
|
526
557
|
t.scrollTop = e;
|
|
527
558
|
});
|
|
528
559
|
};
|
|
529
|
-
function
|
|
560
|
+
function Wn(e) {
|
|
530
561
|
if (!e.records) {
|
|
531
562
|
let t = e;
|
|
532
563
|
return {
|
|
@@ -570,7 +601,7 @@ function In(e) {
|
|
|
570
601
|
records: e.records
|
|
571
602
|
};
|
|
572
603
|
}
|
|
573
|
-
var
|
|
604
|
+
var Gn = (e, t = "yyyy-MM-dd") => {
|
|
574
605
|
if (!e) return "";
|
|
575
606
|
typeof e == "string" && (e = e.replace(/年/g, "-").replace(/月/g, "-").replace(/日/g, ""));
|
|
576
607
|
let n = new Date(e);
|
|
@@ -588,9 +619,9 @@ var Ln = (e, t = "yyyy-MM-dd") => {
|
|
|
588
619
|
RegExp.$1.length !== 1 && (n = ("00" + r[e]).substr(("" + r[e]).length)), t = t.replace(RegExp.$1, n);
|
|
589
620
|
}
|
|
590
621
|
return t;
|
|
591
|
-
},
|
|
622
|
+
}, Kn = (e) => {
|
|
592
623
|
document.title = `${e} - ${K.title}`;
|
|
593
|
-
},
|
|
624
|
+
}, qn = (e, t = 500) => {
|
|
594
625
|
let n = e, r, i = !1, a = function(...e) {
|
|
595
626
|
if (i) {
|
|
596
627
|
n.apply(a, e), i = !1;
|
|
@@ -602,10 +633,10 @@ var Ln = (e, t = "yyyy-MM-dd") => {
|
|
|
602
633
|
};
|
|
603
634
|
return a;
|
|
604
635
|
};
|
|
605
|
-
function
|
|
636
|
+
function Jn(e, t) {
|
|
606
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());
|
|
607
638
|
}
|
|
608
|
-
function
|
|
639
|
+
function Yn(e, t = 0) {
|
|
609
640
|
let n = [
|
|
610
641
|
"",
|
|
611
642
|
"k",
|
|
@@ -615,20 +646,20 @@ function Vn(e, t = 0) {
|
|
|
615
646
|
], r = Math.floor(Math.log10(Math.abs(e)) / 3), i = Math.max(0, Math.min(r, n.length - 1)), a = n[i];
|
|
616
647
|
return a ? (e / 10 ** (i * 3)).toFixed(t) + a : (e / 10 ** (i * 3)).toFixed(0);
|
|
617
648
|
}
|
|
618
|
-
function
|
|
649
|
+
function Xn(e) {
|
|
619
650
|
if (/^[a-z0-9]$/i.test(e)) return e.toLowerCase();
|
|
620
651
|
if (!/^[\u4e00-\u9fff]$/.test(e)) return "";
|
|
621
|
-
for (let t =
|
|
652
|
+
for (let t = Pn.length - 1; t >= 0; --t) if (Nn.compare(e, Pn[t]) >= 0) return Fn[t].toLowerCase();
|
|
622
653
|
return "";
|
|
623
654
|
}
|
|
624
|
-
function
|
|
625
|
-
return [...String(e)].map(
|
|
655
|
+
function Zn(e) {
|
|
656
|
+
return [...String(e)].map(Xn).join("");
|
|
626
657
|
}
|
|
627
|
-
function
|
|
658
|
+
function Qn(e, t) {
|
|
628
659
|
let n = String(t).trim().toLowerCase();
|
|
629
|
-
return n === "" || e.toLowerCase().includes(n) ||
|
|
660
|
+
return n === "" || e.toLowerCase().includes(n) || Zn(e).includes(n);
|
|
630
661
|
}
|
|
631
|
-
function
|
|
662
|
+
function $n(e, t) {
|
|
632
663
|
e.forEach((e) => {
|
|
633
664
|
let n = t.find((t) => t.key === e.key);
|
|
634
665
|
n && (e.hide = n.hide, e.show = n.show, e.width = n.width);
|
|
@@ -641,8 +672,8 @@ function Gn(e, t) {
|
|
|
641
672
|
}
|
|
642
673
|
//#endregion
|
|
643
674
|
//#region components/monitor.ts
|
|
644
|
-
var
|
|
645
|
-
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);
|
|
646
677
|
if (t) return `Android ${t[1]}`;
|
|
647
678
|
let n = /(?:IPHONE|IPAD).*OS ([\d_]+)/.exec(e);
|
|
648
679
|
if (n) return `${e.includes("IPAD") ? "iPad" : "iPhone"} ${n[1].replace(/_/g, ".")}`;
|
|
@@ -657,8 +688,8 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
657
688
|
}[r[1]] ?? `Windows NT ${r[1]}`;
|
|
658
689
|
let i = /MAC OS X ([\d_]+)/.exec(e);
|
|
659
690
|
return i ? `macOS ${i[1].replace(/_/g, ".")}` : "Other Platform";
|
|
660
|
-
},
|
|
661
|
-
let e =
|
|
691
|
+
}, hr = () => {
|
|
692
|
+
let e = pr();
|
|
662
693
|
for (let [t, n] of [
|
|
663
694
|
[/EDG(?:A|IOS)?\/([\d.]+)/, "Edge"],
|
|
664
695
|
[/OPR\/([\d.]+)/, "Opera"],
|
|
@@ -673,7 +704,7 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
673
704
|
if (r) return `${n} ${r[1]}`;
|
|
674
705
|
}
|
|
675
706
|
return "Others";
|
|
676
|
-
},
|
|
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) => {
|
|
677
708
|
let t = /* @__PURE__ */ new WeakSet();
|
|
678
709
|
try {
|
|
679
710
|
return JSON.stringify(e, (e, n) => {
|
|
@@ -687,7 +718,7 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
687
718
|
} catch {
|
|
688
719
|
return String(e);
|
|
689
720
|
}
|
|
690
|
-
},
|
|
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) => {
|
|
691
722
|
let t = String(e || "");
|
|
692
723
|
if (!t) return "";
|
|
693
724
|
try {
|
|
@@ -696,7 +727,7 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
696
727
|
} catch {
|
|
697
728
|
return t.split(/[?#]/, 1)[0];
|
|
698
729
|
}
|
|
699
|
-
},
|
|
730
|
+
}, xr = (e, t) => {
|
|
700
731
|
let n = [];
|
|
701
732
|
try {
|
|
702
733
|
let t = new URL(e, location.href).searchParams.toString();
|
|
@@ -713,8 +744,8 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
713
744
|
}), n.push(e.join("&"));
|
|
714
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]");
|
|
715
746
|
}
|
|
716
|
-
return
|
|
717
|
-
},
|
|
747
|
+
return gr(_r(n.filter(Boolean).join(" | ")), tr);
|
|
748
|
+
}, Sr = (e) => {
|
|
718
749
|
let t;
|
|
719
750
|
if (typeof TextEncoder < "u") {
|
|
720
751
|
let n = new TextEncoder().encode(e);
|
|
@@ -729,8 +760,8 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
729
760
|
t = n.map((e) => String.fromCharCode(e)).join("");
|
|
730
761
|
}
|
|
731
762
|
return window.btoa(t);
|
|
732
|
-
},
|
|
733
|
-
let n =
|
|
763
|
+
}, Cr = (e, t) => {
|
|
764
|
+
let n = Sr(t), r = () => {
|
|
734
765
|
let t = new XMLHttpRequest();
|
|
735
766
|
t.open("POST", e, !0), t.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"), t.send(n);
|
|
736
767
|
}, i = () => {
|
|
@@ -740,7 +771,7 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
740
771
|
try {
|
|
741
772
|
r();
|
|
742
773
|
} catch {}
|
|
743
|
-
}, a =
|
|
774
|
+
}, a = cr ?? window.fetch;
|
|
744
775
|
if (typeof a == "function") {
|
|
745
776
|
a.call(window, e, {
|
|
746
777
|
method: "POST",
|
|
@@ -754,87 +785,87 @@ var Kn = 500, qn = 300, Jn = [], Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__
|
|
|
754
785
|
return;
|
|
755
786
|
}
|
|
756
787
|
i();
|
|
757
|
-
},
|
|
758
|
-
if (!
|
|
759
|
-
|
|
788
|
+
}, wr = (e, t) => (n, r, i) => {
|
|
789
|
+
if (!fr) {
|
|
790
|
+
fr = !0;
|
|
760
791
|
try {
|
|
761
|
-
let a =
|
|
762
|
-
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 &&
|
|
792
|
+
let a = yr(i);
|
|
793
|
+
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 && Cr(e, vr({
|
|
763
794
|
type: n,
|
|
764
795
|
time: Date.now(),
|
|
765
|
-
url:
|
|
766
|
-
browser:
|
|
767
|
-
platform:
|
|
796
|
+
url: br(r) || br(location.href),
|
|
797
|
+
browser: hr(),
|
|
798
|
+
platform: mr(),
|
|
768
799
|
message: `[${n}] [${window.document.title}] [${a}]`,
|
|
769
800
|
info: t ? t() : ""
|
|
770
801
|
}));
|
|
771
802
|
} catch {} finally {
|
|
772
|
-
|
|
803
|
+
fr = !1;
|
|
773
804
|
}
|
|
774
805
|
}
|
|
775
|
-
},
|
|
776
|
-
for (let r of
|
|
777
|
-
},
|
|
778
|
-
let t =
|
|
779
|
-
return
|
|
780
|
-
},
|
|
781
|
-
|
|
782
|
-
let t =
|
|
783
|
-
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`);
|
|
784
815
|
}), e.addEventListener("timeout", () => {
|
|
785
|
-
let t =
|
|
786
|
-
t && !
|
|
816
|
+
let t = ir.get(e);
|
|
817
|
+
t && !Er(t.url) && Tr(3, t.url, `${t.method} timeout`);
|
|
787
818
|
}), e.addEventListener("loadend", () => {
|
|
788
|
-
let t =
|
|
789
|
-
if (!t || e.status < 400 ||
|
|
819
|
+
let t = ir.get(e);
|
|
820
|
+
if (!t || e.status < 400 || Er(t.url)) return;
|
|
790
821
|
let n = Date.now() - t.startTime;
|
|
791
|
-
|
|
822
|
+
Tr(3, t.url, `${t.method} ${e.status} (${n}ms)`);
|
|
792
823
|
}));
|
|
793
|
-
},
|
|
794
|
-
|
|
795
|
-
|
|
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, {
|
|
796
827
|
method: String(e).toUpperCase(),
|
|
797
828
|
url: String(t),
|
|
798
829
|
startTime: Date.now()
|
|
799
|
-
}),
|
|
800
|
-
}, XMLHttpRequest.prototype.open =
|
|
801
|
-
let t =
|
|
802
|
-
t && (t.startTime = Date.now()),
|
|
803
|
-
}, XMLHttpRequest.prototype.send =
|
|
804
|
-
},
|
|
805
|
-
|
|
806
|
-
},
|
|
807
|
-
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;
|
|
808
839
|
let e = window.fetch;
|
|
809
|
-
|
|
810
|
-
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();
|
|
811
842
|
try {
|
|
812
843
|
let r = await e.call(this, t, n);
|
|
813
|
-
return !r.ok && !
|
|
844
|
+
return !r.ok && !Er(i) && Tr(3, i, `${a} ${r.status} (${Date.now() - c}ms)${s}`), r;
|
|
814
845
|
} catch (e) {
|
|
815
|
-
throw
|
|
846
|
+
throw Er(i) || Tr(3, i, `${a} network error: ${yr(e)}${s}`), e;
|
|
816
847
|
}
|
|
817
|
-
}, window.fetch =
|
|
818
|
-
},
|
|
819
|
-
|
|
820
|
-
},
|
|
821
|
-
|
|
822
|
-
},
|
|
823
|
-
|
|
824
|
-
},
|
|
825
|
-
|
|
826
|
-
},
|
|
827
|
-
|
|
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));
|
|
828
859
|
};
|
|
829
|
-
function
|
|
860
|
+
function Ir(e, t, n) {
|
|
830
861
|
if (!t || typeof window > "u" || typeof navigator > "u") return;
|
|
831
|
-
let r =
|
|
862
|
+
let r = rr.get(e);
|
|
832
863
|
if (r) return r;
|
|
833
|
-
let i =
|
|
834
|
-
endpoint:
|
|
864
|
+
let i = wr(t, n), a = {
|
|
865
|
+
endpoint: br(t),
|
|
835
866
|
report: i
|
|
836
867
|
};
|
|
837
|
-
|
|
868
|
+
nr.push(a), Pr();
|
|
838
869
|
let o = e.config.errorHandler, s = (e, t, n) => {
|
|
839
870
|
i(2, location.href, e), o?.(e, t, n);
|
|
840
871
|
};
|
|
@@ -842,14 +873,14 @@ function Or(e, t, n) {
|
|
|
842
873
|
let c = !1, l = () => {
|
|
843
874
|
if (c) return;
|
|
844
875
|
c = !0, e.config.errorHandler === s && (e.config.errorHandler = o);
|
|
845
|
-
let t =
|
|
846
|
-
t >= 0 &&
|
|
876
|
+
let t = nr.indexOf(a);
|
|
877
|
+
t >= 0 && nr.splice(t, 1), rr.delete(e), Fr();
|
|
847
878
|
};
|
|
848
|
-
return
|
|
879
|
+
return rr.set(e, l), e.onUnmount(l), l;
|
|
849
880
|
}
|
|
850
|
-
var
|
|
851
|
-
|
|
852
|
-
}, 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) => {
|
|
853
884
|
if (e == null) return "";
|
|
854
885
|
let t;
|
|
855
886
|
if (typeof e == "string") t = e;
|
|
@@ -858,44 +889,44 @@ var kr = (e, t, n) => {
|
|
|
858
889
|
} catch {
|
|
859
890
|
t = String(e);
|
|
860
891
|
}
|
|
861
|
-
return t.length >
|
|
892
|
+
return t.length > zr ? `${t.slice(0, zr)}…` : t;
|
|
862
893
|
};
|
|
863
|
-
function
|
|
894
|
+
function Vr(e, t) {
|
|
864
895
|
let n = [];
|
|
865
896
|
for (let r in e) {
|
|
866
|
-
if (!
|
|
897
|
+
if (!Rr.call(e, r)) continue;
|
|
867
898
|
let i = e[r], a = encodeURIComponent(r), o;
|
|
868
|
-
o = typeof i == "object" ?
|
|
899
|
+
o = typeof i == "object" ? Vr(i, t ? t + "[" + a + "]" : a) : (t ? t + "[" + a + "]" : a) + "=" + encodeURIComponent(i), n.push(o);
|
|
869
900
|
}
|
|
870
901
|
return n.join("&");
|
|
871
902
|
}
|
|
872
|
-
var
|
|
903
|
+
var Hr = (e) => {
|
|
873
904
|
let t = e["content-disposition"];
|
|
874
905
|
if (t) {
|
|
875
906
|
let e = t.match(/filename=(?<fileName>.+)/);
|
|
876
907
|
return e && e.groups && e.groups.fileName;
|
|
877
908
|
}
|
|
878
909
|
return "";
|
|
879
|
-
},
|
|
910
|
+
}, Ur = Ge.create({
|
|
880
911
|
timeout: 3e5,
|
|
881
912
|
responseType: "json",
|
|
882
913
|
headers: { "Content-Type": "application/json" }
|
|
883
914
|
});
|
|
884
|
-
|
|
885
|
-
var
|
|
886
|
-
|
|
887
|
-
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";
|
|
888
919
|
let t = Y("token", !1);
|
|
889
920
|
if (e.headers && t && (e.headers.token = t), e.method?.toLocaleUpperCase() === "GET") {
|
|
890
|
-
let t =
|
|
921
|
+
let t = Vr(e.data);
|
|
891
922
|
t && (e.url = `${e.url}?${t}`);
|
|
892
923
|
}
|
|
893
924
|
return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
|
|
894
|
-
}, (e) => Promise.reject(e)),
|
|
925
|
+
}, (e) => Promise.reject(e)), Ur.interceptors.response.use((e) => {
|
|
895
926
|
let t = e.data;
|
|
896
|
-
if (t.code === 401) return
|
|
927
|
+
if (t.code === 401) return Bn("token"), G.replace("/login"), Promise.reject(!1);
|
|
897
928
|
if (e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
|
|
898
|
-
let t =
|
|
929
|
+
let t = Hr(e.headers);
|
|
899
930
|
return Promise.resolve({
|
|
900
931
|
fileName: decodeURIComponent(t),
|
|
901
932
|
data: e.data
|
|
@@ -906,30 +937,30 @@ Fr.interceptors.request.use((e) => {
|
|
|
906
937
|
return Promise.resolve(e);
|
|
907
938
|
}
|
|
908
939
|
{
|
|
909
|
-
|
|
910
|
-
let n = t.message, r =
|
|
911
|
-
return
|
|
912
|
-
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"),
|
|
913
944
|
duration: 3e3
|
|
914
945
|
}), Promise.reject(n);
|
|
915
946
|
}
|
|
916
|
-
}, (e) => e ? (
|
|
917
|
-
content:
|
|
947
|
+
}, (e) => e ? (Rn.destroyAll(), e.code === "ERR_NETWORK" ? (Rn.error({
|
|
948
|
+
content: yn.global.t("Notice.network"),
|
|
918
949
|
duration: 3e3
|
|
919
|
-
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (
|
|
920
|
-
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"),
|
|
921
952
|
duration: 3e3
|
|
922
|
-
}), Promise.reject(
|
|
923
|
-
var
|
|
924
|
-
|
|
925
|
-
},
|
|
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) => {
|
|
926
957
|
let i = JSON.stringify({
|
|
927
958
|
fetchUri: e,
|
|
928
959
|
...t
|
|
929
960
|
});
|
|
930
961
|
if (X.has(i)) return X.get(i);
|
|
931
|
-
let a =
|
|
932
|
-
url: `${
|
|
962
|
+
let a = Ur({
|
|
963
|
+
url: `${Gr}${e}`,
|
|
933
964
|
method: "GET",
|
|
934
965
|
data: t,
|
|
935
966
|
responseType: n,
|
|
@@ -944,53 +975,53 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
944
975
|
...t
|
|
945
976
|
});
|
|
946
977
|
if (X.has(i)) return X.get(i);
|
|
947
|
-
let a =
|
|
948
|
-
url: `${
|
|
978
|
+
let a = Ur({
|
|
979
|
+
url: `${Gr}${e}`,
|
|
949
980
|
method: "POST",
|
|
950
981
|
data: t,
|
|
951
982
|
responseType: n,
|
|
952
983
|
timeout: r
|
|
953
984
|
}).then((e) => (X.delete(i), Promise.resolve(e))).catch((e) => (X.delete(i), Promise.reject(e)));
|
|
954
985
|
return X.set(i, a), a;
|
|
955
|
-
},
|
|
956
|
-
url: `${
|
|
986
|
+
}, Jr = (e, t = {}, n = "blob", r = 3e5) => Ur({
|
|
987
|
+
url: `${Gr}${e}`,
|
|
957
988
|
method: "POST",
|
|
958
989
|
data: t,
|
|
959
990
|
responseType: n,
|
|
960
991
|
timeout: r
|
|
961
|
-
}),
|
|
992
|
+
}), Yr = (e) => Ur(e), Xr = (e, t) => Ur({
|
|
962
993
|
headers: { "Content-Type": "multipart/form-data" },
|
|
963
|
-
url: `${
|
|
994
|
+
url: `${Gr}${e}`,
|
|
964
995
|
method: "POST",
|
|
965
996
|
data: t
|
|
966
|
-
}),
|
|
997
|
+
}), Zr = (e, t) => Z("dynamic-table/createTime", {
|
|
967
998
|
id: e,
|
|
968
999
|
createTime: t
|
|
969
|
-
}),
|
|
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", {
|
|
970
1001
|
calculationIds: e,
|
|
971
1002
|
linkId: t,
|
|
972
1003
|
...n
|
|
973
|
-
}),
|
|
1004
|
+
}), ii = (e) => Jr("excel/template", { tableKey: e }, "arraybuffer"), ai = (e) => Z("excel/record/query", {
|
|
974
1005
|
recordType: "import",
|
|
975
1006
|
tableKey: e
|
|
976
|
-
}),
|
|
1007
|
+
}), oi = (e) => Z("excel/exportData", e), si = (e, t) => p(Re, { style: { "max-width": "300px" } }, {
|
|
977
1008
|
trigger: () => e,
|
|
978
1009
|
default: () => typeof t == "function" ? t() : t
|
|
979
|
-
}),
|
|
1010
|
+
}), ci = (e, t, n, r) => {
|
|
980
1011
|
try {
|
|
981
1012
|
Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
|
|
982
1013
|
n && n();
|
|
983
|
-
}, (e) =>
|
|
1014
|
+
}, (e) => Qr({
|
|
984
1015
|
id: e,
|
|
985
1016
|
tableId: r
|
|
986
|
-
}), (e) =>
|
|
1017
|
+
}), (e) => $r({
|
|
987
1018
|
tableId: r,
|
|
988
1019
|
...e
|
|
989
|
-
}),
|
|
1020
|
+
}), Rn, Z);
|
|
990
1021
|
} catch (e) {
|
|
991
1022
|
q(e);
|
|
992
1023
|
}
|
|
993
|
-
},
|
|
1024
|
+
}, li = (e, t, n, r, i) => {
|
|
994
1025
|
let a = {
|
|
995
1026
|
secondary: i?.secondary || !1,
|
|
996
1027
|
tertiary: i?.tertiary || !1,
|
|
@@ -1005,36 +1036,36 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1005
1036
|
if (!e.confirmText) {
|
|
1006
1037
|
if (e.onClick && typeof e.onClick == "string") {
|
|
1007
1038
|
let i = e.onClick;
|
|
1008
|
-
a.onClick = () =>
|
|
1039
|
+
a.onClick = () => ci(i, t, n, r);
|
|
1009
1040
|
}
|
|
1010
1041
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
1011
1042
|
}
|
|
1012
|
-
return e.icon && (o.icon = () => p(V, {}, { default: () => p(
|
|
1013
|
-
},
|
|
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) => {
|
|
1014
1045
|
let a = { placement: "left" };
|
|
1015
1046
|
if (typeof t.onClick == "string") {
|
|
1016
1047
|
let e = t.onClick;
|
|
1017
|
-
a["on-positive-click"] = () =>
|
|
1048
|
+
a["on-positive-click"] = () => ci(e, n, r, i);
|
|
1018
1049
|
} else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
|
|
1019
1050
|
return p(Ee, a, {
|
|
1020
1051
|
default: () => p("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
|
|
1021
1052
|
trigger: () => e
|
|
1022
1053
|
});
|
|
1023
|
-
},
|
|
1024
|
-
let a =
|
|
1025
|
-
return e.confirmText && (a =
|
|
1026
|
-
},
|
|
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 }) => {
|
|
1027
1058
|
let a = [];
|
|
1028
1059
|
return e.forEach((e) => {
|
|
1029
1060
|
if (e.type === "group") {
|
|
1030
1061
|
let o = [];
|
|
1031
1062
|
e.children && e.children.length > 0 && e.children.forEach((a, s) => {
|
|
1032
|
-
o.push(
|
|
1063
|
+
o.push(di({
|
|
1033
1064
|
...a,
|
|
1034
1065
|
tooltipText: void 0
|
|
1035
1066
|
}, t, n, r, i)), s < e.children.length - 1 && o.push(p("div", { class: "uz-action-split" }, { default: () => "" }));
|
|
1036
1067
|
}), a.push(p(De, { trigger: "click" }, {
|
|
1037
|
-
trigger: () =>
|
|
1068
|
+
trigger: () => li({
|
|
1038
1069
|
type: "normal",
|
|
1039
1070
|
key: e.key,
|
|
1040
1071
|
icon: e.icon,
|
|
@@ -1050,11 +1081,11 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1050
1081
|
}));
|
|
1051
1082
|
}
|
|
1052
1083
|
if (e.type === "normal") {
|
|
1053
|
-
let o =
|
|
1084
|
+
let o = di(e, t, n, r, i);
|
|
1054
1085
|
a.push(o);
|
|
1055
1086
|
}
|
|
1056
1087
|
}), p("div", { class: "uz-action-flex" }, { default: () => a });
|
|
1057
|
-
},
|
|
1088
|
+
}, pi = (e) => {
|
|
1058
1089
|
switch (e) {
|
|
1059
1090
|
case "tertiary": return 1;
|
|
1060
1091
|
case "primary": return 2;
|
|
@@ -1064,7 +1095,7 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1064
1095
|
case "error": return 6;
|
|
1065
1096
|
default: return 0;
|
|
1066
1097
|
}
|
|
1067
|
-
},
|
|
1098
|
+
}, mi = (e) => {
|
|
1068
1099
|
switch (e) {
|
|
1069
1100
|
case 1: return "tertiary";
|
|
1070
1101
|
case 2: return "primary";
|
|
@@ -1074,7 +1105,7 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1074
1105
|
case 6: return "error";
|
|
1075
1106
|
default: return "default";
|
|
1076
1107
|
}
|
|
1077
|
-
},
|
|
1108
|
+
}, hi = (e) => {
|
|
1078
1109
|
switch (e) {
|
|
1079
1110
|
case "detailInside": return 0;
|
|
1080
1111
|
case "editInside": return 1;
|
|
@@ -1083,7 +1114,7 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1083
1114
|
case "enabledInside": return 4;
|
|
1084
1115
|
default: return e;
|
|
1085
1116
|
}
|
|
1086
|
-
},
|
|
1117
|
+
}, gi = (e) => {
|
|
1087
1118
|
switch (e) {
|
|
1088
1119
|
case 0: return "detailInside";
|
|
1089
1120
|
case 1: return "editInside";
|
|
@@ -1092,66 +1123,66 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1092
1123
|
case 4: return "enabledInside";
|
|
1093
1124
|
default: return e;
|
|
1094
1125
|
}
|
|
1095
|
-
},
|
|
1126
|
+
}, _i = (e) => ({
|
|
1096
1127
|
t: 0,
|
|
1097
1128
|
k: e.key,
|
|
1098
1129
|
d: e?.disabled,
|
|
1099
1130
|
l: e?.loading,
|
|
1100
1131
|
i: e?.icon,
|
|
1101
|
-
c:
|
|
1132
|
+
c: pi(e?.color),
|
|
1102
1133
|
b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
|
|
1103
1134
|
o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
|
|
1104
1135
|
p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
|
|
1105
1136
|
s: e?.optionsType,
|
|
1106
1137
|
u: e?.optionsSource,
|
|
1107
|
-
a:
|
|
1138
|
+
a: hi(e?.action),
|
|
1108
1139
|
r: +!!e.footer,
|
|
1109
1140
|
g: +!!e.main,
|
|
1110
1141
|
h: +!!e.sub,
|
|
1111
1142
|
w: e?.width,
|
|
1112
1143
|
z: e?.onClick
|
|
1113
|
-
}),
|
|
1144
|
+
}), vi = (e) => ({
|
|
1114
1145
|
type: "normal",
|
|
1115
1146
|
key: e.k,
|
|
1116
1147
|
disabled: e?.d,
|
|
1117
1148
|
loading: e?.l,
|
|
1118
1149
|
icon: e?.i,
|
|
1119
|
-
color:
|
|
1150
|
+
color: mi(e?.c),
|
|
1120
1151
|
buttonText: e?.b ? decodeURIComponent(e?.b) : "",
|
|
1121
1152
|
confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
|
|
1122
1153
|
tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
|
|
1123
1154
|
optionsType: e?.s,
|
|
1124
1155
|
optionsSource: e?.u,
|
|
1125
|
-
action:
|
|
1156
|
+
action: gi(e?.a),
|
|
1126
1157
|
footer: !!e.r,
|
|
1127
1158
|
sub: !!e.h,
|
|
1128
1159
|
main: !!e.g,
|
|
1129
1160
|
width: e?.w,
|
|
1130
1161
|
onClick: e?.z
|
|
1131
|
-
}),
|
|
1162
|
+
}), yi = (e) => {
|
|
1132
1163
|
let t = [];
|
|
1133
|
-
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({
|
|
1134
1165
|
t: 1,
|
|
1135
1166
|
k: n.key,
|
|
1136
1167
|
i: n?.icon,
|
|
1137
|
-
x:
|
|
1168
|
+
x: pi(n?.color),
|
|
1138
1169
|
b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
|
|
1139
|
-
c: n.children.map((e) =>
|
|
1170
|
+
c: n.children.map((e) => _i(e))
|
|
1140
1171
|
});
|
|
1141
1172
|
return t;
|
|
1142
|
-
},
|
|
1173
|
+
}, bi = (e) => {
|
|
1143
1174
|
if (e && e[0] && e[0].type) return e;
|
|
1144
1175
|
let t = [];
|
|
1145
|
-
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({
|
|
1146
1177
|
type: "group",
|
|
1147
1178
|
key: n.k,
|
|
1148
1179
|
icon: n?.i,
|
|
1149
|
-
color:
|
|
1180
|
+
color: mi(n?.x),
|
|
1150
1181
|
buttonText: n?.b ? decodeURIComponent(n?.b) : "",
|
|
1151
|
-
children: n.c.map((e) =>
|
|
1182
|
+
children: n.c.map((e) => vi(e))
|
|
1152
1183
|
});
|
|
1153
1184
|
return t;
|
|
1154
|
-
},
|
|
1185
|
+
}, xi = f({
|
|
1155
1186
|
name: "UzBack",
|
|
1156
1187
|
components: {
|
|
1157
1188
|
NButton: R,
|
|
@@ -1176,7 +1207,7 @@ var Lr = "/apiserver/", Rr = () => {
|
|
|
1176
1207
|
});
|
|
1177
1208
|
//#endregion
|
|
1178
1209
|
//#region components/back/index.vue
|
|
1179
|
-
function
|
|
1210
|
+
function Si(e, t, n, i, a, s) {
|
|
1180
1211
|
let c = O("UzIcon"), l = O("NIcon"), d = O("NButton");
|
|
1181
1212
|
return S(), r(d, {
|
|
1182
1213
|
quaternary: "",
|
|
@@ -1190,7 +1221,7 @@ function mi(e, t, n, i, a, s) {
|
|
|
1190
1221
|
_: 1
|
|
1191
1222
|
}, 8, ["onClick"]);
|
|
1192
1223
|
}
|
|
1193
|
-
var
|
|
1224
|
+
var Ci = /*#__PURE__*/ W(xi, [["render", Si]]), wi = f({
|
|
1194
1225
|
name: "UzFormItem",
|
|
1195
1226
|
components: {
|
|
1196
1227
|
NIcon: V,
|
|
@@ -1368,11 +1399,11 @@ var hi = /*#__PURE__*/ W(pi, [["render", mi]]), gi = f({
|
|
|
1368
1399
|
checkNumberMax: (t) => {
|
|
1369
1400
|
if (e.status !== 2) return t.params.maxKey ? Number(e.formValue[t.params.maxKey]) : t.params.max;
|
|
1370
1401
|
},
|
|
1371
|
-
selectFilter: (e, t) =>
|
|
1402
|
+
selectFilter: (e, t) => Qn(t.label, e)
|
|
1372
1403
|
};
|
|
1373
1404
|
}
|
|
1374
|
-
}),
|
|
1375
|
-
function
|
|
1405
|
+
}), Ti = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
1406
|
+
function Ei(t, n, i, c, d, f) {
|
|
1376
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");
|
|
1377
1408
|
return t.item.input === "input" ? (S(), r(p, {
|
|
1378
1409
|
key: 0,
|
|
@@ -1677,7 +1708,7 @@ function vi(t, n, i, c, d, f) {
|
|
|
1677
1708
|
value: t.formValue[t.item.key],
|
|
1678
1709
|
disabled: t.checkDisabled()
|
|
1679
1710
|
}, {
|
|
1680
|
-
default: P(() => [o("div",
|
|
1711
|
+
default: P(() => [o("div", Ti, [(S(!0), a(e, null, E(t.item.params.options, (e) => (S(), r(x, {
|
|
1681
1712
|
key: e.value,
|
|
1682
1713
|
label: e.label,
|
|
1683
1714
|
value: e.value
|
|
@@ -1746,7 +1777,7 @@ function vi(t, n, i, c, d, f) {
|
|
|
1746
1777
|
"status"
|
|
1747
1778
|
])) : (S(), a(e, { key: 14 }, [], 64));
|
|
1748
1779
|
}
|
|
1749
|
-
var
|
|
1780
|
+
var Di = /*#__PURE__*/ W(wi, [["render", Ei]]), Oi = f({
|
|
1750
1781
|
name: "UzForm",
|
|
1751
1782
|
components: {
|
|
1752
1783
|
NForm: me,
|
|
@@ -1754,7 +1785,7 @@ var yi = /*#__PURE__*/ W(gi, [["render", vi]]), bi = f({
|
|
|
1754
1785
|
NDivider: le,
|
|
1755
1786
|
NButton: R,
|
|
1756
1787
|
NIcon: V,
|
|
1757
|
-
UzFormItem:
|
|
1788
|
+
UzFormItem: Di
|
|
1758
1789
|
},
|
|
1759
1790
|
props: {
|
|
1760
1791
|
items: {
|
|
@@ -1831,12 +1862,12 @@ var yi = /*#__PURE__*/ W(gi, [["render", vi]]), bi = f({
|
|
|
1831
1862
|
}, p = (e, t) => {
|
|
1832
1863
|
switch (e) {
|
|
1833
1864
|
case "datetime":
|
|
1834
|
-
case "datetimerange": return
|
|
1865
|
+
case "datetimerange": return Gn(t, "yyyy-MM-dd hh:mm:ss");
|
|
1835
1866
|
case "month":
|
|
1836
|
-
case "monthrange": return
|
|
1867
|
+
case "monthrange": return Gn(t, "yyyy-MM");
|
|
1837
1868
|
case "year":
|
|
1838
|
-
case "yearrange": return
|
|
1839
|
-
default: return
|
|
1869
|
+
case "yearrange": return Gn(t, "yyyy");
|
|
1870
|
+
default: return Gn(t);
|
|
1840
1871
|
}
|
|
1841
1872
|
}, h = (e, t = !1) => {
|
|
1842
1873
|
let n = tt(e).startOf("day").diff(tt().startOf("day"), "day");
|
|
@@ -1959,8 +1990,8 @@ var yi = /*#__PURE__*/ W(gi, [["render", vi]]), bi = f({
|
|
|
1959
1990
|
}
|
|
1960
1991
|
};
|
|
1961
1992
|
}
|
|
1962
|
-
}),
|
|
1963
|
-
function
|
|
1993
|
+
}), ki = ["onClick"];
|
|
1994
|
+
function Ai(t, n, s, c, d, f) {
|
|
1964
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");
|
|
1965
1996
|
return S(), a(e, null, [u(C, {
|
|
1966
1997
|
ref: "formRef",
|
|
@@ -1988,7 +2019,7 @@ function Si(t, n, s, c, d, f) {
|
|
|
1988
2019
|
}, [u(m, null, {
|
|
1989
2020
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
1990
2021
|
_: 1
|
|
1991
|
-
}), n[0] ||= l(" 新增 ", -1)], 8,
|
|
2022
|
+
}), n[0] ||= l(" 新增 ", -1)], 8, ki)) : i("", !0),
|
|
1992
2023
|
s.form.showDays ? (S(), a("span", {
|
|
1993
2024
|
key: 1,
|
|
1994
2025
|
class: _(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
@@ -2049,7 +2080,7 @@ function Si(t, n, s, c, d, f) {
|
|
|
2049
2080
|
onOnSubmit: t.refreshOption
|
|
2050
2081
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
2051
2082
|
}
|
|
2052
|
-
var
|
|
2083
|
+
var ji = /*#__PURE__*/ W(Oi, [["render", Ai]]), Mi = f({
|
|
2053
2084
|
name: "UzDraggableForm",
|
|
2054
2085
|
components: {
|
|
2055
2086
|
NForm: me,
|
|
@@ -2057,7 +2088,7 @@ var Ci = /*#__PURE__*/ W(bi, [["render", Si]]), wi = f({
|
|
|
2057
2088
|
NButton: R,
|
|
2058
2089
|
NIcon: V,
|
|
2059
2090
|
NDivider: le,
|
|
2060
|
-
UzFormItem:
|
|
2091
|
+
UzFormItem: Di,
|
|
2061
2092
|
VueDraggable: nt
|
|
2062
2093
|
},
|
|
2063
2094
|
props: {
|
|
@@ -2155,14 +2186,14 @@ var Ci = /*#__PURE__*/ W(bi, [["render", Si]]), wi = f({
|
|
|
2155
2186
|
}
|
|
2156
2187
|
};
|
|
2157
2188
|
}
|
|
2158
|
-
}),
|
|
2189
|
+
}), Ni = {
|
|
2159
2190
|
key: 0,
|
|
2160
2191
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
|
|
2161
|
-
},
|
|
2192
|
+
}, Pi = {
|
|
2162
2193
|
key: 1,
|
|
2163
2194
|
class: "uz-form-item-add"
|
|
2164
2195
|
};
|
|
2165
|
-
function
|
|
2196
|
+
function Fi(t, n, s, c, d, f) {
|
|
2166
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");
|
|
2167
2198
|
return S(), r(w, {
|
|
2168
2199
|
ref: "formRef",
|
|
@@ -2200,11 +2231,11 @@ function Di(t, n, s, c, d, f) {
|
|
|
2200
2231
|
}, {
|
|
2201
2232
|
label: P(() => [
|
|
2202
2233
|
o("div", null, A(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
2203
|
-
s.source && s.form.createButton ? (S(), a("a",
|
|
2234
|
+
s.source && s.form.createButton ? (S(), a("a", Ni, [u(m, null, {
|
|
2204
2235
|
default: P(() => [u(p, { icon: "Add" })]),
|
|
2205
2236
|
_: 1
|
|
2206
2237
|
}), n[1] ||= l(" 新增 ", -1)])) : i("", !0),
|
|
2207
|
-
s.form.showDays ? (S(), a("span",
|
|
2238
|
+
s.form.showDays ? (S(), a("span", Pi, " showDays ")) : i("", !0)
|
|
2208
2239
|
]),
|
|
2209
2240
|
default: P(() => [t.formItemIndex[0] === c && t.formItemIndex[1] === -1 ? (S(), r(h, {
|
|
2210
2241
|
key: 0,
|
|
@@ -2331,7 +2362,7 @@ function Di(t, n, s, c, d, f) {
|
|
|
2331
2362
|
"onClick"
|
|
2332
2363
|
]);
|
|
2333
2364
|
}
|
|
2334
|
-
var
|
|
2365
|
+
var Ii = /*#__PURE__*/ W(Mi, [["render", Fi]]), Li = f({
|
|
2335
2366
|
name: "UzFormItemUpload",
|
|
2336
2367
|
components: {
|
|
2337
2368
|
NUpload: ze,
|
|
@@ -2376,7 +2407,7 @@ var Oi = /*#__PURE__*/ W(wi, [["render", Di]]), ki = f({
|
|
|
2376
2407
|
}), r.value = !1, o();
|
|
2377
2408
|
else {
|
|
2378
2409
|
let s = new FormData();
|
|
2379
|
-
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) => {
|
|
2380
2411
|
i.value.push({
|
|
2381
2412
|
id: e.file.id,
|
|
2382
2413
|
name: e.file.name,
|
|
@@ -2443,8 +2474,8 @@ var Oi = /*#__PURE__*/ W(wi, [["render", Di]]), ki = f({
|
|
|
2443
2474
|
}
|
|
2444
2475
|
};
|
|
2445
2476
|
}
|
|
2446
|
-
}),
|
|
2447
|
-
function
|
|
2477
|
+
}), Ri = { class: "uz-form-upload-item-inner" }, zi = ["title"], Bi = { key: 0 };
|
|
2478
|
+
function Vi(t, n, s, c, d, f) {
|
|
2448
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");
|
|
2449
2480
|
return S(), r(b, {
|
|
2450
2481
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
@@ -2498,10 +2529,10 @@ function Ni(t, n, s, c, d, f) {
|
|
|
2498
2529
|
}, {
|
|
2499
2530
|
default: P(() => [u(p, { icon: "Document" })]),
|
|
2500
2531
|
_: 1
|
|
2501
|
-
}, 8, ["onClick"])), o("div",
|
|
2532
|
+
}, 8, ["onClick"])), o("div", Ri, [o("div", {
|
|
2502
2533
|
class: "uz-form-upload-title uz-truncate",
|
|
2503
2534
|
title: e.name
|
|
2504
|
-
}, 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) }, {
|
|
2505
2536
|
trigger: P(() => [u(v, {
|
|
2506
2537
|
size: "small",
|
|
2507
2538
|
tertiary: ""
|
|
@@ -2530,7 +2561,7 @@ function Ni(t, n, s, c, d, f) {
|
|
|
2530
2561
|
_: 1
|
|
2531
2562
|
}, 8, ["show"]);
|
|
2532
2563
|
}
|
|
2533
|
-
var
|
|
2564
|
+
var Hi = /*#__PURE__*/ W(Li, [["render", Vi], ["__scopeId", "data-v-79565a09"]]), Ui = f({
|
|
2534
2565
|
name: "UzFormItemImage",
|
|
2535
2566
|
components: {
|
|
2536
2567
|
NImageGroup: ye,
|
|
@@ -2574,11 +2605,11 @@ var Pi = /*#__PURE__*/ W(ki, [["render", Ni], ["__scopeId", "data-v-79565a09"]])
|
|
|
2574
2605
|
}
|
|
2575
2606
|
};
|
|
2576
2607
|
}
|
|
2577
|
-
}),
|
|
2578
|
-
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) {
|
|
2579
2610
|
let f = O("UzIcon"), p = O("NIcon"), m = O("NImage"), h = O("NPopover"), g = O("NImageGroup");
|
|
2580
2611
|
return S(), r(g, null, {
|
|
2581
|
-
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, {
|
|
2582
2613
|
key: 0,
|
|
2583
2614
|
width: "40",
|
|
2584
2615
|
src: n
|
|
@@ -2610,7 +2641,7 @@ function Li(t, n, i, s, c, d) {
|
|
|
2610
2641
|
_: 1
|
|
2611
2642
|
});
|
|
2612
2643
|
}
|
|
2613
|
-
var
|
|
2644
|
+
var Ki = /*#__PURE__*/ W(Ui, [["render", Gi]]), qi = f({
|
|
2614
2645
|
name: "UzFormItemTimesPicker",
|
|
2615
2646
|
components: { NSelect: Ae },
|
|
2616
2647
|
props: {
|
|
@@ -2660,10 +2691,10 @@ var Ri = /*#__PURE__*/ W(Fi, [["render", Li]]), zi = f({
|
|
|
2660
2691
|
}
|
|
2661
2692
|
};
|
|
2662
2693
|
}
|
|
2663
|
-
}),
|
|
2664
|
-
function
|
|
2694
|
+
}), Ji = { class: "times-picker" };
|
|
2695
|
+
function Yi(e, t, n, r, i, o) {
|
|
2665
2696
|
let s = O("NSelect");
|
|
2666
|
-
return S(), a("div",
|
|
2697
|
+
return S(), a("div", Ji, [
|
|
2667
2698
|
u(s, {
|
|
2668
2699
|
value: e.h,
|
|
2669
2700
|
options: e.times,
|
|
@@ -2711,10 +2742,10 @@ function Vi(e, t, n, r, i, o) {
|
|
|
2711
2742
|
])
|
|
2712
2743
|
]);
|
|
2713
2744
|
}
|
|
2714
|
-
var
|
|
2745
|
+
var Xi = /*#__PURE__*/ W(qi, [["render", Yi], ["__scopeId", "data-v-12b4d7e3"]]);
|
|
2715
2746
|
//#endregion
|
|
2716
2747
|
//#region components/hooks/useDebounceFn.ts
|
|
2717
|
-
function
|
|
2748
|
+
function Zi(e, t = 1e3) {
|
|
2718
2749
|
let n = $e(e, t);
|
|
2719
2750
|
return {
|
|
2720
2751
|
run: n,
|
|
@@ -2724,24 +2755,24 @@ function Ui(e, t = 1e3) {
|
|
|
2724
2755
|
}
|
|
2725
2756
|
//#endregion
|
|
2726
2757
|
//#region components/bom/index.vue?vue&type=script&lang.ts
|
|
2727
|
-
var
|
|
2758
|
+
var Qi = [
|
|
2728
2759
|
"var(--primary)",
|
|
2729
2760
|
"var(--green)",
|
|
2730
2761
|
"var(--yellow)",
|
|
2731
2762
|
"var(--purple)"
|
|
2732
|
-
],
|
|
2763
|
+
], $i = (e) => {
|
|
2733
2764
|
if (e == null || e === "") return null;
|
|
2734
2765
|
if (typeof e == "string") {
|
|
2735
2766
|
let t = Number.parseFloat(e);
|
|
2736
2767
|
return Number.isFinite(t) ? e.includes("%") || t > 1 ? t / 100 : t : null;
|
|
2737
2768
|
}
|
|
2738
2769
|
return Number.isFinite(e) ? e > 1 ? e / 100 : e : null;
|
|
2739
|
-
},
|
|
2740
|
-
let t = Number(e.quantity), n =
|
|
2770
|
+
}, ea = (e) => {
|
|
2771
|
+
let t = Number(e.quantity), n = $i(e.lossRate);
|
|
2741
2772
|
if (!Number.isFinite(t) || n === null || n < 0) return null;
|
|
2742
2773
|
let r = 1 - n;
|
|
2743
2774
|
return r > 0 ? Math.ceil(t / r) : null;
|
|
2744
|
-
},
|
|
2775
|
+
}, ta = (e) => e === null ? "—" : e.toLocaleString("zh-CN"), na = [
|
|
2745
2776
|
{
|
|
2746
2777
|
title: "编码",
|
|
2747
2778
|
key: "code",
|
|
@@ -2786,7 +2817,7 @@ var Wi = [
|
|
|
2786
2817
|
title: "含损耗用量",
|
|
2787
2818
|
key: "required_quantity",
|
|
2788
2819
|
width: 120,
|
|
2789
|
-
render: (e) =>
|
|
2820
|
+
render: (e) => ta(ea(e))
|
|
2790
2821
|
},
|
|
2791
2822
|
{
|
|
2792
2823
|
title: "备注",
|
|
@@ -2794,7 +2825,7 @@ var Wi = [
|
|
|
2794
2825
|
width: 220,
|
|
2795
2826
|
ellipsis: { tooltip: !0 }
|
|
2796
2827
|
}
|
|
2797
|
-
],
|
|
2828
|
+
], ra = f({
|
|
2798
2829
|
name: "UzBom",
|
|
2799
2830
|
components: { NDataTable: se },
|
|
2800
2831
|
props: {
|
|
@@ -2840,7 +2871,7 @@ var Wi = [
|
|
|
2840
2871
|
}
|
|
2841
2872
|
let n = new Set(t), r = o.value.map((t) => e.get(t) ?? t).filter((e) => n.has(e));
|
|
2842
2873
|
(r.length !== o.value.length || r.some((e, t) => e !== o.value[t])) && (o.value = r);
|
|
2843
|
-
}, { run: h, flush: g, cancel: _ } =
|
|
2874
|
+
}, { run: h, flush: g, cancel: _ } = Zi(() => m(u(a.value)), 200), v = /* @__PURE__ */ new WeakMap(), b = (e) => {
|
|
2844
2875
|
let t = v.get(e);
|
|
2845
2876
|
if (t) return t;
|
|
2846
2877
|
let n = new Proxy(e, { set(e, t, n) {
|
|
@@ -2935,7 +2966,7 @@ var Wi = [
|
|
|
2935
2966
|
align: "center",
|
|
2936
2967
|
titleAlign: "center",
|
|
2937
2968
|
className: "uz-bom-action-cell",
|
|
2938
|
-
render: (e) =>
|
|
2969
|
+
render: (e) => fi({
|
|
2939
2970
|
buttons: [{
|
|
2940
2971
|
type: "normal",
|
|
2941
2972
|
key: "add",
|
|
@@ -2964,14 +2995,14 @@ var Wi = [
|
|
|
2964
2995
|
title: e.label,
|
|
2965
2996
|
key: e.key,
|
|
2966
2997
|
width: 160,
|
|
2967
|
-
render: (t, n) => p(
|
|
2998
|
+
render: (t, n) => p(Di, {
|
|
2968
2999
|
item: e,
|
|
2969
3000
|
formValue: b(t),
|
|
2970
3001
|
status: 1,
|
|
2971
3002
|
itemIndex: n
|
|
2972
3003
|
})
|
|
2973
3004
|
}))), k = n(() => {
|
|
2974
|
-
let [e, ...t] =
|
|
3005
|
+
let [e, ...t] = na;
|
|
2975
3006
|
return [
|
|
2976
3007
|
E,
|
|
2977
3008
|
e,
|
|
@@ -2989,7 +3020,7 @@ var Wi = [
|
|
|
2989
3020
|
if (!Number.isFinite(t) || t < 1) return null;
|
|
2990
3021
|
let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
|
|
2991
3022
|
return {
|
|
2992
|
-
color:
|
|
3023
|
+
color: Qi[n - 1],
|
|
2993
3024
|
opacity: Math.min(.1 + r * .05, .4)
|
|
2994
3025
|
};
|
|
2995
3026
|
};
|
|
@@ -3008,10 +3039,10 @@ var Wi = [
|
|
|
3008
3039
|
handleExpandedRowKeysChange: A
|
|
3009
3040
|
};
|
|
3010
3041
|
}
|
|
3011
|
-
}),
|
|
3012
|
-
function
|
|
3042
|
+
}), ia = { class: "uz-bom" };
|
|
3043
|
+
function aa(e, t, n, r, i, o) {
|
|
3013
3044
|
let s = O("NDataTable");
|
|
3014
|
-
return S(), a("div",
|
|
3045
|
+
return S(), a("div", ia, [u(s, {
|
|
3015
3046
|
columns: e.tableColumns,
|
|
3016
3047
|
data: e.innerData,
|
|
3017
3048
|
"row-props": e.getRowProps,
|
|
@@ -3038,13 +3069,13 @@ function Zi(e, t, n, r, i, o) {
|
|
|
3038
3069
|
"onUpdate:expandedRowKeys"
|
|
3039
3070
|
])]);
|
|
3040
3071
|
}
|
|
3041
|
-
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) => {
|
|
3042
3073
|
let i = r * Math.PI / 180;
|
|
3043
3074
|
return {
|
|
3044
3075
|
x: e + n * Math.cos(i),
|
|
3045
3076
|
y: t + n * Math.sin(i)
|
|
3046
3077
|
};
|
|
3047
|
-
},
|
|
3078
|
+
}, xa = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, Sa = (e, t, n, r, i, a) => {
|
|
3048
3079
|
if (a <= 0) return "";
|
|
3049
3080
|
let o = n + r / 2, s = n - r / 2;
|
|
3050
3081
|
if (a >= 359.999) {
|
|
@@ -3056,16 +3087,16 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3056
3087
|
`A ${s} ${s} 0 1 0 ${i}`
|
|
3057
3088
|
].join(" ");
|
|
3058
3089
|
}
|
|
3059
|
-
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);
|
|
3060
3091
|
return [
|
|
3061
|
-
`M ${
|
|
3062
|
-
`A ${o} ${o} 0 ${m} 1 ${
|
|
3063
|
-
`A ${p} ${p} 0 0 1 ${
|
|
3064
|
-
`A ${s} ${s} 0 ${m} 0 ${
|
|
3065
|
-
`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)}`,
|
|
3066
3097
|
"Z"
|
|
3067
3098
|
].join(" ");
|
|
3068
|
-
},
|
|
3099
|
+
}, Ca = (e) => {
|
|
3069
3100
|
if (!e) return "";
|
|
3070
3101
|
let t = e.toLowerCase();
|
|
3071
3102
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -3079,7 +3110,7 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3079
3110
|
return e.join(",");
|
|
3080
3111
|
}
|
|
3081
3112
|
return "0,0,0";
|
|
3082
|
-
},
|
|
3113
|
+
}, wa = f({
|
|
3083
3114
|
name: "UzCircle",
|
|
3084
3115
|
components: { UzNumberFlow: it },
|
|
3085
3116
|
props: {
|
|
@@ -3102,10 +3133,10 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3102
3133
|
}
|
|
3103
3134
|
},
|
|
3104
3135
|
setup(e) {
|
|
3105
|
-
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) => {
|
|
3106
3137
|
let t = Number(e) - 50;
|
|
3107
3138
|
return t < 0 && (t = 0), t;
|
|
3108
|
-
})},1)`), a = n(() => `rgba(${
|
|
3139
|
+
})},1)`), a = n(() => `rgba(${Ca(e.color)},1)`), o = n(() => {
|
|
3109
3140
|
let t = Number(e.circle);
|
|
3110
3141
|
return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
|
|
3111
3142
|
}), s = T(o.value), c;
|
|
@@ -3137,49 +3168,49 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3137
3168
|
remainingLength: 0,
|
|
3138
3169
|
remainingStart: 0
|
|
3139
3170
|
};
|
|
3140
|
-
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;
|
|
3141
3172
|
return {
|
|
3142
3173
|
activeLength: a,
|
|
3143
3174
|
activeStart: r / 2,
|
|
3144
3175
|
remainingLength: o,
|
|
3145
3176
|
remainingStart: r / 2 + a + r
|
|
3146
3177
|
};
|
|
3147
|
-
}), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() =>
|
|
3148
|
-
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;
|
|
3149
3180
|
if (e === 0) return {
|
|
3150
3181
|
activeLength: 0,
|
|
3151
|
-
remainingLength:
|
|
3182
|
+
remainingLength: _a,
|
|
3152
3183
|
remainingStart: 0
|
|
3153
3184
|
};
|
|
3154
3185
|
if (t === 0) return {
|
|
3155
|
-
activeLength:
|
|
3186
|
+
activeLength: _a,
|
|
3156
3187
|
remainingLength: 0,
|
|
3157
3188
|
remainingStart: 0
|
|
3158
3189
|
};
|
|
3159
|
-
let n = Math.min(
|
|
3190
|
+
let n = Math.min(va, e, t);
|
|
3160
3191
|
return {
|
|
3161
3192
|
activeLength: e - n / 2,
|
|
3162
3193
|
remainingLength: t - n / 2,
|
|
3163
3194
|
remainingStart: e + n / 2
|
|
3164
3195
|
};
|
|
3165
|
-
}), 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));
|
|
3166
3197
|
return {
|
|
3167
3198
|
color: n(() => e.color),
|
|
3168
3199
|
colorA: i,
|
|
3169
3200
|
colorB: a,
|
|
3170
|
-
fullRadius:
|
|
3171
|
-
fullStrokeWidth:
|
|
3201
|
+
fullRadius: sa,
|
|
3202
|
+
fullStrokeWidth: ca,
|
|
3172
3203
|
fullCircumference: Q,
|
|
3173
3204
|
fullActiveLength: u,
|
|
3174
3205
|
fullActiveStart: d,
|
|
3175
3206
|
fullRemainingLength: f,
|
|
3176
3207
|
fullRemainingStart: p,
|
|
3177
3208
|
fullRemainingPath: m,
|
|
3178
|
-
gaugeCenterY:
|
|
3179
|
-
gaugeRadius:
|
|
3180
|
-
gaugeStrokeWidth:
|
|
3181
|
-
gaugeCircumference:
|
|
3182
|
-
gaugeTransform:
|
|
3209
|
+
gaugeCenterY: da,
|
|
3210
|
+
gaugeRadius: fa,
|
|
3211
|
+
gaugeStrokeWidth: pa,
|
|
3212
|
+
gaugeCircumference: ga,
|
|
3213
|
+
gaugeTransform: ya,
|
|
3183
3214
|
gaugeActiveLength: g,
|
|
3184
3215
|
gaugeRemainingLength: _,
|
|
3185
3216
|
gaugeRemainingStart: v,
|
|
@@ -3188,31 +3219,31 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3188
3219
|
blurFilterId: r
|
|
3189
3220
|
};
|
|
3190
3221
|
}
|
|
3191
|
-
}),
|
|
3222
|
+
}), Ta = { class: "uz-circle" }, Ea = {
|
|
3192
3223
|
key: 0,
|
|
3193
3224
|
viewBox: "0 0 120 120",
|
|
3194
3225
|
"aria-hidden": "true"
|
|
3195
|
-
},
|
|
3226
|
+
}, Da = ["id"], Oa = ["stop-color"], ka = ["stop-color"], Aa = ["id"], ja = [
|
|
3196
3227
|
"r",
|
|
3197
3228
|
"stroke-width",
|
|
3198
3229
|
"stroke-dasharray",
|
|
3199
3230
|
"stroke-dashoffset",
|
|
3200
3231
|
"filter",
|
|
3201
3232
|
"stroke"
|
|
3202
|
-
],
|
|
3233
|
+
], Ma = [
|
|
3203
3234
|
"d",
|
|
3204
3235
|
"fill",
|
|
3205
3236
|
"filter"
|
|
3206
|
-
],
|
|
3237
|
+
], Na = {
|
|
3207
3238
|
class: "uz-circle__unit",
|
|
3208
3239
|
x: "60",
|
|
3209
3240
|
y: "82",
|
|
3210
3241
|
"text-anchor": "middle"
|
|
3211
|
-
},
|
|
3242
|
+
}, Pa = {
|
|
3212
3243
|
key: 1,
|
|
3213
3244
|
viewBox: "0 0 120 120",
|
|
3214
3245
|
"aria-hidden": "true"
|
|
3215
|
-
},
|
|
3246
|
+
}, Fa = ["id"], Ia = ["stop-color"], La = ["stop-color"], Ra = ["id"], za = [
|
|
3216
3247
|
"cy",
|
|
3217
3248
|
"r",
|
|
3218
3249
|
"stroke-width",
|
|
@@ -3220,19 +3251,19 @@ var Qi = /*#__PURE__*/ W(Yi, [["render", Zi]]), $i = 46, ea = 8, Q = 2 * Math.PI
|
|
|
3220
3251
|
"transform",
|
|
3221
3252
|
"filter",
|
|
3222
3253
|
"stroke"
|
|
3223
|
-
],
|
|
3254
|
+
], Ba = [
|
|
3224
3255
|
"d",
|
|
3225
3256
|
"fill",
|
|
3226
3257
|
"filter"
|
|
3227
|
-
],
|
|
3258
|
+
], Va = {
|
|
3228
3259
|
class: "uz-circle__unit uz-circle__unit--gauge",
|
|
3229
3260
|
x: "60",
|
|
3230
3261
|
y: "90",
|
|
3231
3262
|
"text-anchor": "middle"
|
|
3232
3263
|
};
|
|
3233
|
-
function
|
|
3264
|
+
function Ha(e, t, n, r, s, c) {
|
|
3234
3265
|
let l = O("UzNumberFlow");
|
|
3235
|
-
return S(), a("div",
|
|
3266
|
+
return S(), a("div", Ta, [e.mode === 0 ? (S(), a("svg", Ea, [
|
|
3236
3267
|
o("defs", null, [o("linearGradient", {
|
|
3237
3268
|
id: `uz-progress-grad-${e.uniqueId}`,
|
|
3238
3269
|
x1: "1",
|
|
@@ -3242,10 +3273,10 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3242
3273
|
}, [o("stop", {
|
|
3243
3274
|
offset: "0%",
|
|
3244
3275
|
"stop-color": e.colorA
|
|
3245
|
-
}, null, 8,
|
|
3276
|
+
}, null, 8, Oa), o("stop", {
|
|
3246
3277
|
offset: "50%",
|
|
3247
3278
|
"stop-color": e.colorB
|
|
3248
|
-
}, null, 8,
|
|
3279
|
+
}, null, 8, ka)], 8, Da), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
|
|
3249
3280
|
o("feOffset", {
|
|
3250
3281
|
result: "offOut",
|
|
3251
3282
|
in: "SourceGraphic",
|
|
@@ -3262,7 +3293,7 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3262
3293
|
in2: "blurOut",
|
|
3263
3294
|
mode: "normal"
|
|
3264
3295
|
}, null, -1)
|
|
3265
|
-
]], 8,
|
|
3296
|
+
]], 8, Aa)]),
|
|
3266
3297
|
e.fullActiveLength > 0 ? (S(), a("circle", {
|
|
3267
3298
|
key: 0,
|
|
3268
3299
|
class: "uz-circle__progress",
|
|
@@ -3277,7 +3308,7 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3277
3308
|
transform: "rotate(-90 60 60)",
|
|
3278
3309
|
filter: `url(#${e.blurFilterId})`,
|
|
3279
3310
|
stroke: `url(#uz-progress-grad-${e.uniqueId})`
|
|
3280
|
-
}, null, 8,
|
|
3311
|
+
}, null, 8, ja)) : i("", !0),
|
|
3281
3312
|
e.fullRemainingPath ? (S(), a("path", {
|
|
3282
3313
|
key: 1,
|
|
3283
3314
|
class: "uz-circle__progress",
|
|
@@ -3285,9 +3316,9 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3285
3316
|
fill: e.color,
|
|
3286
3317
|
"fill-opacity": "0.1",
|
|
3287
3318
|
filter: `url(#${e.blurFilterId})`
|
|
3288
|
-
}, null, 8,
|
|
3289
|
-
o("text",
|
|
3290
|
-
])) : (S(), a("svg",
|
|
3319
|
+
}, null, 8, Ma)) : i("", !0),
|
|
3320
|
+
o("text", Na, A(e.circleUnit), 1)
|
|
3321
|
+
])) : (S(), a("svg", Pa, [
|
|
3291
3322
|
o("defs", null, [o("linearGradient", {
|
|
3292
3323
|
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
3293
3324
|
x1: "1",
|
|
@@ -3297,10 +3328,10 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3297
3328
|
}, [o("stop", {
|
|
3298
3329
|
offset: "0%",
|
|
3299
3330
|
"stop-color": e.colorA
|
|
3300
|
-
}, null, 8,
|
|
3331
|
+
}, null, 8, Ia), o("stop", {
|
|
3301
3332
|
offset: "50%",
|
|
3302
3333
|
"stop-color": e.colorB
|
|
3303
|
-
}, null, 8,
|
|
3334
|
+
}, null, 8, La)], 8, Fa), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
|
|
3304
3335
|
o("feOffset", {
|
|
3305
3336
|
result: "offOut",
|
|
3306
3337
|
in: "SourceGraphic",
|
|
@@ -3317,7 +3348,7 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3317
3348
|
in2: "blurOut",
|
|
3318
3349
|
mode: "normal"
|
|
3319
3350
|
}, null, -1)
|
|
3320
|
-
]], 8,
|
|
3351
|
+
]], 8, Ra)]),
|
|
3321
3352
|
e.gaugeActiveLength > 0 ? (S(), a("circle", {
|
|
3322
3353
|
key: 0,
|
|
3323
3354
|
class: "uz-circle__progress",
|
|
@@ -3331,7 +3362,7 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3331
3362
|
transform: e.gaugeTransform,
|
|
3332
3363
|
filter: `url(#${e.blurFilterId})`,
|
|
3333
3364
|
stroke: `url(#uz-progress-grad-1-${e.uniqueId})`
|
|
3334
|
-
}, null, 8,
|
|
3365
|
+
}, null, 8, za)) : i("", !0),
|
|
3335
3366
|
e.gaugeRemainingPath ? (S(), a("path", {
|
|
3336
3367
|
key: 1,
|
|
3337
3368
|
class: "uz-circle__progress",
|
|
@@ -3339,11 +3370,11 @@ function Pa(e, t, n, r, s, c) {
|
|
|
3339
3370
|
fill: e.color,
|
|
3340
3371
|
"fill-opacity": "0.1",
|
|
3341
3372
|
filter: `url(#${e.blurFilterId})`
|
|
3342
|
-
}, null, 8,
|
|
3343
|
-
o("text",
|
|
3373
|
+
}, null, 8, Ba)) : i("", !0),
|
|
3374
|
+
o("text", Va, A(e.circleUnit), 1)
|
|
3344
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)]);
|
|
3345
3376
|
}
|
|
3346
|
-
var
|
|
3377
|
+
var Ua = /*#__PURE__*/ W(wa, [["render", Ha]]), Wa = f({
|
|
3347
3378
|
name: "UzCamera",
|
|
3348
3379
|
components: {
|
|
3349
3380
|
NButton: R,
|
|
@@ -3435,11 +3466,11 @@ var Fa = /*#__PURE__*/ W(ga, [["render", Pa]]), Ia = f({
|
|
|
3435
3466
|
closeAll: d
|
|
3436
3467
|
};
|
|
3437
3468
|
}
|
|
3438
|
-
}),
|
|
3469
|
+
}), Ga = ["width", "height"], Ka = ["width", "height"], qa = { class: "uz-scan-video" }, Ja = {
|
|
3439
3470
|
ref: "videoRef",
|
|
3440
3471
|
playsInline: ""
|
|
3441
3472
|
};
|
|
3442
|
-
function
|
|
3473
|
+
function Ya(t, n, s, c, u, d) {
|
|
3443
3474
|
let f = O("NButton"), p = O("NModal");
|
|
3444
3475
|
return S(), a(e, null, [
|
|
3445
3476
|
t.mode === "button" ? (S(), r(f, {
|
|
@@ -3471,7 +3502,7 @@ function Va(t, n, s, c, u, d) {
|
|
|
3471
3502
|
id: "uz-scan-canvas",
|
|
3472
3503
|
width: t.width,
|
|
3473
3504
|
height: t.height
|
|
3474
|
-
}, null, 8,
|
|
3505
|
+
}, null, 8, Ga)], 4)]),
|
|
3475
3506
|
_: 1
|
|
3476
3507
|
}, 8, [
|
|
3477
3508
|
"show",
|
|
@@ -3489,11 +3520,11 @@ function Va(t, n, s, c, u, d) {
|
|
|
3489
3520
|
id: "uz-scan-canvas",
|
|
3490
3521
|
width: t.width,
|
|
3491
3522
|
height: t.height
|
|
3492
|
-
}, null, 8,
|
|
3493
|
-
o("div",
|
|
3523
|
+
}, null, 8, Ka)], 4)) : i("", !0),
|
|
3524
|
+
o("div", qa, [o("video", Ja, null, 512)])
|
|
3494
3525
|
], 64);
|
|
3495
3526
|
}
|
|
3496
|
-
var
|
|
3527
|
+
var Xa = /*#__PURE__*/ W(Wa, [["render", Ya]]), Za = /* @__PURE__ */ new WeakMap(), Qa = f({
|
|
3497
3528
|
name: "UzSearchBar",
|
|
3498
3529
|
components: {
|
|
3499
3530
|
NIcon: V,
|
|
@@ -3504,7 +3535,7 @@ var Ha = /*#__PURE__*/ W(Ia, [["render", Va]]), Ua = /* @__PURE__ */ new WeakMap
|
|
|
3504
3535
|
NInputGroup: xe,
|
|
3505
3536
|
NInputGroupLabel: Se,
|
|
3506
3537
|
NPopover: De,
|
|
3507
|
-
UzFormItem:
|
|
3538
|
+
UzFormItem: Di
|
|
3508
3539
|
},
|
|
3509
3540
|
props: {
|
|
3510
3541
|
data: {
|
|
@@ -3542,10 +3573,10 @@ var Ha = /*#__PURE__*/ W(Ia, [["render", Va]]), Ua = /* @__PURE__ */ new WeakMap
|
|
|
3542
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);
|
|
3543
3574
|
}
|
|
3544
3575
|
});
|
|
3545
|
-
n.observe(e),
|
|
3576
|
+
n.observe(e), Za.set(e, n);
|
|
3546
3577
|
},
|
|
3547
3578
|
unmounted: (e) => {
|
|
3548
|
-
|
|
3579
|
+
Za.get(e)?.disconnect(), Za.delete(e);
|
|
3549
3580
|
}
|
|
3550
3581
|
} },
|
|
3551
3582
|
emits: ["update:loading", "on-update:value"],
|
|
@@ -3660,24 +3691,24 @@ var Ha = /*#__PURE__*/ W(Ia, [["render", Va]]), Ua = /* @__PURE__ */ new WeakMap
|
|
|
3660
3691
|
tabButtonType: b
|
|
3661
3692
|
};
|
|
3662
3693
|
}
|
|
3663
|
-
}),
|
|
3694
|
+
}), $a = { class: "uz-flex uz-justify-between uz-gap-2" }, eo = {
|
|
3664
3695
|
key: 0,
|
|
3665
3696
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-2 uz-w-full"
|
|
3666
|
-
},
|
|
3697
|
+
}, to = { key: 0 }, no = { class: "uz-flex-1" }, ro = {
|
|
3667
3698
|
key: 1,
|
|
3668
3699
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
3669
|
-
},
|
|
3700
|
+
}, io = {
|
|
3670
3701
|
key: 0,
|
|
3671
3702
|
class: "uz-search-fields-collapse"
|
|
3672
3703
|
};
|
|
3673
|
-
function
|
|
3704
|
+
function ao(n, s, c, d, f, p) {
|
|
3674
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");
|
|
3675
3706
|
return S(), a("div", {
|
|
3676
3707
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
3677
3708
|
onKeyup: s[1] ||= I((e) => n.doSearch(!1), ["enter"])
|
|
3678
|
-
}, [o("div",
|
|
3709
|
+
}, [o("div", $a, [n.enableHeader ? (S(), a("div", eo, [
|
|
3679
3710
|
D(n.$slots, "header"),
|
|
3680
|
-
n.tabList && n.tabList.length > 0 ? (S(), a("div",
|
|
3711
|
+
n.tabList && n.tabList.length > 0 ? (S(), a("div", to, [u(h, null, {
|
|
3681
3712
|
default: P(() => [(S(!0), a(e, null, E(n.tabList, (e) => (S(), r(m, {
|
|
3682
3713
|
key: e.value,
|
|
3683
3714
|
type: n.tabButtonType(e),
|
|
@@ -3689,7 +3720,7 @@ function Za(n, s, c, d, f, p) {
|
|
|
3689
3720
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
3690
3721
|
_: 1
|
|
3691
3722
|
})])) : i("", !0),
|
|
3692
|
-
F((S(), a("div",
|
|
3723
|
+
F((S(), a("div", no, [u(C, {
|
|
3693
3724
|
"x-gap": "8",
|
|
3694
3725
|
"y-gap": "8",
|
|
3695
3726
|
cols: n.cols,
|
|
@@ -3726,7 +3757,7 @@ function Za(n, s, c, d, f, p) {
|
|
|
3726
3757
|
}, 1032, ["span"]))), 128)) : i("", !0)]),
|
|
3727
3758
|
_: 1
|
|
3728
3759
|
}, 8, ["cols"])])), [[ee]])
|
|
3729
|
-
])) : i("", !0), n.enableHeader ? (S(), a("div",
|
|
3760
|
+
])) : i("", !0), n.enableHeader ? (S(), a("div", ro, [
|
|
3730
3761
|
n.more ? (S(), r(m, {
|
|
3731
3762
|
key: 0,
|
|
3732
3763
|
secondary: "",
|
|
@@ -3776,7 +3807,7 @@ function Za(n, s, c, d, f, p) {
|
|
|
3776
3807
|
})) : i("", !0),
|
|
3777
3808
|
D(n.$slots, "action")
|
|
3778
3809
|
])) : i("", !0)]), u(t, { name: "uz-search-fields" }, {
|
|
3779
|
-
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, {
|
|
3780
3811
|
"x-gap": "8",
|
|
3781
3812
|
"y-gap": "8",
|
|
3782
3813
|
cols: 4
|
|
@@ -3811,7 +3842,7 @@ function Za(n, s, c, d, f, p) {
|
|
|
3811
3842
|
_: 1
|
|
3812
3843
|
})], 32);
|
|
3813
3844
|
}
|
|
3814
|
-
var
|
|
3845
|
+
var oo = /*#__PURE__*/ W(Qa, [["render", ao]]), so = f({
|
|
3815
3846
|
name: "UzSearchMobileBar",
|
|
3816
3847
|
components: {
|
|
3817
3848
|
NIcon: V,
|
|
@@ -3822,7 +3853,7 @@ var Qa = /*#__PURE__*/ W(Wa, [["render", Za]]), $a = f({
|
|
|
3822
3853
|
NGridItem: _e,
|
|
3823
3854
|
NInputGroup: xe,
|
|
3824
3855
|
NInputGroupLabel: Se,
|
|
3825
|
-
UzFormItem:
|
|
3856
|
+
UzFormItem: Di
|
|
3826
3857
|
},
|
|
3827
3858
|
props: {
|
|
3828
3859
|
data: {
|
|
@@ -3900,10 +3931,10 @@ var Qa = /*#__PURE__*/ W(Wa, [["render", Za]]), $a = f({
|
|
|
3900
3931
|
clearAll: l
|
|
3901
3932
|
};
|
|
3902
3933
|
}
|
|
3903
|
-
}),
|
|
3904
|
-
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) {
|
|
3905
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");
|
|
3906
|
-
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, {
|
|
3907
3938
|
key: 0,
|
|
3908
3939
|
secondary: "",
|
|
3909
3940
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
@@ -3928,7 +3959,7 @@ function ro(t, n, s, c, d, f) {
|
|
|
3928
3959
|
title: "查询",
|
|
3929
3960
|
closable: ""
|
|
3930
3961
|
}, {
|
|
3931
|
-
footer: P(() => [o("div",
|
|
3962
|
+
footer: P(() => [o("div", uo, [u(h, {
|
|
3932
3963
|
secondary: "",
|
|
3933
3964
|
loading: t.loading,
|
|
3934
3965
|
onClick: t.clearAll,
|
|
@@ -3983,7 +4014,7 @@ function ro(t, n, s, c, d, f) {
|
|
|
3983
4014
|
_: 1
|
|
3984
4015
|
}, 8, ["show"])], 64);
|
|
3985
4016
|
}
|
|
3986
|
-
var
|
|
4017
|
+
var po = /*#__PURE__*/ W(so, [["render", fo]]), mo = /(?<=\[)(.+?)(?=\])/g, ho = {
|
|
3987
4018
|
index: 1,
|
|
3988
4019
|
selection: 0,
|
|
3989
4020
|
pagination: 1,
|
|
@@ -4001,10 +4032,10 @@ var io = /*#__PURE__*/ W($a, [["render", ro]]), ao = /(?<=\[)(.+?)(?=\])/g, oo =
|
|
|
4001
4032
|
placement: "right",
|
|
4002
4033
|
summary: ""
|
|
4003
4034
|
};
|
|
4004
|
-
function
|
|
4035
|
+
function go(e) {
|
|
4005
4036
|
return Function("return " + e)();
|
|
4006
4037
|
}
|
|
4007
|
-
var
|
|
4038
|
+
var _o = () => new Promise((e) => {
|
|
4008
4039
|
let t = window.localStorage.getItem("city");
|
|
4009
4040
|
if (t) e(JSON.parse(t));
|
|
4010
4041
|
else {
|
|
@@ -4017,12 +4048,12 @@ var co = () => new Promise((e) => {
|
|
|
4017
4048
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
4018
4049
|
}, 500);
|
|
4019
4050
|
}
|
|
4020
|
-
}),
|
|
4051
|
+
}), vo = async (e, t, n) => {
|
|
4021
4052
|
if (t && typeof t == "string") {
|
|
4022
|
-
let r = t.match(
|
|
4053
|
+
let r = t.match(mo);
|
|
4023
4054
|
if (r && t.indexOf("return") === -1) {
|
|
4024
4055
|
let t = r[0].split(":");
|
|
4025
|
-
if (t[0] === "date") return (t) =>
|
|
4056
|
+
if (t[0] === "date") return (t) => Gn(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
4026
4057
|
if (t[0] === "city") return (t) => t[`${e}Str`];
|
|
4027
4058
|
if (t[0] === "modules" && n && Object.keys(n).length > 0) {
|
|
4028
4059
|
let e = r[0].replace("modules:", ""), t = Object.keys(n).find((t) => t.includes(e));
|
|
@@ -4040,7 +4071,7 @@ var co = () => new Promise((e) => {
|
|
|
4040
4071
|
}
|
|
4041
4072
|
}
|
|
4042
4073
|
return t && typeof t == "function" ? (e, n) => t(e, n, p) : "";
|
|
4043
|
-
},
|
|
4074
|
+
}, yo = (e, t, n) => {
|
|
4044
4075
|
let r = t.map((t) => {
|
|
4045
4076
|
let r = [], i = t.id;
|
|
4046
4077
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -4053,35 +4084,35 @@ var co = () => new Promise((e) => {
|
|
|
4053
4084
|
};
|
|
4054
4085
|
});
|
|
4055
4086
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
4056
|
-
},
|
|
4057
|
-
function
|
|
4058
|
-
|
|
4087
|
+
}, bo = /* @__PURE__ */ new Map();
|
|
4088
|
+
function xo() {
|
|
4089
|
+
bo.clear();
|
|
4059
4090
|
}
|
|
4060
|
-
async function
|
|
4091
|
+
async function So(e, t = !1) {
|
|
4061
4092
|
let n = e.split("."), r = !1;
|
|
4062
|
-
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))), {
|
|
4063
4094
|
sourceData: r,
|
|
4064
4095
|
n
|
|
4065
4096
|
};
|
|
4066
4097
|
}
|
|
4067
|
-
async function
|
|
4098
|
+
async function Co(e) {
|
|
4068
4099
|
return new Promise((t, n) => {
|
|
4069
4100
|
let r = Y(`dynamicTable_${e}`, !1);
|
|
4070
|
-
r &&
|
|
4101
|
+
r && bo.has(`dynamicTable_${e}`) ? t(r) : Zr(e, r ? r.createTime : null).then((n) => {
|
|
4071
4102
|
if (n) {
|
|
4072
4103
|
let r = {
|
|
4073
4104
|
createTime: n.createTime,
|
|
4074
4105
|
tableTitle: n.tableTitle,
|
|
4075
4106
|
viewJson: n.viewJson
|
|
4076
4107
|
};
|
|
4077
|
-
J(`dynamicTable_${e}`, r, 0),
|
|
4078
|
-
} 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);
|
|
4079
4110
|
}).catch(() => {
|
|
4080
4111
|
n();
|
|
4081
4112
|
});
|
|
4082
4113
|
});
|
|
4083
4114
|
}
|
|
4084
|
-
var
|
|
4115
|
+
var wo = (e) => e.map((e) => {
|
|
4085
4116
|
let t = {};
|
|
4086
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)), {
|
|
4087
4118
|
i: e.input,
|
|
@@ -4156,7 +4187,7 @@ var go = (e) => e.map((e) => {
|
|
|
4156
4187
|
p: { s: +!!e.form.expand.show }
|
|
4157
4188
|
}
|
|
4158
4189
|
};
|
|
4159
|
-
}),
|
|
4190
|
+
}), To = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
4160
4191
|
let t = {};
|
|
4161
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)), {
|
|
4162
4193
|
input: e.i,
|
|
@@ -4231,12 +4262,12 @@ var go = (e) => e.map((e) => {
|
|
|
4231
4262
|
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
4232
4263
|
}
|
|
4233
4264
|
};
|
|
4234
|
-
}),
|
|
4265
|
+
}), Eo = (e) => ({
|
|
4235
4266
|
f: e.fetch,
|
|
4236
4267
|
n: e.fetchFn,
|
|
4237
4268
|
o: e.when_drawer_open,
|
|
4238
4269
|
b: e.when_before_save
|
|
4239
|
-
}),
|
|
4270
|
+
}), Do = (e) => e ? e.fetch ? e : {
|
|
4240
4271
|
fetch: e.f,
|
|
4241
4272
|
fetchFn: e.n,
|
|
4242
4273
|
when_drawer_open: e.o,
|
|
@@ -4246,7 +4277,7 @@ var go = (e) => e.map((e) => {
|
|
|
4246
4277
|
fetchFn: "",
|
|
4247
4278
|
when_drawer_open: "",
|
|
4248
4279
|
when_before_save: ""
|
|
4249
|
-
},
|
|
4280
|
+
}, Oo = (e) => ({
|
|
4250
4281
|
i: e.index,
|
|
4251
4282
|
s: e.selection,
|
|
4252
4283
|
p: e.pagination,
|
|
@@ -4262,7 +4293,7 @@ var go = (e) => e.map((e) => {
|
|
|
4262
4293
|
h: e.drawerHeight,
|
|
4263
4294
|
l: e.placement,
|
|
4264
4295
|
r: e.summary
|
|
4265
|
-
}),
|
|
4296
|
+
}), ko = (e) => {
|
|
4266
4297
|
let t = {};
|
|
4267
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 : {
|
|
4268
4299
|
index: e.i,
|
|
@@ -4280,9 +4311,9 @@ var go = (e) => e.map((e) => {
|
|
|
4280
4311
|
drawerHeight: e.h,
|
|
4281
4312
|
placement: e.l,
|
|
4282
4313
|
summary: e.r
|
|
4283
|
-
}), Object.assign({},
|
|
4314
|
+
}), Object.assign({}, ho, U(t));
|
|
4284
4315
|
};
|
|
4285
|
-
function
|
|
4316
|
+
function Ao(e, t, n, r) {
|
|
4286
4317
|
return new Promise(async (i, a) => {
|
|
4287
4318
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
|
|
4288
4319
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -4317,21 +4348,21 @@ function So(e, t, n, r) {
|
|
|
4317
4348
|
disabled: !0
|
|
4318
4349
|
}];
|
|
4319
4350
|
if (e.params.immediately || r) {
|
|
4320
|
-
let { sourceData: t, n: r } = await
|
|
4351
|
+
let { sourceData: t, n: r } = await So(e.source);
|
|
4321
4352
|
if (t && Array.isArray(t)) {
|
|
4322
4353
|
if (e.sourceFn) {
|
|
4323
4354
|
let r = e.sourceFn;
|
|
4324
4355
|
n = Function("sourceData", r)(t);
|
|
4325
|
-
} else n =
|
|
4356
|
+
} else n = yo(e, t, r);
|
|
4326
4357
|
}
|
|
4327
4358
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
4328
|
-
let { sourceData: t, n } = await
|
|
4359
|
+
let { sourceData: t, n } = await So(e.source);
|
|
4329
4360
|
if (t && Array.isArray(t)) {
|
|
4330
4361
|
if (e.sourceFn) {
|
|
4331
4362
|
let n = e.sourceFn;
|
|
4332
4363
|
return Function("sourceData", n)(t);
|
|
4333
4364
|
}
|
|
4334
|
-
return
|
|
4365
|
+
return yo(e, t, n);
|
|
4335
4366
|
}
|
|
4336
4367
|
};
|
|
4337
4368
|
if (e.params.options = n, e.form.backfill && t) {
|
|
@@ -4365,27 +4396,27 @@ function So(e, t, n, r) {
|
|
|
4365
4396
|
q(e);
|
|
4366
4397
|
}
|
|
4367
4398
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
4368
|
-
let t = await
|
|
4399
|
+
let t = await _o();
|
|
4369
4400
|
e.params.options = t;
|
|
4370
4401
|
}
|
|
4371
4402
|
if (e.input === "subTable" && e.params.link) {
|
|
4372
|
-
let t = await
|
|
4403
|
+
let t = await Co(e.params.link).catch(() => {
|
|
4373
4404
|
a();
|
|
4374
4405
|
});
|
|
4375
4406
|
if (t) try {
|
|
4376
4407
|
let n = rt.parse(t.viewJson);
|
|
4377
|
-
n.suffix && (e._suffix =
|
|
4378
|
-
let r =
|
|
4408
|
+
n.suffix && (e._suffix = bi(n.suffix));
|
|
4409
|
+
let r = To(n.table);
|
|
4379
4410
|
r.forEach((e) => {
|
|
4380
4411
|
e.table.sorter = !1;
|
|
4381
4412
|
});
|
|
4382
4413
|
let i = r.filter((e) => e.input === "subTable");
|
|
4383
4414
|
if (i) for await (let e of i) {
|
|
4384
|
-
let t = await
|
|
4415
|
+
let t = await Co(e.params.link).catch(() => {
|
|
4385
4416
|
a();
|
|
4386
4417
|
});
|
|
4387
4418
|
if (t) try {
|
|
4388
|
-
let n = rt.parse(t.viewJson), r =
|
|
4419
|
+
let n = rt.parse(t.viewJson), r = To(n.table);
|
|
4389
4420
|
r.forEach((e) => {
|
|
4390
4421
|
e.table.sorter = !1;
|
|
4391
4422
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -4419,7 +4450,7 @@ function So(e, t, n, r) {
|
|
|
4419
4450
|
});
|
|
4420
4451
|
});
|
|
4421
4452
|
}
|
|
4422
|
-
async function
|
|
4453
|
+
async function jo(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
4423
4454
|
let s = 0, c = [], l = [], u = {
|
|
4424
4455
|
key: "",
|
|
4425
4456
|
link: "",
|
|
@@ -4434,25 +4465,25 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4434
4465
|
for await (let [e, s] of m.entries()) {
|
|
4435
4466
|
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
|
|
4436
4467
|
if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
4437
|
-
let { sourceData: t, n } = await
|
|
4468
|
+
let { sourceData: t, n } = await So(s.source, a && e === 0);
|
|
4438
4469
|
if (t && Array.isArray(t)) {
|
|
4439
4470
|
if (s.sourceFn) {
|
|
4440
4471
|
let e = s.sourceFn, n = Function("sourceData", e);
|
|
4441
4472
|
s.params.options = n(t);
|
|
4442
|
-
} else s.params.options =
|
|
4473
|
+
} else s.params.options = yo(s, t, n);
|
|
4443
4474
|
}
|
|
4444
4475
|
} else s.params.options = [{
|
|
4445
4476
|
label: "加载中......",
|
|
4446
4477
|
value: "loading",
|
|
4447
4478
|
disabled: !0
|
|
4448
4479
|
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4449
|
-
let { sourceData: e, n: t } = await
|
|
4480
|
+
let { sourceData: e, n: t } = await So(s.source);
|
|
4450
4481
|
if (e && Array.isArray(e)) {
|
|
4451
4482
|
if (s.sourceFn) {
|
|
4452
4483
|
let t = s.sourceFn;
|
|
4453
4484
|
return Function("sourceData", t)(e);
|
|
4454
4485
|
}
|
|
4455
|
-
return
|
|
4486
|
+
return yo(s, e, t);
|
|
4456
4487
|
}
|
|
4457
4488
|
};
|
|
4458
4489
|
}
|
|
@@ -4460,7 +4491,7 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4460
4491
|
let t = s.params.options.find((t) => t.value === e[s.key]);
|
|
4461
4492
|
if (t) return t.label;
|
|
4462
4493
|
}), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
|
|
4463
|
-
return p(
|
|
4494
|
+
return p(Ki, { value: e[s.key] }, { default: () => null });
|
|
4464
4495
|
});
|
|
4465
4496
|
let f = {
|
|
4466
4497
|
input: s.input,
|
|
@@ -4475,7 +4506,7 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4475
4506
|
tooltip: !0,
|
|
4476
4507
|
"line-clamp": s.table.clamp ?? 0
|
|
4477
4508
|
} : !1,
|
|
4478
|
-
render: s.table.render ? await
|
|
4509
|
+
render: s.table.render ? await vo(s.key, s.table.render, i) : void 0,
|
|
4479
4510
|
show: K.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
4480
4511
|
pin: !!s.table.fixed,
|
|
4481
4512
|
fixTemp: s.table.fixed
|
|
@@ -4497,7 +4528,7 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4497
4528
|
...s.form.rule,
|
|
4498
4529
|
index: t
|
|
4499
4530
|
} : void 0
|
|
4500
|
-
}, { default: () => p(
|
|
4531
|
+
}, { default: () => p(Di, {
|
|
4501
4532
|
item: s,
|
|
4502
4533
|
formValue: e,
|
|
4503
4534
|
status: n,
|
|
@@ -4510,34 +4541,34 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4510
4541
|
if (s.search.title && (s.label = s.search.title), s.search.source) {
|
|
4511
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;
|
|
4512
4543
|
else if (s.params.immediately || s.search.defaultValue) {
|
|
4513
|
-
let { sourceData: e, n: t } = await
|
|
4544
|
+
let { sourceData: e, n: t } = await So(s.search.source);
|
|
4514
4545
|
if (e && Array.isArray(e)) {
|
|
4515
4546
|
if (s.sourceFn) {
|
|
4516
4547
|
let t = s.sourceFn, n = Function("sourceData", t);
|
|
4517
4548
|
s.params.options = n(e);
|
|
4518
|
-
} else s.params.options =
|
|
4549
|
+
} else s.params.options = yo(s, e, t);
|
|
4519
4550
|
}
|
|
4520
4551
|
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4521
|
-
let { sourceData: e, n: t } = await
|
|
4552
|
+
let { sourceData: e, n: t } = await So(s.search.source);
|
|
4522
4553
|
if (e && Array.isArray(e)) {
|
|
4523
4554
|
if (s.sourceFn) {
|
|
4524
4555
|
let t = s.sourceFn;
|
|
4525
4556
|
return Function("sourceData", t)(e);
|
|
4526
4557
|
}
|
|
4527
|
-
return
|
|
4558
|
+
return yo(s, e, t);
|
|
4528
4559
|
}
|
|
4529
4560
|
};
|
|
4530
4561
|
}
|
|
4531
|
-
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) {
|
|
4532
4563
|
let e = U(s);
|
|
4533
4564
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
4534
|
-
let { sourceData: t, n } = await
|
|
4565
|
+
let { sourceData: t, n } = await So(e.source || e.search.source);
|
|
4535
4566
|
if (t && Array.isArray(t)) {
|
|
4536
4567
|
if (e.sourceFn) {
|
|
4537
4568
|
let n = e.sourceFn;
|
|
4538
4569
|
return Function("sourceData", n)(t);
|
|
4539
4570
|
}
|
|
4540
|
-
return
|
|
4571
|
+
return yo(e, t, n);
|
|
4541
4572
|
}
|
|
4542
4573
|
}), c.push({
|
|
4543
4574
|
input: e.input,
|
|
@@ -4591,7 +4622,7 @@ async function Co(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4591
4622
|
}
|
|
4592
4623
|
//#endregion
|
|
4593
4624
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
4594
|
-
var
|
|
4625
|
+
var Mo = f({
|
|
4595
4626
|
name: "UzSpin",
|
|
4596
4627
|
components: {
|
|
4597
4628
|
NButton: R,
|
|
@@ -4637,7 +4668,7 @@ var wo = f({
|
|
|
4637
4668
|
});
|
|
4638
4669
|
//#endregion
|
|
4639
4670
|
//#region components/spin/index.vue
|
|
4640
|
-
function
|
|
4671
|
+
function No(e, t, n, i, a, s) {
|
|
4641
4672
|
let c = O("NEllipsis"), d = O("NButton"), f = O("NSpin");
|
|
4642
4673
|
return S(), r(f, { show: e.value }, {
|
|
4643
4674
|
description: P(() => [
|
|
@@ -4665,7 +4696,7 @@ function To(e, t, n, i, a, s) {
|
|
|
4665
4696
|
_: 3
|
|
4666
4697
|
}, 8, ["show"]);
|
|
4667
4698
|
}
|
|
4668
|
-
var
|
|
4699
|
+
var Po = /*#__PURE__*/ W(Mo, [["render", No]]), Fo = f({
|
|
4669
4700
|
name: "UzTableExpand",
|
|
4670
4701
|
components: {
|
|
4671
4702
|
NDataTable: se,
|
|
@@ -4691,8 +4722,8 @@ var Eo = /*#__PURE__*/ W(wo, [["render", To]]), Do = f({
|
|
|
4691
4722
|
} catch (e) {
|
|
4692
4723
|
q(e);
|
|
4693
4724
|
}
|
|
4694
|
-
|
|
4695
|
-
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) => ({
|
|
4696
4727
|
...e,
|
|
4697
4728
|
sorter: !1,
|
|
4698
4729
|
resizable: !1
|
|
@@ -4713,7 +4744,7 @@ var Eo = /*#__PURE__*/ W(wo, [["render", To]]), Do = f({
|
|
|
4713
4744
|
});
|
|
4714
4745
|
//#endregion
|
|
4715
4746
|
//#region components/table/components/expand.vue
|
|
4716
|
-
function
|
|
4747
|
+
function Io(e, t, n, i, a, o) {
|
|
4717
4748
|
let s = O("NDataTable");
|
|
4718
4749
|
return S(), r(s, {
|
|
4719
4750
|
columns: e.columns,
|
|
@@ -4732,18 +4763,18 @@ function Oo(e, t, n, i, a, o) {
|
|
|
4732
4763
|
"scroll-x"
|
|
4733
4764
|
]);
|
|
4734
4765
|
}
|
|
4735
|
-
var
|
|
4766
|
+
var Lo = /*#__PURE__*/ W(Fo, [["render", Io]]), Ro = f({
|
|
4736
4767
|
components: { NSkeleton: je },
|
|
4737
4768
|
setup() {
|
|
4738
4769
|
return {};
|
|
4739
4770
|
}
|
|
4740
|
-
}),
|
|
4741
|
-
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) {
|
|
4742
4773
|
let c = O("NSkeleton");
|
|
4743
|
-
return S(), a("div",
|
|
4774
|
+
return S(), a("div", zo, [o("div", Bo, [u(c, {
|
|
4744
4775
|
width: 120,
|
|
4745
4776
|
size: "medium"
|
|
4746
|
-
}), o("div",
|
|
4777
|
+
}), o("div", Vo, [
|
|
4747
4778
|
u(c, {
|
|
4748
4779
|
width: 180,
|
|
4749
4780
|
size: "medium"
|
|
@@ -4776,7 +4807,7 @@ function Po(e, t, n, r, i, s) {
|
|
|
4776
4807
|
}
|
|
4777
4808
|
//#endregion
|
|
4778
4809
|
//#region components/table/index.vue?vue&type=script&lang.ts
|
|
4779
|
-
var
|
|
4810
|
+
var Uo = f({
|
|
4780
4811
|
name: "UzTable",
|
|
4781
4812
|
components: {
|
|
4782
4813
|
NDataTable: se,
|
|
@@ -4786,9 +4817,9 @@ var Fo = f({
|
|
|
4786
4817
|
NCheckbox: ie,
|
|
4787
4818
|
NSpin: Ne,
|
|
4788
4819
|
VueDraggable: nt,
|
|
4789
|
-
UzSpin:
|
|
4790
|
-
TableExpand:
|
|
4791
|
-
SkeletonLoading: /* @__PURE__ */ W(
|
|
4820
|
+
UzSpin: Po,
|
|
4821
|
+
TableExpand: Lo,
|
|
4822
|
+
SkeletonLoading: /* @__PURE__ */ W(Ro, [["render", Ho]])
|
|
4792
4823
|
},
|
|
4793
4824
|
props: {
|
|
4794
4825
|
id: {
|
|
@@ -4928,7 +4959,7 @@ var Fo = f({
|
|
|
4928
4959
|
fetchFn: "",
|
|
4929
4960
|
when_drawer_open: "",
|
|
4930
4961
|
when_before_save: ""
|
|
4931
|
-
}), 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) => {
|
|
4932
4963
|
t("update:rowKeys", {
|
|
4933
4964
|
keys: e,
|
|
4934
4965
|
rows: U(n)
|
|
@@ -4962,7 +4993,7 @@ var Fo = f({
|
|
|
4962
4993
|
else if (I.value.fetchFn) {
|
|
4963
4994
|
let e = I.value.fetchFn;
|
|
4964
4995
|
r = Function("POST", "queryData", e)(Z, { ...t });
|
|
4965
|
-
} else r =
|
|
4996
|
+
} else r = Qr({
|
|
4966
4997
|
...t,
|
|
4967
4998
|
tableId: n
|
|
4968
4999
|
});
|
|
@@ -4976,7 +5007,7 @@ var Fo = f({
|
|
|
4976
5007
|
else if (I.value.fetchFn) {
|
|
4977
5008
|
let e = I.value.fetchFn;
|
|
4978
5009
|
r = Function("POST", "queryData", e)(Z, { id: t.id });
|
|
4979
|
-
} else r =
|
|
5010
|
+
} else r = Qr({
|
|
4980
5011
|
id: t.id,
|
|
4981
5012
|
tableId: n
|
|
4982
5013
|
});
|
|
@@ -4985,24 +5016,24 @@ var Fo = f({
|
|
|
4985
5016
|
let r = e.id || o.params.id;
|
|
4986
5017
|
e.enableLoading && (_.value = !0, t("update:loading", !0));
|
|
4987
5018
|
let i = U(k.value);
|
|
4988
|
-
n && delete i.orderby, I.value.fetch ?
|
|
4989
|
-
let n =
|
|
5019
|
+
n && delete i.orderby, I.value.fetch ? ri([I.value.fetch], "", i).then((e) => {
|
|
5020
|
+
let n = Wn(e);
|
|
4990
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);
|
|
4991
5022
|
}).catch(() => {
|
|
4992
5023
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
4993
5024
|
}) : de(i).then((e) => {
|
|
4994
|
-
let n =
|
|
5025
|
+
let n = Wn(e);
|
|
4995
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);
|
|
4996
5027
|
}).catch(() => {
|
|
4997
5028
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
4998
5029
|
});
|
|
4999
5030
|
}, pe = (e) => {
|
|
5000
|
-
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();
|
|
5001
5032
|
}, me = () => {
|
|
5002
5033
|
let e = k.value.query.page + 1;
|
|
5003
5034
|
e > k.value.query.pageMax && (e = 1), k.value.query.page = e, u.value && (u.value.scrollTop = 0), B();
|
|
5004
5035
|
}, he = (e) => {
|
|
5005
|
-
k.value.query.pageSize = e, k.value.query.page = 1,
|
|
5036
|
+
k.value.query.pageSize = e, k.value.query.page = 1, Un(), B();
|
|
5006
5037
|
}, ge = (e) => {
|
|
5007
5038
|
e && e.order ? k.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete k.value.orderby, B();
|
|
5008
5039
|
}, _e = () => {
|
|
@@ -5026,7 +5057,7 @@ var Fo = f({
|
|
|
5026
5057
|
show: !0,
|
|
5027
5058
|
ellipsis: !1,
|
|
5028
5059
|
width: 180,
|
|
5029
|
-
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") })]
|
|
5030
5061
|
}, {
|
|
5031
5062
|
title: "更新人/时间",
|
|
5032
5063
|
key: "updateTime",
|
|
@@ -5035,9 +5066,9 @@ var Fo = f({
|
|
|
5035
5066
|
show: !0,
|
|
5036
5067
|
ellipsis: !0,
|
|
5037
5068
|
width: 180,
|
|
5038
|
-
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") })]
|
|
5039
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) => {
|
|
5040
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await
|
|
5071
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Ao(N.value, e, () => f.value?.getFormValues());
|
|
5041
5072
|
return x.value = t, {
|
|
5042
5073
|
form: t,
|
|
5043
5074
|
fillingDefaultValue: n,
|
|
@@ -5126,7 +5157,7 @@ var Fo = f({
|
|
|
5126
5157
|
...n,
|
|
5127
5158
|
tableId: a,
|
|
5128
5159
|
sub_table_ids: r
|
|
5129
|
-
}) :
|
|
5160
|
+
}) : ei({
|
|
5130
5161
|
...n,
|
|
5131
5162
|
tableId: a,
|
|
5132
5163
|
sub_table_ids: r
|
|
@@ -5144,7 +5175,7 @@ var Fo = f({
|
|
|
5144
5175
|
});
|
|
5145
5176
|
};
|
|
5146
5177
|
} else if (n.type !== "group" && n.action === "disabledInside") n.onClick = (t) => {
|
|
5147
|
-
|
|
5178
|
+
$r({
|
|
5148
5179
|
tableId: e.id || o.params.id,
|
|
5149
5180
|
...t,
|
|
5150
5181
|
is_disabled: "1"
|
|
@@ -5153,7 +5184,7 @@ var Fo = f({
|
|
|
5153
5184
|
}).catch(() => null);
|
|
5154
5185
|
};
|
|
5155
5186
|
else if (n.type !== "group" && n.action === "enabledInside") n.onClick = (t) => {
|
|
5156
|
-
|
|
5187
|
+
$r({
|
|
5157
5188
|
tableId: e.id || o.params.id,
|
|
5158
5189
|
...t,
|
|
5159
5190
|
is_disabled: "0"
|
|
@@ -5166,7 +5197,7 @@ var Fo = f({
|
|
|
5166
5197
|
n.onClick = (t) => {
|
|
5167
5198
|
fe(t).then((t) => {
|
|
5168
5199
|
let r = t && t[0];
|
|
5169
|
-
|
|
5200
|
+
ri([n.action], r.id, r).then((t) => {
|
|
5170
5201
|
if (e && typeof e == "string") {
|
|
5171
5202
|
try {
|
|
5172
5203
|
Function("rowData", "res", e)(r, t).then((e) => {
|
|
@@ -5205,8 +5236,8 @@ var Fo = f({
|
|
|
5205
5236
|
};
|
|
5206
5237
|
}
|
|
5207
5238
|
}, Te = async () => {
|
|
5208
|
-
re.value = !1,
|
|
5209
|
-
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);
|
|
5210
5241
|
!l.value && L.value.index && n.unshift({
|
|
5211
5242
|
title: "#",
|
|
5212
5243
|
key: "index",
|
|
@@ -5248,7 +5279,7 @@ var Fo = f({
|
|
|
5248
5279
|
hide: !0,
|
|
5249
5280
|
width: Number(typeof L.value.actionWidth == "string" ? L.value.actionWidth.replace("px", "") : L.value.actionWidth),
|
|
5250
5281
|
render(t) {
|
|
5251
|
-
return
|
|
5282
|
+
return fi({
|
|
5252
5283
|
buttons: e,
|
|
5253
5284
|
rowData: t,
|
|
5254
5285
|
callback: B,
|
|
@@ -5262,8 +5293,8 @@ var Fo = f({
|
|
|
5262
5293
|
if (c) {
|
|
5263
5294
|
let e = Y(`tables_filter_${c}`, !1);
|
|
5264
5295
|
if (e) try {
|
|
5265
|
-
let t = await
|
|
5266
|
-
t && (e = JSON.parse(t), u =
|
|
5296
|
+
let t = await ti(c);
|
|
5297
|
+
t && (e = JSON.parse(t), u = $n(n, e));
|
|
5267
5298
|
} catch {}
|
|
5268
5299
|
}
|
|
5269
5300
|
a.link && u.unshift({
|
|
@@ -5275,7 +5306,7 @@ var Fo = f({
|
|
|
5275
5306
|
filter: "default",
|
|
5276
5307
|
filterOptionValue: null,
|
|
5277
5308
|
renderFilterMenu: () => p("div", { class: "uz-table-filter" }, [p(R, { onClick: ze }, { default: () => s("Common.expand") }), p(R, { onClick: Be }, { default: () => s("Common.contract") })]),
|
|
5278
|
-
renderExpand: (e) => p(
|
|
5309
|
+
renderExpand: (e) => p(Lo, {
|
|
5279
5310
|
data: a,
|
|
5280
5311
|
value: e
|
|
5281
5312
|
})
|
|
@@ -5296,12 +5327,12 @@ var Fo = f({
|
|
|
5296
5327
|
let e = 0;
|
|
5297
5328
|
S.value.forEach((t) => {
|
|
5298
5329
|
t.show && (e += Number(t.width || 140));
|
|
5299
|
-
}), 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({
|
|
5300
5331
|
table_id: n,
|
|
5301
5332
|
data: JSON.stringify(t)
|
|
5302
5333
|
}).catch(() => null);
|
|
5303
5334
|
}
|
|
5304
|
-
}, { run: ke } =
|
|
5335
|
+
}, { run: ke } = Zi(Oe), { run: Ae } = Zi((e, t) => {
|
|
5305
5336
|
let n = [];
|
|
5306
5337
|
S.value.forEach((r) => {
|
|
5307
5338
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -5328,7 +5359,7 @@ var Fo = f({
|
|
|
5328
5359
|
i = e.formFetch ? e.formFetch({
|
|
5329
5360
|
tableId: a,
|
|
5330
5361
|
...t
|
|
5331
|
-
}) :
|
|
5362
|
+
}) : $r({
|
|
5332
5363
|
tableId: a,
|
|
5333
5364
|
...t
|
|
5334
5365
|
}), i.then(() => {
|
|
@@ -5342,14 +5373,14 @@ var Fo = f({
|
|
|
5342
5373
|
fetchFn: "",
|
|
5343
5374
|
when_drawer_open: "",
|
|
5344
5375
|
when_before_save: ""
|
|
5345
|
-
}, L.value =
|
|
5376
|
+
}, L.value = ko();
|
|
5346
5377
|
}, Pe = (t) => {
|
|
5347
5378
|
let n = rt.parse(t.viewJson);
|
|
5348
|
-
y.value = t.tableTitle, N.value =
|
|
5349
|
-
let r =
|
|
5350
|
-
F.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value =
|
|
5351
|
-
let i =
|
|
5352
|
-
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;
|
|
5353
5384
|
}, Fe = async () => {
|
|
5354
5385
|
v.value = !1, Ne();
|
|
5355
5386
|
let t = e.id || o.params.id;
|
|
@@ -5366,7 +5397,7 @@ var Fo = f({
|
|
|
5366
5397
|
ne.value = s("Notice.network"), re.value = !0;
|
|
5367
5398
|
return;
|
|
5368
5399
|
}
|
|
5369
|
-
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) => {
|
|
5370
5401
|
Pe(e), await Te();
|
|
5371
5402
|
}).catch((e) => {
|
|
5372
5403
|
ne.value = e?.message || s("Notice.network"), re.value = !0;
|
|
@@ -5407,7 +5438,7 @@ var Fo = f({
|
|
|
5407
5438
|
if (_.value) return;
|
|
5408
5439
|
_.value = !0;
|
|
5409
5440
|
let t = e.id || o.params.id;
|
|
5410
|
-
t && (
|
|
5441
|
+
t && (Bn(`tables_filter_${t}`), ni({
|
|
5411
5442
|
table_id: t,
|
|
5412
5443
|
data: null
|
|
5413
5444
|
}).catch(() => null).finally(() => {
|
|
@@ -5434,7 +5465,7 @@ var Fo = f({
|
|
|
5434
5465
|
}), M(() => e.height, () => {
|
|
5435
5466
|
De();
|
|
5436
5467
|
}), M([() => o.params.id, () => e.id], async () => {
|
|
5437
|
-
|
|
5468
|
+
Un(), await Fe();
|
|
5438
5469
|
}), M(() => e.defaultCheckedRowKeys, (e) => {
|
|
5439
5470
|
let t = e || [], n = z.value.filter((e) => t.includes(e.id));
|
|
5440
5471
|
ie.value = t, z.value = n;
|
|
@@ -5485,14 +5516,14 @@ var Fo = f({
|
|
|
5485
5516
|
}
|
|
5486
5517
|
};
|
|
5487
5518
|
}
|
|
5488
|
-
}),
|
|
5519
|
+
}), Wo = { class: "uz-com-title" }, Go = {
|
|
5489
5520
|
ref: "mRef",
|
|
5490
5521
|
class: "uz-table-m-content"
|
|
5491
|
-
},
|
|
5522
|
+
}, Ko = {
|
|
5492
5523
|
key: 1,
|
|
5493
5524
|
class: "uz-transform-fade-in"
|
|
5494
|
-
},
|
|
5495
|
-
function
|
|
5525
|
+
}, qo = { class: "uz-com-title" }, Jo = ["data-index"];
|
|
5526
|
+
function Yo(t, n, c, d, f, p) {
|
|
5496
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");
|
|
5497
5528
|
return S(), a("div", {
|
|
5498
5529
|
class: "uz-table",
|
|
@@ -5557,7 +5588,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5557
5588
|
key: "0"
|
|
5558
5589
|
} : {
|
|
5559
5590
|
name: "header",
|
|
5560
|
-
fn: P(() => [o("div",
|
|
5591
|
+
fn: P(() => [o("div", Wo, A(t.title), 1)]),
|
|
5561
5592
|
key: "1"
|
|
5562
5593
|
}]), 1032, [
|
|
5563
5594
|
"data",
|
|
@@ -5565,7 +5596,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5565
5596
|
"cache",
|
|
5566
5597
|
"loading",
|
|
5567
5598
|
"onOnUpdate:value"
|
|
5568
|
-
]), o("div",
|
|
5599
|
+
]), o("div", Go, [u(C, {
|
|
5569
5600
|
tableColumns: t.tableCols,
|
|
5570
5601
|
tableData: t.tableData,
|
|
5571
5602
|
tableQueries: t.tableQueries,
|
|
@@ -5583,7 +5614,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5583
5614
|
"minH",
|
|
5584
5615
|
"maxH",
|
|
5585
5616
|
"onUpdate:rowKeys"
|
|
5586
|
-
])], 512)], 2)) : (S(), a("div",
|
|
5617
|
+
])], 512)], 2)) : (S(), a("div", Ko, [u(te, {
|
|
5587
5618
|
data: t.searchData,
|
|
5588
5619
|
id: t.id || t.route.params.id,
|
|
5589
5620
|
cache: t.tableOption.cache,
|
|
@@ -5638,7 +5669,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5638
5669
|
_: 1
|
|
5639
5670
|
})]),
|
|
5640
5671
|
_: 1
|
|
5641
|
-
})], 8,
|
|
5672
|
+
})], 8, Jo)), [[j, !e.hide]])), 128)), u(h, {
|
|
5642
5673
|
block: "",
|
|
5643
5674
|
tertiary: "",
|
|
5644
5675
|
loading: t.loading,
|
|
@@ -5692,7 +5723,7 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5692
5723
|
key: "0"
|
|
5693
5724
|
} : {
|
|
5694
5725
|
name: "header",
|
|
5695
|
-
fn: P(() => [o("div",
|
|
5726
|
+
fn: P(() => [o("div", qo, A(t.title), 1)]),
|
|
5696
5727
|
key: "1"
|
|
5697
5728
|
}]), 1032, [
|
|
5698
5729
|
"data",
|
|
@@ -5753,10 +5784,10 @@ function Vo(t, n, c, d, f, p) {
|
|
|
5753
5784
|
u(I, { ref: "drawerRef" }, null, 512)
|
|
5754
5785
|
], 4);
|
|
5755
5786
|
}
|
|
5756
|
-
var
|
|
5787
|
+
var Xo = /*#__PURE__*/ W(Uo, [["render", Yo]]), Zo = f({
|
|
5757
5788
|
name: "UzTableChild",
|
|
5758
5789
|
components: {
|
|
5759
|
-
UzIcon:
|
|
5790
|
+
UzIcon: gn,
|
|
5760
5791
|
NSpin: Ne,
|
|
5761
5792
|
NButton: R,
|
|
5762
5793
|
NIcon: V,
|
|
@@ -5782,7 +5813,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5782
5813
|
emits: ["update:value"],
|
|
5783
5814
|
setup(e, { emit: t, expose: r }) {
|
|
5784
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) => {
|
|
5785
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
5816
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await Ao(U(n ?? e.item.params.columns), t, void 0, !0);
|
|
5786
5817
|
return S.value = r, i;
|
|
5787
5818
|
}, D = async (t) => {
|
|
5788
5819
|
if (h.value) return;
|
|
@@ -5813,7 +5844,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5813
5844
|
});
|
|
5814
5845
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
5815
5846
|
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
5816
|
-
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;
|
|
5817
5848
|
r.unshift({
|
|
5818
5849
|
title: " ",
|
|
5819
5850
|
key: "index",
|
|
@@ -5832,7 +5863,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5832
5863
|
hide: !0,
|
|
5833
5864
|
show: !0,
|
|
5834
5865
|
render() {
|
|
5835
|
-
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" }) }));
|
|
5836
5867
|
}
|
|
5837
5868
|
}), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
|
|
5838
5869
|
title: () => l("Common.action"),
|
|
@@ -5846,7 +5877,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5846
5877
|
width: 60,
|
|
5847
5878
|
render(t, n) {
|
|
5848
5879
|
let r = [];
|
|
5849
|
-
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) => {
|
|
5850
5881
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
5851
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({
|
|
5852
5883
|
type: "normal",
|
|
@@ -5858,7 +5889,7 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5858
5889
|
let n = e.item.params.deleteFn;
|
|
5859
5890
|
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
|
|
5860
5891
|
}
|
|
5861
|
-
}),
|
|
5892
|
+
}), fi({
|
|
5862
5893
|
buttons: r,
|
|
5863
5894
|
rowData: t
|
|
5864
5895
|
});
|
|
@@ -5989,14 +6020,14 @@ var Ho = /*#__PURE__*/ W(Fo, [["render", Vo]]), Uo = f({
|
|
|
5989
6020
|
}
|
|
5990
6021
|
};
|
|
5991
6022
|
}
|
|
5992
|
-
}),
|
|
6023
|
+
}), Qo = { class: "uz-flex-1 uz-w-full" }, $o = { class: "uz-flex uz-justify-between" }, es = { class: "uz-com-title" }, ts = {
|
|
5993
6024
|
key: 0,
|
|
5994
6025
|
class: "uz-table-asterisk"
|
|
5995
|
-
},
|
|
5996
|
-
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) {
|
|
5997
6028
|
let m = O("UzIcon"), h = O("NIcon"), g = O("NButton"), v = O("NDataTable"), y = O("NForm");
|
|
5998
|
-
return S(), a("div",
|
|
5999
|
-
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, [
|
|
6000
6031
|
t.status === 2 ? i("", !0) : (S(!0), a(e, { key: 0 }, E(t.suffixes, (e) => (S(), r(g, {
|
|
6001
6032
|
key: e.key,
|
|
6002
6033
|
type: e.color,
|
|
@@ -6069,7 +6100,7 @@ function Xo(t, n, c, d, f, p) {
|
|
|
6069
6100
|
"scroll-x",
|
|
6070
6101
|
"class",
|
|
6071
6102
|
"row-class-name"
|
|
6072
|
-
])) : 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, {
|
|
6073
6104
|
key: 0,
|
|
6074
6105
|
type: "success",
|
|
6075
6106
|
secondary: "",
|
|
@@ -6098,7 +6129,7 @@ function Xo(t, n, c, d, f, p) {
|
|
|
6098
6129
|
}, 8, ["model"])
|
|
6099
6130
|
]);
|
|
6100
6131
|
}
|
|
6101
|
-
var
|
|
6132
|
+
var as = /*#__PURE__*/ W(Zo, [["render", is]]), os = f({
|
|
6102
6133
|
name: "UzTableQuestChild",
|
|
6103
6134
|
components: { NDataTable: se },
|
|
6104
6135
|
props: {
|
|
@@ -6126,7 +6157,7 @@ var Zo = /*#__PURE__*/ W(Uo, [["render", Xo]]), Qo = f({
|
|
|
6126
6157
|
}), o.value = t, i.value = !1;
|
|
6127
6158
|
}
|
|
6128
6159
|
}, l = async (i) => {
|
|
6129
|
-
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;
|
|
6130
6161
|
c.unshift({
|
|
6131
6162
|
title: " ",
|
|
6132
6163
|
key: "index",
|
|
@@ -6145,7 +6176,7 @@ var Zo = /*#__PURE__*/ W(Uo, [["render", Xo]]), Qo = f({
|
|
|
6145
6176
|
hide: !0,
|
|
6146
6177
|
width: 60,
|
|
6147
6178
|
render(t) {
|
|
6148
|
-
return
|
|
6179
|
+
return fi({ buttons: [{
|
|
6149
6180
|
type: "normal",
|
|
6150
6181
|
color: "primary",
|
|
6151
6182
|
key: "detail",
|
|
@@ -6166,7 +6197,7 @@ var Zo = /*#__PURE__*/ W(Uo, [["render", Xo]]), Qo = f({
|
|
|
6166
6197
|
}), N(async () => {
|
|
6167
6198
|
try {
|
|
6168
6199
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
6169
|
-
let t = await
|
|
6200
|
+
let t = await Qr({
|
|
6170
6201
|
tableId: e.item.params.link,
|
|
6171
6202
|
params: [{
|
|
6172
6203
|
key: e.item.params.searchKey,
|
|
@@ -6200,11 +6231,11 @@ var Zo = /*#__PURE__*/ W(Uo, [["render", Xo]]), Qo = f({
|
|
|
6200
6231
|
tableScrollX: s
|
|
6201
6232
|
};
|
|
6202
6233
|
}
|
|
6203
|
-
}),
|
|
6204
|
-
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) {
|
|
6205
6236
|
let c = O("NDataTable"), l = O("UzTableDrawer");
|
|
6206
|
-
return S(), a("div",
|
|
6207
|
-
o("div",
|
|
6237
|
+
return S(), a("div", ss, [
|
|
6238
|
+
o("div", cs, [o("div", ls, A(e.item.label), 1)]),
|
|
6208
6239
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
6209
6240
|
u(c, {
|
|
6210
6241
|
columns: e.columns,
|
|
@@ -6226,7 +6257,7 @@ function ns(e, t, n, r, i, s) {
|
|
|
6226
6257
|
u(l, { ref: "drawerRef" }, null, 512)
|
|
6227
6258
|
]);
|
|
6228
6259
|
}
|
|
6229
|
-
var
|
|
6260
|
+
var ds = /*#__PURE__*/ W(os, [["render", us]]), fs = f({
|
|
6230
6261
|
name: "UzTableDrawer",
|
|
6231
6262
|
components: {
|
|
6232
6263
|
NButton: R,
|
|
@@ -6267,7 +6298,7 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6267
6298
|
}), b = T(!1), x = T(), S = () => {
|
|
6268
6299
|
a.value?.restoreValidation(), c.value = {}, p.value = !1, f.value = !1, u.value = !1, t("update:show", !1);
|
|
6269
6300
|
}, C = () => {
|
|
6270
|
-
s.value === 2 ? S() :
|
|
6301
|
+
s.value === 2 ? S() : zn.info({
|
|
6271
6302
|
title: "提示",
|
|
6272
6303
|
content: "关闭后修改的数据将不保留,确定关闭?",
|
|
6273
6304
|
positiveText: "确定",
|
|
@@ -6298,11 +6329,11 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6298
6329
|
linkFn: t
|
|
6299
6330
|
};
|
|
6300
6331
|
let r = e.split(".")[0];
|
|
6301
|
-
|
|
6332
|
+
Co(r).then((e) => {
|
|
6302
6333
|
g(async () => {
|
|
6303
6334
|
let t = rt.parse(e.viewJson);
|
|
6304
|
-
d.value =
|
|
6305
|
-
let { form: i } = await
|
|
6335
|
+
d.value = ko(t.option), u.value = !0;
|
|
6336
|
+
let { form: i } = await Ao(To(t.table), n);
|
|
6306
6337
|
y.value = t.trigger, n && w(n);
|
|
6307
6338
|
let a = Y(`tables_cache_link_${r}`, !1);
|
|
6308
6339
|
a && (c.value = a), g(() => {
|
|
@@ -6351,7 +6382,7 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6351
6382
|
}
|
|
6352
6383
|
if (x.value) {
|
|
6353
6384
|
x.value(e, () => {
|
|
6354
|
-
|
|
6385
|
+
Bn(`tables_cache_${o.value}`), S();
|
|
6355
6386
|
}, (e) => {
|
|
6356
6387
|
_.value = 1, h.value = e;
|
|
6357
6388
|
});
|
|
@@ -6359,11 +6390,11 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6359
6390
|
}
|
|
6360
6391
|
{
|
|
6361
6392
|
let n = l.value.link.split(".")[0];
|
|
6362
|
-
|
|
6393
|
+
$r({
|
|
6363
6394
|
tableId: n,
|
|
6364
6395
|
...e
|
|
6365
6396
|
}).then(() => {
|
|
6366
|
-
|
|
6397
|
+
xo(), Qr({ tableId: n }).then((e) => {
|
|
6367
6398
|
let r = l.value.link.split("."), i;
|
|
6368
6399
|
if (l.value.linkFn) {
|
|
6369
6400
|
let t = l.value.linkFn;
|
|
@@ -6374,7 +6405,7 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6374
6405
|
disabled: e?.status === "0",
|
|
6375
6406
|
params: e
|
|
6376
6407
|
}));
|
|
6377
|
-
p.value = !1,
|
|
6408
|
+
p.value = !1, Bn(`tables_cache_link_${n}`), t("on-submit", i), S();
|
|
6378
6409
|
}).catch((e) => {
|
|
6379
6410
|
_.value = 1, h.value = e;
|
|
6380
6411
|
});
|
|
@@ -6396,11 +6427,11 @@ var rs = /*#__PURE__*/ W(Qo, [["render", ns]]), is = f({
|
|
|
6396
6427
|
}
|
|
6397
6428
|
};
|
|
6398
6429
|
}
|
|
6399
|
-
}),
|
|
6430
|
+
}), ps = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, ms = {
|
|
6400
6431
|
key: 0,
|
|
6401
6432
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
6402
|
-
},
|
|
6403
|
-
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) {
|
|
6404
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");
|
|
6405
6436
|
return S(), a(e, null, [u(x, {
|
|
6406
6437
|
show: t.drawer,
|
|
@@ -6426,7 +6457,7 @@ function ls(t, n, c, d, f, p) {
|
|
|
6426
6457
|
message: t.spinMsg,
|
|
6427
6458
|
status: t.spinStatus
|
|
6428
6459
|
}, {
|
|
6429
|
-
default: P(() => [o("div",
|
|
6460
|
+
default: P(() => [o("div", ps, [t.skeletonShow ? (S(), a("div", ms, [
|
|
6430
6461
|
u(m, {
|
|
6431
6462
|
size: "large",
|
|
6432
6463
|
style: { height: "156px" }
|
|
@@ -6489,7 +6520,7 @@ function ls(t, n, c, d, f, p) {
|
|
|
6489
6520
|
_: 2
|
|
6490
6521
|
}, [t.formStatus === 2 ? void 0 : {
|
|
6491
6522
|
name: "footer",
|
|
6492
|
-
fn: P(() => [o("div",
|
|
6523
|
+
fn: P(() => [o("div", hs, [t.isMobile ? i("", !0) : (S(), r(v, {
|
|
6493
6524
|
key: 0,
|
|
6494
6525
|
loading: t.spinShow,
|
|
6495
6526
|
type: "success",
|
|
@@ -6498,7 +6529,7 @@ function ls(t, n, c, d, f, p) {
|
|
|
6498
6529
|
}, {
|
|
6499
6530
|
default: P(() => [l(A(t.$t("OCR.ocr")), 1)]),
|
|
6500
6531
|
_: 1
|
|
6501
|
-
}, 8, ["loading"])), o("div",
|
|
6532
|
+
}, 8, ["loading"])), o("div", gs, [
|
|
6502
6533
|
u(v, {
|
|
6503
6534
|
loading: t.spinShow,
|
|
6504
6535
|
class: "uz-drawer-button",
|
|
@@ -6566,7 +6597,7 @@ function ls(t, n, c, d, f, p) {
|
|
|
6566
6597
|
_: 1
|
|
6567
6598
|
}, 8, ["show"])], 64);
|
|
6568
6599
|
}
|
|
6569
|
-
var
|
|
6600
|
+
var vs = /*#__PURE__*/ W(fs, [["render", _s]]), ys = f({
|
|
6570
6601
|
name: "UzTableMobileList",
|
|
6571
6602
|
props: {
|
|
6572
6603
|
tableData: {
|
|
@@ -6584,12 +6615,12 @@ var us = /*#__PURE__*/ W(is, [["render", ls]]), ds = f({
|
|
|
6584
6615
|
},
|
|
6585
6616
|
emits: ["update:row-keys"],
|
|
6586
6617
|
setup() {}
|
|
6587
|
-
}),
|
|
6618
|
+
}), bs = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, xs = {
|
|
6588
6619
|
key: 1,
|
|
6589
6620
|
class: "uz-table-mobile-group-txt"
|
|
6590
6621
|
};
|
|
6591
|
-
function
|
|
6592
|
-
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", {
|
|
6593
6624
|
key: n.key,
|
|
6594
6625
|
class: _(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
|
|
6595
6626
|
style: v(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
|
|
@@ -6600,11 +6631,11 @@ function ms(t, n, s, c, l, u) {
|
|
|
6600
6631
|
class: "mobile"
|
|
6601
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(() => {
|
|
6602
6633
|
if (t.tableData) return n.render(t.tableData, t.tableIndex);
|
|
6603
|
-
}), { key: 0 })) : (S(), a("div",
|
|
6634
|
+
}), { key: 0 })) : (S(), a("div", xs, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
6604
6635
|
}
|
|
6605
6636
|
//#endregion
|
|
6606
6637
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
6607
|
-
var
|
|
6638
|
+
var Cs = f({
|
|
6608
6639
|
name: "UzTableMobile",
|
|
6609
6640
|
components: {
|
|
6610
6641
|
NCheckbox: ie,
|
|
@@ -6612,7 +6643,7 @@ var hs = f({
|
|
|
6612
6643
|
NPagination: Te,
|
|
6613
6644
|
NCheckboxGroup: z,
|
|
6614
6645
|
NRadioGroup: ke,
|
|
6615
|
-
UzTableMobileList: /* @__PURE__ */ W(
|
|
6646
|
+
UzTableMobileList: /* @__PURE__ */ W(ys, [["render", Ss], ["__scopeId", "data-v-84c394fe"]])
|
|
6616
6647
|
},
|
|
6617
6648
|
props: {
|
|
6618
6649
|
tableData: {
|
|
@@ -6659,17 +6690,17 @@ var hs = f({
|
|
|
6659
6690
|
}
|
|
6660
6691
|
};
|
|
6661
6692
|
}
|
|
6662
|
-
}),
|
|
6693
|
+
}), ws = {
|
|
6663
6694
|
key: 0,
|
|
6664
6695
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6665
|
-
},
|
|
6696
|
+
}, Ts = {
|
|
6666
6697
|
key: 0,
|
|
6667
6698
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6668
|
-
},
|
|
6699
|
+
}, Es = {
|
|
6669
6700
|
key: 0,
|
|
6670
6701
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6671
6702
|
};
|
|
6672
|
-
function
|
|
6703
|
+
function Ds(t, n, o, s, c, l) {
|
|
6673
6704
|
let d = O("UzTableMobileList"), f = O("NCheckbox"), p = O("NPagination"), m = O("NCheckboxGroup"), h = O("NRadio"), g = O("NRadioGroup");
|
|
6674
6705
|
return t.selection === 2 ? (S(), r(m, {
|
|
6675
6706
|
key: 0,
|
|
@@ -6696,7 +6727,7 @@ function ys(t, n, o, s, c, l) {
|
|
|
6696
6727
|
"tableColumns"
|
|
6697
6728
|
])]),
|
|
6698
6729
|
_: 2
|
|
6699
|
-
}, 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, {
|
|
6700
6731
|
page: t.tableQueries.query.page,
|
|
6701
6732
|
"onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6702
6733
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6738,7 +6769,7 @@ function ys(t, n, o, s, c, l) {
|
|
|
6738
6769
|
"tableColumns"
|
|
6739
6770
|
])]),
|
|
6740
6771
|
_: 2
|
|
6741
|
-
}, 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, {
|
|
6742
6773
|
page: t.tableQueries.query.page,
|
|
6743
6774
|
"onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6744
6775
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6773,7 +6804,7 @@ function ys(t, n, o, s, c, l) {
|
|
|
6773
6804
|
"tableData",
|
|
6774
6805
|
"tableIndex",
|
|
6775
6806
|
"tableColumns"
|
|
6776
|
-
])]))), 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, {
|
|
6777
6808
|
page: t.tableQueries.query.page,
|
|
6778
6809
|
"onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6779
6810
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6786,10 +6817,10 @@ function ys(t, n, o, s, c, l) {
|
|
|
6786
6817
|
"onUpdate:page"
|
|
6787
6818
|
])])) : i("", !0)], 4));
|
|
6788
6819
|
}
|
|
6789
|
-
var
|
|
6820
|
+
var Os = /*#__PURE__*/ W(Cs, [["render", Ds], ["__scopeId", "data-v-70b54e3b"]]), ks = f({
|
|
6790
6821
|
name: "UzTableFile",
|
|
6791
6822
|
components: {
|
|
6792
|
-
UzIcon:
|
|
6823
|
+
UzIcon: gn,
|
|
6793
6824
|
NDropdown: fe,
|
|
6794
6825
|
NButton: R,
|
|
6795
6826
|
NModal: we,
|
|
@@ -6815,11 +6846,11 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6815
6846
|
let { t: n } = Ze(), r = Je(), i = Ue(), a = T(!1), o = T(!1), s = T(), c = T(""), l = T([{
|
|
6816
6847
|
label: n("Common.import"),
|
|
6817
6848
|
key: "import",
|
|
6818
|
-
icon: () => p(V, null, { default: () => p(
|
|
6849
|
+
icon: () => p(V, null, { default: () => p(gn, { icon: "CloudUpload" }) })
|
|
6819
6850
|
}, {
|
|
6820
6851
|
label: n("Common.export"),
|
|
6821
6852
|
key: "export",
|
|
6822
|
-
icon: () => p(V, null, { default: () => p(
|
|
6853
|
+
icon: () => p(V, null, { default: () => p(gn, { icon: "CloudDownload" }) })
|
|
6823
6854
|
}]), u = T([
|
|
6824
6855
|
{
|
|
6825
6856
|
title: "文件名称",
|
|
@@ -6862,14 +6893,14 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6862
6893
|
}), m = () => {
|
|
6863
6894
|
s.value = null;
|
|
6864
6895
|
}, h = () => {
|
|
6865
|
-
o.value || (o.value = !0,
|
|
6896
|
+
o.value || (o.value = !0, ii(r.params.id).then((t) => {
|
|
6866
6897
|
let n = document.createElement("a");
|
|
6867
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);
|
|
6868
6899
|
}).catch(() => null).finally(() => {
|
|
6869
6900
|
o.value = !1;
|
|
6870
6901
|
}));
|
|
6871
6902
|
}, g = () => {
|
|
6872
|
-
o.value || (o.value = !0,
|
|
6903
|
+
o.value || (o.value = !0, Xr("excel/import", s.value).then(() => {
|
|
6873
6904
|
i.success({
|
|
6874
6905
|
content: "导入执行中...",
|
|
6875
6906
|
duration: 3e3
|
|
@@ -6883,7 +6914,7 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6883
6914
|
o.value = !1, _();
|
|
6884
6915
|
}));
|
|
6885
6916
|
}, _ = () => {
|
|
6886
|
-
o.value || (o.value = !0,
|
|
6917
|
+
o.value || (o.value = !0, ai(r.params.id).then((e) => {
|
|
6887
6918
|
d.value = e;
|
|
6888
6919
|
}).catch(() => null).finally(() => {
|
|
6889
6920
|
o.value = !1;
|
|
@@ -6901,7 +6932,7 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6901
6932
|
return;
|
|
6902
6933
|
}
|
|
6903
6934
|
if (t === "export") {
|
|
6904
|
-
|
|
6935
|
+
zn.info({
|
|
6905
6936
|
title: "提示",
|
|
6906
6937
|
content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
|
|
6907
6938
|
positiveText: "确定",
|
|
@@ -6909,7 +6940,7 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6909
6940
|
draggable: !0,
|
|
6910
6941
|
onPositiveClick: () => {
|
|
6911
6942
|
let t = e.query ?? {};
|
|
6912
|
-
|
|
6943
|
+
oi({
|
|
6913
6944
|
tableKey: r.params.id,
|
|
6914
6945
|
...t
|
|
6915
6946
|
}).then(() => {
|
|
@@ -6935,11 +6966,11 @@ var bs = /*#__PURE__*/ W(hs, [["render", ys], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6935
6966
|
}
|
|
6936
6967
|
};
|
|
6937
6968
|
}
|
|
6938
|
-
}),
|
|
6969
|
+
}), As = { class: "uz-file-port-modal" }, js = {
|
|
6939
6970
|
key: 1,
|
|
6940
6971
|
class: "uz-file-port-panel"
|
|
6941
|
-
},
|
|
6942
|
-
function
|
|
6972
|
+
}, Ms = { class: "uz-flex uz-justify-between" };
|
|
6973
|
+
function Ns(t, n, i, s, c, d) {
|
|
6943
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");
|
|
6944
6975
|
return S(), a(e, null, [u(h, {
|
|
6945
6976
|
trigger: "hover",
|
|
@@ -6974,8 +7005,8 @@ function Ts(t, n, i, s, c, d) {
|
|
|
6974
7005
|
default: P(() => [...n[1] ||= [l(" 下载模板 ", -1)]]),
|
|
6975
7006
|
_: 1
|
|
6976
7007
|
}, 8, ["onClick"])]),
|
|
6977
|
-
default: P(() => [o("div",
|
|
6978
|
-
t.rawFile ? (S(), a("div",
|
|
7008
|
+
default: P(() => [o("div", As, [
|
|
7009
|
+
t.rawFile ? (S(), a("div", js, [
|
|
6979
7010
|
n[5] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
6980
7011
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6981
7012
|
viewBox: "0 0 24 24",
|
|
@@ -7022,7 +7053,7 @@ function Ts(t, n, i, s, c, d) {
|
|
|
7022
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)]]),
|
|
7023
7054
|
_: 1
|
|
7024
7055
|
}, 8, ["on-before-upload"])),
|
|
7025
|
-
o("div",
|
|
7056
|
+
o("div", Ms, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), u(m, {
|
|
7026
7057
|
onClick: t.init,
|
|
7027
7058
|
loading: t.loading,
|
|
7028
7059
|
secondary: ""
|
|
@@ -7045,7 +7076,7 @@ function Ts(t, n, i, s, c, d) {
|
|
|
7045
7076
|
_: 1
|
|
7046
7077
|
}, 8, ["show", "on-after-leave"])], 64);
|
|
7047
7078
|
}
|
|
7048
|
-
var
|
|
7079
|
+
var Ps = /*#__PURE__*/ W(ks, [["render", Ns], ["__scopeId", "data-v-21238151"]]), $ = w({
|
|
7049
7080
|
page: {
|
|
7050
7081
|
label: "首页",
|
|
7051
7082
|
key: "/",
|
|
@@ -7056,7 +7087,7 @@ var Es = /*#__PURE__*/ W(xs, [["render", Ts], ["__scopeId", "data-v-21238151"]])
|
|
|
7056
7087
|
active: "/",
|
|
7057
7088
|
thumbnail: []
|
|
7058
7089
|
});
|
|
7059
|
-
function
|
|
7090
|
+
function Fs(e) {
|
|
7060
7091
|
$.cache = e.cache, $.page = {
|
|
7061
7092
|
label: e.label,
|
|
7062
7093
|
key: e.key,
|
|
@@ -7071,35 +7102,35 @@ function Ds(e) {
|
|
|
7071
7102
|
closable: !1
|
|
7072
7103
|
}];
|
|
7073
7104
|
}
|
|
7074
|
-
function
|
|
7075
|
-
$.active = e,
|
|
7105
|
+
function Is(e) {
|
|
7106
|
+
$.active = e, G.push(e), J($.cache, $, 0);
|
|
7076
7107
|
}
|
|
7077
|
-
function
|
|
7108
|
+
function Ls(e, t) {
|
|
7078
7109
|
let n = $.thumbnail.find((t) => t.key === e);
|
|
7079
7110
|
n && (n.key = t, $.active = t, J($.cache, $, 0));
|
|
7080
7111
|
}
|
|
7081
|
-
function
|
|
7112
|
+
function Rs(e) {
|
|
7082
7113
|
let t = $.thumbnail.find((t) => t.path === e.key);
|
|
7083
|
-
t ? ($.active = t.key, J($.cache, $, 0),
|
|
7114
|
+
t ? ($.active = t.key, J($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
|
|
7084
7115
|
...e,
|
|
7085
7116
|
path: e.key,
|
|
7086
7117
|
closable: !0
|
|
7087
|
-
}),
|
|
7118
|
+
}), G.push(e.key));
|
|
7088
7119
|
}
|
|
7089
|
-
function
|
|
7120
|
+
function zs(e) {
|
|
7090
7121
|
let t = $.thumbnail.findIndex((t) => t.key === e);
|
|
7091
7122
|
if ($.thumbnail.splice(t, 1), $.active === e) {
|
|
7092
7123
|
let e = $.thumbnail[t - 1]?.key || "";
|
|
7093
|
-
$.active = e,
|
|
7124
|
+
$.active = e, G.push(e);
|
|
7094
7125
|
}
|
|
7095
7126
|
J($.cache, $, 0);
|
|
7096
7127
|
}
|
|
7097
|
-
function
|
|
7098
|
-
$.active = $.page.path, $.thumbnail = [$.page],
|
|
7128
|
+
function Bs() {
|
|
7129
|
+
$.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), J($.cache, $, 0);
|
|
7099
7130
|
}
|
|
7100
7131
|
//#endregion
|
|
7101
7132
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
7102
|
-
var
|
|
7133
|
+
var Vs = f({
|
|
7103
7134
|
name: "UzThumbnail",
|
|
7104
7135
|
components: {
|
|
7105
7136
|
NTabs: Ie,
|
|
@@ -7120,29 +7151,29 @@ var Ns = f({
|
|
|
7120
7151
|
setup(e, { slots: t }) {
|
|
7121
7152
|
let n = T(!!t.prefix), r = Je();
|
|
7122
7153
|
return b(() => {
|
|
7123
|
-
|
|
7154
|
+
Fs(e.option), $.active !== r.path && Ls(r.path, r.fullPath);
|
|
7124
7155
|
}), M(() => r, (e) => {
|
|
7125
|
-
$.active === r.path &&
|
|
7156
|
+
$.active === r.path && Ls(e.path, e.fullPath);
|
|
7126
7157
|
}, { deep: !0 }), M(() => e.option, (e) => {
|
|
7127
|
-
|
|
7158
|
+
Fs(e);
|
|
7128
7159
|
}, { deep: !0 }), {
|
|
7129
7160
|
thumbnailStore: $,
|
|
7130
7161
|
isSlotPrefix: n,
|
|
7131
7162
|
handleClose: (e) => {
|
|
7132
|
-
|
|
7163
|
+
zs(e);
|
|
7133
7164
|
},
|
|
7134
7165
|
handleChange: (e) => {
|
|
7135
|
-
|
|
7166
|
+
Is(e);
|
|
7136
7167
|
},
|
|
7137
7168
|
handleClear: () => {
|
|
7138
|
-
|
|
7169
|
+
Bs();
|
|
7139
7170
|
}
|
|
7140
7171
|
};
|
|
7141
7172
|
}
|
|
7142
7173
|
});
|
|
7143
7174
|
//#endregion
|
|
7144
7175
|
//#region components/thumbnail/index.vue
|
|
7145
|
-
function
|
|
7176
|
+
function Hs(t, n, i, o, c, d) {
|
|
7146
7177
|
let f = O("NTabPane"), p = O("UzIcon"), m = O("NIcon"), h = O("NButton"), g = O("NPopconfirm"), _ = O("NFlex"), v = O("NTabs");
|
|
7147
7178
|
return S(), r(v, {
|
|
7148
7179
|
value: t.thumbnailStore.active,
|
|
@@ -7191,33 +7222,33 @@ function Ps(t, n, i, o, c, d) {
|
|
|
7191
7222
|
"on-update:value"
|
|
7192
7223
|
]);
|
|
7193
7224
|
}
|
|
7194
|
-
var
|
|
7195
|
-
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover =
|
|
7196
|
-
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 = {
|
|
7197
7228
|
common: {
|
|
7198
7229
|
inputColor: "rgba(var(--input))",
|
|
7199
7230
|
borderColor: "rgba(var(--border), 0.7)",
|
|
7200
7231
|
borderRadius: "var(--borderRadius)",
|
|
7201
|
-
primaryColor:
|
|
7202
|
-
primaryColorHover:
|
|
7203
|
-
primaryColorPressed:
|
|
7204
|
-
primaryColorSuppl:
|
|
7205
|
-
infoColor:
|
|
7206
|
-
infoColorHover:
|
|
7207
|
-
infoColorPressed:
|
|
7208
|
-
infoColorSuppl:
|
|
7209
|
-
successColor:
|
|
7210
|
-
successColorHover:
|
|
7211
|
-
successColorPressed:
|
|
7212
|
-
successColorSuppl:
|
|
7213
|
-
warningColor:
|
|
7214
|
-
warningColorHover:
|
|
7215
|
-
warningColorPressed:
|
|
7216
|
-
warningColorSuppl:
|
|
7217
|
-
errorColor:
|
|
7218
|
-
errorColorHover:
|
|
7219
|
-
errorColorPressed:
|
|
7220
|
-
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,
|
|
7221
7252
|
cardColor: "#fff"
|
|
7222
7253
|
},
|
|
7223
7254
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -7231,7 +7262,7 @@ var Ks = {
|
|
|
7231
7262
|
borderRadius: "8px",
|
|
7232
7263
|
color: "#c0c0c0"
|
|
7233
7264
|
}
|
|
7234
|
-
},
|
|
7265
|
+
}, tc = H, nc = f({
|
|
7235
7266
|
name: "UzWrap",
|
|
7236
7267
|
components: { NConfigProvider: oe },
|
|
7237
7268
|
setup() {
|
|
@@ -7239,14 +7270,14 @@ var Ks = {
|
|
|
7239
7270
|
zhCN: We,
|
|
7240
7271
|
dateZhCN: He,
|
|
7241
7272
|
commonStore: K,
|
|
7242
|
-
lightTheme:
|
|
7243
|
-
darkTheme:
|
|
7273
|
+
lightTheme: ec,
|
|
7274
|
+
darkTheme: tc
|
|
7244
7275
|
};
|
|
7245
7276
|
}
|
|
7246
7277
|
});
|
|
7247
7278
|
//#endregion
|
|
7248
7279
|
//#region components/wrap/index.vue
|
|
7249
|
-
function
|
|
7280
|
+
function rc(e, t, n, i, a, o) {
|
|
7250
7281
|
let s = O("NConfigProvider");
|
|
7251
7282
|
return S(), r(s, {
|
|
7252
7283
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -7265,10 +7296,10 @@ function Ys(e, t, n, i, a, o) {
|
|
|
7265
7296
|
"date-locale"
|
|
7266
7297
|
]);
|
|
7267
7298
|
}
|
|
7268
|
-
var
|
|
7299
|
+
var ic = /*#__PURE__*/ W(nc, [["render", rc]]);
|
|
7269
7300
|
//#endregion
|
|
7270
7301
|
//#region components/ocr/preprocess.ts
|
|
7271
|
-
function
|
|
7302
|
+
function ac(e) {
|
|
7272
7303
|
let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
|
|
7273
7304
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
7274
7305
|
let r = 0;
|
|
@@ -7283,7 +7314,7 @@ function Zs(e) {
|
|
|
7283
7314
|
}
|
|
7284
7315
|
return c;
|
|
7285
7316
|
}
|
|
7286
|
-
function
|
|
7317
|
+
function oc(e, t) {
|
|
7287
7318
|
return new Promise((n, r) => {
|
|
7288
7319
|
let i = new Image();
|
|
7289
7320
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -7316,7 +7347,7 @@ function Qs(e, t) {
|
|
|
7316
7347
|
}
|
|
7317
7348
|
let u = t.threshold;
|
|
7318
7349
|
if (t.binarize) {
|
|
7319
|
-
t.autoThreshold && (u =
|
|
7350
|
+
t.autoThreshold && (u = ac(l));
|
|
7320
7351
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
7321
7352
|
let n = l[t] < u ? 0 : 255;
|
|
7322
7353
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -7339,7 +7370,7 @@ function Qs(e, t) {
|
|
|
7339
7370
|
}
|
|
7340
7371
|
//#endregion
|
|
7341
7372
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
7342
|
-
var
|
|
7373
|
+
var sc = f({
|
|
7343
7374
|
name: "UzOcr",
|
|
7344
7375
|
components: {
|
|
7345
7376
|
NButton: R,
|
|
@@ -7376,7 +7407,7 @@ var $s = f({
|
|
|
7376
7407
|
tessedit_char_blacklist: "|"
|
|
7377
7408
|
}), a.value), v = async () => {
|
|
7378
7409
|
if (f.value) try {
|
|
7379
|
-
let e = await
|
|
7410
|
+
let e = await oc(f.value, {
|
|
7380
7411
|
enabled: o.value,
|
|
7381
7412
|
scale: s.value,
|
|
7382
7413
|
grayscale: !0,
|
|
@@ -7413,7 +7444,7 @@ var $s = f({
|
|
|
7413
7444
|
t.value = !0, r.value = e("OCR.analysis");
|
|
7414
7445
|
let a = n;
|
|
7415
7446
|
if (o.value || s.value > 1) try {
|
|
7416
|
-
let e = await
|
|
7447
|
+
let e = await oc(n, {
|
|
7417
7448
|
enabled: o.value,
|
|
7418
7449
|
scale: s.value,
|
|
7419
7450
|
grayscale: !0,
|
|
@@ -7475,25 +7506,25 @@ var $s = f({
|
|
|
7475
7506
|
t: e
|
|
7476
7507
|
};
|
|
7477
7508
|
}
|
|
7478
|
-
}),
|
|
7509
|
+
}), cc = { class: "uz-ocr" }, lc = { class: "uz-ocr-left-col" }, uc = { class: "uz-ocr-upload-card" }, dc = { class: "uz-ocr-upload-title" }, fc = {
|
|
7479
7510
|
key: 1,
|
|
7480
7511
|
class: "uz-ocr-preview-panel"
|
|
7481
|
-
},
|
|
7512
|
+
}, pc = { class: "uz-ocr-preview-box" }, mc = ["src"], hc = {
|
|
7482
7513
|
key: 0,
|
|
7483
7514
|
class: "uz-ocr-threshold-badge"
|
|
7484
|
-
},
|
|
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 = {
|
|
7485
7516
|
key: 0,
|
|
7486
7517
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
7487
|
-
},
|
|
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 = {
|
|
7488
7519
|
key: 0,
|
|
7489
7520
|
class: "uz-ocr-empty-state"
|
|
7490
|
-
},
|
|
7521
|
+
}, Ac = { class: "uz-empty-text" }, jc = {
|
|
7491
7522
|
key: 1,
|
|
7492
7523
|
class: "uz-ocr-result-tabs"
|
|
7493
7524
|
};
|
|
7494
|
-
function
|
|
7525
|
+
function Mc(e, t, n, s, c, d) {
|
|
7495
7526
|
let f = O("NUpload"), p = O("NTabPane"), m = O("NTabs"), h = O("NButton"), g = O("NSpace"), _ = O("NSwitch"), v = O("NSelect");
|
|
7496
|
-
return S(), a("div",
|
|
7527
|
+
return S(), a("div", cc, [o("div", lc, [e.rawImage ? (S(), a("div", fc, [u(m, {
|
|
7497
7528
|
value: e.imagePreviewTab,
|
|
7498
7529
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
7499
7530
|
type: "segment",
|
|
@@ -7503,21 +7534,21 @@ function wc(e, t, n, s, c, d) {
|
|
|
7503
7534
|
name: "processed",
|
|
7504
7535
|
tab: e.t("OCR.previewProcessed")
|
|
7505
7536
|
}, {
|
|
7506
|
-
default: P(() => [o("div",
|
|
7537
|
+
default: P(() => [o("div", pc, [o("img", {
|
|
7507
7538
|
src: e.processedImage,
|
|
7508
7539
|
alt: "Processed Preview",
|
|
7509
7540
|
class: "uz-ocr-preview-img"
|
|
7510
|
-
}, null, 8,
|
|
7541
|
+
}, null, 8, mc), e.preEnabled && e.preBinarize ? (S(), a("div", hc, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
|
|
7511
7542
|
_: 1
|
|
7512
7543
|
}, 8, ["tab"]), u(p, {
|
|
7513
7544
|
name: "raw",
|
|
7514
7545
|
tab: e.t("OCR.previewRaw")
|
|
7515
7546
|
}, {
|
|
7516
|
-
default: P(() => [o("div",
|
|
7547
|
+
default: P(() => [o("div", gc, [o("img", {
|
|
7517
7548
|
src: e.rawImage,
|
|
7518
7549
|
alt: "Raw Preview",
|
|
7519
7550
|
class: "uz-ocr-preview-img"
|
|
7520
|
-
}, null, 8,
|
|
7551
|
+
}, null, 8, _c)])]),
|
|
7521
7552
|
_: 1
|
|
7522
7553
|
}, 8, ["tab"])]),
|
|
7523
7554
|
_: 1
|
|
@@ -7551,7 +7582,7 @@ function wc(e, t, n, s, c, d) {
|
|
|
7551
7582
|
"directory-dnd": "",
|
|
7552
7583
|
class: "uz-w-full"
|
|
7553
7584
|
}, {
|
|
7554
|
-
default: P(() => [o("div",
|
|
7585
|
+
default: P(() => [o("div", uc, [
|
|
7555
7586
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
7556
7587
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7557
7588
|
viewBox: "0 0 24 24",
|
|
@@ -7559,79 +7590,79 @@ function wc(e, t, n, s, c, d) {
|
|
|
7559
7590
|
height: "40",
|
|
7560
7591
|
fill: "currentColor"
|
|
7561
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),
|
|
7562
|
-
o("div",
|
|
7593
|
+
o("div", dc, A(e.t("OCR.scan")), 1),
|
|
7563
7594
|
t[5] ||= o("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
7564
7595
|
])]),
|
|
7565
7596
|
_: 1
|
|
7566
|
-
}, 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(_, {
|
|
7567
7598
|
value: e.preEnabled,
|
|
7568
7599
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
7569
7600
|
size: "small"
|
|
7570
|
-
}, 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, {
|
|
7571
7602
|
value: e.preScale,
|
|
7572
7603
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
7573
7604
|
options: e.scaleOptions,
|
|
7574
7605
|
size: "small",
|
|
7575
7606
|
class: "uz-settings-select"
|
|
7576
|
-
}, null, 8, ["value", "options"])]), o("div",
|
|
7607
|
+
}, null, 8, ["value", "options"])]), o("div", wc, [o("span", Tc, A(e.t("OCR.contrast")), 1), u(_, {
|
|
7577
7608
|
value: e.preContrast,
|
|
7578
7609
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
7579
7610
|
size: "small"
|
|
7580
|
-
}, 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)]))])]);
|
|
7581
7612
|
}
|
|
7582
|
-
var
|
|
7583
|
-
IconList: () =>
|
|
7584
|
-
ReIconList: () =>
|
|
7613
|
+
var Nc = /*#__PURE__*/ W(sc, [["render", Mc], ["__scopeId", "data-v-c7224ff5"]]), Pc = /* @__PURE__ */ dt({
|
|
7614
|
+
IconList: () => _n,
|
|
7615
|
+
ReIconList: () => hn,
|
|
7585
7616
|
UzActionButton: () => ft,
|
|
7586
|
-
UzBack: () =>
|
|
7587
|
-
UzBom: () =>
|
|
7588
|
-
UzCamera: () =>
|
|
7589
|
-
UzCircle: () =>
|
|
7590
|
-
UzDraggableForm: () =>
|
|
7591
|
-
UzForm: () =>
|
|
7592
|
-
UzFormItem: () =>
|
|
7593
|
-
UzFormItemImage: () =>
|
|
7594
|
-
UzFormItemTimesPicker: () =>
|
|
7595
|
-
UzFormItemUpload: () =>
|
|
7596
|
-
UzIcon: () =>
|
|
7597
|
-
UzOcr: () =>
|
|
7598
|
-
UzSearchBar: () =>
|
|
7599
|
-
UzSearchMobileBar: () =>
|
|
7600
|
-
UzSpin: () =>
|
|
7601
|
-
UzTable: () =>
|
|
7602
|
-
UzTableChild: () =>
|
|
7603
|
-
UzTableDrawer: () =>
|
|
7604
|
-
UzTableFile: () =>
|
|
7605
|
-
UzTableMobile: () =>
|
|
7606
|
-
UzTableQuestChild: () =>
|
|
7607
|
-
UzThumbnail: () =>
|
|
7608
|
-
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,
|
|
7609
7640
|
commonStore: () => K,
|
|
7610
|
-
fnActionReduction: () =>
|
|
7611
|
-
fnActionSimplify: () =>
|
|
7612
|
-
fnAddThumbnail: () =>
|
|
7613
|
-
fnClearAllThumbnail: () =>
|
|
7614
|
-
fnDeleteThumbnail: () =>
|
|
7615
|
-
fnGetTableData: () =>
|
|
7616
|
-
fnOptionReduction: () =>
|
|
7617
|
-
fnOptionSimplify: () =>
|
|
7618
|
-
fnPrepareFormData: () =>
|
|
7619
|
-
fnPrepareTableData: () =>
|
|
7620
|
-
fnRenderAction: () =>
|
|
7621
|
-
fnSetLang: () =>
|
|
7622
|
-
fnSetTheme: () =>
|
|
7623
|
-
fnSetThumbnail: () =>
|
|
7624
|
-
fnTableReduction: () =>
|
|
7625
|
-
fnTableSimplify: () =>
|
|
7626
|
-
fnTriggersReduction: () =>
|
|
7627
|
-
fnTriggersSimplify: () =>
|
|
7628
|
-
i18n: () =>
|
|
7629
|
-
}),
|
|
7630
|
-
function
|
|
7631
|
-
|
|
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;
|
|
7632
7663
|
}
|
|
7633
|
-
function
|
|
7634
|
-
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));
|
|
7635
7666
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
7636
7667
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
7637
7668
|
e = t > 1 ? 1 : t;
|
|
@@ -7639,17 +7670,17 @@ function jc() {
|
|
|
7639
7670
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
7640
7671
|
e = n > 1 ? 1 : n;
|
|
7641
7672
|
}
|
|
7642
|
-
|
|
7673
|
+
Lc.scale = e;
|
|
7643
7674
|
}
|
|
7644
|
-
function
|
|
7645
|
-
let e = $e(
|
|
7675
|
+
function Bc() {
|
|
7676
|
+
let e = $e(zc, 200);
|
|
7646
7677
|
return e(), window.addEventListener("resize", e), () => {
|
|
7647
|
-
|
|
7678
|
+
Fc = 3840, Ic = 2160, window.removeEventListener("resize", e);
|
|
7648
7679
|
};
|
|
7649
7680
|
}
|
|
7650
7681
|
//#endregion
|
|
7651
7682
|
//#region components/hooks/useThrottleFn.ts
|
|
7652
|
-
function
|
|
7683
|
+
function Vc(e, t = 1e3) {
|
|
7653
7684
|
let r = T(e), i = n(() => et((...e) => r.value([...e]), t));
|
|
7654
7685
|
return x(() => {
|
|
7655
7686
|
i.value.cancel();
|
|
@@ -7661,16 +7692,16 @@ function Nc(e, t = 1e3) {
|
|
|
7661
7692
|
}
|
|
7662
7693
|
//#endregion
|
|
7663
7694
|
//#region components/hooks/useLocalStorage.ts
|
|
7664
|
-
function
|
|
7695
|
+
function Hc(e, t) {
|
|
7665
7696
|
return [T(Y(e, t?.defaultValue)), (n) => {
|
|
7666
|
-
n === void 0 ?
|
|
7697
|
+
n === void 0 ? Bn(e) : J(e, n, t?.expired || "1 Day");
|
|
7667
7698
|
}];
|
|
7668
7699
|
}
|
|
7669
7700
|
//#endregion
|
|
7670
7701
|
//#region components/hooks/useQuery.ts
|
|
7671
|
-
function
|
|
7702
|
+
function Uc(e, t, n) {
|
|
7672
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 = () => {
|
|
7673
|
-
|
|
7704
|
+
Kr(), clearInterval(o.value), o.value = null;
|
|
7674
7705
|
}, p = async () => {
|
|
7675
7706
|
if (!s.value) {
|
|
7676
7707
|
h(!0, "loading");
|
|
@@ -7706,7 +7737,7 @@ function Fc(e, t, n) {
|
|
|
7706
7737
|
}, g = (e) => {
|
|
7707
7738
|
l.value = e;
|
|
7708
7739
|
}, _ = () => {
|
|
7709
|
-
|
|
7740
|
+
Kr(), i.value && i.value();
|
|
7710
7741
|
}, v = () => {
|
|
7711
7742
|
_(), p(), n?.pollingInterval && (f(), o.value = setInterval(() => {
|
|
7712
7743
|
p();
|
|
@@ -7734,26 +7765,26 @@ function Fc(e, t, n) {
|
|
|
7734
7765
|
}
|
|
7735
7766
|
//#endregion
|
|
7736
7767
|
//#region package.json
|
|
7737
|
-
var
|
|
7738
|
-
async function
|
|
7768
|
+
var Wc = "0.1.111", Gc;
|
|
7769
|
+
async function Kc() {
|
|
7739
7770
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7740
7771
|
method: "HEAD",
|
|
7741
7772
|
cache: "no-cache"
|
|
7742
7773
|
});
|
|
7743
7774
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
7744
7775
|
}
|
|
7745
|
-
async function
|
|
7746
|
-
let e = await
|
|
7747
|
-
|
|
7776
|
+
async function qc() {
|
|
7777
|
+
let e = await Kc();
|
|
7778
|
+
Gc !== e && Cn(!0);
|
|
7748
7779
|
}
|
|
7749
|
-
async function
|
|
7750
|
-
|
|
7751
|
-
|
|
7780
|
+
async function Jc() {
|
|
7781
|
+
Gc = await Kc(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
7782
|
+
qc();
|
|
7752
7783
|
}, 6e4);
|
|
7753
7784
|
}
|
|
7754
7785
|
//#endregion
|
|
7755
7786
|
//#region components/create.ts
|
|
7756
|
-
function
|
|
7787
|
+
function Yc({ components: e = [] } = {}) {
|
|
7757
7788
|
let t = [];
|
|
7758
7789
|
function n(e, t, n) {
|
|
7759
7790
|
e.component(t) || e.component(t, n);
|
|
@@ -7766,16 +7797,16 @@ function Vc({ components: e = [] } = {}) {
|
|
|
7766
7797
|
});
|
|
7767
7798
|
}), i)) {
|
|
7768
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);
|
|
7769
|
-
|
|
7800
|
+
wn(e), bn(o), xn(l), Sn(c), yn.global.locale.value = l, a && Jc(), t && Ir(r, t, n);
|
|
7770
7801
|
}
|
|
7771
7802
|
}
|
|
7772
7803
|
return {
|
|
7773
|
-
version:
|
|
7804
|
+
version: Wc,
|
|
7774
7805
|
install: r
|
|
7775
7806
|
};
|
|
7776
7807
|
}
|
|
7777
7808
|
//#endregion
|
|
7778
7809
|
//#region components/preset.ts
|
|
7779
|
-
var
|
|
7810
|
+
var Xc = Yc({ components: Object.keys(Pc).map((e) => Pc[e]) }), Zc = Xc.install;
|
|
7780
7811
|
//#endregion
|
|
7781
|
-
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 };
|