@unizhen/ui 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/ui.js
CHANGED
|
@@ -39,7 +39,7 @@ var at = Object.defineProperty, ot = (e, t) => {
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
setup(e) {
|
|
42
|
-
return () =>
|
|
42
|
+
return () => jd({
|
|
43
43
|
buttons: e.data,
|
|
44
44
|
rowData: e.rowData,
|
|
45
45
|
hProps: e.hProps
|
|
@@ -2026,35 +2026,140 @@ function Fu(e, t = "/") {
|
|
|
2026
2026
|
})
|
|
2027
2027
|
}), W;
|
|
2028
2028
|
}
|
|
2029
|
+
var G = Ye({
|
|
2030
|
+
legacy: !1,
|
|
2031
|
+
locale: "zh-CN",
|
|
2032
|
+
messages: {
|
|
2033
|
+
"en-US": {
|
|
2034
|
+
Common: {
|
|
2035
|
+
all: "All",
|
|
2036
|
+
add: "Insert",
|
|
2037
|
+
edit: "Edit",
|
|
2038
|
+
detail: "Detail",
|
|
2039
|
+
apply: "Apply",
|
|
2040
|
+
cancel: "Cancel",
|
|
2041
|
+
search: "Search",
|
|
2042
|
+
refresh: "Refresh",
|
|
2043
|
+
columns: "Columns",
|
|
2044
|
+
reset: "Reset",
|
|
2045
|
+
action: "Action",
|
|
2046
|
+
back: "Back",
|
|
2047
|
+
scan: "Scan",
|
|
2048
|
+
download: "Download"
|
|
2049
|
+
},
|
|
2050
|
+
Notice: {
|
|
2051
|
+
success: "Operation Success",
|
|
2052
|
+
failed: "Operation Failed",
|
|
2053
|
+
error: "An error occurred. Please try again later.",
|
|
2054
|
+
network: "Network Error"
|
|
2055
|
+
},
|
|
2056
|
+
OCR: {
|
|
2057
|
+
ocr: "OCR",
|
|
2058
|
+
scan: "Scan Photo",
|
|
2059
|
+
upload: "Uploading...",
|
|
2060
|
+
uploadError: "Upload Failed",
|
|
2061
|
+
analysis: "Analyzing...",
|
|
2062
|
+
analysisError: "Analysis Error"
|
|
2063
|
+
}
|
|
2064
|
+
},
|
|
2065
|
+
"zh-CN": {
|
|
2066
|
+
Common: {
|
|
2067
|
+
all: "全部",
|
|
2068
|
+
add: "新增",
|
|
2069
|
+
edit: "编辑",
|
|
2070
|
+
detail: "详情",
|
|
2071
|
+
apply: "保存",
|
|
2072
|
+
cancel: "取消",
|
|
2073
|
+
search: "查询",
|
|
2074
|
+
refresh: "刷新",
|
|
2075
|
+
columns: "字段",
|
|
2076
|
+
reset: "重置",
|
|
2077
|
+
action: "操作",
|
|
2078
|
+
back: "返回",
|
|
2079
|
+
scan: "扫一扫",
|
|
2080
|
+
download: "下载"
|
|
2081
|
+
},
|
|
2082
|
+
Notice: {
|
|
2083
|
+
success: "操作成功",
|
|
2084
|
+
failed: "操作失败",
|
|
2085
|
+
error: "发生错误,请重试。",
|
|
2086
|
+
network: "网络错误,请检查您的网络。"
|
|
2087
|
+
},
|
|
2088
|
+
OCR: {
|
|
2089
|
+
ocr: "智能识别",
|
|
2090
|
+
scan: "识别图片",
|
|
2091
|
+
upload: "上传中...",
|
|
2092
|
+
uploadError: "上传失败",
|
|
2093
|
+
analysis: "解析中...",
|
|
2094
|
+
analysisError: "解析错误"
|
|
2095
|
+
}
|
|
2096
|
+
},
|
|
2097
|
+
"fr-FR": {}
|
|
2098
|
+
}
|
|
2099
|
+
}), K = w({
|
|
2100
|
+
title: "杭州宇臻智能",
|
|
2101
|
+
needUpdate: !1,
|
|
2102
|
+
theme: !1,
|
|
2103
|
+
isMobile: !1,
|
|
2104
|
+
language: !1,
|
|
2105
|
+
lang: "zh-CN"
|
|
2106
|
+
});
|
|
2107
|
+
function Iu(e) {
|
|
2108
|
+
K.language = e;
|
|
2109
|
+
}
|
|
2110
|
+
function Lu(e) {
|
|
2111
|
+
let t;
|
|
2112
|
+
t = e || (K.lang === "zh-CN" ? "en-US" : "zh-CN"), J("lang", t, 0), K.lang = t;
|
|
2113
|
+
let n = document.body;
|
|
2114
|
+
n.dataset.lang = t, G.global.locale.value = t;
|
|
2115
|
+
}
|
|
2116
|
+
function Ru(e) {
|
|
2117
|
+
let t = document.body;
|
|
2118
|
+
t.classList.add("remove-all-transition");
|
|
2119
|
+
let n = document.querySelector("meta[name=theme-color]");
|
|
2120
|
+
e ? t.dataset.theme = "dark" : t.dataset.theme = "", n && (e ? n.setAttribute("content", "#2b2b2d") : n.setAttribute("content", "#ffffff")), K.theme = e, setTimeout(() => {
|
|
2121
|
+
t.classList.remove("remove-all-transition");
|
|
2122
|
+
}, 0);
|
|
2123
|
+
}
|
|
2124
|
+
function zu(e) {
|
|
2125
|
+
K.needUpdate = e;
|
|
2126
|
+
}
|
|
2127
|
+
function Bu(e) {
|
|
2128
|
+
K.title = e;
|
|
2129
|
+
}
|
|
2130
|
+
var Vu = () => {
|
|
2131
|
+
K.isMobile = window.screen.availWidth < 769;
|
|
2132
|
+
};
|
|
2133
|
+
window.addEventListener("resize", Vu), Vu();
|
|
2029
2134
|
//#endregion
|
|
2030
2135
|
//#region components/localStorage.ts
|
|
2031
|
-
var
|
|
2032
|
-
function
|
|
2033
|
-
|
|
2136
|
+
var Hu = window.localStorage;
|
|
2137
|
+
function Uu(e, t) {
|
|
2138
|
+
Hu.setItem(e, JSON.stringify(t));
|
|
2034
2139
|
}
|
|
2035
|
-
function
|
|
2036
|
-
let t =
|
|
2140
|
+
function Wu(e) {
|
|
2141
|
+
let t = Hu.getItem(e);
|
|
2037
2142
|
if (t) return JSON.parse(t);
|
|
2038
2143
|
}
|
|
2039
|
-
function
|
|
2040
|
-
|
|
2144
|
+
function Gu(e) {
|
|
2145
|
+
Hu.removeItem(e);
|
|
2041
2146
|
}
|
|
2042
|
-
function
|
|
2147
|
+
function Ku() {
|
|
2043
2148
|
return Date.parse(String(/* @__PURE__ */ new Date()));
|
|
2044
2149
|
}
|
|
2045
|
-
var
|
|
2150
|
+
var qu = "local-", Ju = new class {
|
|
2046
2151
|
namespace;
|
|
2047
2152
|
mapKey;
|
|
2048
2153
|
map;
|
|
2049
2154
|
constructor(e = "") {
|
|
2050
|
-
this.namespace = e, this.mapKey =
|
|
2155
|
+
this.namespace = e, this.mapKey = qu + this.namespace, this.map = Wu(this.mapKey) || {};
|
|
2051
2156
|
}
|
|
2052
2157
|
set(e, t, n = 0) {
|
|
2053
2158
|
let r = this.getReallyKey(e), i = {
|
|
2054
2159
|
expires: n,
|
|
2055
|
-
time:
|
|
2160
|
+
time: Ku()
|
|
2056
2161
|
};
|
|
2057
|
-
|
|
2162
|
+
Uu(r, t), this.map[e] = i, Uu(this.mapKey, this.map);
|
|
2058
2163
|
}
|
|
2059
2164
|
getReallyKey(e) {
|
|
2060
2165
|
return this.namespace + "-" + e;
|
|
@@ -2062,9 +2167,9 @@ var Vu = "local-", Hu = new class {
|
|
|
2062
2167
|
get(e, t) {
|
|
2063
2168
|
let n = this.getReallyKey(e), r = this.map[e];
|
|
2064
2169
|
if (r) {
|
|
2065
|
-
let i =
|
|
2170
|
+
let i = Wu(n);
|
|
2066
2171
|
if (r.expires > 0) {
|
|
2067
|
-
if (
|
|
2172
|
+
if (Ku() - r.time <= r.expires) return i === !1 || i ? i : t;
|
|
2068
2173
|
this.delete(e);
|
|
2069
2174
|
} else return i === !1 || i ? i : t;
|
|
2070
2175
|
}
|
|
@@ -2072,7 +2177,7 @@ var Vu = "local-", Hu = new class {
|
|
|
2072
2177
|
}
|
|
2073
2178
|
delete(e) {
|
|
2074
2179
|
let t = this.getReallyKey(e);
|
|
2075
|
-
delete this.map[e],
|
|
2180
|
+
delete this.map[e], Uu(this.mapKey, this.map), Gu(t);
|
|
2076
2181
|
}
|
|
2077
2182
|
deleteByPrefix(e) {
|
|
2078
2183
|
for (let t in this.map) t.indexOf(e) > -1 && this.delete(t);
|
|
@@ -2080,17 +2185,17 @@ var Vu = "local-", Hu = new class {
|
|
|
2080
2185
|
deleteAll() {
|
|
2081
2186
|
for (let e in this.map) this.delete(e);
|
|
2082
2187
|
}
|
|
2083
|
-
}("qx"), { notification:
|
|
2188
|
+
}("qx"), { notification: Yu, dialog: Xu } = Be(["notification", "dialog"], {
|
|
2084
2189
|
configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
|
|
2085
2190
|
notificationProviderProps: { placement: "bottom-right" }
|
|
2086
|
-
}),
|
|
2087
|
-
function
|
|
2088
|
-
console.log(e),
|
|
2191
|
+
}), Zu = Yu, Qu = Xu;
|
|
2192
|
+
function q(e) {
|
|
2193
|
+
console.log(e), Yu.error({
|
|
2089
2194
|
content: e.message,
|
|
2090
2195
|
duration: 3e3
|
|
2091
2196
|
});
|
|
2092
2197
|
}
|
|
2093
|
-
function
|
|
2198
|
+
function J(e, t, n = "1 Day") {
|
|
2094
2199
|
if (typeof n == "string") {
|
|
2095
2200
|
let e = 0, t = n.split(" ");
|
|
2096
2201
|
switch (t[1]) {
|
|
@@ -2109,18 +2214,18 @@ function K(e, t, n = "1 Day") {
|
|
|
2109
2214
|
}
|
|
2110
2215
|
n = Number(t[0]) * e;
|
|
2111
2216
|
}
|
|
2112
|
-
|
|
2113
|
-
}
|
|
2114
|
-
function
|
|
2115
|
-
return
|
|
2116
|
-
}
|
|
2117
|
-
var
|
|
2118
|
-
|
|
2119
|
-
},
|
|
2120
|
-
|
|
2121
|
-
},
|
|
2122
|
-
|
|
2123
|
-
},
|
|
2217
|
+
Ju.set(e, t, n);
|
|
2218
|
+
}
|
|
2219
|
+
function Y(e, t) {
|
|
2220
|
+
return Ju.get(e, t);
|
|
2221
|
+
}
|
|
2222
|
+
var $u = (e) => {
|
|
2223
|
+
Ju.delete(e);
|
|
2224
|
+
}, ed = (e) => {
|
|
2225
|
+
Ju.deleteByPrefix(e);
|
|
2226
|
+
}, td = () => {
|
|
2227
|
+
Ju.deleteAll();
|
|
2228
|
+
}, nd = (e = 0) => {
|
|
2124
2229
|
let t = document.documentElement, n = document.querySelectorAll(".uz-table-m-content");
|
|
2125
2230
|
t && (t.scrollTop = e, setTimeout(() => {
|
|
2126
2231
|
t.scrollTop = e;
|
|
@@ -2128,7 +2233,7 @@ var qu = (e) => {
|
|
|
2128
2233
|
t.scrollTop = e;
|
|
2129
2234
|
});
|
|
2130
2235
|
};
|
|
2131
|
-
function
|
|
2236
|
+
function rd(e) {
|
|
2132
2237
|
if (!e.records) {
|
|
2133
2238
|
let t = e;
|
|
2134
2239
|
return {
|
|
@@ -2172,7 +2277,7 @@ function Zu(e) {
|
|
|
2172
2277
|
records: e.records
|
|
2173
2278
|
};
|
|
2174
2279
|
}
|
|
2175
|
-
var
|
|
2280
|
+
var id = (e, t = "yyyy-MM-dd") => {
|
|
2176
2281
|
if (!e) return "";
|
|
2177
2282
|
typeof e == "string" && (e = e.replace(/年/g, "-").replace(/月/g, "-").replace(/日/g, ""));
|
|
2178
2283
|
let n = new Date(e);
|
|
@@ -2190,9 +2295,9 @@ var Qu = (e, t = "yyyy-MM-dd") => {
|
|
|
2190
2295
|
RegExp.$1.length !== 1 && (n = ("00" + r[e]).substr(("" + r[e]).length)), t = t.replace(RegExp.$1, n);
|
|
2191
2296
|
}
|
|
2192
2297
|
return t;
|
|
2193
|
-
},
|
|
2194
|
-
document.title = `${e} -
|
|
2195
|
-
},
|
|
2298
|
+
}, ad = (e) => {
|
|
2299
|
+
document.title = `${e} - ${K.title}`;
|
|
2300
|
+
}, od = (e, t = 500) => {
|
|
2196
2301
|
let n = e, r, i = !1, a = function(...e) {
|
|
2197
2302
|
if (i) {
|
|
2198
2303
|
n.apply(a, e), i = !1;
|
|
@@ -2204,10 +2309,10 @@ var Qu = (e, t = "yyyy-MM-dd") => {
|
|
|
2204
2309
|
};
|
|
2205
2310
|
return a;
|
|
2206
2311
|
};
|
|
2207
|
-
function
|
|
2312
|
+
function sd(e, t) {
|
|
2208
2313
|
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());
|
|
2209
2314
|
}
|
|
2210
|
-
function
|
|
2315
|
+
function cd(e, t = 0) {
|
|
2211
2316
|
let n = [
|
|
2212
2317
|
"",
|
|
2213
2318
|
"k",
|
|
@@ -2217,145 +2322,44 @@ function nd(e, t = 0) {
|
|
|
2217
2322
|
], r = Math.floor(Math.log10(Math.abs(e)) / 3), i = Math.max(0, Math.min(r, n.length - 1)), a = n[i];
|
|
2218
2323
|
return a ? (e / 10 ** (i * 3)).toFixed(t) + a : (e / 10 ** (i * 3)).toFixed(0);
|
|
2219
2324
|
}
|
|
2220
|
-
var J = Ye({
|
|
2221
|
-
legacy: !1,
|
|
2222
|
-
locale: "zh-CN",
|
|
2223
|
-
messages: {
|
|
2224
|
-
"en-US": {
|
|
2225
|
-
Common: {
|
|
2226
|
-
all: "All",
|
|
2227
|
-
add: "Insert",
|
|
2228
|
-
edit: "Edit",
|
|
2229
|
-
detail: "Detail",
|
|
2230
|
-
apply: "Apply",
|
|
2231
|
-
cancel: "Cancel",
|
|
2232
|
-
search: "Search",
|
|
2233
|
-
refresh: "Refresh",
|
|
2234
|
-
columns: "Columns",
|
|
2235
|
-
reset: "Reset",
|
|
2236
|
-
action: "Action",
|
|
2237
|
-
back: "Back",
|
|
2238
|
-
scan: "Scan",
|
|
2239
|
-
download: "Download"
|
|
2240
|
-
},
|
|
2241
|
-
Notice: {
|
|
2242
|
-
success: "Operation Success",
|
|
2243
|
-
failed: "Operation Failed",
|
|
2244
|
-
error: "An error occurred. Please try again later.",
|
|
2245
|
-
network: "Network Error"
|
|
2246
|
-
},
|
|
2247
|
-
OCR: {
|
|
2248
|
-
ocr: "OCR",
|
|
2249
|
-
scan: "Scan Photo",
|
|
2250
|
-
upload: "Uploading...",
|
|
2251
|
-
uploadError: "Upload Failed",
|
|
2252
|
-
analysis: "Analyzing...",
|
|
2253
|
-
analysisError: "Analysis Error"
|
|
2254
|
-
}
|
|
2255
|
-
},
|
|
2256
|
-
"zh-CN": {
|
|
2257
|
-
Common: {
|
|
2258
|
-
all: "全部",
|
|
2259
|
-
add: "新增",
|
|
2260
|
-
edit: "编辑",
|
|
2261
|
-
detail: "详情",
|
|
2262
|
-
apply: "保存",
|
|
2263
|
-
cancel: "取消",
|
|
2264
|
-
search: "查询",
|
|
2265
|
-
refresh: "刷新",
|
|
2266
|
-
columns: "字段",
|
|
2267
|
-
reset: "重置",
|
|
2268
|
-
action: "操作",
|
|
2269
|
-
back: "返回",
|
|
2270
|
-
scan: "扫一扫",
|
|
2271
|
-
download: "下载"
|
|
2272
|
-
},
|
|
2273
|
-
Notice: {
|
|
2274
|
-
success: "操作成功",
|
|
2275
|
-
failed: "操作失败",
|
|
2276
|
-
error: "发生错误,请重试。",
|
|
2277
|
-
network: "网络错误,请检查您的网络。"
|
|
2278
|
-
},
|
|
2279
|
-
OCR: {
|
|
2280
|
-
ocr: "智能识别",
|
|
2281
|
-
scan: "识别图片",
|
|
2282
|
-
upload: "上传中...",
|
|
2283
|
-
uploadError: "上传失败",
|
|
2284
|
-
analysis: "解析中...",
|
|
2285
|
-
analysisError: "解析错误"
|
|
2286
|
-
}
|
|
2287
|
-
},
|
|
2288
|
-
"fr-FR": {}
|
|
2289
|
-
}
|
|
2290
|
-
}), Y = w({
|
|
2291
|
-
needUpdate: !1,
|
|
2292
|
-
theme: !1,
|
|
2293
|
-
isMobile: !1,
|
|
2294
|
-
language: !1,
|
|
2295
|
-
lang: "zh-CN"
|
|
2296
|
-
});
|
|
2297
|
-
function rd(e) {
|
|
2298
|
-
Y.language = e;
|
|
2299
|
-
}
|
|
2300
|
-
function id(e) {
|
|
2301
|
-
let t;
|
|
2302
|
-
t = e || (Y.lang === "zh-CN" ? "en-US" : "zh-CN"), K("lang", t, 0), Y.lang = t;
|
|
2303
|
-
let n = document.body;
|
|
2304
|
-
n.dataset.lang = t, J.global.locale.value = t;
|
|
2305
|
-
}
|
|
2306
|
-
function ad(e) {
|
|
2307
|
-
let t = document.body;
|
|
2308
|
-
t.classList.add("remove-all-transition");
|
|
2309
|
-
let n = document.querySelector("meta[name=theme-color]");
|
|
2310
|
-
e ? t.dataset.theme = "dark" : t.dataset.theme = "", n && (e ? n.setAttribute("content", "#2b2b2d") : n.setAttribute("content", "#ffffff")), Y.theme = e, setTimeout(() => {
|
|
2311
|
-
t.classList.remove("remove-all-transition");
|
|
2312
|
-
}, 0);
|
|
2313
|
-
}
|
|
2314
|
-
function od(e) {
|
|
2315
|
-
Y.needUpdate = e;
|
|
2316
|
-
}
|
|
2317
|
-
var sd = () => {
|
|
2318
|
-
Y.isMobile = window.screen.availWidth < 769;
|
|
2319
|
-
};
|
|
2320
|
-
window.addEventListener("resize", sd), sd();
|
|
2321
2325
|
//#endregion
|
|
2322
2326
|
//#region components/fetch.ts
|
|
2323
|
-
var X = /* @__PURE__ */ new Map(),
|
|
2324
|
-
function
|
|
2327
|
+
var X = /* @__PURE__ */ new Map(), ld = Object.prototype.hasOwnProperty;
|
|
2328
|
+
function ud(e, t) {
|
|
2325
2329
|
let n = [];
|
|
2326
2330
|
for (let r in e) {
|
|
2327
|
-
if (!
|
|
2331
|
+
if (!ld.call(e, r)) continue;
|
|
2328
2332
|
let i = e[r], a = encodeURIComponent(r), o;
|
|
2329
|
-
o = typeof i == "object" ?
|
|
2333
|
+
o = typeof i == "object" ? ud(i, t ? t + "[" + a + "]" : a) : (t ? t + "[" + a + "]" : a) + "=" + encodeURIComponent(i), n.push(o);
|
|
2330
2334
|
}
|
|
2331
2335
|
return n.join("&");
|
|
2332
2336
|
}
|
|
2333
|
-
var
|
|
2337
|
+
var dd = (e) => {
|
|
2334
2338
|
let t = e["content-disposition"];
|
|
2335
2339
|
if (t) {
|
|
2336
2340
|
let e = t.match(/filename=(?<fileName>.+)/);
|
|
2337
2341
|
return e && e.groups && e.groups.fileName;
|
|
2338
2342
|
}
|
|
2339
2343
|
return "";
|
|
2340
|
-
},
|
|
2344
|
+
}, fd = We.create({
|
|
2341
2345
|
timeout: 3e5,
|
|
2342
2346
|
responseType: "json",
|
|
2343
2347
|
headers: { "Content-Type": "application/json" }
|
|
2344
2348
|
});
|
|
2345
|
-
|
|
2346
|
-
var
|
|
2347
|
-
|
|
2348
|
-
e.cancelToken =
|
|
2349
|
-
let t =
|
|
2349
|
+
fd.defaults.timeout = 3e5;
|
|
2350
|
+
var pd = We.CancelToken.source();
|
|
2351
|
+
fd.interceptors.request.use((e) => {
|
|
2352
|
+
e.cancelToken = pd.token, e.headers.Language = K.lang, e.headers.Platform = K.isMobile ? "mobile" : "pc";
|
|
2353
|
+
let t = Y("token", !1);
|
|
2350
2354
|
if (e.headers && t && (e.headers.token = t), e.method?.toLocaleUpperCase() === "GET") {
|
|
2351
|
-
let t =
|
|
2355
|
+
let t = ud(e.data);
|
|
2352
2356
|
t && (e.url = `${e.url}?${t}`);
|
|
2353
2357
|
}
|
|
2354
2358
|
return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
|
|
2355
|
-
}, (e) => Promise.reject(e)),
|
|
2359
|
+
}, (e) => Promise.reject(e)), fd.interceptors.response.use((e) => {
|
|
2356
2360
|
let t = e.data;
|
|
2357
|
-
if (t.code === 401 && (
|
|
2358
|
-
let t =
|
|
2361
|
+
if (t.code === 401 && ($u("token"), W.replace("/login")), e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
|
|
2362
|
+
let t = dd(e.headers);
|
|
2359
2363
|
return Promise.resolve({
|
|
2360
2364
|
fileName: decodeURIComponent(t),
|
|
2361
2365
|
data: e.data
|
|
@@ -2365,30 +2369,30 @@ dd.interceptors.request.use((e) => {
|
|
|
2365
2369
|
let e = t.data;
|
|
2366
2370
|
return Promise.resolve(e);
|
|
2367
2371
|
} else {
|
|
2368
|
-
|
|
2372
|
+
Zu.destroyAll();
|
|
2369
2373
|
let e = t.message;
|
|
2370
|
-
return
|
|
2371
|
-
content: e ||
|
|
2374
|
+
return Zu.error({
|
|
2375
|
+
content: e || G.global.t("Notice.error"),
|
|
2372
2376
|
duration: 3e3
|
|
2373
2377
|
}), Promise.reject(e);
|
|
2374
2378
|
}
|
|
2375
|
-
}, (e) => e ? (
|
|
2376
|
-
content:
|
|
2379
|
+
}, (e) => e ? (Zu.destroyAll(), e.code === "ERR_NETWORK" ? (Zu.error({
|
|
2380
|
+
content: G.global.t("Notice.network"),
|
|
2377
2381
|
duration: 3e3
|
|
2378
|
-
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (
|
|
2379
|
-
content:
|
|
2382
|
+
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && ($u("token"), window.location.href = "/login"), Zu.error({
|
|
2383
|
+
content: G.global.t("Notice.error"),
|
|
2380
2384
|
duration: 3e3
|
|
2381
|
-
}), Promise.reject(
|
|
2382
|
-
var
|
|
2383
|
-
|
|
2384
|
-
},
|
|
2385
|
+
}), Promise.reject(G.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(G.global.t("Notice.error")));
|
|
2386
|
+
var md = "/apiserver/", hd = () => {
|
|
2387
|
+
pd.cancel(), pd = We.CancelToken.source();
|
|
2388
|
+
}, gd = (e, t, n = "json", r = 3e5) => {
|
|
2385
2389
|
let i = JSON.stringify({
|
|
2386
2390
|
fetchUri: e,
|
|
2387
2391
|
...t
|
|
2388
2392
|
});
|
|
2389
2393
|
if (X.has(i)) return X.get(i);
|
|
2390
|
-
let a =
|
|
2391
|
-
url: `${
|
|
2394
|
+
let a = fd({
|
|
2395
|
+
url: `${md}${e}`,
|
|
2392
2396
|
method: "GET",
|
|
2393
2397
|
data: t,
|
|
2394
2398
|
responseType: n,
|
|
@@ -2403,47 +2407,47 @@ var pd = "/apiserver/", md = () => {
|
|
|
2403
2407
|
...t
|
|
2404
2408
|
});
|
|
2405
2409
|
if (X.has(i)) return X.get(i);
|
|
2406
|
-
let a =
|
|
2407
|
-
url: `${
|
|
2410
|
+
let a = fd({
|
|
2411
|
+
url: `${md}${e}`,
|
|
2408
2412
|
method: "POST",
|
|
2409
2413
|
data: t,
|
|
2410
2414
|
responseType: n,
|
|
2411
2415
|
timeout: r
|
|
2412
2416
|
}).then((e) => (X.delete(i), Promise.resolve(e))).catch((e) => (X.delete(i), Promise.reject(e)));
|
|
2413
2417
|
return X.set(i, a), a;
|
|
2414
|
-
},
|
|
2415
|
-
url: `${
|
|
2418
|
+
}, _d = (e, t = {}, n = "blob", r = 3e5) => fd({
|
|
2419
|
+
url: `${md}${e}`,
|
|
2416
2420
|
method: "POST",
|
|
2417
2421
|
data: t,
|
|
2418
2422
|
responseType: n,
|
|
2419
2423
|
timeout: r
|
|
2420
|
-
}),
|
|
2424
|
+
}), vd = (e) => fd(e), yd = (e, t) => fd({
|
|
2421
2425
|
headers: { "Content-Type": "multipart/form-data" },
|
|
2422
|
-
url: `${
|
|
2426
|
+
url: `${md}${e}`,
|
|
2423
2427
|
method: "POST",
|
|
2424
2428
|
data: t
|
|
2425
|
-
}),
|
|
2429
|
+
}), bd = (e) => Z("dynamic-table/queryById", { id: e }), xd = (e) => Z("dynamic-table/createTime", { id: e }), Sd = (e) => Z("table/query", e), Cd = (e) => Z("table/submit", e), wd = (e) => Z("table/delete", e), Td = (e, t, n) => Z("calculation/sqlExecute", {
|
|
2426
2430
|
calculationIds: e,
|
|
2427
2431
|
linkId: t,
|
|
2428
2432
|
...n
|
|
2429
|
-
}),
|
|
2433
|
+
}), Ed = (e, t) => f(Le, { style: { "max-width": "300px" } }, {
|
|
2430
2434
|
trigger: () => e,
|
|
2431
2435
|
default: () => typeof t == "function" ? t() : t
|
|
2432
|
-
}),
|
|
2436
|
+
}), Dd = (e, t, n, r) => {
|
|
2433
2437
|
try {
|
|
2434
2438
|
Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
|
|
2435
2439
|
n && n();
|
|
2436
|
-
}, (e) =>
|
|
2440
|
+
}, (e) => Sd({
|
|
2437
2441
|
id: e,
|
|
2438
2442
|
tableId: r
|
|
2439
|
-
}), (e) =>
|
|
2443
|
+
}), (e) => Cd({
|
|
2440
2444
|
tableId: r,
|
|
2441
2445
|
...e
|
|
2442
|
-
}),
|
|
2446
|
+
}), Zu, Z);
|
|
2443
2447
|
} catch (e) {
|
|
2444
|
-
|
|
2448
|
+
q(e);
|
|
2445
2449
|
}
|
|
2446
|
-
},
|
|
2450
|
+
}, Od = (e, t, n, r, i) => {
|
|
2447
2451
|
let a = {
|
|
2448
2452
|
quaternary: i?.quaternary || !1,
|
|
2449
2453
|
size: i?.size || "small",
|
|
@@ -2456,33 +2460,33 @@ var pd = "/apiserver/", md = () => {
|
|
|
2456
2460
|
if (!e.confirmText) {
|
|
2457
2461
|
if (e.onClick && typeof e.onClick == "string") {
|
|
2458
2462
|
let i = e.onClick;
|
|
2459
|
-
a.onClick = () =>
|
|
2463
|
+
a.onClick = () => Dd(i, t, n, r);
|
|
2460
2464
|
}
|
|
2461
2465
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
2462
2466
|
}
|
|
2463
2467
|
return e.icon && (o.icon = () => f(B, {}, { default: () => f(Nu, { icon: e.icon }, { default: () => null }) })), f(L, a, o);
|
|
2464
|
-
},
|
|
2468
|
+
}, kd = (e, t, n, r, i) => {
|
|
2465
2469
|
let a = { placement: "left" };
|
|
2466
2470
|
if (typeof t.onClick == "string") {
|
|
2467
2471
|
let e = t.onClick;
|
|
2468
|
-
a["on-positive-click"] = () =>
|
|
2472
|
+
a["on-positive-click"] = () => Dd(e, n, r, i);
|
|
2469
2473
|
} else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
|
|
2470
2474
|
return f(Ee, a, {
|
|
2471
2475
|
default: () => f("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
|
|
2472
2476
|
trigger: () => e
|
|
2473
2477
|
});
|
|
2474
|
-
},
|
|
2475
|
-
let a =
|
|
2476
|
-
return e.confirmText && (a =
|
|
2477
|
-
},
|
|
2478
|
+
}, Ad = (e, t, n, r, i) => {
|
|
2479
|
+
let a = Od(e, t, n, r, i);
|
|
2480
|
+
return e.confirmText && (a = kd(a, e, t, n, r)), !e.confirmText && e.tooltipText && (a = Ed(a, e.tooltipText)), a;
|
|
2481
|
+
}, jd = ({ buttons: e, rowData: t = {}, callback: n, tableId: r, hProps: i }) => {
|
|
2478
2482
|
let a = [];
|
|
2479
2483
|
return e.forEach((e) => {
|
|
2480
2484
|
if (e.type === "group") {
|
|
2481
2485
|
let o = [];
|
|
2482
2486
|
e.children && e.children.length > 0 && e.children.forEach((a, s) => {
|
|
2483
|
-
delete a.tooltipText, o.push(
|
|
2487
|
+
delete a.tooltipText, o.push(Ad(a, t, n, r, i)), s < e.children.length - 1 && o.push(f("div", { class: "uz-action-split" }, { default: () => "" }));
|
|
2484
2488
|
}), a.push(f(De, { trigger: "click" }, {
|
|
2485
|
-
trigger: () =>
|
|
2489
|
+
trigger: () => Od({
|
|
2486
2490
|
icon: e.icon,
|
|
2487
2491
|
color: e.color || "default",
|
|
2488
2492
|
buttonText: typeof e.buttonText == "function" ? e.buttonText() : e.buttonText,
|
|
@@ -2496,11 +2500,11 @@ var pd = "/apiserver/", md = () => {
|
|
|
2496
2500
|
}));
|
|
2497
2501
|
}
|
|
2498
2502
|
if (e.type === "normal") {
|
|
2499
|
-
let o =
|
|
2503
|
+
let o = Ad(e, t, n, r, i);
|
|
2500
2504
|
a.push(o);
|
|
2501
2505
|
}
|
|
2502
2506
|
}), f("div", { class: "uz-action-flex" }, { default: () => a });
|
|
2503
|
-
},
|
|
2507
|
+
}, Md = (e) => {
|
|
2504
2508
|
switch (e) {
|
|
2505
2509
|
case "tertiary": return 1;
|
|
2506
2510
|
case "primary": return 2;
|
|
@@ -2510,7 +2514,7 @@ var pd = "/apiserver/", md = () => {
|
|
|
2510
2514
|
case "error": return 6;
|
|
2511
2515
|
default: return 0;
|
|
2512
2516
|
}
|
|
2513
|
-
},
|
|
2517
|
+
}, Nd = (e) => {
|
|
2514
2518
|
switch (e) {
|
|
2515
2519
|
case 1: return "tertiary";
|
|
2516
2520
|
case 2: return "primary";
|
|
@@ -2520,7 +2524,7 @@ var pd = "/apiserver/", md = () => {
|
|
|
2520
2524
|
case 6: return "error";
|
|
2521
2525
|
default: return "default";
|
|
2522
2526
|
}
|
|
2523
|
-
},
|
|
2527
|
+
}, Pd = (e) => {
|
|
2524
2528
|
switch (e) {
|
|
2525
2529
|
case "detailInside": return 0;
|
|
2526
2530
|
case "editInside": return 1;
|
|
@@ -2529,7 +2533,7 @@ var pd = "/apiserver/", md = () => {
|
|
|
2529
2533
|
case "enabledInside": return 4;
|
|
2530
2534
|
default: return e;
|
|
2531
2535
|
}
|
|
2532
|
-
},
|
|
2536
|
+
}, Fd = (e) => {
|
|
2533
2537
|
switch (e) {
|
|
2534
2538
|
case 0: return "detailInside";
|
|
2535
2539
|
case 1: return "editInside";
|
|
@@ -2538,66 +2542,66 @@ var pd = "/apiserver/", md = () => {
|
|
|
2538
2542
|
case 4: return "enabledInside";
|
|
2539
2543
|
default: return e;
|
|
2540
2544
|
}
|
|
2541
|
-
},
|
|
2545
|
+
}, Id = (e) => ({
|
|
2542
2546
|
t: 0,
|
|
2543
2547
|
k: e.key,
|
|
2544
2548
|
d: e?.disabled,
|
|
2545
2549
|
l: e?.loading,
|
|
2546
2550
|
i: e?.icon,
|
|
2547
|
-
c:
|
|
2551
|
+
c: Md(e?.color),
|
|
2548
2552
|
b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
|
|
2549
2553
|
o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
|
|
2550
2554
|
p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
|
|
2551
2555
|
s: e?.optionsType,
|
|
2552
2556
|
u: e?.optionsSource,
|
|
2553
|
-
a:
|
|
2557
|
+
a: Pd(e?.action),
|
|
2554
2558
|
r: +!!e.footer,
|
|
2555
2559
|
g: +!!e.main,
|
|
2556
2560
|
h: +!!e.sub,
|
|
2557
2561
|
w: e?.width,
|
|
2558
2562
|
z: e?.onClick
|
|
2559
|
-
}),
|
|
2563
|
+
}), Ld = (e) => ({
|
|
2560
2564
|
type: "normal",
|
|
2561
2565
|
key: e.k,
|
|
2562
2566
|
disabled: e?.d,
|
|
2563
2567
|
loading: e?.l,
|
|
2564
2568
|
icon: e?.i,
|
|
2565
|
-
color:
|
|
2569
|
+
color: Nd(e?.c),
|
|
2566
2570
|
buttonText: e?.b ? decodeURIComponent(e?.b) : "",
|
|
2567
2571
|
confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
|
|
2568
2572
|
tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
|
|
2569
2573
|
optionsType: e?.s,
|
|
2570
2574
|
optionsSource: e?.u,
|
|
2571
|
-
action:
|
|
2575
|
+
action: Fd(e?.a),
|
|
2572
2576
|
footer: !!e.r,
|
|
2573
2577
|
sub: !!e.h,
|
|
2574
2578
|
main: !!e.g,
|
|
2575
2579
|
width: e?.w,
|
|
2576
2580
|
onClick: e?.z
|
|
2577
|
-
}),
|
|
2581
|
+
}), Rd = (e) => {
|
|
2578
2582
|
let t = [];
|
|
2579
|
-
for (let n of e) n.type === "normal" && t.push(
|
|
2583
|
+
for (let n of e) n.type === "normal" && t.push(Id(n)), n.type === "group" && t.push({
|
|
2580
2584
|
t: 1,
|
|
2581
2585
|
k: n.key,
|
|
2582
2586
|
i: n?.icon,
|
|
2583
|
-
x:
|
|
2587
|
+
x: Md(n?.color),
|
|
2584
2588
|
b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
|
|
2585
|
-
c: n.children.map((e) =>
|
|
2589
|
+
c: n.children.map((e) => Id(e))
|
|
2586
2590
|
});
|
|
2587
2591
|
return t;
|
|
2588
|
-
},
|
|
2592
|
+
}, zd = (e) => {
|
|
2589
2593
|
if (e && e[0] && e[0].type) return e;
|
|
2590
2594
|
let t = [];
|
|
2591
|
-
for (let n of e) n.t === 0 && t.push(
|
|
2595
|
+
for (let n of e) n.t === 0 && t.push(Ld(n)), n.t === 1 && t.push({
|
|
2592
2596
|
type: "group",
|
|
2593
2597
|
key: n.k,
|
|
2594
2598
|
icon: n?.i,
|
|
2595
|
-
color:
|
|
2599
|
+
color: Nd(n?.x),
|
|
2596
2600
|
buttonText: n?.b ? decodeURIComponent(n?.b) : "",
|
|
2597
|
-
children: n.c.map((e) =>
|
|
2601
|
+
children: n.c.map((e) => Ld(e))
|
|
2598
2602
|
});
|
|
2599
2603
|
return t;
|
|
2600
|
-
},
|
|
2604
|
+
}, Bd = d({
|
|
2601
2605
|
name: "UzBack",
|
|
2602
2606
|
components: {
|
|
2603
2607
|
ArrowNarrowLeft: tn,
|
|
@@ -2623,7 +2627,7 @@ var pd = "/apiserver/", md = () => {
|
|
|
2623
2627
|
});
|
|
2624
2628
|
//#endregion
|
|
2625
2629
|
//#region components/back/index.vue
|
|
2626
|
-
function
|
|
2630
|
+
function Vd(e, t, r, i, o, s) {
|
|
2627
2631
|
let c = O("ArrowNarrowLeft"), u = O("NIcon"), d = O("NButton");
|
|
2628
2632
|
return S(), n(d, {
|
|
2629
2633
|
quaternary: "",
|
|
@@ -2637,7 +2641,7 @@ function Bd(e, t, r, i, o, s) {
|
|
|
2637
2641
|
_: 1
|
|
2638
2642
|
}, 8, ["onClick"]);
|
|
2639
2643
|
}
|
|
2640
|
-
var
|
|
2644
|
+
var Hd = /* @__PURE__ */ U(Bd, [["render", Vd]]), Ud = 120, Wd = 10, Gd = Ud / 2, Kd = (Ud - 6 - Wd) / 2, qd = Kd * 2 * Math.PI, Jd = Kd * 1.5 * Math.PI, Yd = (e) => {
|
|
2641
2645
|
if (!e) return "";
|
|
2642
2646
|
let t = e.toLowerCase();
|
|
2643
2647
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -2651,7 +2655,7 @@ var Vd = /* @__PURE__ */ U(zd, [["render", Bd]]), Hd = 120, Ud = 10, Wd = Hd / 2
|
|
|
2651
2655
|
return e.join(",");
|
|
2652
2656
|
}
|
|
2653
2657
|
return "0,0,0";
|
|
2654
|
-
},
|
|
2658
|
+
}, Xd = d({
|
|
2655
2659
|
name: "UzCircle",
|
|
2656
2660
|
props: {
|
|
2657
2661
|
circle: {
|
|
@@ -2676,37 +2680,37 @@ var Vd = /* @__PURE__ */ U(zd, [["render", Bd]]), Hd = 120, Ud = 10, Wd = Hd / 2
|
|
|
2676
2680
|
setup(e) {
|
|
2677
2681
|
let n = T(), r = T(), i = T();
|
|
2678
2682
|
return {
|
|
2679
|
-
backgroundBg: t(() => `rgba(${
|
|
2683
|
+
backgroundBg: t(() => `rgba(${Yd(e.color)},0.1)`),
|
|
2680
2684
|
strokeDasharray: n,
|
|
2681
2685
|
centerTransform: r,
|
|
2682
2686
|
centerTransformUnit: i,
|
|
2683
|
-
colorA: t(() => `rgba(${
|
|
2687
|
+
colorA: t(() => `rgba(${Yd(e.color).split(",").map((e) => {
|
|
2684
2688
|
let t = Number(e) - 50;
|
|
2685
2689
|
return t < 0 && (t = 0), t;
|
|
2686
2690
|
})},1)`),
|
|
2687
|
-
colorB: t(() => `rgba(${
|
|
2691
|
+
colorB: t(() => `rgba(${Yd(e.color)},1)`),
|
|
2688
2692
|
calculateCircle: () => {
|
|
2689
2693
|
let t = 314 - Number(e.circle) * Math.PI;
|
|
2690
2694
|
return t <= 0 && (t = 0), `stroke-dashoffset: ${t}`;
|
|
2691
2695
|
},
|
|
2692
2696
|
calculateSemicircle: (t) => {
|
|
2693
|
-
n.value = `${
|
|
2697
|
+
n.value = `${Jd} ${qd}`, r.value = `translate(${Gd}, ${Gd + 9})`, i.value = `translate(${Gd}, ${Gd + 24})`;
|
|
2694
2698
|
let a = t || Number(e.circle);
|
|
2695
|
-
return a > 100 && (a = 100), a <= 0 && (a = 1e-4),
|
|
2699
|
+
return a > 100 && (a = 100), a <= 0 && (a = 1e-4), Jd * (1 - a / 100);
|
|
2696
2700
|
},
|
|
2697
2701
|
calculatePoint: () => `rotate(${-90 + Number(e.circle) * 3.6} 100 80) translate(50, 0)`
|
|
2698
2702
|
};
|
|
2699
2703
|
}
|
|
2700
|
-
}),
|
|
2704
|
+
}), Zd = { class: "uz-circle" }, Qd = {
|
|
2701
2705
|
key: 0,
|
|
2702
2706
|
viewBox: "40 20 120 120"
|
|
2703
|
-
},
|
|
2707
|
+
}, $d = {
|
|
2704
2708
|
id: "uz-progress-grad",
|
|
2705
2709
|
x1: "1",
|
|
2706
2710
|
y1: "1",
|
|
2707
2711
|
x2: "0",
|
|
2708
2712
|
y2: "0"
|
|
2709
|
-
},
|
|
2713
|
+
}, ef = ["stop-color"], tf = ["stop-color"], nf = ["stroke"], rf = ["transform"], af = {
|
|
2710
2714
|
dx: "100",
|
|
2711
2715
|
dy: "90",
|
|
2712
2716
|
"text-anchor": "middle",
|
|
@@ -2715,7 +2719,7 @@ var Vd = /* @__PURE__ */ U(zd, [["render", Bd]]), Hd = 120, Ud = 10, Wd = Hd / 2
|
|
|
2715
2719
|
"font-size": "2rem",
|
|
2716
2720
|
"font-weight": "400"
|
|
2717
2721
|
}
|
|
2718
|
-
},
|
|
2722
|
+
}, of = {
|
|
2719
2723
|
dx: "100",
|
|
2720
2724
|
dy: "105",
|
|
2721
2725
|
"text-anchor": "middle",
|
|
@@ -2724,26 +2728,26 @@ var Vd = /* @__PURE__ */ U(zd, [["render", Bd]]), Hd = 120, Ud = 10, Wd = Hd / 2
|
|
|
2724
2728
|
"font-size": "0.6rem",
|
|
2725
2729
|
"font-weight": "400"
|
|
2726
2730
|
}
|
|
2727
|
-
},
|
|
2731
|
+
}, sf = {
|
|
2728
2732
|
key: 1,
|
|
2729
2733
|
viewBox: "0 0 120 120"
|
|
2730
|
-
},
|
|
2734
|
+
}, cf = {
|
|
2731
2735
|
id: "progress-grad",
|
|
2732
2736
|
x1: "1",
|
|
2733
2737
|
y1: "1",
|
|
2734
2738
|
x2: "0",
|
|
2735
2739
|
y2: "0"
|
|
2736
|
-
},
|
|
2740
|
+
}, lf = ["stop-color"], uf = ["stop-color"], df = [
|
|
2737
2741
|
"stroke-dasharray",
|
|
2738
2742
|
"stroke-dashoffset",
|
|
2739
2743
|
"transform"
|
|
2740
|
-
],
|
|
2744
|
+
], ff = [
|
|
2741
2745
|
"stroke-dasharray",
|
|
2742
2746
|
"stroke-dashoffset",
|
|
2743
2747
|
"transform"
|
|
2744
|
-
],
|
|
2745
|
-
function
|
|
2746
|
-
return S(), i("div",
|
|
2748
|
+
], pf = ["stroke"], mf = ["transform"], hf = ["transform"];
|
|
2749
|
+
function gf(e, t, n, r, o, s) {
|
|
2750
|
+
return S(), i("div", Zd, [e.mode === 0 ? (S(), i("svg", Qd, [
|
|
2747
2751
|
a("defs", null, [t[0] ||= a("filter", { id: "uz-blurs" }, [
|
|
2748
2752
|
a("feOffset", {
|
|
2749
2753
|
result: "offOut",
|
|
@@ -2761,13 +2765,13 @@ function hf(e, t, n, r, o, s) {
|
|
|
2761
2765
|
in2: "blurOut",
|
|
2762
2766
|
mode: "normal"
|
|
2763
2767
|
})
|
|
2764
|
-
], -1), a("linearGradient",
|
|
2768
|
+
], -1), a("linearGradient", $d, [a("stop", {
|
|
2765
2769
|
offset: "0%",
|
|
2766
2770
|
"stop-color": e.colorA
|
|
2767
|
-
}, null, 8,
|
|
2771
|
+
}, null, 8, ef), a("stop", {
|
|
2768
2772
|
offset: "50%",
|
|
2769
2773
|
"stop-color": e.colorB
|
|
2770
|
-
}, null, 8,
|
|
2774
|
+
}, null, 8, tf)])]),
|
|
2771
2775
|
a("circle", {
|
|
2772
2776
|
transform: "rotate(-90 100 80)",
|
|
2773
2777
|
cx: "100",
|
|
@@ -2777,7 +2781,7 @@ function hf(e, t, n, r, o, s) {
|
|
|
2777
2781
|
"stroke-width": "10",
|
|
2778
2782
|
"stroke-dashoffset": "0",
|
|
2779
2783
|
stroke: e.backgroundBg
|
|
2780
|
-
}, null, 8,
|
|
2784
|
+
}, null, 8, nf),
|
|
2781
2785
|
a("circle", {
|
|
2782
2786
|
class: "uz-circle-round",
|
|
2783
2787
|
filter: "url(#uz-blurs)",
|
|
@@ -2800,10 +2804,10 @@ function hf(e, t, n, r, o, s) {
|
|
|
2800
2804
|
"stroke-width": "0",
|
|
2801
2805
|
transform: e.calculatePoint(),
|
|
2802
2806
|
fill: "#fff"
|
|
2803
|
-
}, null, 8,
|
|
2804
|
-
a("text",
|
|
2805
|
-
a("text",
|
|
2806
|
-
])) : (S(), i("svg",
|
|
2807
|
+
}, null, 8, rf),
|
|
2808
|
+
a("text", af, k(e.circle), 1),
|
|
2809
|
+
a("text", of, k(e.circleUnit), 1)
|
|
2810
|
+
])) : (S(), i("svg", sf, [
|
|
2807
2811
|
a("defs", null, [t[1] ||= a("filter", { id: "uz-blurs" }, [
|
|
2808
2812
|
a("feOffset", {
|
|
2809
2813
|
result: "offOut",
|
|
@@ -2821,13 +2825,13 @@ function hf(e, t, n, r, o, s) {
|
|
|
2821
2825
|
in2: "blurOut",
|
|
2822
2826
|
mode: "normal"
|
|
2823
2827
|
})
|
|
2824
|
-
], -1), a("linearGradient",
|
|
2828
|
+
], -1), a("linearGradient", cf, [a("stop", {
|
|
2825
2829
|
offset: "0%",
|
|
2826
2830
|
"stop-color": e.colorA
|
|
2827
|
-
}, null, 8,
|
|
2831
|
+
}, null, 8, lf), a("stop", {
|
|
2828
2832
|
offset: "50%",
|
|
2829
2833
|
"stop-color": e.colorB
|
|
2830
|
-
}, null, 8,
|
|
2834
|
+
}, null, 8, uf)])]),
|
|
2831
2835
|
a("g", {
|
|
2832
2836
|
fill: "none",
|
|
2833
2837
|
"stroke-dasharray": e.strokeDasharray,
|
|
@@ -2841,7 +2845,7 @@ function hf(e, t, n, r, o, s) {
|
|
|
2841
2845
|
stroke: "url(#progress-grad)",
|
|
2842
2846
|
transform: "rotate(-225)",
|
|
2843
2847
|
class: "uz-semicircle-round"
|
|
2844
|
-
}, null, -1)]], 8,
|
|
2848
|
+
}, null, -1)]], 8, df),
|
|
2845
2849
|
a("g", {
|
|
2846
2850
|
fill: "none",
|
|
2847
2851
|
"stroke-dasharray": e.strokeDasharray,
|
|
@@ -2853,7 +2857,7 @@ function hf(e, t, n, r, o, s) {
|
|
|
2853
2857
|
r: "52",
|
|
2854
2858
|
stroke: e.backgroundBg,
|
|
2855
2859
|
transform: "rotate(-225)"
|
|
2856
|
-
}, null, 8,
|
|
2860
|
+
}, null, 8, pf)], 8, ff),
|
|
2857
2861
|
a("text", {
|
|
2858
2862
|
fill: "var(--circle-color)",
|
|
2859
2863
|
"text-anchor": "middle",
|
|
@@ -2862,7 +2866,7 @@ function hf(e, t, n, r, o, s) {
|
|
|
2862
2866
|
"font-size": "2rem",
|
|
2863
2867
|
"font-weight": "400"
|
|
2864
2868
|
}
|
|
2865
|
-
}, k(e.circle), 9,
|
|
2869
|
+
}, k(e.circle), 9, mf),
|
|
2866
2870
|
a("text", {
|
|
2867
2871
|
cy: "90",
|
|
2868
2872
|
fill: "var(--circle-unit-color)",
|
|
@@ -2872,10 +2876,10 @@ function hf(e, t, n, r, o, s) {
|
|
|
2872
2876
|
"font-size": "0.6rem",
|
|
2873
2877
|
"font-weight": "400"
|
|
2874
2878
|
}
|
|
2875
|
-
}, k(e.circleUnit), 9,
|
|
2879
|
+
}, k(e.circleUnit), 9, hf)
|
|
2876
2880
|
]))]);
|
|
2877
2881
|
}
|
|
2878
|
-
var
|
|
2882
|
+
var _f = /* @__PURE__ */ U(Xd, [["render", gf]]), vf = d({
|
|
2879
2883
|
name: "UzFormItem",
|
|
2880
2884
|
components: {
|
|
2881
2885
|
NIcon: B,
|
|
@@ -2923,7 +2927,7 @@ var gf = /* @__PURE__ */ U(Yd, [["render", hf]]), _f = d({
|
|
|
2923
2927
|
setup(e) {
|
|
2924
2928
|
let n = p("mainFormValue"), r = T(!1), i = T([]);
|
|
2925
2929
|
return {
|
|
2926
|
-
isMobile: t(() =>
|
|
2930
|
+
isMobile: t(() => K.isMobile),
|
|
2927
2931
|
showDropdown: r,
|
|
2928
2932
|
dropdownOptions: i,
|
|
2929
2933
|
dayjs: et,
|
|
@@ -2938,10 +2942,10 @@ var gf = /* @__PURE__ */ U(Yd, [["render", hf]]), _f = d({
|
|
|
2938
2942
|
e.formValue[n] = t[n];
|
|
2939
2943
|
});
|
|
2940
2944
|
} catch (e) {
|
|
2941
|
-
|
|
2945
|
+
q(e);
|
|
2942
2946
|
}
|
|
2943
2947
|
} catch (e) {
|
|
2944
|
-
|
|
2948
|
+
q(e);
|
|
2945
2949
|
}
|
|
2946
2950
|
else t.form.updateValue(r, a, i, Z);
|
|
2947
2951
|
}
|
|
@@ -3007,8 +3011,8 @@ var gf = /* @__PURE__ */ U(Yd, [["render", hf]]), _f = d({
|
|
|
3007
3011
|
}
|
|
3008
3012
|
};
|
|
3009
3013
|
}
|
|
3010
|
-
}),
|
|
3011
|
-
function
|
|
3014
|
+
}), yf = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
3015
|
+
function bf(t, r, s, u, d, f) {
|
|
3012
3016
|
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"), ee = O("UzFormItemUpload");
|
|
3013
3017
|
return t.item.input === "input" ? (S(), n(p, {
|
|
3014
3018
|
key: 0,
|
|
@@ -3312,7 +3316,7 @@ function yf(t, r, s, u, d, f) {
|
|
|
3312
3316
|
value: t.formValue[t.item.key],
|
|
3313
3317
|
disabled: t.checkDisabled()
|
|
3314
3318
|
}, {
|
|
3315
|
-
default: N(() => [a("div",
|
|
3319
|
+
default: N(() => [a("div", yf, [(S(!0), i(e, null, E(t.item.params.options, (e) => (S(), n(x, {
|
|
3316
3320
|
key: e.value,
|
|
3317
3321
|
label: e.label,
|
|
3318
3322
|
value: e.value
|
|
@@ -3381,7 +3385,7 @@ function yf(t, r, s, u, d, f) {
|
|
|
3381
3385
|
"status"
|
|
3382
3386
|
])) : (S(), i(e, { key: 14 }, [], 64));
|
|
3383
3387
|
}
|
|
3384
|
-
var
|
|
3388
|
+
var xf = /* @__PURE__ */ U(vf, [["render", bf]]), Sf = d({
|
|
3385
3389
|
name: "UzForm",
|
|
3386
3390
|
components: {
|
|
3387
3391
|
NForm: me,
|
|
@@ -3389,7 +3393,7 @@ var bf = /* @__PURE__ */ U(_f, [["render", yf]]), xf = d({
|
|
|
3389
3393
|
NDivider: ce,
|
|
3390
3394
|
NButton: L,
|
|
3391
3395
|
NIcon: B,
|
|
3392
|
-
UzFormItem:
|
|
3396
|
+
UzFormItem: xf,
|
|
3393
3397
|
Plus: sc
|
|
3394
3398
|
},
|
|
3395
3399
|
props: {
|
|
@@ -3437,7 +3441,7 @@ var bf = /* @__PURE__ */ U(_f, [["render", yf]]), xf = d({
|
|
|
3437
3441
|
}).observe(e);
|
|
3438
3442
|
} } },
|
|
3439
3443
|
setup(e, { expose: n }) {
|
|
3440
|
-
let r = p("userStore"), i = t(() =>
|
|
3444
|
+
let r = p("userStore"), i = t(() => K.isMobile), a = T(), o = T(), s = T({}), c = T([]), l = T([]), u = T([]), d = T();
|
|
3441
3445
|
C("mainFormValue", {
|
|
3442
3446
|
value: () => s.value,
|
|
3443
3447
|
setValue: (e) => {
|
|
@@ -3467,12 +3471,12 @@ var bf = /* @__PURE__ */ U(_f, [["render", yf]]), xf = d({
|
|
|
3467
3471
|
}, m = (e, t) => {
|
|
3468
3472
|
switch (e) {
|
|
3469
3473
|
case "datetime":
|
|
3470
|
-
case "datetimerange": return
|
|
3474
|
+
case "datetimerange": return id(t, "yyyy-MM-dd hh:mm:ss");
|
|
3471
3475
|
case "month":
|
|
3472
|
-
case "monthrange": return
|
|
3476
|
+
case "monthrange": return id(t, "yyyy-MM");
|
|
3473
3477
|
case "year":
|
|
3474
|
-
case "yearrange": return
|
|
3475
|
-
default: return
|
|
3478
|
+
case "yearrange": return id(t, "yyyy");
|
|
3479
|
+
default: return id(t);
|
|
3476
3480
|
}
|
|
3477
3481
|
}, h = (e, t = !1) => {
|
|
3478
3482
|
let n = et(e).startOf("day").diff(et().startOf("day"), "day");
|
|
@@ -3589,8 +3593,8 @@ var bf = /* @__PURE__ */ U(_f, [["render", yf]]), xf = d({
|
|
|
3589
3593
|
}
|
|
3590
3594
|
};
|
|
3591
3595
|
}
|
|
3592
|
-
}),
|
|
3593
|
-
function
|
|
3596
|
+
}), Cf = ["onClick"];
|
|
3597
|
+
function wf(t, o, s, u, d, f) {
|
|
3594
3598
|
let p = O("Plus"), 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 = ee("media");
|
|
3595
3599
|
return S(), i(e, null, [l(C, {
|
|
3596
3600
|
ref: "formRef",
|
|
@@ -3618,7 +3622,7 @@ function Cf(t, o, s, u, d, f) {
|
|
|
3618
3622
|
}, [l(m, null, {
|
|
3619
3623
|
default: N(() => [l(p)]),
|
|
3620
3624
|
_: 1
|
|
3621
|
-
}), o[0] ||= c(" 新增 ", -1)], 8,
|
|
3625
|
+
}), o[0] ||= c(" 新增 ", -1)], 8, Cf)) : r("", !0),
|
|
3622
3626
|
s.form.showDays ? (S(), i("span", {
|
|
3623
3627
|
key: 1,
|
|
3624
3628
|
class: _(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
@@ -3679,7 +3683,7 @@ function Cf(t, o, s, u, d, f) {
|
|
|
3679
3683
|
onOnSubmit: t.refreshOption
|
|
3680
3684
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
3681
3685
|
}
|
|
3682
|
-
var
|
|
3686
|
+
var Tf = /* @__PURE__ */ U(Sf, [["render", wf]]), Ef = d({
|
|
3683
3687
|
name: "UzDraggableForm",
|
|
3684
3688
|
components: {
|
|
3685
3689
|
NForm: me,
|
|
@@ -3687,7 +3691,7 @@ var wf = /* @__PURE__ */ U(xf, [["render", Cf]]), Tf = d({
|
|
|
3687
3691
|
NButton: L,
|
|
3688
3692
|
NIcon: B,
|
|
3689
3693
|
NDivider: ce,
|
|
3690
|
-
UzFormItem:
|
|
3694
|
+
UzFormItem: xf,
|
|
3691
3695
|
Trash: _l,
|
|
3692
3696
|
Plus: sc,
|
|
3693
3697
|
Draggable: tt
|
|
@@ -3780,14 +3784,14 @@ var wf = /* @__PURE__ */ U(xf, [["render", Cf]]), Tf = d({
|
|
|
3780
3784
|
}
|
|
3781
3785
|
};
|
|
3782
3786
|
}
|
|
3783
|
-
}),
|
|
3787
|
+
}), Df = {
|
|
3784
3788
|
key: 0,
|
|
3785
3789
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
|
|
3786
|
-
},
|
|
3790
|
+
}, Of = {
|
|
3787
3791
|
key: 1,
|
|
3788
3792
|
class: "uz-form-item-add"
|
|
3789
3793
|
};
|
|
3790
|
-
function
|
|
3794
|
+
function kf(e, t, o, s, u, d) {
|
|
3791
3795
|
let f = O("Plus"), p = O("NIcon"), m = O("Trash"), g = O("NButton"), y = O("UzTableChild"), b = O("UzFormItem"), x = O("NFormItem"), C = O("Draggable", !0), w = O("NDivider"), T = O("NForm");
|
|
3792
3796
|
return S(), n(T, {
|
|
3793
3797
|
ref: "formRef",
|
|
@@ -3823,11 +3827,11 @@ function Of(e, t, o, s, u, d) {
|
|
|
3823
3827
|
}, {
|
|
3824
3828
|
label: N(() => [
|
|
3825
3829
|
a("div", null, k(typeof o.label == "function" ? o.label() : o.label), 1),
|
|
3826
|
-
o.source && o.form.createButton ? (S(), i("a",
|
|
3830
|
+
o.source && o.form.createButton ? (S(), i("a", Df, [l(p, null, {
|
|
3827
3831
|
default: N(() => [l(f)]),
|
|
3828
3832
|
_: 1
|
|
3829
3833
|
}), t[1] ||= c(" 新增 ", -1)])) : r("", !0),
|
|
3830
|
-
o.form.showDays ? (S(), i("span",
|
|
3834
|
+
o.form.showDays ? (S(), i("span", Of, " showDays ")) : r("", !0)
|
|
3831
3835
|
]),
|
|
3832
3836
|
default: N(() => [e.formItemIndex[0] === s && e.formItemIndex[1] === -1 ? (S(), n(g, {
|
|
3833
3837
|
key: 0,
|
|
@@ -3953,7 +3957,7 @@ function Of(e, t, o, s, u, d) {
|
|
|
3953
3957
|
"onClick"
|
|
3954
3958
|
]);
|
|
3955
3959
|
}
|
|
3956
|
-
var
|
|
3960
|
+
var Af = /* @__PURE__ */ U(Ef, [["render", kf]]), jf = d({
|
|
3957
3961
|
name: "UzFormItemUpload",
|
|
3958
3962
|
components: {
|
|
3959
3963
|
NUpload: Re,
|
|
@@ -4003,7 +4007,7 @@ var kf = /* @__PURE__ */ U(Tf, [["render", Of]]), Af = d({
|
|
|
4003
4007
|
}), o();
|
|
4004
4008
|
else {
|
|
4005
4009
|
let s = new FormData();
|
|
4006
|
-
s.append("file", e.file.file), s.append("name", e.file.name),
|
|
4010
|
+
s.append("file", e.file.file), s.append("name", e.file.name), yd("file/cos/upload", s).then((o) => {
|
|
4007
4011
|
i.value.push({
|
|
4008
4012
|
id: e.file.id,
|
|
4009
4013
|
name: e.file.name,
|
|
@@ -4069,8 +4073,8 @@ var kf = /* @__PURE__ */ U(Tf, [["render", Of]]), Af = d({
|
|
|
4069
4073
|
}
|
|
4070
4074
|
};
|
|
4071
4075
|
}
|
|
4072
|
-
}),
|
|
4073
|
-
function
|
|
4076
|
+
}), Mf = { class: "uz-form-upload-item-inner" }, Nf = ["title"], Pf = { key: 0 };
|
|
4077
|
+
function Ff(t, o, s, u, d, f) {
|
|
4074
4078
|
let p = O("CloudUpload"), m = O("NIcon"), h = O("NUploadDragger"), g = O("NUpload"), _ = O("PhotoOff"), v = O("NImage"), y = O("FileText"), b = O("Trash"), x = O("NButton"), C = O("NPopconfirm"), w = O("CloudDownload"), T = O("NSpin");
|
|
4075
4079
|
return S(), n(T, {
|
|
4076
4080
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
@@ -4124,10 +4128,10 @@ function Pf(t, o, s, u, d, f) {
|
|
|
4124
4128
|
}, {
|
|
4125
4129
|
default: N(() => [l(y)]),
|
|
4126
4130
|
_: 1
|
|
4127
|
-
}, 8, ["onClick"])), a("div",
|
|
4131
|
+
}, 8, ["onClick"])), a("div", Mf, [a("div", {
|
|
4128
4132
|
class: "uz-form-upload-title uz-truncate",
|
|
4129
4133
|
title: e.name
|
|
4130
|
-
}, k(e.name), 9,
|
|
4134
|
+
}, k(e.name), 9, Nf), t.status === 2 ? r("", !0) : (S(), i("div", Pf, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
|
|
4131
4135
|
trigger: N(() => [l(x, {
|
|
4132
4136
|
size: "small",
|
|
4133
4137
|
tertiary: ""
|
|
@@ -4156,7 +4160,7 @@ function Pf(t, o, s, u, d, f) {
|
|
|
4156
4160
|
_: 1
|
|
4157
4161
|
}, 8, ["show"]);
|
|
4158
4162
|
}
|
|
4159
|
-
var
|
|
4163
|
+
var If = /* @__PURE__ */ U(jf, [["render", Ff], ["__scopeId", "data-v-d4bd872d"]]), Lf = d({
|
|
4160
4164
|
name: "UzFormItemImage",
|
|
4161
4165
|
components: {
|
|
4162
4166
|
NImageGroup: ye,
|
|
@@ -4202,11 +4206,11 @@ var Ff = /* @__PURE__ */ U(Af, [["render", Pf], ["__scopeId", "data-v-d4bd872d"]
|
|
|
4202
4206
|
}
|
|
4203
4207
|
};
|
|
4204
4208
|
}
|
|
4205
|
-
}),
|
|
4206
|
-
function
|
|
4209
|
+
}), Rf = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
|
|
4210
|
+
function zf(t, r, o, s, u, d) {
|
|
4207
4211
|
let f = O("PhotoOff"), p = O("NIcon"), m = O("NImage"), h = O("FileText"), g = O("NPopover"), _ = O("NImageGroup");
|
|
4208
4212
|
return S(), n(_, null, {
|
|
4209
|
-
default: N(() => [a("div",
|
|
4213
|
+
default: N(() => [a("div", Rf, [(S(!0), i(e, null, E(t.imgs, (r) => (S(), i(e, null, [t.isAssetTypeAnImage(r) ? (S(), n(m, {
|
|
4210
4214
|
key: 0,
|
|
4211
4215
|
width: "40",
|
|
4212
4216
|
src: r
|
|
@@ -4238,7 +4242,7 @@ function Rf(t, r, o, s, u, d) {
|
|
|
4238
4242
|
_: 1
|
|
4239
4243
|
});
|
|
4240
4244
|
}
|
|
4241
|
-
var
|
|
4245
|
+
var Bf = /* @__PURE__ */ U(Lf, [["render", zf]]), Vf = d({
|
|
4242
4246
|
name: "UzFormItemTimesPicker",
|
|
4243
4247
|
components: { NSelect: Ae },
|
|
4244
4248
|
props: {
|
|
@@ -4288,10 +4292,10 @@ var zf = /* @__PURE__ */ U(If, [["render", Rf]]), Bf = d({
|
|
|
4288
4292
|
}
|
|
4289
4293
|
};
|
|
4290
4294
|
}
|
|
4291
|
-
}),
|
|
4292
|
-
function
|
|
4295
|
+
}), Hf = { class: "times-picker" };
|
|
4296
|
+
function Uf(e, t, n, r, a, o) {
|
|
4293
4297
|
let s = O("NSelect");
|
|
4294
|
-
return S(), i("div",
|
|
4298
|
+
return S(), i("div", Hf, [
|
|
4295
4299
|
l(s, {
|
|
4296
4300
|
value: e.h,
|
|
4297
4301
|
options: e.times,
|
|
@@ -4339,7 +4343,7 @@ function Hf(e, t, n, r, a, o) {
|
|
|
4339
4343
|
])
|
|
4340
4344
|
]);
|
|
4341
4345
|
}
|
|
4342
|
-
var
|
|
4346
|
+
var Wf = /* @__PURE__ */ U(Vf, [["render", Uf], ["__scopeId", "data-v-c90165b1"]]), Gf = d({
|
|
4343
4347
|
name: "UzCamera",
|
|
4344
4348
|
components: {
|
|
4345
4349
|
NButton: L,
|
|
@@ -4398,7 +4402,7 @@ var Uf = /* @__PURE__ */ U(Bf, [["render", Hf], ["__scopeId", "data-v-c90165b1"]
|
|
|
4398
4402
|
try {
|
|
4399
4403
|
e.getCapabilities().focusDistance && await e.applyConstraints({ advanced: [{ autoFocus: "continuous" }] });
|
|
4400
4404
|
} catch (e) {
|
|
4401
|
-
|
|
4405
|
+
q(e);
|
|
4402
4406
|
}
|
|
4403
4407
|
}, m = () => {
|
|
4404
4408
|
r.value = !0, g(async () => {
|
|
@@ -4431,11 +4435,11 @@ var Uf = /* @__PURE__ */ U(Bf, [["render", Hf], ["__scopeId", "data-v-c90165b1"]
|
|
|
4431
4435
|
closeAll: d
|
|
4432
4436
|
};
|
|
4433
4437
|
}
|
|
4434
|
-
}),
|
|
4438
|
+
}), Kf = ["width", "height"], qf = ["width", "height"], Jf = { class: "uz-scan-video" }, Yf = {
|
|
4435
4439
|
ref: "videoRef",
|
|
4436
4440
|
playsInline: ""
|
|
4437
4441
|
};
|
|
4438
|
-
function
|
|
4442
|
+
function Xf(t, o, s, l, u, d) {
|
|
4439
4443
|
let f = O("NButton"), p = O("NModal");
|
|
4440
4444
|
return S(), i(e, null, [
|
|
4441
4445
|
t.mode === "button" ? (S(), n(f, {
|
|
@@ -4467,7 +4471,7 @@ function Yf(t, o, s, l, u, d) {
|
|
|
4467
4471
|
id: "uz-scan-canvas",
|
|
4468
4472
|
width: t.width,
|
|
4469
4473
|
height: t.height
|
|
4470
|
-
}, null, 8,
|
|
4474
|
+
}, null, 8, Kf)], 4)]),
|
|
4471
4475
|
_: 1
|
|
4472
4476
|
}, 8, [
|
|
4473
4477
|
"show",
|
|
@@ -4485,11 +4489,11 @@ function Yf(t, o, s, l, u, d) {
|
|
|
4485
4489
|
id: "uz-scan-canvas",
|
|
4486
4490
|
width: t.width,
|
|
4487
4491
|
height: t.height
|
|
4488
|
-
}, null, 8,
|
|
4489
|
-
a("div",
|
|
4492
|
+
}, null, 8, qf)], 4)) : r("", !0),
|
|
4493
|
+
a("div", Jf, [a("video", Yf, null, 512)])
|
|
4490
4494
|
], 64);
|
|
4491
4495
|
}
|
|
4492
|
-
var
|
|
4496
|
+
var Zf = /* @__PURE__ */ U(Gf, [["render", Xf]]), Qf = d({
|
|
4493
4497
|
name: "UzSearchBar",
|
|
4494
4498
|
components: {
|
|
4495
4499
|
NIcon: B,
|
|
@@ -4500,7 +4504,7 @@ var Xf = /* @__PURE__ */ U(Wf, [["render", Yf]]), Zf = d({
|
|
|
4500
4504
|
NInputGroup: xe,
|
|
4501
4505
|
NInputGroupLabel: Se,
|
|
4502
4506
|
NPopover: De,
|
|
4503
|
-
UzFormItem:
|
|
4507
|
+
UzFormItem: xf,
|
|
4504
4508
|
CaretDown: Mr,
|
|
4505
4509
|
Refresh: Dc,
|
|
4506
4510
|
Search: qc,
|
|
@@ -4603,7 +4607,7 @@ var Xf = /* @__PURE__ */ U(Wf, [["render", Yf]]), Zf = d({
|
|
|
4603
4607
|
if (m.value = [], t && t.length > 0) {
|
|
4604
4608
|
let { data: o, values: s } = x(H(t)), c = {}, l = e.id || n.params.id;
|
|
4605
4609
|
if (e.cache && l) {
|
|
4606
|
-
let e =
|
|
4610
|
+
let e = Y(`tables_${l}`, !1);
|
|
4607
4611
|
e && e.params.forEach((e) => {
|
|
4608
4612
|
c[e.key] = e.value;
|
|
4609
4613
|
});
|
|
@@ -4646,19 +4650,19 @@ var Xf = /* @__PURE__ */ U(Wf, [["render", Yf]]), Zf = d({
|
|
|
4646
4650
|
tabButtonType: b
|
|
4647
4651
|
};
|
|
4648
4652
|
}
|
|
4649
|
-
}),
|
|
4653
|
+
}), $f = {
|
|
4650
4654
|
key: 0,
|
|
4651
4655
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-w-full"
|
|
4652
|
-
},
|
|
4656
|
+
}, ep = { class: "uz-flex-1" }, tp = {
|
|
4653
4657
|
key: 1,
|
|
4654
4658
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
4655
4659
|
};
|
|
4656
|
-
function
|
|
4660
|
+
function np(t, a, o, s, u, d) {
|
|
4657
4661
|
let f = O("NButton"), p = O("NButtonGroup"), m = O("NGridItem"), h = O("NInputGroupLabel"), g = O("NPopover"), v = O("UzFormItem"), y = O("NInputGroup"), b = O("NGrid"), x = O("CaretDown"), C = O("NIcon"), w = O("Search"), T = O("Refresh"), te = ee("media");
|
|
4658
4662
|
return S(), i("div", {
|
|
4659
4663
|
class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
|
|
4660
4664
|
onKeyup: a[1] ||= F((e) => t.doSearch(!1), ["enter"])
|
|
4661
|
-
}, [t.enableHeader ? (S(), i("div",
|
|
4665
|
+
}, [t.enableHeader ? (S(), i("div", $f, [D(t.$slots, "header"), P((S(), i("div", ep, [l(b, {
|
|
4662
4666
|
"x-gap": "8",
|
|
4663
4667
|
"y-gap": "8",
|
|
4664
4668
|
cols: t.cols,
|
|
@@ -4715,7 +4719,7 @@ function tp(t, a, o, s, u, d) {
|
|
|
4715
4719
|
}, 1032, ["span"]))), 128))
|
|
4716
4720
|
]),
|
|
4717
4721
|
_: 1
|
|
4718
|
-
}, 8, ["cols", "collapsed"])])), [[te]])])) : r("", !0), t.enableHeader ? (S(), i("div",
|
|
4722
|
+
}, 8, ["cols", "collapsed"])])), [[te]])])) : r("", !0), t.enableHeader ? (S(), i("div", tp, [
|
|
4719
4723
|
t.more ? (S(), n(f, {
|
|
4720
4724
|
key: 0,
|
|
4721
4725
|
quaternary: "",
|
|
@@ -4759,7 +4763,7 @@ function tp(t, a, o, s, u, d) {
|
|
|
4759
4763
|
D(t.$slots, "action")
|
|
4760
4764
|
])) : r("", !0)], 32);
|
|
4761
4765
|
}
|
|
4762
|
-
var
|
|
4766
|
+
var rp = /* @__PURE__ */ U(Qf, [["render", np]]), ip = d({
|
|
4763
4767
|
name: "UzSearchMobileBar",
|
|
4764
4768
|
components: {
|
|
4765
4769
|
NIcon: B,
|
|
@@ -4772,7 +4776,7 @@ var np = /* @__PURE__ */ U(Zf, [["render", tp]]), rp = d({
|
|
|
4772
4776
|
NInputGroupLabel: Se,
|
|
4773
4777
|
Refresh: Dc,
|
|
4774
4778
|
Search: qc,
|
|
4775
|
-
UzFormItem:
|
|
4779
|
+
UzFormItem: xf
|
|
4776
4780
|
},
|
|
4777
4781
|
props: {
|
|
4778
4782
|
data: {
|
|
@@ -4827,7 +4831,7 @@ var np = /* @__PURE__ */ U(Zf, [["render", tp]]), rp = d({
|
|
|
4827
4831
|
if (t && t.length > 0) {
|
|
4828
4832
|
let { data: i, values: s } = u(H(t)), c = {}, l = e.id || n.params.id;
|
|
4829
4833
|
if (e.cache && l) {
|
|
4830
|
-
let e =
|
|
4834
|
+
let e = Y(`tables_${l}`, !1);
|
|
4831
4835
|
e && e.params.forEach((e) => {
|
|
4832
4836
|
c[e.key] = e.value;
|
|
4833
4837
|
});
|
|
@@ -4849,10 +4853,10 @@ var np = /* @__PURE__ */ U(Zf, [["render", tp]]), rp = d({
|
|
|
4849
4853
|
clearAll: l
|
|
4850
4854
|
};
|
|
4851
4855
|
}
|
|
4852
|
-
}),
|
|
4853
|
-
function
|
|
4856
|
+
}), ap = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, op = { class: "uz-flex uz-gap-2" }, sp = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
4857
|
+
function cp(t, o, s, u, d, f) {
|
|
4854
4858
|
let p = O("Search"), m = O("NIcon"), h = O("NButton"), g = O("NInputGroupLabel"), _ = O("UzFormItem"), v = O("NInputGroup"), y = O("NGridItem"), b = O("NGrid"), x = O("Refresh"), C = O("NDrawerContent"), w = O("NDrawer");
|
|
4855
|
-
return S(), i(e, null, [a("div",
|
|
4859
|
+
return S(), i(e, null, [a("div", ap, [D(t.$slots, "header"), a("div", op, [t.itemData && Object.keys(t.itemData).length > 0 ? (S(), n(h, {
|
|
4856
4860
|
key: 0,
|
|
4857
4861
|
secondary: "",
|
|
4858
4862
|
onClick: o[0] ||= (e) => t.drawer = !0
|
|
@@ -4877,7 +4881,7 @@ function sp(t, o, s, u, d, f) {
|
|
|
4877
4881
|
title: "查询",
|
|
4878
4882
|
closable: ""
|
|
4879
4883
|
}, {
|
|
4880
|
-
footer: N(() => [a("div",
|
|
4884
|
+
footer: N(() => [a("div", sp, [l(h, {
|
|
4881
4885
|
secondary: "",
|
|
4882
4886
|
loading: t.loading,
|
|
4883
4887
|
onClick: t.clearAll,
|
|
@@ -4932,7 +4936,7 @@ function sp(t, o, s, u, d, f) {
|
|
|
4932
4936
|
_: 1
|
|
4933
4937
|
}, 8, ["show"])], 64);
|
|
4934
4938
|
}
|
|
4935
|
-
var
|
|
4939
|
+
var lp = /* @__PURE__ */ U(ip, [["render", cp]]), up = /(?<=\[)(.+?)(?=\])/g, dp = {
|
|
4936
4940
|
index: 1,
|
|
4937
4941
|
selection: 0,
|
|
4938
4942
|
pagination: 1,
|
|
@@ -4948,10 +4952,10 @@ var cp = /* @__PURE__ */ U(rp, [["render", sp]]), lp = /(?<=\[)(.+?)(?=\])/g, up
|
|
|
4948
4952
|
placement: "right",
|
|
4949
4953
|
summary: ""
|
|
4950
4954
|
};
|
|
4951
|
-
function
|
|
4955
|
+
function fp(e) {
|
|
4952
4956
|
return Function("return " + e)();
|
|
4953
4957
|
}
|
|
4954
|
-
var
|
|
4958
|
+
var pp = () => new Promise((e) => {
|
|
4955
4959
|
let t = window.localStorage.getItem("city");
|
|
4956
4960
|
if (t) e(JSON.parse(t));
|
|
4957
4961
|
else {
|
|
@@ -4964,12 +4968,12 @@ var fp = () => new Promise((e) => {
|
|
|
4964
4968
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
4965
4969
|
}, 500);
|
|
4966
4970
|
}
|
|
4967
|
-
}),
|
|
4971
|
+
}), mp = async (e, t, n) => {
|
|
4968
4972
|
if (t && typeof t == "string") {
|
|
4969
|
-
let r = t.match(
|
|
4973
|
+
let r = t.match(up);
|
|
4970
4974
|
if (r && t.indexOf("return") === -1) {
|
|
4971
4975
|
let t = r[0].split(":");
|
|
4972
|
-
if (t[0] === "date") return (t) =>
|
|
4976
|
+
if (t[0] === "date") return (t) => id(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
4973
4977
|
if (t[0] === "city") return (t) => t[`${e}Str`];
|
|
4974
4978
|
if (t[0] === "modules" && n && Object.keys(n).length > 0) {
|
|
4975
4979
|
let e = r[0].replace("modules:", ""), t = Object.keys(n).find((t) => t.includes(e));
|
|
@@ -4982,11 +4986,11 @@ var fp = () => new Promise((e) => {
|
|
|
4982
4986
|
let e = Function("rowData", "rowIndex", "h", t);
|
|
4983
4987
|
return (t, n) => e(t, n, f);
|
|
4984
4988
|
} catch (e) {
|
|
4985
|
-
|
|
4989
|
+
q(e);
|
|
4986
4990
|
}
|
|
4987
4991
|
}
|
|
4988
4992
|
return t && typeof t == "function" ? (e, n) => t(e, n, f) : "";
|
|
4989
|
-
},
|
|
4993
|
+
}, hp = (e, t, n) => {
|
|
4990
4994
|
let r = t.map((t) => {
|
|
4991
4995
|
let r = [], i = t.id;
|
|
4992
4996
|
return e.input === "select" && e.params.labelKeys ? (e.params.labelKeys.split(",").forEach((e) => {
|
|
@@ -4999,37 +5003,37 @@ var fp = () => new Promise((e) => {
|
|
|
4999
5003
|
};
|
|
5000
5004
|
});
|
|
5001
5005
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
5002
|
-
},
|
|
5003
|
-
function
|
|
5004
|
-
|
|
5006
|
+
}, gp = /* @__PURE__ */ new Map();
|
|
5007
|
+
function _p() {
|
|
5008
|
+
gp.clear();
|
|
5005
5009
|
}
|
|
5006
|
-
async function
|
|
5010
|
+
async function vp(e) {
|
|
5007
5011
|
let t = e.split("."), n = !1;
|
|
5008
|
-
return t.length > 1 && (
|
|
5012
|
+
return t.length > 1 && (gp.has(t[0]) ? n = H(gp.get(t[0])) : (n = await Sd({ tableId: t[0] }), gp.set(t[0], n))), {
|
|
5009
5013
|
sourceData: n,
|
|
5010
5014
|
n: t
|
|
5011
5015
|
};
|
|
5012
5016
|
}
|
|
5013
|
-
async function
|
|
5017
|
+
async function yp(e) {
|
|
5014
5018
|
return new Promise((t, n) => {
|
|
5015
|
-
let r =
|
|
5016
|
-
r &&
|
|
5017
|
-
!r || r && r.createTime !== i.createTime ?
|
|
5019
|
+
let r = Y(`dynamicTable_${e}`, !1);
|
|
5020
|
+
r && gp.has(`dynamicTable_${e}`) ? t(r) : xd(e).then((i) => {
|
|
5021
|
+
!r || r && r.createTime !== i.createTime ? bd(e).then((n) => {
|
|
5018
5022
|
let r = {
|
|
5019
5023
|
createTime: n.createTime,
|
|
5020
5024
|
tableTitle: n.tableTitle,
|
|
5021
5025
|
viewJson: n.viewJson
|
|
5022
5026
|
};
|
|
5023
|
-
|
|
5027
|
+
J(`dynamicTable_${e}`, r, 0), gp.set(`dynamicTable_${e}`, !0), ed("tables_"), t(n);
|
|
5024
5028
|
}).catch(() => {
|
|
5025
5029
|
n();
|
|
5026
|
-
}) : (
|
|
5030
|
+
}) : (gp.set(`dynamicTable_${e}`, !0), t(r));
|
|
5027
5031
|
}).catch(() => {
|
|
5028
5032
|
n();
|
|
5029
5033
|
});
|
|
5030
5034
|
});
|
|
5031
5035
|
}
|
|
5032
|
-
var
|
|
5036
|
+
var bp = (e) => e.map((e) => {
|
|
5033
5037
|
let t = {};
|
|
5034
5038
|
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.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)), {
|
|
5035
5039
|
i: e.input,
|
|
@@ -5099,7 +5103,7 @@ var yp = (e) => e.map((e) => {
|
|
|
5099
5103
|
}
|
|
5100
5104
|
}
|
|
5101
5105
|
};
|
|
5102
|
-
}),
|
|
5106
|
+
}), xp = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
5103
5107
|
let t = {};
|
|
5104
5108
|
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), 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)), {
|
|
5105
5109
|
input: e.i,
|
|
@@ -5169,11 +5173,11 @@ var yp = (e) => e.map((e) => {
|
|
|
5169
5173
|
}
|
|
5170
5174
|
}
|
|
5171
5175
|
};
|
|
5172
|
-
}),
|
|
5176
|
+
}), Sp = (e) => ({
|
|
5173
5177
|
f: e.fetch,
|
|
5174
5178
|
o: e.when_drawer_open,
|
|
5175
5179
|
b: e.when_before_save
|
|
5176
|
-
}),
|
|
5180
|
+
}), Cp = (e) => e ? e.fetch ? e : {
|
|
5177
5181
|
fetch: e.f,
|
|
5178
5182
|
when_drawer_open: e.o,
|
|
5179
5183
|
when_before_save: e.b
|
|
@@ -5181,7 +5185,7 @@ var yp = (e) => e.map((e) => {
|
|
|
5181
5185
|
fetch: null,
|
|
5182
5186
|
when_drawer_open: "",
|
|
5183
5187
|
when_before_save: ""
|
|
5184
|
-
},
|
|
5188
|
+
}, wp = (e) => ({
|
|
5185
5189
|
i: e.index,
|
|
5186
5190
|
s: e.selection,
|
|
5187
5191
|
p: e.pagination,
|
|
@@ -5195,7 +5199,7 @@ var yp = (e) => e.map((e) => {
|
|
|
5195
5199
|
h: e.drawerHeight,
|
|
5196
5200
|
l: e.placement,
|
|
5197
5201
|
r: e.summary
|
|
5198
|
-
}),
|
|
5202
|
+
}), Tp = (e) => {
|
|
5199
5203
|
let t = {};
|
|
5200
5204
|
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.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
|
|
5201
5205
|
index: e.i,
|
|
@@ -5211,9 +5215,9 @@ var yp = (e) => e.map((e) => {
|
|
|
5211
5215
|
drawerHeight: e.h,
|
|
5212
5216
|
placement: e.l,
|
|
5213
5217
|
summary: e.r
|
|
5214
|
-
}), Object.assign({},
|
|
5218
|
+
}), Object.assign({}, dp, H(t));
|
|
5215
5219
|
};
|
|
5216
|
-
function
|
|
5220
|
+
function Ep(e, t, n) {
|
|
5217
5221
|
return new Promise(async (r, i) => {
|
|
5218
5222
|
let a = [], o = {}, s = {}, c = {}, l = [], u = [], d = H(e), f = [];
|
|
5219
5223
|
for (let e of d) e.input === "group" ? f.push(...e.params.children) : f.push(e);
|
|
@@ -5248,17 +5252,17 @@ function Tp(e, t, n) {
|
|
|
5248
5252
|
disabled: !0
|
|
5249
5253
|
}];
|
|
5250
5254
|
if (e.params.immediately) {
|
|
5251
|
-
let { sourceData: t, n: r } = await
|
|
5255
|
+
let { sourceData: t, n: r } = await vp(e.source);
|
|
5252
5256
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5253
5257
|
let r = e.sourceFn;
|
|
5254
5258
|
n = Function("sourceData", r)(t);
|
|
5255
|
-
} else n =
|
|
5259
|
+
} else n = hp(e, t, r);
|
|
5256
5260
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
5257
|
-
let { sourceData: t, n } = await
|
|
5261
|
+
let { sourceData: t, n } = await vp(e.source);
|
|
5258
5262
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5259
5263
|
let n = e.sourceFn;
|
|
5260
5264
|
return Function("sourceData", n)(t);
|
|
5261
|
-
} else return
|
|
5265
|
+
} else return hp(e, t, n);
|
|
5262
5266
|
};
|
|
5263
5267
|
if (e.params.options = n, e.form.backfill && t) if (Array.isArray(t)) t.forEach((t, r) => {
|
|
5264
5268
|
let i = n.find((n) => n.value === t[e.key]);
|
|
@@ -5271,45 +5275,45 @@ function Tp(e, t, n) {
|
|
|
5271
5275
|
}
|
|
5272
5276
|
if (e.input === "filling") try {
|
|
5273
5277
|
Array.isArray(t) ? t.forEach((t, n) => {
|
|
5274
|
-
u[n] || (u[n] = {}), l[n] && l[n][e.params.parentKey] && l[n][e.params.parentKey][e.key] ? (u[n][e.key] = l[n][e.params.parentKey][e.key], l[n][e.params.parentKey][`${e.key}Str`] && (u[n][`${e.key}Str`] = l[n][e.params.parentKey][`${e.key}Str`])) : (u[n][e.key] = null, u[n][`${e.key}Str`] = null);
|
|
5278
|
+
u[n] || (u[n] = {}), l[n] && l[n][e.params.parentKey] && l[n][e.params.parentKey][e.key] ? (u[n][e.key] = l[n][e.params.parentKey][e.key], l[n][e.params.parentKey][`${e.key}Str`] && (u[n][`${e.key}Str`] = l[n][e.params.parentKey][`${e.key}Str`])) : (u[n][e.key] = t[e.key] || null, u[n][`${e.key}Str`] = t[`${e.key}Str`] || null);
|
|
5275
5279
|
}) : s[e.params.parentKey] && s[e.params.parentKey][e.key] ? (c[e.key] = s[e.params.parentKey][e.key], s[e.params.parentKey][`${e.key}Str`] && (c[`${e.key}Str`] = s[e.params.parentKey][`${e.key}Str`])) : (c[e.key] = null, c[`${e.key}Str`] = null);
|
|
5276
5280
|
} catch (e) {
|
|
5277
|
-
|
|
5281
|
+
q(e);
|
|
5278
5282
|
}
|
|
5279
5283
|
if (e.input !== "divider" && e.form.rule && e.form.rule.validator && typeof e.form.rule.validator == "string") try {
|
|
5280
5284
|
let t = e.form.rule.validator, r = Function("rule", "value", "index", "formValues", t);
|
|
5281
5285
|
e.form.rule.validator = (e, t) => r(e, t, null, n);
|
|
5282
5286
|
} catch (e) {
|
|
5283
|
-
|
|
5287
|
+
q(e);
|
|
5284
5288
|
}
|
|
5285
5289
|
if (e.input === "date" && e.params.isDateDisabled && typeof e.params.isDateDisabled == "string") try {
|
|
5286
5290
|
let t = e.params.isDateDisabled, n = Function("ts", "detail", t);
|
|
5287
5291
|
e.params.isDateDisabled = (e, t) => n(e, t);
|
|
5288
5292
|
} catch (e) {
|
|
5289
|
-
|
|
5293
|
+
q(e);
|
|
5290
5294
|
}
|
|
5291
5295
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
5292
|
-
let t = await
|
|
5296
|
+
let t = await pp();
|
|
5293
5297
|
e.params.options = t;
|
|
5294
5298
|
}
|
|
5295
5299
|
if (e.input === "subTable" && e.params.link) {
|
|
5296
|
-
let t = await
|
|
5300
|
+
let t = await yp(e.params.link).catch(() => {
|
|
5297
5301
|
i();
|
|
5298
5302
|
});
|
|
5299
5303
|
if (t) try {
|
|
5300
5304
|
let n = nt.parse(t.viewJson);
|
|
5301
|
-
n.suffix && (e._suffix =
|
|
5302
|
-
let r =
|
|
5305
|
+
n.suffix && (e._suffix = zd(n.suffix));
|
|
5306
|
+
let r = xp(n.table);
|
|
5303
5307
|
r.forEach((e) => {
|
|
5304
5308
|
e.table.sorter = !1;
|
|
5305
5309
|
});
|
|
5306
5310
|
let a = r.filter((e) => e.input === "subTable");
|
|
5307
5311
|
if (a) for await (let e of a) {
|
|
5308
|
-
let t = await
|
|
5312
|
+
let t = await yp(e.params.link).catch(() => {
|
|
5309
5313
|
i();
|
|
5310
5314
|
});
|
|
5311
5315
|
if (t) try {
|
|
5312
|
-
let n = nt.parse(t.viewJson), r =
|
|
5316
|
+
let n = nt.parse(t.viewJson), r = xp(n.table);
|
|
5313
5317
|
r.forEach((e) => {
|
|
5314
5318
|
e.table.sorter = !1;
|
|
5315
5319
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -5343,7 +5347,7 @@ function Tp(e, t, n) {
|
|
|
5343
5347
|
});
|
|
5344
5348
|
});
|
|
5345
5349
|
}
|
|
5346
|
-
async function
|
|
5350
|
+
async function Dp(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
5347
5351
|
let a = 0, o = [], s = [], c = [], l = H(e), u = [], d = [];
|
|
5348
5352
|
for (let e of l) e.input === "group" ? (u.push(...e.params.children), d.push({
|
|
5349
5353
|
title: e.label,
|
|
@@ -5353,27 +5357,27 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5353
5357
|
})) : (u.push(e), d.push(e.key));
|
|
5354
5358
|
for await (let e of u) {
|
|
5355
5359
|
if (e.source && !e.table.render && (e.input === "select" || e.input === "cascader")) if (e.table.render = (t) => t[`${e.key}Str`], t || e.params.immediately || e.search.defaultValue) {
|
|
5356
|
-
let { sourceData: t, n } = await
|
|
5360
|
+
let { sourceData: t, n } = await vp(e.source);
|
|
5357
5361
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5358
5362
|
let n = e.sourceFn, r = Function("sourceData", n);
|
|
5359
5363
|
e.params.options = r(t);
|
|
5360
|
-
} else e.params.options =
|
|
5364
|
+
} else e.params.options = hp(e, t, n);
|
|
5361
5365
|
} else e.params.options = [{
|
|
5362
5366
|
label: "加载中......",
|
|
5363
5367
|
value: "loading",
|
|
5364
5368
|
disabled: !0
|
|
5365
5369
|
}], e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
5366
|
-
let { sourceData: t, n } = await
|
|
5370
|
+
let { sourceData: t, n } = await vp(e.source);
|
|
5367
5371
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5368
5372
|
let n = e.sourceFn;
|
|
5369
5373
|
return Function("sourceData", n)(t);
|
|
5370
|
-
} else return
|
|
5374
|
+
} else return hp(e, t, n);
|
|
5371
5375
|
};
|
|
5372
5376
|
!e.table.render && !e.source && e.input === "select" && typeof e.params.options != "function" && e.params.options.length > 0 && (e.table.render = (t) => {
|
|
5373
5377
|
let n = e.params.options.find((n) => n.value === t[e.key]);
|
|
5374
5378
|
if (n) return n.label;
|
|
5375
5379
|
}), e.input === "upload" && !e.table.render && (e.table.render = function(t) {
|
|
5376
|
-
return f(
|
|
5380
|
+
return f(Bf, { value: t[e.key] }, { default: () => null });
|
|
5377
5381
|
}), a += Number(e.table.width || 140);
|
|
5378
5382
|
let l = {
|
|
5379
5383
|
input: e.input,
|
|
@@ -5388,14 +5392,14 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5388
5392
|
tooltip: !0,
|
|
5389
5393
|
"line-clamp": e.table.clamp ?? 0
|
|
5390
5394
|
} : !1,
|
|
5391
|
-
render: e.table.render ? await
|
|
5392
|
-
show:
|
|
5395
|
+
render: e.table.render ? await mp(e.key, e.table.render, i) : void 0,
|
|
5396
|
+
show: K.isMobile ? e.table.mobile ?? !1 : e.table.show ?? !0,
|
|
5393
5397
|
pin: !!e.table.fixed,
|
|
5394
5398
|
fixTemp: e.table.fixed
|
|
5395
5399
|
};
|
|
5396
5400
|
if (t) if (!l.form.edit.show) l = null;
|
|
5397
5401
|
else {
|
|
5398
|
-
if (l.ellipsis = !1, l.resizable = !0,
|
|
5402
|
+
if (l.ellipsis = !1, l.resizable = !0, K.isMobile && (l.show = e.table.mobile), e.table.show && (n === 0 && (l.show = e.form.create.show), n === 1 && (l.show = e.form.edit.show), n === 2 && (l.show = e.form.show)), e.form.rule?.required && typeof e.form.rule.validator == "string") {
|
|
5399
5403
|
delete e.form.rule.message;
|
|
5400
5404
|
let t = e.form.rule.validator, n = Function("rule", "value", "index", "formValues", t);
|
|
5401
5405
|
e.form.rule.validator === "" ? e.form.rule.validator = (t, n) => r()[t.index].delete || n ? !0 : Error(e.form.rule.message) : e.form.rule.validator = (e, t) => r()[e.index].delete ? !0 : n(e, t, e.index, () => r());
|
|
@@ -5409,7 +5413,7 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5409
5413
|
...e.form.rule,
|
|
5410
5414
|
index: r
|
|
5411
5415
|
} : void 0
|
|
5412
|
-
}, { default: () => f(
|
|
5416
|
+
}, { default: () => f(xf, {
|
|
5413
5417
|
item: e,
|
|
5414
5418
|
formValue: t,
|
|
5415
5419
|
status: n,
|
|
@@ -5420,19 +5424,19 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5420
5424
|
if (l && e.input !== "divider" && e.input !== "subTable" && c.push(l), e.input !== "divider" && e.input !== "switch" && e.input !== "subTable" && e.input !== "upload" && e.search.show) {
|
|
5421
5425
|
if (e.search.source) if (e.input = "select", e.params.type = e.search.type, e.params.valueKey = e.search.valueKey, e.params.valueKey = e.search.valueKey, e.search.source === "from-up") e.params.options = e.params.options;
|
|
5422
5426
|
else if (e.params.immediately || e.search.defaultValue) {
|
|
5423
|
-
let { sourceData: t, n } = await
|
|
5427
|
+
let { sourceData: t, n } = await vp(e.search.source);
|
|
5424
5428
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5425
5429
|
let n = e.sourceFn, r = Function("sourceData", n);
|
|
5426
5430
|
e.params.options = r(t);
|
|
5427
|
-
} else e.params.options =
|
|
5431
|
+
} else e.params.options = hp(e, t, n);
|
|
5428
5432
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
5429
|
-
let { sourceData: t, n } = await
|
|
5433
|
+
let { sourceData: t, n } = await vp(e.search.source);
|
|
5430
5434
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5431
5435
|
let n = e.sourceFn;
|
|
5432
5436
|
return Function("sourceData", n)(t);
|
|
5433
|
-
} else return
|
|
5437
|
+
} else return hp(e, t, n);
|
|
5434
5438
|
};
|
|
5435
|
-
e.search.multiple && (e.params.multiple = !0, e.search.defaultValue && (e.search.defaultValue =
|
|
5439
|
+
e.search.multiple && (e.params.multiple = !0, e.search.defaultValue && (e.search.defaultValue = fp(e.search.defaultValue))), o.push({
|
|
5436
5440
|
input: e.input,
|
|
5437
5441
|
label: e.label,
|
|
5438
5442
|
key: e.key,
|
|
@@ -5476,7 +5480,7 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5476
5480
|
}
|
|
5477
5481
|
//#endregion
|
|
5478
5482
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
5479
|
-
var
|
|
5483
|
+
var Op = d({
|
|
5480
5484
|
name: "UzSpin",
|
|
5481
5485
|
components: {
|
|
5482
5486
|
NButton: L,
|
|
@@ -5522,7 +5526,7 @@ var Dp = d({
|
|
|
5522
5526
|
});
|
|
5523
5527
|
//#endregion
|
|
5524
5528
|
//#region components/spin/index.vue
|
|
5525
|
-
function
|
|
5529
|
+
function kp(e, t, r, i, o, s) {
|
|
5526
5530
|
let u = O("NEllipsis"), d = O("NButton"), f = O("NSpin");
|
|
5527
5531
|
return S(), n(f, { show: e.value }, {
|
|
5528
5532
|
description: N(() => [
|
|
@@ -5550,7 +5554,7 @@ function Op(e, t, r, i, o, s) {
|
|
|
5550
5554
|
_: 3
|
|
5551
5555
|
}, 8, ["show"]);
|
|
5552
5556
|
}
|
|
5553
|
-
var
|
|
5557
|
+
var Ap = /* @__PURE__ */ U(Op, [["render", kp]]), jp = d({
|
|
5554
5558
|
name: "UzTable",
|
|
5555
5559
|
components: {
|
|
5556
5560
|
NDataTable: se,
|
|
@@ -5564,7 +5568,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5564
5568
|
GridDots: Zo,
|
|
5565
5569
|
Plus: sc,
|
|
5566
5570
|
Draggable: tt,
|
|
5567
|
-
UzSpin:
|
|
5571
|
+
UzSpin: Ap,
|
|
5568
5572
|
UzIcon: Nu
|
|
5569
5573
|
},
|
|
5570
5574
|
props: {
|
|
@@ -5693,7 +5697,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5693
5697
|
value: () => null,
|
|
5694
5698
|
setValue: () => null
|
|
5695
5699
|
});
|
|
5696
|
-
let a = qe(), { t: o } = Xe(), s = He(), c = t(() =>
|
|
5700
|
+
let a = qe(), { t: o } = Xe(), s = He(), c = t(() => K.isMobile), l = T(), u = T(), d = T(), m = T(!!i.header), h = T(!1), _ = T(!1), v = T(""), y = T(), x = T([]), S = T([]), w = T([]), E = T(void 0), D = T({
|
|
5697
5701
|
params: [],
|
|
5698
5702
|
query: {
|
|
5699
5703
|
page: 1,
|
|
@@ -5704,7 +5708,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5704
5708
|
fetch: null,
|
|
5705
5709
|
when_drawer_open: "",
|
|
5706
5710
|
when_before_save: ""
|
|
5707
|
-
}), F = T(
|
|
5711
|
+
}), F = T(Tp()), I = T(""), L = T(!1), ne = T([]), R = T([]), re = p("modules"), ie = (e) => e.id, ae = (e, t) => {
|
|
5708
5712
|
n("update:rowKeys", {
|
|
5709
5713
|
keys: e,
|
|
5710
5714
|
rows: H(t)
|
|
@@ -5727,9 +5731,9 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5727
5731
|
let r = e.id || a.params.id;
|
|
5728
5732
|
e.enableLoading && (h.value = !0, n("update:loading", !0));
|
|
5729
5733
|
let i = H(D.value);
|
|
5730
|
-
if (t && delete i.orderby, P.value.fetch)
|
|
5731
|
-
let t =
|
|
5732
|
-
D.value.query = t.query, w.value = t.records, h.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), F.value.cache && r &&
|
|
5734
|
+
if (t && delete i.orderby, P.value.fetch) Td([P.value.fetch], "", i).then((e) => {
|
|
5735
|
+
let t = rd(e);
|
|
5736
|
+
D.value.query = t.query, w.value = t.records, h.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), F.value.cache && r && J(`tables_${r}`, D.value);
|
|
5733
5737
|
}).catch(() => {
|
|
5734
5738
|
h.value = !1, _.value = !0, n("update:loading", !1);
|
|
5735
5739
|
});
|
|
@@ -5738,23 +5742,23 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5738
5742
|
t = e.fetch ? e.fetch({
|
|
5739
5743
|
...i,
|
|
5740
5744
|
tableId: r
|
|
5741
|
-
}) :
|
|
5745
|
+
}) : Sd({
|
|
5742
5746
|
...i,
|
|
5743
5747
|
tableId: r
|
|
5744
5748
|
}), t.then((e) => {
|
|
5745
|
-
let t =
|
|
5746
|
-
D.value.query = t.query, w.value = t.records, h.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), F.value.cache && r &&
|
|
5749
|
+
let t = rd(e);
|
|
5750
|
+
D.value.query = t.query, w.value = t.records, h.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), F.value.cache && r && J(`tables_${r}`, D.value);
|
|
5747
5751
|
}).catch(() => {
|
|
5748
5752
|
h.value = !1, _.value = !0, n("update:loading", !1);
|
|
5749
5753
|
});
|
|
5750
5754
|
}
|
|
5751
5755
|
}, ce = (e) => {
|
|
5752
|
-
D.value.query.page = e, l.value && (l.value.scrollTop = 0),
|
|
5756
|
+
D.value.query.page = e, l.value && (l.value.scrollTop = 0), nd(), z();
|
|
5753
5757
|
}, le = () => {
|
|
5754
5758
|
let e = D.value.query.page + 1;
|
|
5755
5759
|
e > D.value.query.pageMax && (e = 1), D.value.query.page = e, l.value && (l.value.scrollTop = 0), z();
|
|
5756
5760
|
}, ue = (e) => {
|
|
5757
|
-
D.value.query.pageSize = e, D.value.query.page = 1,
|
|
5761
|
+
D.value.query.pageSize = e, D.value.query.page = 1, nd(), z();
|
|
5758
5762
|
}, de = (e) => {
|
|
5759
5763
|
e && e.order ? D.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete D.value.orderby, z();
|
|
5760
5764
|
}, fe = () => {
|
|
@@ -5783,7 +5787,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5783
5787
|
show: !0,
|
|
5784
5788
|
ellipsis: !1,
|
|
5785
5789
|
width: 180,
|
|
5786
|
-
render: (e) => [f("div", {}, { default: () => e.createBy }), f("div", {}, { default: () =>
|
|
5790
|
+
render: (e) => [f("div", {}, { default: () => e.createBy }), f("div", {}, { default: () => id(e.createTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5787
5791
|
}, {
|
|
5788
5792
|
title: "更新人/时间",
|
|
5789
5793
|
key: "updateTime",
|
|
@@ -5792,9 +5796,9 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5792
5796
|
show: !0,
|
|
5793
5797
|
ellipsis: !0,
|
|
5794
5798
|
width: 180,
|
|
5795
|
-
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () =>
|
|
5799
|
+
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => id(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5796
5800
|
}], _e = (t) => !e.ruleFetch || !k.value || k.value && k.value[0] === "*" ? !1 : !k.value?.includes(t), B = async (e) => {
|
|
5797
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await
|
|
5801
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Ep(A.value, e, () => d.value?.getFormValues());
|
|
5798
5802
|
return y.value = t, {
|
|
5799
5803
|
form: t,
|
|
5800
5804
|
fillingDefaultValue: n,
|
|
@@ -5805,7 +5809,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5805
5809
|
o = e.fetch ? e.fetch({
|
|
5806
5810
|
id: t.id,
|
|
5807
5811
|
tableId: i
|
|
5808
|
-
}) :
|
|
5812
|
+
}) : Sd({
|
|
5809
5813
|
id: t.id,
|
|
5810
5814
|
tableId: i
|
|
5811
5815
|
}), o.then((e) => {
|
|
@@ -5821,15 +5825,15 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5821
5825
|
if (t && typeof t == "string") try {
|
|
5822
5826
|
a = await Function("rowData", "POST", "fnNotification", t)(a, Z, s).catch(() => null);
|
|
5823
5827
|
} catch (e) {
|
|
5824
|
-
|
|
5828
|
+
q(e);
|
|
5825
5829
|
}
|
|
5826
5830
|
let o = P.value.when_drawer_open;
|
|
5827
5831
|
if (o && typeof o == "string") try {
|
|
5828
5832
|
a = await Function("data", "POST", o)(a, Z).catch((e) => {
|
|
5829
|
-
|
|
5833
|
+
q(e);
|
|
5830
5834
|
});
|
|
5831
5835
|
} catch (e) {
|
|
5832
|
-
|
|
5836
|
+
q(e);
|
|
5833
5837
|
}
|
|
5834
5838
|
return {
|
|
5835
5839
|
form: r,
|
|
@@ -5853,10 +5857,10 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5853
5857
|
Function("rowData", "POST", "fnNotification", i)(r, Z, s).then((e) => {
|
|
5854
5858
|
d.value?.link(t.optionsSource || "", void 0, e);
|
|
5855
5859
|
}).catch((e) => {
|
|
5856
|
-
|
|
5860
|
+
q(e);
|
|
5857
5861
|
});
|
|
5858
5862
|
} catch (e) {
|
|
5859
|
-
|
|
5863
|
+
q(e);
|
|
5860
5864
|
}
|
|
5861
5865
|
} else n("update:suffixes", {
|
|
5862
5866
|
title: t.buttonText,
|
|
@@ -5887,18 +5891,18 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5887
5891
|
...t,
|
|
5888
5892
|
tableId: c,
|
|
5889
5893
|
sub_table_ids: r
|
|
5890
|
-
}) :
|
|
5894
|
+
}) : wd({
|
|
5891
5895
|
...t,
|
|
5892
5896
|
tableId: c,
|
|
5893
5897
|
sub_table_ids: r
|
|
5894
5898
|
}), n.then(() => {
|
|
5895
5899
|
z();
|
|
5896
5900
|
}).catch((e) => {
|
|
5897
|
-
|
|
5901
|
+
q(e);
|
|
5898
5902
|
});
|
|
5899
5903
|
};
|
|
5900
5904
|
else if (t.type !== "group" && t.action === "disabledInside") t.onClick = (t) => {
|
|
5901
|
-
|
|
5905
|
+
Cd({
|
|
5902
5906
|
tableId: e.id || a.params.id,
|
|
5903
5907
|
...t,
|
|
5904
5908
|
is_disabled: "1"
|
|
@@ -5907,7 +5911,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5907
5911
|
}).catch(() => null);
|
|
5908
5912
|
};
|
|
5909
5913
|
else if (t.type !== "group" && t.action === "enabledInside") t.onClick = (t) => {
|
|
5910
|
-
|
|
5914
|
+
Cd({
|
|
5911
5915
|
tableId: e.id || a.params.id,
|
|
5912
5916
|
...t,
|
|
5913
5917
|
is_disabled: "0"
|
|
@@ -5922,12 +5926,12 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5922
5926
|
i = e.fetch ? e.fetch({
|
|
5923
5927
|
id: r.id,
|
|
5924
5928
|
tableId: c
|
|
5925
|
-
}) :
|
|
5929
|
+
}) : Sd({
|
|
5926
5930
|
id: r.id,
|
|
5927
5931
|
tableId: c
|
|
5928
5932
|
}), i.then((e) => {
|
|
5929
5933
|
let r = e && e[0];
|
|
5930
|
-
|
|
5934
|
+
Td([t.action], r.id, r).then((e) => {
|
|
5931
5935
|
if (n && typeof n == "string") {
|
|
5932
5936
|
try {
|
|
5933
5937
|
Function("rowData", "res", n)(r, e).then((e) => {
|
|
@@ -5936,10 +5940,10 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5936
5940
|
duration: 3e3
|
|
5937
5941
|
}), z();
|
|
5938
5942
|
}).catch((e) => {
|
|
5939
|
-
|
|
5943
|
+
q(e);
|
|
5940
5944
|
});
|
|
5941
5945
|
} catch (e) {
|
|
5942
|
-
|
|
5946
|
+
q(e);
|
|
5943
5947
|
}
|
|
5944
5948
|
return;
|
|
5945
5949
|
}
|
|
@@ -5966,8 +5970,8 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5966
5970
|
};
|
|
5967
5971
|
}
|
|
5968
5972
|
}, xe = async () => {
|
|
5969
|
-
L.value = !1,
|
|
5970
|
-
let { tableColumns: t, search: n, subTableIds: r, tableWidth: i } = await
|
|
5973
|
+
L.value = !1, _p();
|
|
5974
|
+
let { tableColumns: t, search: n, subTableIds: r, tableWidth: i } = await Dp(A.value, e.child, 0, () => ({}), re), s = i;
|
|
5971
5975
|
!c.value && F.value.index && (t.unshift({
|
|
5972
5976
|
title: "#",
|
|
5973
5977
|
key: "index",
|
|
@@ -6009,7 +6013,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6009
6013
|
show: !0,
|
|
6010
6014
|
hide: !0,
|
|
6011
6015
|
render(t) {
|
|
6012
|
-
return
|
|
6016
|
+
return jd({
|
|
6013
6017
|
buttons: e,
|
|
6014
6018
|
rowData: t,
|
|
6015
6019
|
callback: z,
|
|
@@ -6041,7 +6045,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6041
6045
|
i = e.formFetch ? e.formFetch({
|
|
6042
6046
|
tableId: o,
|
|
6043
6047
|
...t
|
|
6044
|
-
}) :
|
|
6048
|
+
}) : Cd({
|
|
6045
6049
|
tableId: o,
|
|
6046
6050
|
...t
|
|
6047
6051
|
}), i.then(() => {
|
|
@@ -6054,12 +6058,12 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6054
6058
|
fetch: null,
|
|
6055
6059
|
when_drawer_open: "",
|
|
6056
6060
|
when_before_save: ""
|
|
6057
|
-
}, F.value =
|
|
6061
|
+
}, F.value = Tp();
|
|
6058
6062
|
}, De = (t) => {
|
|
6059
6063
|
let n = nt.parse(t.viewJson);
|
|
6060
|
-
v.value = t.tableTitle, A.value =
|
|
6061
|
-
let r =
|
|
6062
|
-
t.tableTitle && r.title &&
|
|
6064
|
+
v.value = t.tableTitle, A.value = xp(n.table), M.value = zd(e.actions || n.action), N.value = zd(n.suffix || []).filter((e) => e.main).map((e) => (ke(e), e)), P.value = Cp(n.trigger);
|
|
6065
|
+
let r = Tp(e.options ?? n.option);
|
|
6066
|
+
t.tableTitle && r.title && ad(t.tableTitle), F.value = r;
|
|
6063
6067
|
}, Oe = async () => {
|
|
6064
6068
|
_.value = !1, Ee();
|
|
6065
6069
|
let t = e.id || a.params.id;
|
|
@@ -6076,7 +6080,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6076
6080
|
I.value = o("Notice.network"), L.value = !0;
|
|
6077
6081
|
return;
|
|
6078
6082
|
}
|
|
6079
|
-
Ce(), e.columns ? (A.value = e.columns || [], M.value = e.actions || [], N.value = e.suffixes || [], F.value =
|
|
6083
|
+
Ce(), e.columns ? (A.value = e.columns || [], M.value = e.actions || [], N.value = e.suffixes || [], F.value = Tp(e.options), await xe()) : await yp(t).then(async (e) => {
|
|
6080
6084
|
De(e), await xe();
|
|
6081
6085
|
}).catch((e) => {
|
|
6082
6086
|
I.value = e.message, L.value = !0;
|
|
@@ -6105,7 +6109,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6105
6109
|
let e = Function("POST", "fnNotification", t);
|
|
6106
6110
|
await e(Z, s, e), z();
|
|
6107
6111
|
} catch (e) {
|
|
6108
|
-
|
|
6112
|
+
q(e);
|
|
6109
6113
|
}
|
|
6110
6114
|
return;
|
|
6111
6115
|
}
|
|
@@ -6128,7 +6132,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6128
6132
|
}, { deep: !0 }), j(() => e.height, () => {
|
|
6129
6133
|
Ce();
|
|
6130
6134
|
}), j([() => a.params.id, () => e.id], async () => {
|
|
6131
|
-
|
|
6135
|
+
nd(), await Oe();
|
|
6132
6136
|
}), j(() => e.defaultCheckedRowKeys, (e) => {
|
|
6133
6137
|
let t = e || [], n = R.value.filter((e) => t.includes(e.id));
|
|
6134
6138
|
ne.value = t, R.value = n;
|
|
@@ -6170,23 +6174,23 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6170
6174
|
isTypeofNumber: Se
|
|
6171
6175
|
};
|
|
6172
6176
|
}
|
|
6173
|
-
}),
|
|
6177
|
+
}), Mp = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Np = { class: "uz-flex uz-justify-between" }, Pp = { class: "uz-flex uz-gap-1" }, Fp = { class: "uz-com-title" }, Ip = {
|
|
6174
6178
|
ref: "mRef",
|
|
6175
6179
|
class: "uz-table-m-content"
|
|
6176
|
-
},
|
|
6180
|
+
}, Lp = {
|
|
6177
6181
|
key: 1,
|
|
6178
6182
|
class: "uz-transform-fade-in"
|
|
6179
|
-
},
|
|
6180
|
-
function
|
|
6183
|
+
}, Rp = { class: "uz-com-title" };
|
|
6184
|
+
function zp(e, t, s, u, d, f) {
|
|
6181
6185
|
let p = O("NSkeleton"), m = O("NButton"), g = O("Plus"), y = O("NIcon"), b = O("UzActionButton"), x = O("UzSearchMobileBar"), C = O("UzTableMobile"), w = O("Filter"), T = O("NCheckbox"), E = O("GridDots"), ee = O("Draggable"), te = O("NPopover"), j = O("UzSearchBar"), M = O("NDataTable"), F = O("NSpin"), I = O("UzTableDrawer");
|
|
6182
6186
|
return S(), i("div", {
|
|
6183
6187
|
class: "uz-table",
|
|
6184
6188
|
style: v({ width: e.isTypeofNumber(e.width) })
|
|
6185
6189
|
}, [
|
|
6186
|
-
P(a("div",
|
|
6190
|
+
P(a("div", Mp, [a("div", Np, [l(p, {
|
|
6187
6191
|
width: 120,
|
|
6188
6192
|
size: "medium"
|
|
6189
|
-
}), a("div",
|
|
6193
|
+
}), a("div", Pp, [
|
|
6190
6194
|
l(p, {
|
|
6191
6195
|
width: 180,
|
|
6192
6196
|
size: "medium"
|
|
@@ -6274,7 +6278,7 @@ function Rp(e, t, s, u, d, f) {
|
|
|
6274
6278
|
key: "0"
|
|
6275
6279
|
} : {
|
|
6276
6280
|
name: "header",
|
|
6277
|
-
fn: N(() => [a("div",
|
|
6281
|
+
fn: N(() => [a("div", Fp, k(e.title), 1)]),
|
|
6278
6282
|
key: "1"
|
|
6279
6283
|
}]), 1032, [
|
|
6280
6284
|
"data",
|
|
@@ -6282,7 +6286,7 @@ function Rp(e, t, s, u, d, f) {
|
|
|
6282
6286
|
"cache",
|
|
6283
6287
|
"loading",
|
|
6284
6288
|
"onOnUpdate:value"
|
|
6285
|
-
]), a("div",
|
|
6289
|
+
]), a("div", Ip, [l(C, {
|
|
6286
6290
|
tableColumns: e.tableColumns,
|
|
6287
6291
|
tableData: e.tableData,
|
|
6288
6292
|
tableQueries: e.tableQueries,
|
|
@@ -6300,7 +6304,7 @@ function Rp(e, t, s, u, d, f) {
|
|
|
6300
6304
|
"minH",
|
|
6301
6305
|
"maxH",
|
|
6302
6306
|
"onUpdate:rowKeys"
|
|
6303
|
-
])], 512)], 2)) : (S(), i("div",
|
|
6307
|
+
])], 512)], 2)) : (S(), i("div", Lp, [l(j, {
|
|
6304
6308
|
data: e.searchData,
|
|
6305
6309
|
id: e.id || e.route.params.id,
|
|
6306
6310
|
cache: e.tableOption.cache,
|
|
@@ -6388,7 +6392,7 @@ function Rp(e, t, s, u, d, f) {
|
|
|
6388
6392
|
key: "0"
|
|
6389
6393
|
} : {
|
|
6390
6394
|
name: "header",
|
|
6391
|
-
fn: N(() => [a("div",
|
|
6395
|
+
fn: N(() => [a("div", Rp, k(e.title), 1)]),
|
|
6392
6396
|
key: "1"
|
|
6393
6397
|
}]), 1032, [
|
|
6394
6398
|
"data",
|
|
@@ -6445,7 +6449,7 @@ function Rp(e, t, s, u, d, f) {
|
|
|
6445
6449
|
l(I, { ref: "drawerRef" }, null, 512)
|
|
6446
6450
|
], 4);
|
|
6447
6451
|
}
|
|
6448
|
-
var
|
|
6452
|
+
var Bp = /* @__PURE__ */ U(jp, [["render", zp]]), Vp = d({
|
|
6449
6453
|
name: "UzTableChild",
|
|
6450
6454
|
components: {
|
|
6451
6455
|
NButton: L,
|
|
@@ -6474,7 +6478,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6474
6478
|
emits: ["update:value"],
|
|
6475
6479
|
setup(e, { emit: t, expose: n }) {
|
|
6476
6480
|
let r = p("emitSuffix"), i = p("modules"), a = p("mainFormValue"), { t: o } = Xe(), s = T(), c = T(), l = T(), u = T(!1), d = T(!0), m = T([]), h = T({ child: [] }), _ = T(""), v = T({}), b = T([]), x = T(void 0), S = async (t, n) => {
|
|
6477
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
6481
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await Ep(H(n ?? e.item.params.columns), t);
|
|
6478
6482
|
return v.value = r, i;
|
|
6479
6483
|
}, C = async (t) => {
|
|
6480
6484
|
if (u.value) return;
|
|
@@ -6495,7 +6499,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6495
6499
|
let t = e.item.params.merge;
|
|
6496
6500
|
r = await Function("formValue", "mainFormValue", "POST", t)(r, a, Z);
|
|
6497
6501
|
} catch (e) {
|
|
6498
|
-
|
|
6502
|
+
q(e);
|
|
6499
6503
|
}
|
|
6500
6504
|
h.value.child = r, u.value = !1, g(() => {
|
|
6501
6505
|
A();
|
|
@@ -6505,7 +6509,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6505
6509
|
});
|
|
6506
6510
|
}, w = (e) => e.delete ? "uz-table-child-delete" : "", E = async (t) => {
|
|
6507
6511
|
e.item._suffix && (b.value = e.item._suffix.filter((e) => e.sub)), await S(e.value, t);
|
|
6508
|
-
let { tableColumns: n, tableWidth: r } = await
|
|
6512
|
+
let { tableColumns: n, tableWidth: r } = await Dp(H(t ?? e.item.params.columns), !0, e.status, () => h.value.child, i), s = r;
|
|
6509
6513
|
n.unshift({
|
|
6510
6514
|
title: " ",
|
|
6511
6515
|
key: "index",
|
|
@@ -6538,7 +6542,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6538
6542
|
width: 60,
|
|
6539
6543
|
render(t, n) {
|
|
6540
6544
|
let r = [];
|
|
6541
|
-
return e.item.params.childActions && e.item.params.actions &&
|
|
6545
|
+
return e.item.params.childActions && e.item.params.actions && zd(e.item.params.actions).forEach((e) => {
|
|
6542
6546
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
6543
6547
|
}), e.item.params.showDelete && e.status !== 2 && (h.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly) && r.push({
|
|
6544
6548
|
type: "normal",
|
|
@@ -6550,7 +6554,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6550
6554
|
let n = e.item.params.deleteFn;
|
|
6551
6555
|
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, a) : t.delete = !0;
|
|
6552
6556
|
}
|
|
6553
|
-
}),
|
|
6557
|
+
}), jd({
|
|
6554
6558
|
buttons: r,
|
|
6555
6559
|
rowData: t
|
|
6556
6560
|
});
|
|
@@ -6567,7 +6571,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6567
6571
|
let n = e.item.params.summary;
|
|
6568
6572
|
return Function("pageData", "h", n)(t, f);
|
|
6569
6573
|
} catch (e) {
|
|
6570
|
-
|
|
6574
|
+
q(e);
|
|
6571
6575
|
}
|
|
6572
6576
|
}
|
|
6573
6577
|
return [];
|
|
@@ -6603,7 +6607,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6603
6607
|
}
|
|
6604
6608
|
});
|
|
6605
6609
|
} catch (e) {
|
|
6606
|
-
|
|
6610
|
+
q(e);
|
|
6607
6611
|
}
|
|
6608
6612
|
}, te = () => {
|
|
6609
6613
|
l.value?.restoreValidation();
|
|
@@ -6679,14 +6683,14 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6679
6683
|
}
|
|
6680
6684
|
};
|
|
6681
6685
|
}
|
|
6682
|
-
}),
|
|
6686
|
+
}), Hp = { class: "uz-flex-1 uz-w-full" }, Up = { class: "uz-flex uz-justify-between" }, Wp = { class: "uz-com-title" }, Gp = {
|
|
6683
6687
|
key: 0,
|
|
6684
6688
|
class: "uz-table-asterisk"
|
|
6685
|
-
},
|
|
6686
|
-
function
|
|
6689
|
+
}, Kp = { class: "uz-flex uz-gap-2" }, qp = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
6690
|
+
function Jp(t, s, u, d, f, p) {
|
|
6687
6691
|
let m = O("UzIcon"), h = O("NIcon"), g = O("NButton"), v = O("Plus"), y = O("NDataTable"), b = O("NForm");
|
|
6688
|
-
return S(), i("div",
|
|
6689
|
-
a("div",
|
|
6692
|
+
return S(), i("div", Hp, [
|
|
6693
|
+
a("div", Up, [a("div", Wp, [c(k(t.item.label) + " ", 1), t.item.form.rule.required ? (S(), i("span", Gp, " \xA0* ")) : r("", !0)]), a("div", Kp, [
|
|
6690
6694
|
t.status === 2 ? r("", !0) : (S(!0), i(e, { key: 0 }, E(t.suffixes, (e) => (S(), n(g, {
|
|
6691
6695
|
key: e.key,
|
|
6692
6696
|
type: e.color,
|
|
@@ -6762,7 +6766,7 @@ function qp(t, s, u, d, f, p) {
|
|
|
6762
6766
|
"scroll-x",
|
|
6763
6767
|
"class",
|
|
6764
6768
|
"row-class-name"
|
|
6765
|
-
])) : r("", !0), a("div",
|
|
6769
|
+
])) : r("", !0), a("div", qp, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (S(), n(g, {
|
|
6766
6770
|
key: 0,
|
|
6767
6771
|
type: "success",
|
|
6768
6772
|
secondary: "",
|
|
@@ -6791,7 +6795,7 @@ function qp(t, s, u, d, f, p) {
|
|
|
6791
6795
|
}, 8, ["model"])
|
|
6792
6796
|
]);
|
|
6793
6797
|
}
|
|
6794
|
-
var
|
|
6798
|
+
var Yp = /* @__PURE__ */ U(Vp, [["render", Jp]]), Xp = d({
|
|
6795
6799
|
name: "UzTableQuestChild",
|
|
6796
6800
|
components: { NDataTable: se },
|
|
6797
6801
|
props: {
|
|
@@ -6819,7 +6823,7 @@ var Jp = /* @__PURE__ */ U(Bp, [["render", qp]]), Yp = d({
|
|
|
6819
6823
|
}), o.value = t, i.value = !1;
|
|
6820
6824
|
}
|
|
6821
6825
|
}, l = async (i) => {
|
|
6822
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
6826
|
+
let { tableColumns: c, tableWidth: l } = await Dp(H(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
6823
6827
|
c.unshift({
|
|
6824
6828
|
title: " ",
|
|
6825
6829
|
key: "index",
|
|
@@ -6838,7 +6842,7 @@ var Jp = /* @__PURE__ */ U(Bp, [["render", qp]]), Yp = d({
|
|
|
6838
6842
|
hide: !0,
|
|
6839
6843
|
width: 60,
|
|
6840
6844
|
render(t) {
|
|
6841
|
-
return
|
|
6845
|
+
return jd({ buttons: [{
|
|
6842
6846
|
type: "normal",
|
|
6843
6847
|
color: "primary",
|
|
6844
6848
|
key: "detail",
|
|
@@ -6858,7 +6862,7 @@ var Jp = /* @__PURE__ */ U(Bp, [["render", qp]]), Yp = d({
|
|
|
6858
6862
|
l();
|
|
6859
6863
|
}), M(async () => {
|
|
6860
6864
|
try {
|
|
6861
|
-
e.formValue && e.formValue.id && e.item.params.searchKey && c(await
|
|
6865
|
+
e.formValue && e.formValue.id && e.item.params.searchKey && c(await Sd({
|
|
6862
6866
|
tableId: e.item.params.link,
|
|
6863
6867
|
params: [{
|
|
6864
6868
|
key: e.item.params.searchKey,
|
|
@@ -6882,7 +6886,7 @@ var Jp = /* @__PURE__ */ U(Bp, [["render", qp]]), Yp = d({
|
|
|
6882
6886
|
let n = e.item.params.summary;
|
|
6883
6887
|
return Function("pageData", "h", n)(t, f);
|
|
6884
6888
|
} catch (e) {
|
|
6885
|
-
|
|
6889
|
+
q(e);
|
|
6886
6890
|
}
|
|
6887
6891
|
}
|
|
6888
6892
|
return [];
|
|
@@ -6890,11 +6894,11 @@ var Jp = /* @__PURE__ */ U(Bp, [["render", qp]]), Yp = d({
|
|
|
6890
6894
|
tableScrollX: s
|
|
6891
6895
|
};
|
|
6892
6896
|
}
|
|
6893
|
-
}),
|
|
6894
|
-
function
|
|
6897
|
+
}), Zp = { class: "uz-flex-1 uz-w-full" }, Qp = { class: "uz-flex uz-justify-between" }, $p = { class: "uz-com-title" };
|
|
6898
|
+
function em(e, t, n, r, o, s) {
|
|
6895
6899
|
let c = O("NDataTable"), u = O("UzTableDrawer");
|
|
6896
|
-
return S(), i("div",
|
|
6897
|
-
a("div",
|
|
6900
|
+
return S(), i("div", Zp, [
|
|
6901
|
+
a("div", Qp, [a("div", $p, k(e.item.label), 1)]),
|
|
6898
6902
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
6899
6903
|
l(c, {
|
|
6900
6904
|
columns: e.columns,
|
|
@@ -6919,7 +6923,7 @@ function $p(e, t, n, r, o, s) {
|
|
|
6919
6923
|
l(u, { ref: "drawerRef" }, null, 512)
|
|
6920
6924
|
]);
|
|
6921
6925
|
}
|
|
6922
|
-
var
|
|
6926
|
+
var tm = /* @__PURE__ */ U(Xp, [["render", em]]), nm = d({
|
|
6923
6927
|
name: "UzTableDrawer",
|
|
6924
6928
|
components: {
|
|
6925
6929
|
NButton: L,
|
|
@@ -6930,7 +6934,7 @@ var em = /* @__PURE__ */ U(Yp, [["render", $p]]), tm = d({
|
|
|
6930
6934
|
},
|
|
6931
6935
|
emits: ["update:show", "on-submit"],
|
|
6932
6936
|
setup(e, { emit: n, expose: r }) {
|
|
6933
|
-
let i = t(() =>
|
|
6937
|
+
let i = t(() => K.isMobile), a = T(), o = T(0), s = T({}), c = T({
|
|
6934
6938
|
link: "",
|
|
6935
6939
|
linkFn: ""
|
|
6936
6940
|
}), l = T(!1), u = T({
|
|
@@ -6955,7 +6959,7 @@ var em = /* @__PURE__ */ U(Yp, [["render", $p]]), tm = d({
|
|
|
6955
6959
|
}), y = T(!1), b = T(), x = () => {
|
|
6956
6960
|
a.value?.restoreValidation(), s.value = {}, f.value = !1, d.value = !1, l.value = !1, n("update:show", !1);
|
|
6957
6961
|
}, S = () => {
|
|
6958
|
-
o.value === 2 ? x() :
|
|
6962
|
+
o.value === 2 ? x() : Qu.info({
|
|
6959
6963
|
title: "提示",
|
|
6960
6964
|
content: "关闭后修改的数据将不保留,确定关闭?",
|
|
6961
6965
|
positiveText: "确定",
|
|
@@ -6971,10 +6975,10 @@ var em = /* @__PURE__ */ U(Yp, [["render", $p]]), tm = d({
|
|
|
6971
6975
|
Function("formValues", "POST", t)(e, Z).then((e) => {
|
|
6972
6976
|
s.value = e;
|
|
6973
6977
|
}).catch((e) => {
|
|
6974
|
-
|
|
6978
|
+
q(e);
|
|
6975
6979
|
});
|
|
6976
6980
|
} catch (e) {
|
|
6977
|
-
|
|
6981
|
+
q(e);
|
|
6978
6982
|
}
|
|
6979
6983
|
else s.value = e;
|
|
6980
6984
|
};
|
|
@@ -6986,11 +6990,11 @@ var em = /* @__PURE__ */ U(Yp, [["render", $p]]), tm = d({
|
|
|
6986
6990
|
linkFn: t
|
|
6987
6991
|
};
|
|
6988
6992
|
let r = e.split(".")[0];
|
|
6989
|
-
|
|
6993
|
+
yp(r).then((e) => {
|
|
6990
6994
|
g(async () => {
|
|
6991
6995
|
let t = nt.parse(e.viewJson);
|
|
6992
|
-
u.value =
|
|
6993
|
-
let { form: r } = await
|
|
6996
|
+
u.value = Tp(t.option), l.value = !0;
|
|
6997
|
+
let { form: r } = await Ep(xp(t.table));
|
|
6994
6998
|
v.value = t.trigger, n && C(n), g(() => {
|
|
6995
6999
|
_.value = r, p.value = !1;
|
|
6996
7000
|
});
|
|
@@ -7044,11 +7048,11 @@ var em = /* @__PURE__ */ U(Yp, [["render", $p]]), tm = d({
|
|
|
7044
7048
|
return;
|
|
7045
7049
|
} else {
|
|
7046
7050
|
let t = c.value.link.split(".")[0];
|
|
7047
|
-
|
|
7051
|
+
Cd({
|
|
7048
7052
|
tableId: t,
|
|
7049
7053
|
...e
|
|
7050
7054
|
}).then(() => {
|
|
7051
|
-
|
|
7055
|
+
_p(), Sd({ tableId: t }).then((e) => {
|
|
7052
7056
|
let t = c.value.link.split("."), r;
|
|
7053
7057
|
if (c.value.linkFn) {
|
|
7054
7058
|
let t = c.value.linkFn;
|
|
@@ -7071,11 +7075,11 @@ var em = /* @__PURE__ */ U(Yp, [["render", $p]]), tm = d({
|
|
|
7071
7075
|
}
|
|
7072
7076
|
};
|
|
7073
7077
|
}
|
|
7074
|
-
}),
|
|
7078
|
+
}), rm = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, im = {
|
|
7075
7079
|
key: 0,
|
|
7076
7080
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
7077
|
-
},
|
|
7078
|
-
function
|
|
7081
|
+
}, am = { class: "uz-flex uz-gap-2" };
|
|
7082
|
+
function om(e, t, r, s, u, d) {
|
|
7079
7083
|
let f = O("NSkeleton"), p = O("UzForm"), m = O("UzSpin"), h = O("NSpin"), g = O("NButton"), _ = O("NDrawerContent"), v = O("NDrawer");
|
|
7080
7084
|
return S(), n(v, {
|
|
7081
7085
|
show: e.drawer,
|
|
@@ -7101,7 +7105,7 @@ function am(e, t, r, s, u, d) {
|
|
|
7101
7105
|
message: e.spinMsg,
|
|
7102
7106
|
status: e.spinStatus
|
|
7103
7107
|
}, {
|
|
7104
|
-
default: N(() => [a("div",
|
|
7108
|
+
default: N(() => [a("div", rm, [e.skeletonShow ? (S(), i("div", im, [
|
|
7105
7109
|
l(f, {
|
|
7106
7110
|
size: "large",
|
|
7107
7111
|
style: { height: "156px" }
|
|
@@ -7164,7 +7168,7 @@ function am(e, t, r, s, u, d) {
|
|
|
7164
7168
|
_: 2
|
|
7165
7169
|
}, [e.formStatus === 2 ? void 0 : {
|
|
7166
7170
|
name: "footer",
|
|
7167
|
-
fn: N(() => [a("div",
|
|
7171
|
+
fn: N(() => [a("div", am, [l(g, {
|
|
7168
7172
|
loading: e.spinShow,
|
|
7169
7173
|
secondary: "",
|
|
7170
7174
|
onClick: e.drawerCheck
|
|
@@ -7191,7 +7195,7 @@ function am(e, t, r, s, u, d) {
|
|
|
7191
7195
|
"on-after-leave"
|
|
7192
7196
|
]);
|
|
7193
7197
|
}
|
|
7194
|
-
var
|
|
7198
|
+
var sm = /* @__PURE__ */ U(nm, [["render", om]]), cm = d({
|
|
7195
7199
|
name: "UzTableMobileList",
|
|
7196
7200
|
props: {
|
|
7197
7201
|
tableData: {
|
|
@@ -7209,12 +7213,12 @@ var om = /* @__PURE__ */ U(tm, [["render", am]]), sm = d({
|
|
|
7209
7213
|
},
|
|
7210
7214
|
emits: ["update:row-keys"],
|
|
7211
7215
|
setup() {}
|
|
7212
|
-
}),
|
|
7216
|
+
}), lm = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, um = {
|
|
7213
7217
|
key: 1,
|
|
7214
7218
|
class: "uz-table-mobile-group-txt"
|
|
7215
7219
|
};
|
|
7216
|
-
function
|
|
7217
|
-
return S(), i("div",
|
|
7220
|
+
function dm(t, o, s, c, l, u) {
|
|
7221
|
+
return S(), i("div", lm, [(S(!0), i(e, null, E(t.tableColumns, (o) => (S(), i("div", {
|
|
7218
7222
|
key: o.key,
|
|
7219
7223
|
class: _(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
|
|
7220
7224
|
style: v(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
|
|
@@ -7225,11 +7229,11 @@ function um(t, o, s, c, l, u) {
|
|
|
7225
7229
|
class: "mobile"
|
|
7226
7230
|
})) : r("", !0)], 64)) : (S(), i(e, { key: 1 }, [a("div", { class: _(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, k(typeof o.title == "string" ? o.title : o.title()), 1)], 2), a("div", { class: _(["uz-table-mobile-group-content", o.lineBreak ? "line-break" : ""]) }, [o.render ? (S(), n(te(() => {
|
|
7227
7231
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7228
|
-
}), { key: 0 })) : (S(), i("div",
|
|
7232
|
+
}), { key: 0 })) : (S(), i("div", um, k(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
7229
7233
|
}
|
|
7230
7234
|
//#endregion
|
|
7231
7235
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
7232
|
-
var
|
|
7236
|
+
var fm = d({
|
|
7233
7237
|
name: "UzTableMobile",
|
|
7234
7238
|
components: {
|
|
7235
7239
|
NCheckbox: re,
|
|
@@ -7237,7 +7241,7 @@ var dm = d({
|
|
|
7237
7241
|
NPagination: Te,
|
|
7238
7242
|
NCheckboxGroup: ie,
|
|
7239
7243
|
NRadioGroup: ke,
|
|
7240
|
-
UzTableMobileList: /* @__PURE__ */ U(
|
|
7244
|
+
UzTableMobileList: /* @__PURE__ */ U(cm, [["render", dm], ["__scopeId", "data-v-84c394fe"]])
|
|
7241
7245
|
},
|
|
7242
7246
|
props: {
|
|
7243
7247
|
tableData: {
|
|
@@ -7284,17 +7288,17 @@ var dm = d({
|
|
|
7284
7288
|
}
|
|
7285
7289
|
};
|
|
7286
7290
|
}
|
|
7287
|
-
}),
|
|
7291
|
+
}), pm = {
|
|
7288
7292
|
key: 0,
|
|
7289
7293
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7290
|
-
},
|
|
7294
|
+
}, mm = {
|
|
7291
7295
|
key: 0,
|
|
7292
7296
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7293
|
-
},
|
|
7297
|
+
}, hm = {
|
|
7294
7298
|
key: 0,
|
|
7295
7299
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7296
7300
|
};
|
|
7297
|
-
function
|
|
7301
|
+
function gm(t, a, o, s, c, u) {
|
|
7298
7302
|
let d = O("UzTableMobileList"), f = O("NCheckbox"), p = O("NPagination"), m = O("NCheckboxGroup"), h = O("NRadio"), g = O("NRadioGroup");
|
|
7299
7303
|
return t.selection === 2 ? (S(), n(m, {
|
|
7300
7304
|
key: 0,
|
|
@@ -7321,7 +7325,7 @@ function hm(t, a, o, s, c, u) {
|
|
|
7321
7325
|
"tableColumns"
|
|
7322
7326
|
])]),
|
|
7323
7327
|
_: 2
|
|
7324
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), i("div",
|
|
7328
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), i("div", pm, [l(p, {
|
|
7325
7329
|
page: t.tableQueries.query.page,
|
|
7326
7330
|
"onUpdate:page": [a[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7327
7331
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7363,7 +7367,7 @@ function hm(t, a, o, s, c, u) {
|
|
|
7363
7367
|
"tableColumns"
|
|
7364
7368
|
])]),
|
|
7365
7369
|
_: 2
|
|
7366
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), i("div",
|
|
7370
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), i("div", mm, [l(p, {
|
|
7367
7371
|
page: t.tableQueries.query.page,
|
|
7368
7372
|
"onUpdate:page": [a[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7369
7373
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7398,7 +7402,7 @@ function hm(t, a, o, s, c, u) {
|
|
|
7398
7402
|
"tableData",
|
|
7399
7403
|
"tableIndex",
|
|
7400
7404
|
"tableColumns"
|
|
7401
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), i("div",
|
|
7405
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), i("div", hm, [l(p, {
|
|
7402
7406
|
page: t.tableQueries.query.page,
|
|
7403
7407
|
"onUpdate:page": [a[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7404
7408
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7411,7 +7415,7 @@ function hm(t, a, o, s, c, u) {
|
|
|
7411
7415
|
"onUpdate:page"
|
|
7412
7416
|
])])) : r("", !0)], 4));
|
|
7413
7417
|
}
|
|
7414
|
-
var
|
|
7418
|
+
var _m = /* @__PURE__ */ U(fm, [["render", gm], ["__scopeId", "data-v-70b54e3b"]]), Q = w({
|
|
7415
7419
|
page: {
|
|
7416
7420
|
label: "首页",
|
|
7417
7421
|
key: "/",
|
|
@@ -7422,14 +7426,14 @@ var gm = /* @__PURE__ */ U(dm, [["render", hm], ["__scopeId", "data-v-70b54e3b"]
|
|
|
7422
7426
|
active: "/",
|
|
7423
7427
|
thumbnail: []
|
|
7424
7428
|
});
|
|
7425
|
-
function
|
|
7429
|
+
function vm(e) {
|
|
7426
7430
|
Q.cache = e.cache, Q.page = {
|
|
7427
7431
|
label: e.label,
|
|
7428
7432
|
key: e.key,
|
|
7429
7433
|
path: e.key,
|
|
7430
7434
|
closable: !1
|
|
7431
7435
|
};
|
|
7432
|
-
let t =
|
|
7436
|
+
let t = Y(Q.cache, !1);
|
|
7433
7437
|
t ? (Q.active = t.active, t.thumbnail && (Q.thumbnail = t.thumbnail)) : Q.thumbnail = [{
|
|
7434
7438
|
label: e.label,
|
|
7435
7439
|
key: e.key,
|
|
@@ -7437,35 +7441,35 @@ function _m(e) {
|
|
|
7437
7441
|
closable: !1
|
|
7438
7442
|
}];
|
|
7439
7443
|
}
|
|
7440
|
-
function
|
|
7441
|
-
Q.active = e, W.push(e),
|
|
7444
|
+
function ym(e) {
|
|
7445
|
+
Q.active = e, W.push(e), J(Q.cache, Q, 0);
|
|
7442
7446
|
}
|
|
7443
|
-
function
|
|
7447
|
+
function bm(e, t) {
|
|
7444
7448
|
let n = Q.thumbnail.find((t) => t.key === e);
|
|
7445
|
-
n && (n.key = t, Q.active = t,
|
|
7449
|
+
n && (n.key = t, Q.active = t, J(Q.cache, Q, 0));
|
|
7446
7450
|
}
|
|
7447
|
-
function
|
|
7451
|
+
function xm(e) {
|
|
7448
7452
|
let t = Q.thumbnail.find((t) => t.path === e.key);
|
|
7449
|
-
t ? (Q.active = t.key,
|
|
7453
|
+
t ? (Q.active = t.key, J(Q.cache, Q, 0), W.push(t.key)) : (Q.active = e.key, Q.thumbnail.push({
|
|
7450
7454
|
...e,
|
|
7451
7455
|
path: e.key,
|
|
7452
7456
|
closable: !0
|
|
7453
7457
|
}), W.push(e.key));
|
|
7454
7458
|
}
|
|
7455
|
-
function
|
|
7459
|
+
function Sm(e) {
|
|
7456
7460
|
let t = Q.thumbnail.findIndex((t) => t.key === e);
|
|
7457
7461
|
if (Q.thumbnail.splice(t, 1), Q.active === e) {
|
|
7458
7462
|
let e = Q.thumbnail[t - 1]?.key || "";
|
|
7459
7463
|
Q.active = e, W.push(e);
|
|
7460
7464
|
}
|
|
7461
|
-
|
|
7465
|
+
J(Q.cache, Q, 0);
|
|
7462
7466
|
}
|
|
7463
|
-
function
|
|
7464
|
-
Q.active = Q.page.path, Q.thumbnail = [Q.page], W.push(Q.page.path),
|
|
7467
|
+
function Cm() {
|
|
7468
|
+
Q.active = Q.page.path, Q.thumbnail = [Q.page], W.push(Q.page.path), J(Q.cache, Q, 0);
|
|
7465
7469
|
}
|
|
7466
7470
|
//#endregion
|
|
7467
7471
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
7468
|
-
var
|
|
7472
|
+
var wm = d({
|
|
7469
7473
|
name: "UzThumbnail",
|
|
7470
7474
|
components: {
|
|
7471
7475
|
NTabs: Fe,
|
|
@@ -7487,29 +7491,29 @@ var Cm = d({
|
|
|
7487
7491
|
setup(e, { slots: t }) {
|
|
7488
7492
|
let n = T(!!t.prefix), r = qe();
|
|
7489
7493
|
return b(() => {
|
|
7490
|
-
|
|
7494
|
+
vm(e.option), Q.active !== r.path && bm(r.path, r.fullPath);
|
|
7491
7495
|
}), j(() => r, (e) => {
|
|
7492
|
-
Q.active === r.path &&
|
|
7496
|
+
Q.active === r.path && bm(e.path, e.fullPath);
|
|
7493
7497
|
}, { deep: !0 }), j(() => e.option, (e) => {
|
|
7494
|
-
|
|
7498
|
+
vm(e);
|
|
7495
7499
|
}, { deep: !0 }), {
|
|
7496
7500
|
thumbnailStore: Q,
|
|
7497
7501
|
isSlotPrefix: n,
|
|
7498
7502
|
handleClose: (e) => {
|
|
7499
|
-
|
|
7503
|
+
Sm(e);
|
|
7500
7504
|
},
|
|
7501
7505
|
handleChange: (e) => {
|
|
7502
|
-
|
|
7506
|
+
ym(e);
|
|
7503
7507
|
},
|
|
7504
7508
|
handleClear: () => {
|
|
7505
|
-
|
|
7509
|
+
Cm();
|
|
7506
7510
|
}
|
|
7507
7511
|
};
|
|
7508
7512
|
}
|
|
7509
7513
|
});
|
|
7510
7514
|
//#endregion
|
|
7511
7515
|
//#region components/thumbnail/index.vue
|
|
7512
|
-
function
|
|
7516
|
+
function Tm(t, r, a, s, u, d) {
|
|
7513
7517
|
let f = O("NTabPane"), p = O("Trash"), m = O("NIcon"), h = O("NButton"), g = O("NPopconfirm"), _ = O("NFlex"), v = O("NTabs");
|
|
7514
7518
|
return S(), n(v, {
|
|
7515
7519
|
value: t.thumbnailStore.active,
|
|
@@ -7555,33 +7559,33 @@ function wm(t, r, a, s, u, d) {
|
|
|
7555
7559
|
"on-update:value"
|
|
7556
7560
|
]);
|
|
7557
7561
|
}
|
|
7558
|
-
var
|
|
7559
|
-
V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover =
|
|
7560
|
-
var
|
|
7562
|
+
var Em = /* @__PURE__ */ U(wm, [["render", Tm]]), Dm = "#007AFF", Om = "#0A84FF", km = "#FF9500", Am = "#FF9F0A", jm = "#28CD41", Mm = "#32D74B", Nm = "#FFCC00", Pm = "#FFD60A", Fm = "#FF3B30", Im = "#FF453A";
|
|
7563
|
+
V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover = Om, V.common.infoColor = "#FF9F0A", V.common.infoColorHover = Am, V.common.successColor = "#32D74B", V.common.successColorHover = Mm, V.common.warningColor = "#FFD60A", V.common.successColorHover = Pm, V.common.errorColor = "#FF453A", V.common.errorColorHover = Im, V.common.borderRadius = "var(--borderRadius)", V.common.inputColor = "rgba(var(--input))", V.common.borderColor = "rgba(var(--border), 0.7)", V.DataTable.tdColor = "#2d2d31";
|
|
7564
|
+
var Lm = {
|
|
7561
7565
|
common: {
|
|
7562
7566
|
inputColor: "rgba(var(--input))",
|
|
7563
7567
|
borderColor: "rgba(var(--border), 0.7)",
|
|
7564
7568
|
borderRadius: "var(--borderRadius)",
|
|
7565
|
-
primaryColor:
|
|
7566
|
-
primaryColorHover:
|
|
7567
|
-
primaryColorPressed:
|
|
7568
|
-
primaryColorSuppl:
|
|
7569
|
-
infoColor:
|
|
7570
|
-
infoColorHover:
|
|
7571
|
-
infoColorPressed:
|
|
7572
|
-
infoColorSuppl:
|
|
7573
|
-
successColor:
|
|
7574
|
-
successColorHover:
|
|
7575
|
-
successColorPressed:
|
|
7576
|
-
successColorSuppl:
|
|
7577
|
-
warningColor:
|
|
7578
|
-
warningColorHover:
|
|
7579
|
-
warningColorPressed:
|
|
7580
|
-
warningColorSuppl:
|
|
7581
|
-
errorColor:
|
|
7582
|
-
errorColorHover:
|
|
7583
|
-
errorColorPressed:
|
|
7584
|
-
errorColorSuppl:
|
|
7569
|
+
primaryColor: Dm,
|
|
7570
|
+
primaryColorHover: Om,
|
|
7571
|
+
primaryColorPressed: Dm,
|
|
7572
|
+
primaryColorSuppl: Dm,
|
|
7573
|
+
infoColor: km,
|
|
7574
|
+
infoColorHover: Am,
|
|
7575
|
+
infoColorPressed: km,
|
|
7576
|
+
infoColorSuppl: km,
|
|
7577
|
+
successColor: jm,
|
|
7578
|
+
successColorHover: Mm,
|
|
7579
|
+
successColorPressed: jm,
|
|
7580
|
+
successColorSuppl: jm,
|
|
7581
|
+
warningColor: Nm,
|
|
7582
|
+
warningColorHover: Pm,
|
|
7583
|
+
warningColorPressed: Nm,
|
|
7584
|
+
warningColorSuppl: Nm,
|
|
7585
|
+
errorColor: Fm,
|
|
7586
|
+
errorColorHover: Im,
|
|
7587
|
+
errorColorPressed: Fm,
|
|
7588
|
+
errorColorSuppl: Fm,
|
|
7585
7589
|
cardColor: "#fff"
|
|
7586
7590
|
},
|
|
7587
7591
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -7589,22 +7593,22 @@ var Im = {
|
|
|
7589
7593
|
DatePicker: { itemBorderRadius: "var(--borderRadius)" },
|
|
7590
7594
|
Notification: { borderRadius: "var(--borderRadius)" },
|
|
7591
7595
|
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
|
|
7592
|
-
},
|
|
7596
|
+
}, Rm = V, zm = d({
|
|
7593
7597
|
name: "UzWrap",
|
|
7594
7598
|
components: { NConfigProvider: oe },
|
|
7595
7599
|
setup() {
|
|
7596
7600
|
return {
|
|
7597
7601
|
zhCN: Ue,
|
|
7598
7602
|
dateZhCN: Ve,
|
|
7599
|
-
commonStore:
|
|
7600
|
-
lightTheme:
|
|
7601
|
-
darkTheme:
|
|
7603
|
+
commonStore: K,
|
|
7604
|
+
lightTheme: Lm,
|
|
7605
|
+
darkTheme: Rm
|
|
7602
7606
|
};
|
|
7603
7607
|
}
|
|
7604
7608
|
});
|
|
7605
7609
|
//#endregion
|
|
7606
7610
|
//#region components/wrap/index.vue
|
|
7607
|
-
function
|
|
7611
|
+
function Bm(e, t, r, i, a, o) {
|
|
7608
7612
|
let s = O("NConfigProvider");
|
|
7609
7613
|
return S(), n(s, {
|
|
7610
7614
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -7623,7 +7627,7 @@ function zm(e, t, r, i, a, o) {
|
|
|
7623
7627
|
"date-locale"
|
|
7624
7628
|
]);
|
|
7625
7629
|
}
|
|
7626
|
-
var
|
|
7630
|
+
var Vm = /* @__PURE__ */ U(zm, [["render", Bm]]), Hm = /* @__PURE__ */ ot({
|
|
7627
7631
|
AccessPoint: () => dt,
|
|
7628
7632
|
Activity: () => ht,
|
|
7629
7633
|
Adjustments: () => yt,
|
|
@@ -7752,53 +7756,53 @@ var Bm = /* @__PURE__ */ U(Rm, [["render", zm]]), Vm = /* @__PURE__ */ ot({
|
|
|
7752
7756
|
UserPlus: () => kl,
|
|
7753
7757
|
Users: () => Nl,
|
|
7754
7758
|
UzActionButton: () => st,
|
|
7755
|
-
UzBack: () =>
|
|
7756
|
-
UzCamera: () =>
|
|
7757
|
-
UzCircle: () =>
|
|
7758
|
-
UzDraggableForm: () =>
|
|
7759
|
-
UzForm: () =>
|
|
7760
|
-
UzFormItem: () =>
|
|
7761
|
-
UzFormItemImage: () =>
|
|
7762
|
-
UzFormItemTimesPicker: () =>
|
|
7763
|
-
UzFormItemUpload: () =>
|
|
7759
|
+
UzBack: () => Hd,
|
|
7760
|
+
UzCamera: () => Zf,
|
|
7761
|
+
UzCircle: () => _f,
|
|
7762
|
+
UzDraggableForm: () => Af,
|
|
7763
|
+
UzForm: () => Tf,
|
|
7764
|
+
UzFormItem: () => xf,
|
|
7765
|
+
UzFormItemImage: () => Bf,
|
|
7766
|
+
UzFormItemTimesPicker: () => Wf,
|
|
7767
|
+
UzFormItemUpload: () => If,
|
|
7764
7768
|
UzIcon: () => Nu,
|
|
7765
|
-
UzSearchBar: () =>
|
|
7766
|
-
UzSearchMobileBar: () =>
|
|
7767
|
-
UzSpin: () =>
|
|
7768
|
-
UzTable: () =>
|
|
7769
|
-
UzTableChild: () =>
|
|
7770
|
-
UzTableDrawer: () =>
|
|
7771
|
-
UzTableMobile: () =>
|
|
7772
|
-
UzTableQuestChild: () =>
|
|
7773
|
-
UzThumbnail: () =>
|
|
7774
|
-
UzWrap: () =>
|
|
7769
|
+
UzSearchBar: () => rp,
|
|
7770
|
+
UzSearchMobileBar: () => lp,
|
|
7771
|
+
UzSpin: () => Ap,
|
|
7772
|
+
UzTable: () => Bp,
|
|
7773
|
+
UzTableChild: () => Yp,
|
|
7774
|
+
UzTableDrawer: () => sm,
|
|
7775
|
+
UzTableMobile: () => _m,
|
|
7776
|
+
UzTableQuestChild: () => tm,
|
|
7777
|
+
UzThumbnail: () => Em,
|
|
7778
|
+
UzWrap: () => Vm,
|
|
7775
7779
|
X: () => Ll,
|
|
7776
|
-
commonStore: () =>
|
|
7777
|
-
fnActionReduction: () =>
|
|
7778
|
-
fnActionSimplify: () =>
|
|
7779
|
-
fnAddThumbnail: () =>
|
|
7780
|
-
fnClearAllThumbnail: () =>
|
|
7781
|
-
fnDeleteThumbnail: () =>
|
|
7782
|
-
fnGetTableData: () =>
|
|
7783
|
-
fnOptionReduction: () =>
|
|
7784
|
-
fnOptionSimplify: () =>
|
|
7785
|
-
fnPrepareFormData: () =>
|
|
7786
|
-
fnPrepareTableData: () =>
|
|
7787
|
-
fnRenderAction: () =>
|
|
7788
|
-
fnSetLang: () =>
|
|
7789
|
-
fnSetTheme: () =>
|
|
7790
|
-
fnSetThumbnail: () =>
|
|
7791
|
-
fnTableReduction: () =>
|
|
7792
|
-
fnTableSimplify: () =>
|
|
7793
|
-
fnTriggersReduction: () =>
|
|
7794
|
-
fnTriggersSimplify: () =>
|
|
7795
|
-
i18n: () =>
|
|
7796
|
-
}),
|
|
7797
|
-
function
|
|
7798
|
-
|
|
7799
|
-
}
|
|
7800
|
-
function
|
|
7801
|
-
let e = 1, t = window.innerWidth, n = window.innerHeight, r =
|
|
7780
|
+
commonStore: () => K,
|
|
7781
|
+
fnActionReduction: () => zd,
|
|
7782
|
+
fnActionSimplify: () => Rd,
|
|
7783
|
+
fnAddThumbnail: () => xm,
|
|
7784
|
+
fnClearAllThumbnail: () => Cm,
|
|
7785
|
+
fnDeleteThumbnail: () => Sm,
|
|
7786
|
+
fnGetTableData: () => yp,
|
|
7787
|
+
fnOptionReduction: () => Tp,
|
|
7788
|
+
fnOptionSimplify: () => wp,
|
|
7789
|
+
fnPrepareFormData: () => Ep,
|
|
7790
|
+
fnPrepareTableData: () => Dp,
|
|
7791
|
+
fnRenderAction: () => jd,
|
|
7792
|
+
fnSetLang: () => Lu,
|
|
7793
|
+
fnSetTheme: () => Ru,
|
|
7794
|
+
fnSetThumbnail: () => ym,
|
|
7795
|
+
fnTableReduction: () => xp,
|
|
7796
|
+
fnTableSimplify: () => bp,
|
|
7797
|
+
fnTriggersReduction: () => Cp,
|
|
7798
|
+
fnTriggersSimplify: () => Sp,
|
|
7799
|
+
i18n: () => G
|
|
7800
|
+
}), Um = 3840, Wm = 2160, Gm = w({ scale: 1 });
|
|
7801
|
+
function Km(e, t) {
|
|
7802
|
+
Um = e, Wm = t;
|
|
7803
|
+
}
|
|
7804
|
+
function qm() {
|
|
7805
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = Um, i = Wm, a = parseFloat((r / i).toFixed(5));
|
|
7802
7806
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
7803
7807
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
7804
7808
|
e = t > 1 ? 1 : t;
|
|
@@ -7806,17 +7810,17 @@ function Km() {
|
|
|
7806
7810
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
7807
7811
|
e = n > 1 ? 1 : n;
|
|
7808
7812
|
}
|
|
7809
|
-
|
|
7813
|
+
Gm.scale = e;
|
|
7810
7814
|
}
|
|
7811
|
-
function
|
|
7812
|
-
let e = Qe(
|
|
7815
|
+
function Jm() {
|
|
7816
|
+
let e = Qe(qm, 200);
|
|
7813
7817
|
return e(), window.addEventListener("resize", e), () => {
|
|
7814
|
-
|
|
7818
|
+
Um = 3840, Wm = 2160, window.removeEventListener("resize", e);
|
|
7815
7819
|
};
|
|
7816
7820
|
}
|
|
7817
7821
|
//#endregion
|
|
7818
7822
|
//#region components/hooks/useDebounceFn.ts
|
|
7819
|
-
function
|
|
7823
|
+
function Ym(e, t = 1e3) {
|
|
7820
7824
|
let n = Qe(e, t);
|
|
7821
7825
|
return {
|
|
7822
7826
|
run: n,
|
|
@@ -7826,7 +7830,7 @@ function Jm(e, t = 1e3) {
|
|
|
7826
7830
|
}
|
|
7827
7831
|
//#endregion
|
|
7828
7832
|
//#region components/hooks/useThrottleFn.ts
|
|
7829
|
-
function
|
|
7833
|
+
function Xm(e, n = 1e3) {
|
|
7830
7834
|
let r = T(e), i = t(() => $e((...e) => r.value([...e]), n));
|
|
7831
7835
|
return x(() => {
|
|
7832
7836
|
i.value.cancel();
|
|
@@ -7838,16 +7842,16 @@ function Ym(e, n = 1e3) {
|
|
|
7838
7842
|
}
|
|
7839
7843
|
//#endregion
|
|
7840
7844
|
//#region components/hooks/useLocalStorage.ts
|
|
7841
|
-
function
|
|
7842
|
-
return [T(
|
|
7843
|
-
n === void 0 ?
|
|
7845
|
+
function Zm(e, t) {
|
|
7846
|
+
return [T(Y(e, t?.defaultValue)), (n) => {
|
|
7847
|
+
n === void 0 ? $u(e) : J(e, n, t?.expired || "1 Day");
|
|
7844
7848
|
}];
|
|
7845
7849
|
}
|
|
7846
7850
|
//#endregion
|
|
7847
7851
|
//#region components/hooks/useQuery.ts
|
|
7848
|
-
function
|
|
7852
|
+
function Qm(e, t, n) {
|
|
7849
7853
|
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 = () => {
|
|
7850
|
-
|
|
7854
|
+
hd(), clearInterval(o.value), o.value = null;
|
|
7851
7855
|
}, p = async () => {
|
|
7852
7856
|
if (!s.value) {
|
|
7853
7857
|
h(!0, "loading");
|
|
@@ -7866,7 +7870,7 @@ function Zm(e, t, n) {
|
|
|
7866
7870
|
});
|
|
7867
7871
|
e = await Promise.race([n, t()]);
|
|
7868
7872
|
}
|
|
7869
|
-
h(!1, "success"), m(e),
|
|
7873
|
+
h(!1, "success"), m(e), J(r, e, 0);
|
|
7870
7874
|
} catch (e) {
|
|
7871
7875
|
g(e), h(!1, "error"), u.value > 0 && (--u.value, setTimeout(() => {
|
|
7872
7876
|
p();
|
|
@@ -7883,14 +7887,14 @@ function Zm(e, t, n) {
|
|
|
7883
7887
|
}, g = (e) => {
|
|
7884
7888
|
l.value = e;
|
|
7885
7889
|
}, _ = () => {
|
|
7886
|
-
|
|
7890
|
+
hd(), i.value && i.value();
|
|
7887
7891
|
}, v = () => {
|
|
7888
7892
|
_(), p(), n?.pollingInterval && (f(), o.value = setInterval(() => {
|
|
7889
7893
|
p();
|
|
7890
7894
|
}, n?.pollingInterval));
|
|
7891
7895
|
};
|
|
7892
7896
|
if (n?.retry && n.pollingInterval === void 0 && (u.value = n.retry.retryCount || 3, d.value = n.retry.retryInterval || 1e3 * 2 ** 3), n?.initialData && m(n.initialData()), n === void 0 || n.initialData === void 0 || n.cache === void 0 || n.cache === !0) try {
|
|
7893
|
-
let e =
|
|
7897
|
+
let e = Y(r, !1);
|
|
7894
7898
|
e && m(e);
|
|
7895
7899
|
} catch {
|
|
7896
7900
|
m(!1);
|
|
@@ -7911,26 +7915,26 @@ function Zm(e, t, n) {
|
|
|
7911
7915
|
}
|
|
7912
7916
|
//#endregion
|
|
7913
7917
|
//#region package.json
|
|
7914
|
-
var
|
|
7915
|
-
async function
|
|
7918
|
+
var $m = "0.1.17", eh;
|
|
7919
|
+
async function th() {
|
|
7916
7920
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7917
7921
|
method: "HEAD",
|
|
7918
7922
|
cache: "no-cache"
|
|
7919
7923
|
});
|
|
7920
7924
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
7921
7925
|
}
|
|
7922
|
-
async function th() {
|
|
7923
|
-
let e = await eh();
|
|
7924
|
-
$m !== e && od(!0);
|
|
7925
|
-
}
|
|
7926
7926
|
async function nh() {
|
|
7927
|
-
|
|
7928
|
-
|
|
7927
|
+
let e = await th();
|
|
7928
|
+
eh !== e && zu(!0);
|
|
7929
|
+
}
|
|
7930
|
+
async function rh() {
|
|
7931
|
+
eh = await th(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
7932
|
+
nh();
|
|
7929
7933
|
}, 60 * 1e3);
|
|
7930
7934
|
}
|
|
7931
7935
|
//#endregion
|
|
7932
7936
|
//#region components/monitor.ts
|
|
7933
|
-
var
|
|
7937
|
+
var ih = "", ah, $ = navigator.userAgent.toLocaleUpperCase(), oh = () => {
|
|
7934
7938
|
let e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, n = /WINDOWS NT 7.[\d]+/, r = /WINDOWS NT 10.[\d]+/, i = /WINDOWS NT 11.[\d]+/, a = /ANDROID [\d.]+/, o = /IPHONE/, s = /IPAD/, c = /MAC/;
|
|
7935
7939
|
if (e.test($)) return "Windows XP";
|
|
7936
7940
|
if (t.test($)) return "Windows 7";
|
|
@@ -7954,7 +7958,7 @@ var rh = "", ih, $ = navigator.userAgent.toLocaleUpperCase(), ah = () => {
|
|
|
7954
7958
|
return `MAC ${e ? e[0].replace(/_/g, ".").replace(/ /g, "") : ""}`;
|
|
7955
7959
|
}
|
|
7956
7960
|
return "Other Platform";
|
|
7957
|
-
},
|
|
7961
|
+
}, sh = () => {
|
|
7958
7962
|
let e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, n = /FIREFOX\/[\d.]+/, r = /CHROME\/[\d.]+/, i = /SAFARI\/[\d.]+/, a = /OPR\/[\d.]+/, o = /SE \d/, s = /UCBROWSER/, c = /ANDROID [\d.]+/;
|
|
7959
7963
|
if (e.test($) && o.test($)) return "SogouIE";
|
|
7960
7964
|
if (o.test($)) return "SogouFast";
|
|
@@ -7983,64 +7987,64 @@ var rh = "", ih, $ = navigator.userAgent.toLocaleUpperCase(), ah = () => {
|
|
|
7983
7987
|
}
|
|
7984
7988
|
return "Others";
|
|
7985
7989
|
};
|
|
7986
|
-
function
|
|
7990
|
+
function ch(e, t, n, r = !1) {
|
|
7987
7991
|
if (e !== void 0 && (t in e || r)) {
|
|
7988
7992
|
let r = e[t], i = n(r);
|
|
7989
7993
|
typeof i == "function" && (e[t] = i);
|
|
7990
7994
|
}
|
|
7991
7995
|
}
|
|
7992
|
-
function
|
|
7996
|
+
function lh(e, t, n, r = !1) {
|
|
7993
7997
|
e.addEventListener(t, n, r);
|
|
7994
7998
|
}
|
|
7995
|
-
function
|
|
7999
|
+
function uh() {
|
|
7996
8000
|
if (!("XMLHttpRequest" in window)) return;
|
|
7997
8001
|
let e = XMLHttpRequest.prototype;
|
|
7998
|
-
|
|
8002
|
+
ch(e, "open", (e) => function(...t) {
|
|
7999
8003
|
this.xhr = {
|
|
8000
8004
|
method: t[0].toUpperCase(),
|
|
8001
8005
|
url: t[1],
|
|
8002
8006
|
startTime: Date.now(),
|
|
8003
8007
|
type: "xhr"
|
|
8004
|
-
},
|
|
8005
|
-
this.xhr.url.indexOf("log/submit") === -1 &&
|
|
8008
|
+
}, lh(this, "error", function() {
|
|
8009
|
+
this.xhr.url.indexOf("log/submit") === -1 && fh(3, this.xhr.url, `Request-${this.status}`);
|
|
8006
8010
|
}), e.apply(this, t);
|
|
8007
|
-
}),
|
|
8011
|
+
}), ch(e, "send", (e) => function(...t) {
|
|
8008
8012
|
let { url: n } = this.xhr;
|
|
8009
8013
|
this.ontimeout = function() {
|
|
8010
|
-
|
|
8011
|
-
},
|
|
8012
|
-
(this.status === 500 || this.status === 405) &&
|
|
8014
|
+
fh(3, n, "Network Timeout");
|
|
8015
|
+
}, lh(this, "loadend", function() {
|
|
8016
|
+
(this.status === 500 || this.status === 405) && fh(3, n, `${t[0]}-${this.status}-${this.response}`);
|
|
8013
8017
|
}), e.apply(this, t);
|
|
8014
8018
|
});
|
|
8015
8019
|
}
|
|
8016
|
-
function
|
|
8017
|
-
t && (
|
|
8018
|
-
|
|
8020
|
+
function dh(e, t, n) {
|
|
8021
|
+
t && (ih = t, ah = n, uh(), e.config.errorHandler = (e) => {
|
|
8022
|
+
fh(2, window.location.href, e.message);
|
|
8019
8023
|
}, window.addEventListener("unhandledrejection", function(e) {
|
|
8020
8024
|
e.preventDefault();
|
|
8021
8025
|
}));
|
|
8022
8026
|
}
|
|
8023
|
-
var
|
|
8024
|
-
let r =
|
|
8027
|
+
var fh = (e, t, n) => {
|
|
8028
|
+
let r = ah ? JSON.stringify(ah()) : "", i = {
|
|
8025
8029
|
type: e,
|
|
8026
8030
|
time: Date.now(),
|
|
8027
8031
|
url: encodeURIComponent(t || location.href),
|
|
8028
|
-
browser:
|
|
8029
|
-
platform:
|
|
8032
|
+
browser: sh(),
|
|
8033
|
+
platform: oh(),
|
|
8030
8034
|
message: n,
|
|
8031
8035
|
info: r
|
|
8032
8036
|
}, a = window.btoa(JSON.stringify(i));
|
|
8033
|
-
if (window.navigator.sendBeacon) window.navigator.sendBeacon(
|
|
8037
|
+
if (window.navigator.sendBeacon) window.navigator.sendBeacon(ih, a);
|
|
8034
8038
|
else {
|
|
8035
8039
|
let e = document.body, t = new Image();
|
|
8036
|
-
t.src =
|
|
8040
|
+
t.src = ih + "?data=" + a, t.onload = t.onerror = function() {
|
|
8037
8041
|
e.removeChild(t), t = null;
|
|
8038
8042
|
}, e.append(t);
|
|
8039
8043
|
}
|
|
8040
8044
|
};
|
|
8041
8045
|
//#endregion
|
|
8042
8046
|
//#region components/create.ts
|
|
8043
|
-
function
|
|
8047
|
+
function ph({ components: e = [] } = {}) {
|
|
8044
8048
|
let t = [];
|
|
8045
8049
|
function n(e, t, n) {
|
|
8046
8050
|
e.component(t) || e.component(t, n);
|
|
@@ -8052,17 +8056,17 @@ function fh({ components: e = [] } = {}) {
|
|
|
8052
8056
|
n(r, t, e);
|
|
8053
8057
|
});
|
|
8054
8058
|
}), i)) {
|
|
8055
|
-
let {
|
|
8056
|
-
|
|
8059
|
+
let { title: e = "杭州宇臻智能", monitor: t = !1, monitorFn: n, version: a = !0, language: o = !1, local: s = "zh-CN" } = i, c = Y("theme", !1), l = Y("lang", s);
|
|
8060
|
+
Bu(e), Iu(o), Lu(l), Ru(c), G.global.locale.value = l, a && rh(), t && dh(r, t, n);
|
|
8057
8061
|
}
|
|
8058
8062
|
}
|
|
8059
8063
|
return {
|
|
8060
|
-
version:
|
|
8064
|
+
version: $m,
|
|
8061
8065
|
install: r
|
|
8062
8066
|
};
|
|
8063
8067
|
}
|
|
8064
8068
|
//#endregion
|
|
8065
8069
|
//#region components/preset.ts
|
|
8066
|
-
var
|
|
8070
|
+
var mh = ph({ components: Object.keys(Hm).map((e) => Hm[e]) }), hh = mh.install;
|
|
8067
8071
|
//#endregion
|
|
8068
|
-
export { dt as AccessPoint, ht as Activity, yt as Adjustments, Ct as AdjustmentsHorizontal, Dt as Affiliate, jt as Alarm, Ft as AlertCircle, zt as ApiApp, qt as AppWindow, Ut as Apps, Zt as Archive, tn as ArrowNarrowLeft, on as AspectRatio, un as Atom, mn as Atom2, vn as Award,
|
|
8072
|
+
export { dt as AccessPoint, ht as Activity, yt as Adjustments, Ct as AdjustmentsHorizontal, Dt as Affiliate, jt as Alarm, Ft as AlertCircle, zt as ApiApp, qt as AppWindow, Ut as Apps, Zt as Archive, tn as ArrowNarrowLeft, on as AspectRatio, un as Atom, mn as Atom2, vn as Award, _d as BLOB, Sn as Barcode, En as Basket, An as Bell, Pn as Bluetooth, Rn as Book2, yu as Books, Hn as Box, Kn as BrandAsana, ju as BrandStackoverflow, Xn as Briefcase, er as Building, ir as BuildingArch, ru as BuildingWarehouse, vd as CUSTOM, fr as Calculator, gr as Calendar, br as CalendarPlus, wr as CalendarStats, Or as Camera, Mr as CaretDown, Ir as CaretUp, Br as ChartArea, Wr as ChartBar, Jr as ChartBubble, Qr as ChartDonut, ni as ChartLine, oi as ChartPie, ui as ChartRadar, Yl as CheckMark, mi as Checkbox, vi as CheckupList, Gl as CircleMinus, Si as Clipboard, Ei as ClipboardCheck, Ai as ClipboardList, Pi as ClipboardPlus, Ri as Clock, Hi as Cloud, Ki as CloudDownload, Xi as CloudUpload, ea as Command, Cu as Confetti, du as Container, ia as Copy, cr as Cpu, ca as CreditCard, fa as Crosshair, ga as CurrencyYen, hu as Dashboard, ba as Database, wa as DatabaseExport, Oa as DatabaseImport, Ma as DeviceAnalytics, Ia as DeviceDesktop, Ba as DeviceDesktopAnalytics, Wa as DeviceLaptop, Ja as DeviceMobile, Qa as Diamond, no as Dots, oo as DotsVertical, uo as Edit, ho as Eraser, yo as Eye, yd as FILE, Co as File, Do as FileAlert, jo as FileAnalytics, Fo as FileText, zo as Filter, gd as GET, Uo as GitCompare, qo as GitPullRequest, Zo as GridDots, ts as Home, Pu as IconList, as as Id, ls as LayoutSidebarLeftCollapse, ps as LayoutSidebarLeftExpand, _s as Link, xs as List, Ts as ListCheck, ks as ListDetails, Ns as Mail, Ls as Map, Vs as MapPin, su as Menu2, $l as Message2, Du as MinusRound, Gs as MoonStars, Z as POST, Ys as Paperclip, $s as Photo, rc as PhotoOff, sc as Plus, dc as Presentation, hc as PresentationAnalytics, yc as Printer, Cc as Qrcode, Dc as Refresh, jc as Report, Fc as ReportAnalytics, zc as ReportMoney, Uc as ReportSearch, qc as Search, Zc as Settings, tl as SmartHome, al as Sun, ll as TransferIn, pl as TransferOut, _l as Trash, xl as User, Vl as UserCircle, Tl as UserMinus, kl as UserPlus, Nl as Users, st as UzActionButton, Hd as UzBack, Zf as UzCamera, _f as UzCircle, Af as UzDraggableForm, Tf as UzForm, xf as UzFormItem, Bf as UzFormItemImage, Wf as UzFormItemTimesPicker, If as UzFormItemUpload, Nu as UzIcon, rp as UzSearchBar, lp as UzSearchMobileBar, Ap as UzSpin, Bp as UzTable, Yp as UzTableChild, sm as UzTableDrawer, _m as UzTableMobile, tm as UzTableQuestChild, Em as UzThumbnail, Vm as UzWrap, Ll as X, K as commonStore, ph as create, Rm as darkTheme, mh as default, zd as fnActionReduction, Rd as fnActionSimplify, xm as fnAddThumbnail, hd as fnCancelFetch, Cm as fnClearAllThumbnail, qm as fnComputedScale, Fu as fnCreateRouter, $u as fnDelStorage, td as fnDelStorageAll, ed as fnDelStorageByPrefix, Sm as fnDeleteThumbnail, Qu as fnDialog, q as fnErrorLog, id as fnFormatTime, cd as fnFormatUnits, sd as fnFullScreen, Y as fnGetStorage, yp as fnGetTableData, Jm as fnListenerScale, Zu as fnNotification, Tp as fnOptionReduction, wp as fnOptionSimplify, rd as fnPageModel2Naive, Ep as fnPrepareFormData, Dp as fnPrepareTableData, jd as fnRenderAction, nd as fnScrollTop, Lu as fnSetLang, Km as fnSetNormalWidthAndHeight, J as fnSetStorage, Ru as fnSetTheme, ym as fnSetThumbnail, xp as fnTableReduction, bp as fnTableSimplify, od as fnThrottle, ad as fnTitle, Cp as fnTriggersReduction, Sp as fnTriggersSimplify, G as i18n, hh as install, Lm as lightTheme, W as router, Gm as scaleStore, Ym as useDebounceFn, Zm as useLocalStorage, Qm as useQuery, Xm as useThrottleFn };
|