@unizhen/ui 0.1.16 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/create.d.ts +1 -0
- package/lib/components/form/draggable.vue.d.ts +66 -0
- package/lib/components/form/index.vue.d.ts +66 -0
- package/lib/components/form/interface.d.ts +2 -0
- package/lib/components/searchBar/components/timePickRange.vue.d.ts +2643 -0
- package/lib/components/searchBar/index.vue.d.ts +14 -0
- package/lib/components/searchBar/mobile.vue.d.ts +14 -0
- package/lib/components/store/common.d.ts +2 -0
- package/lib/components/table/factory.d.ts +2 -0
- package/lib/components/table/index.vue.d.ts +14 -0
- package/lib/components/wrap/index.vue.d.ts +1 -0
- package/lib/ui.js +619 -613
- package/package.json +8 -8
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}, 69)`, i.value = `translate(${Gd}, 84)`;
|
|
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,39 +5003,39 @@ 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
|
-
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)), {
|
|
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.e = (e.params.title || "").replace(/\s*/g, ""), 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,
|
|
5036
5040
|
l: e.label ? encodeURIComponent(e.label) : "",
|
|
5037
5041
|
k: e.key.replace(/\s*/g, ""),
|
|
@@ -5063,6 +5067,7 @@ var yp = (e) => e.map((e) => {
|
|
|
5063
5067
|
v: e.search.defaultValue,
|
|
5064
5068
|
r: e.search.source,
|
|
5065
5069
|
y: e.search.type,
|
|
5070
|
+
e: (e.search.title || "").replace(/\s*/g, ""),
|
|
5066
5071
|
l: (e.search.labelKeys || "").replace(/\s*/g, ""),
|
|
5067
5072
|
a: (e.search.valueKey || "").replace(/\s*/g, ""),
|
|
5068
5073
|
m: +!!e.search.multiple,
|
|
@@ -5099,9 +5104,9 @@ var yp = (e) => e.map((e) => {
|
|
|
5099
5104
|
}
|
|
5100
5105
|
}
|
|
5101
5106
|
};
|
|
5102
|
-
}),
|
|
5107
|
+
}), xp = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
5103
5108
|
let t = {};
|
|
5104
|
-
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)), {
|
|
5109
|
+
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.title = e.p.e, 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
5110
|
input: e.i,
|
|
5106
5111
|
label: e.l ? decodeURIComponent(e.l) : "",
|
|
5107
5112
|
key: e.k,
|
|
@@ -5133,6 +5138,7 @@ var yp = (e) => e.map((e) => {
|
|
|
5133
5138
|
defaultValue: e.c.v,
|
|
5134
5139
|
source: e.c.r,
|
|
5135
5140
|
type: e.c.y,
|
|
5141
|
+
title: e.c.e,
|
|
5136
5142
|
labelKeys: e.c.l,
|
|
5137
5143
|
valueKey: e.c.a,
|
|
5138
5144
|
multiple: !!e.c.m,
|
|
@@ -5169,11 +5175,11 @@ var yp = (e) => e.map((e) => {
|
|
|
5169
5175
|
}
|
|
5170
5176
|
}
|
|
5171
5177
|
};
|
|
5172
|
-
}),
|
|
5178
|
+
}), Sp = (e) => ({
|
|
5173
5179
|
f: e.fetch,
|
|
5174
5180
|
o: e.when_drawer_open,
|
|
5175
5181
|
b: e.when_before_save
|
|
5176
|
-
}),
|
|
5182
|
+
}), Cp = (e) => e ? e.fetch ? e : {
|
|
5177
5183
|
fetch: e.f,
|
|
5178
5184
|
when_drawer_open: e.o,
|
|
5179
5185
|
when_before_save: e.b
|
|
@@ -5181,7 +5187,7 @@ var yp = (e) => e.map((e) => {
|
|
|
5181
5187
|
fetch: null,
|
|
5182
5188
|
when_drawer_open: "",
|
|
5183
5189
|
when_before_save: ""
|
|
5184
|
-
},
|
|
5190
|
+
}, wp = (e) => ({
|
|
5185
5191
|
i: e.index,
|
|
5186
5192
|
s: e.selection,
|
|
5187
5193
|
p: e.pagination,
|
|
@@ -5195,7 +5201,7 @@ var yp = (e) => e.map((e) => {
|
|
|
5195
5201
|
h: e.drawerHeight,
|
|
5196
5202
|
l: e.placement,
|
|
5197
5203
|
r: e.summary
|
|
5198
|
-
}),
|
|
5204
|
+
}), Tp = (e) => {
|
|
5199
5205
|
let t = {};
|
|
5200
5206
|
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
5207
|
index: e.i,
|
|
@@ -5211,9 +5217,9 @@ var yp = (e) => e.map((e) => {
|
|
|
5211
5217
|
drawerHeight: e.h,
|
|
5212
5218
|
placement: e.l,
|
|
5213
5219
|
summary: e.r
|
|
5214
|
-
}), Object.assign({},
|
|
5220
|
+
}), Object.assign({}, dp, H(t));
|
|
5215
5221
|
};
|
|
5216
|
-
function
|
|
5222
|
+
function Ep(e, t, n) {
|
|
5217
5223
|
return new Promise(async (r, i) => {
|
|
5218
5224
|
let a = [], o = {}, s = {}, c = {}, l = [], u = [], d = H(e), f = [];
|
|
5219
5225
|
for (let e of d) e.input === "group" ? f.push(...e.params.children) : f.push(e);
|
|
@@ -5248,17 +5254,17 @@ function Tp(e, t, n) {
|
|
|
5248
5254
|
disabled: !0
|
|
5249
5255
|
}];
|
|
5250
5256
|
if (e.params.immediately) {
|
|
5251
|
-
let { sourceData: t, n: r } = await
|
|
5257
|
+
let { sourceData: t, n: r } = await vp(e.source);
|
|
5252
5258
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5253
5259
|
let r = e.sourceFn;
|
|
5254
5260
|
n = Function("sourceData", r)(t);
|
|
5255
|
-
} else n =
|
|
5261
|
+
} else n = hp(e, t, r);
|
|
5256
5262
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
5257
|
-
let { sourceData: t, n } = await
|
|
5263
|
+
let { sourceData: t, n } = await vp(e.source);
|
|
5258
5264
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5259
5265
|
let n = e.sourceFn;
|
|
5260
5266
|
return Function("sourceData", n)(t);
|
|
5261
|
-
} else return
|
|
5267
|
+
} else return hp(e, t, n);
|
|
5262
5268
|
};
|
|
5263
5269
|
if (e.params.options = n, e.form.backfill && t) if (Array.isArray(t)) t.forEach((t, r) => {
|
|
5264
5270
|
let i = n.find((n) => n.value === t[e.key]);
|
|
@@ -5271,45 +5277,45 @@ function Tp(e, t, n) {
|
|
|
5271
5277
|
}
|
|
5272
5278
|
if (e.input === "filling") try {
|
|
5273
5279
|
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);
|
|
5280
|
+
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
5281
|
}) : 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
5282
|
} catch (e) {
|
|
5277
|
-
|
|
5283
|
+
q(e);
|
|
5278
5284
|
}
|
|
5279
5285
|
if (e.input !== "divider" && e.form.rule && e.form.rule.validator && typeof e.form.rule.validator == "string") try {
|
|
5280
5286
|
let t = e.form.rule.validator, r = Function("rule", "value", "index", "formValues", t);
|
|
5281
5287
|
e.form.rule.validator = (e, t) => r(e, t, null, n);
|
|
5282
5288
|
} catch (e) {
|
|
5283
|
-
|
|
5289
|
+
q(e);
|
|
5284
5290
|
}
|
|
5285
5291
|
if (e.input === "date" && e.params.isDateDisabled && typeof e.params.isDateDisabled == "string") try {
|
|
5286
5292
|
let t = e.params.isDateDisabled, n = Function("ts", "detail", t);
|
|
5287
5293
|
e.params.isDateDisabled = (e, t) => n(e, t);
|
|
5288
5294
|
} catch (e) {
|
|
5289
|
-
|
|
5295
|
+
q(e);
|
|
5290
5296
|
}
|
|
5291
5297
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
5292
|
-
let t = await
|
|
5298
|
+
let t = await pp();
|
|
5293
5299
|
e.params.options = t;
|
|
5294
5300
|
}
|
|
5295
5301
|
if (e.input === "subTable" && e.params.link) {
|
|
5296
|
-
let t = await
|
|
5302
|
+
let t = await yp(e.params.link).catch(() => {
|
|
5297
5303
|
i();
|
|
5298
5304
|
});
|
|
5299
5305
|
if (t) try {
|
|
5300
5306
|
let n = nt.parse(t.viewJson);
|
|
5301
|
-
n.suffix && (e._suffix =
|
|
5302
|
-
let r =
|
|
5307
|
+
n.suffix && (e._suffix = zd(n.suffix));
|
|
5308
|
+
let r = xp(n.table);
|
|
5303
5309
|
r.forEach((e) => {
|
|
5304
5310
|
e.table.sorter = !1;
|
|
5305
5311
|
});
|
|
5306
5312
|
let a = r.filter((e) => e.input === "subTable");
|
|
5307
5313
|
if (a) for await (let e of a) {
|
|
5308
|
-
let t = await
|
|
5314
|
+
let t = await yp(e.params.link).catch(() => {
|
|
5309
5315
|
i();
|
|
5310
5316
|
});
|
|
5311
5317
|
if (t) try {
|
|
5312
|
-
let n = nt.parse(t.viewJson), r =
|
|
5318
|
+
let n = nt.parse(t.viewJson), r = xp(n.table);
|
|
5313
5319
|
r.forEach((e) => {
|
|
5314
5320
|
e.table.sorter = !1;
|
|
5315
5321
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -5343,7 +5349,7 @@ function Tp(e, t, n) {
|
|
|
5343
5349
|
});
|
|
5344
5350
|
});
|
|
5345
5351
|
}
|
|
5346
|
-
async function
|
|
5352
|
+
async function Dp(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
5347
5353
|
let a = 0, o = [], s = [], c = [], l = H(e), u = [], d = [];
|
|
5348
5354
|
for (let e of l) e.input === "group" ? (u.push(...e.params.children), d.push({
|
|
5349
5355
|
title: e.label,
|
|
@@ -5353,27 +5359,27 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5353
5359
|
})) : (u.push(e), d.push(e.key));
|
|
5354
5360
|
for await (let e of u) {
|
|
5355
5361
|
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
|
|
5362
|
+
let { sourceData: t, n } = await vp(e.source);
|
|
5357
5363
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5358
5364
|
let n = e.sourceFn, r = Function("sourceData", n);
|
|
5359
5365
|
e.params.options = r(t);
|
|
5360
|
-
} else e.params.options =
|
|
5366
|
+
} else e.params.options = hp(e, t, n);
|
|
5361
5367
|
} else e.params.options = [{
|
|
5362
5368
|
label: "加载中......",
|
|
5363
5369
|
value: "loading",
|
|
5364
5370
|
disabled: !0
|
|
5365
5371
|
}], e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
5366
|
-
let { sourceData: t, n } = await
|
|
5372
|
+
let { sourceData: t, n } = await vp(e.source);
|
|
5367
5373
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5368
5374
|
let n = e.sourceFn;
|
|
5369
5375
|
return Function("sourceData", n)(t);
|
|
5370
|
-
} else return
|
|
5376
|
+
} else return hp(e, t, n);
|
|
5371
5377
|
};
|
|
5372
5378
|
!e.table.render && !e.source && e.input === "select" && typeof e.params.options != "function" && e.params.options.length > 0 && (e.table.render = (t) => {
|
|
5373
5379
|
let n = e.params.options.find((n) => n.value === t[e.key]);
|
|
5374
5380
|
if (n) return n.label;
|
|
5375
5381
|
}), e.input === "upload" && !e.table.render && (e.table.render = function(t) {
|
|
5376
|
-
return f(
|
|
5382
|
+
return f(Bf, { value: t[e.key] }, { default: () => null });
|
|
5377
5383
|
}), a += Number(e.table.width || 140);
|
|
5378
5384
|
let l = {
|
|
5379
5385
|
input: e.input,
|
|
@@ -5388,14 +5394,14 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5388
5394
|
tooltip: !0,
|
|
5389
5395
|
"line-clamp": e.table.clamp ?? 0
|
|
5390
5396
|
} : !1,
|
|
5391
|
-
render: e.table.render ? await
|
|
5392
|
-
show:
|
|
5397
|
+
render: e.table.render ? await mp(e.key, e.table.render, i) : void 0,
|
|
5398
|
+
show: K.isMobile ? e.table.mobile ?? !1 : e.table.show ?? !0,
|
|
5393
5399
|
pin: !!e.table.fixed,
|
|
5394
5400
|
fixTemp: e.table.fixed
|
|
5395
5401
|
};
|
|
5396
5402
|
if (t) if (!l.form.edit.show) l = null;
|
|
5397
5403
|
else {
|
|
5398
|
-
if (l.ellipsis = !1, l.resizable = !0,
|
|
5404
|
+
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
5405
|
delete e.form.rule.message;
|
|
5400
5406
|
let t = e.form.rule.validator, n = Function("rule", "value", "index", "formValues", t);
|
|
5401
5407
|
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 +5415,7 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5409
5415
|
...e.form.rule,
|
|
5410
5416
|
index: r
|
|
5411
5417
|
} : void 0
|
|
5412
|
-
}, { default: () => f(
|
|
5418
|
+
}, { default: () => f(xf, {
|
|
5413
5419
|
item: e,
|
|
5414
5420
|
formValue: t,
|
|
5415
5421
|
status: n,
|
|
@@ -5418,21 +5424,21 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5418
5424
|
};
|
|
5419
5425
|
}
|
|
5420
5426
|
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
|
-
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;
|
|
5427
|
+
if (e.search.title && (e.form.label = e.search.title), 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
5428
|
else if (e.params.immediately || e.search.defaultValue) {
|
|
5423
|
-
let { sourceData: t, n } = await
|
|
5429
|
+
let { sourceData: t, n } = await vp(e.search.source);
|
|
5424
5430
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5425
5431
|
let n = e.sourceFn, r = Function("sourceData", n);
|
|
5426
5432
|
e.params.options = r(t);
|
|
5427
|
-
} else e.params.options =
|
|
5433
|
+
} else e.params.options = hp(e, t, n);
|
|
5428
5434
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
5429
|
-
let { sourceData: t, n } = await
|
|
5435
|
+
let { sourceData: t, n } = await vp(e.search.source);
|
|
5430
5436
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5431
5437
|
let n = e.sourceFn;
|
|
5432
5438
|
return Function("sourceData", n)(t);
|
|
5433
|
-
} else return
|
|
5439
|
+
} else return hp(e, t, n);
|
|
5434
5440
|
};
|
|
5435
|
-
e.search.multiple && (e.params.multiple = !0, e.search.defaultValue && (e.search.defaultValue =
|
|
5441
|
+
e.search.multiple && (e.params.multiple = !0, e.search.defaultValue && (e.search.defaultValue = fp(e.search.defaultValue))), o.push({
|
|
5436
5442
|
input: e.input,
|
|
5437
5443
|
label: e.label,
|
|
5438
5444
|
key: e.key,
|
|
@@ -5476,7 +5482,7 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5476
5482
|
}
|
|
5477
5483
|
//#endregion
|
|
5478
5484
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
5479
|
-
var
|
|
5485
|
+
var Op = d({
|
|
5480
5486
|
name: "UzSpin",
|
|
5481
5487
|
components: {
|
|
5482
5488
|
NButton: L,
|
|
@@ -5522,7 +5528,7 @@ var Dp = d({
|
|
|
5522
5528
|
});
|
|
5523
5529
|
//#endregion
|
|
5524
5530
|
//#region components/spin/index.vue
|
|
5525
|
-
function
|
|
5531
|
+
function kp(e, t, r, i, o, s) {
|
|
5526
5532
|
let u = O("NEllipsis"), d = O("NButton"), f = O("NSpin");
|
|
5527
5533
|
return S(), n(f, { show: e.value }, {
|
|
5528
5534
|
description: N(() => [
|
|
@@ -5550,7 +5556,7 @@ function Op(e, t, r, i, o, s) {
|
|
|
5550
5556
|
_: 3
|
|
5551
5557
|
}, 8, ["show"]);
|
|
5552
5558
|
}
|
|
5553
|
-
var
|
|
5559
|
+
var Ap = /* @__PURE__ */ U(Op, [["render", kp]]), jp = d({
|
|
5554
5560
|
name: "UzTable",
|
|
5555
5561
|
components: {
|
|
5556
5562
|
NDataTable: se,
|
|
@@ -5564,7 +5570,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5564
5570
|
GridDots: Zo,
|
|
5565
5571
|
Plus: sc,
|
|
5566
5572
|
Draggable: tt,
|
|
5567
|
-
UzSpin:
|
|
5573
|
+
UzSpin: Ap,
|
|
5568
5574
|
UzIcon: Nu
|
|
5569
5575
|
},
|
|
5570
5576
|
props: {
|
|
@@ -5693,7 +5699,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5693
5699
|
value: () => null,
|
|
5694
5700
|
setValue: () => null
|
|
5695
5701
|
});
|
|
5696
|
-
let a = qe(), { t: o } = Xe(), s = He(), c = t(() =>
|
|
5702
|
+
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
5703
|
params: [],
|
|
5698
5704
|
query: {
|
|
5699
5705
|
page: 1,
|
|
@@ -5704,7 +5710,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5704
5710
|
fetch: null,
|
|
5705
5711
|
when_drawer_open: "",
|
|
5706
5712
|
when_before_save: ""
|
|
5707
|
-
}), F = T(
|
|
5713
|
+
}), F = T(Tp()), I = T(""), L = T(!1), ne = T([]), R = T([]), re = p("modules"), ie = (e) => e.id, ae = (e, t) => {
|
|
5708
5714
|
n("update:rowKeys", {
|
|
5709
5715
|
keys: e,
|
|
5710
5716
|
rows: H(t)
|
|
@@ -5727,9 +5733,9 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5727
5733
|
let r = e.id || a.params.id;
|
|
5728
5734
|
e.enableLoading && (h.value = !0, n("update:loading", !0));
|
|
5729
5735
|
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 &&
|
|
5736
|
+
if (t && delete i.orderby, P.value.fetch) Td([P.value.fetch], "", i).then((e) => {
|
|
5737
|
+
let t = rd(e);
|
|
5738
|
+
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
5739
|
}).catch(() => {
|
|
5734
5740
|
h.value = !1, _.value = !0, n("update:loading", !1);
|
|
5735
5741
|
});
|
|
@@ -5738,23 +5744,23 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5738
5744
|
t = e.fetch ? e.fetch({
|
|
5739
5745
|
...i,
|
|
5740
5746
|
tableId: r
|
|
5741
|
-
}) :
|
|
5747
|
+
}) : Sd({
|
|
5742
5748
|
...i,
|
|
5743
5749
|
tableId: r
|
|
5744
5750
|
}), 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 &&
|
|
5751
|
+
let t = rd(e);
|
|
5752
|
+
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
5753
|
}).catch(() => {
|
|
5748
5754
|
h.value = !1, _.value = !0, n("update:loading", !1);
|
|
5749
5755
|
});
|
|
5750
5756
|
}
|
|
5751
5757
|
}, ce = (e) => {
|
|
5752
|
-
D.value.query.page = e, l.value && (l.value.scrollTop = 0),
|
|
5758
|
+
D.value.query.page = e, l.value && (l.value.scrollTop = 0), nd(), z();
|
|
5753
5759
|
}, le = () => {
|
|
5754
5760
|
let e = D.value.query.page + 1;
|
|
5755
5761
|
e > D.value.query.pageMax && (e = 1), D.value.query.page = e, l.value && (l.value.scrollTop = 0), z();
|
|
5756
5762
|
}, ue = (e) => {
|
|
5757
|
-
D.value.query.pageSize = e, D.value.query.page = 1,
|
|
5763
|
+
D.value.query.pageSize = e, D.value.query.page = 1, nd(), z();
|
|
5758
5764
|
}, de = (e) => {
|
|
5759
5765
|
e && e.order ? D.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete D.value.orderby, z();
|
|
5760
5766
|
}, fe = () => {
|
|
@@ -5783,7 +5789,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5783
5789
|
show: !0,
|
|
5784
5790
|
ellipsis: !1,
|
|
5785
5791
|
width: 180,
|
|
5786
|
-
render: (e) => [f("div", {}, { default: () => e.createBy }), f("div", {}, { default: () =>
|
|
5792
|
+
render: (e) => [f("div", {}, { default: () => e.createBy }), f("div", {}, { default: () => id(e.createTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5787
5793
|
}, {
|
|
5788
5794
|
title: "更新人/时间",
|
|
5789
5795
|
key: "updateTime",
|
|
@@ -5792,9 +5798,9 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5792
5798
|
show: !0,
|
|
5793
5799
|
ellipsis: !0,
|
|
5794
5800
|
width: 180,
|
|
5795
|
-
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () =>
|
|
5801
|
+
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => id(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5796
5802
|
}], _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
|
|
5803
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Ep(A.value, e, () => d.value?.getFormValues());
|
|
5798
5804
|
return y.value = t, {
|
|
5799
5805
|
form: t,
|
|
5800
5806
|
fillingDefaultValue: n,
|
|
@@ -5805,7 +5811,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5805
5811
|
o = e.fetch ? e.fetch({
|
|
5806
5812
|
id: t.id,
|
|
5807
5813
|
tableId: i
|
|
5808
|
-
}) :
|
|
5814
|
+
}) : Sd({
|
|
5809
5815
|
id: t.id,
|
|
5810
5816
|
tableId: i
|
|
5811
5817
|
}), o.then((e) => {
|
|
@@ -5821,15 +5827,15 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5821
5827
|
if (t && typeof t == "string") try {
|
|
5822
5828
|
a = await Function("rowData", "POST", "fnNotification", t)(a, Z, s).catch(() => null);
|
|
5823
5829
|
} catch (e) {
|
|
5824
|
-
|
|
5830
|
+
q(e);
|
|
5825
5831
|
}
|
|
5826
5832
|
let o = P.value.when_drawer_open;
|
|
5827
5833
|
if (o && typeof o == "string") try {
|
|
5828
5834
|
a = await Function("data", "POST", o)(a, Z).catch((e) => {
|
|
5829
|
-
|
|
5835
|
+
q(e);
|
|
5830
5836
|
});
|
|
5831
5837
|
} catch (e) {
|
|
5832
|
-
|
|
5838
|
+
q(e);
|
|
5833
5839
|
}
|
|
5834
5840
|
return {
|
|
5835
5841
|
form: r,
|
|
@@ -5853,10 +5859,10 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5853
5859
|
Function("rowData", "POST", "fnNotification", i)(r, Z, s).then((e) => {
|
|
5854
5860
|
d.value?.link(t.optionsSource || "", void 0, e);
|
|
5855
5861
|
}).catch((e) => {
|
|
5856
|
-
|
|
5862
|
+
q(e);
|
|
5857
5863
|
});
|
|
5858
5864
|
} catch (e) {
|
|
5859
|
-
|
|
5865
|
+
q(e);
|
|
5860
5866
|
}
|
|
5861
5867
|
} else n("update:suffixes", {
|
|
5862
5868
|
title: t.buttonText,
|
|
@@ -5887,18 +5893,18 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5887
5893
|
...t,
|
|
5888
5894
|
tableId: c,
|
|
5889
5895
|
sub_table_ids: r
|
|
5890
|
-
}) :
|
|
5896
|
+
}) : wd({
|
|
5891
5897
|
...t,
|
|
5892
5898
|
tableId: c,
|
|
5893
5899
|
sub_table_ids: r
|
|
5894
5900
|
}), n.then(() => {
|
|
5895
5901
|
z();
|
|
5896
5902
|
}).catch((e) => {
|
|
5897
|
-
|
|
5903
|
+
q(e);
|
|
5898
5904
|
});
|
|
5899
5905
|
};
|
|
5900
5906
|
else if (t.type !== "group" && t.action === "disabledInside") t.onClick = (t) => {
|
|
5901
|
-
|
|
5907
|
+
Cd({
|
|
5902
5908
|
tableId: e.id || a.params.id,
|
|
5903
5909
|
...t,
|
|
5904
5910
|
is_disabled: "1"
|
|
@@ -5907,7 +5913,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5907
5913
|
}).catch(() => null);
|
|
5908
5914
|
};
|
|
5909
5915
|
else if (t.type !== "group" && t.action === "enabledInside") t.onClick = (t) => {
|
|
5910
|
-
|
|
5916
|
+
Cd({
|
|
5911
5917
|
tableId: e.id || a.params.id,
|
|
5912
5918
|
...t,
|
|
5913
5919
|
is_disabled: "0"
|
|
@@ -5922,12 +5928,12 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5922
5928
|
i = e.fetch ? e.fetch({
|
|
5923
5929
|
id: r.id,
|
|
5924
5930
|
tableId: c
|
|
5925
|
-
}) :
|
|
5931
|
+
}) : Sd({
|
|
5926
5932
|
id: r.id,
|
|
5927
5933
|
tableId: c
|
|
5928
5934
|
}), i.then((e) => {
|
|
5929
5935
|
let r = e && e[0];
|
|
5930
|
-
|
|
5936
|
+
Td([t.action], r.id, r).then((e) => {
|
|
5931
5937
|
if (n && typeof n == "string") {
|
|
5932
5938
|
try {
|
|
5933
5939
|
Function("rowData", "res", n)(r, e).then((e) => {
|
|
@@ -5936,10 +5942,10 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5936
5942
|
duration: 3e3
|
|
5937
5943
|
}), z();
|
|
5938
5944
|
}).catch((e) => {
|
|
5939
|
-
|
|
5945
|
+
q(e);
|
|
5940
5946
|
});
|
|
5941
5947
|
} catch (e) {
|
|
5942
|
-
|
|
5948
|
+
q(e);
|
|
5943
5949
|
}
|
|
5944
5950
|
return;
|
|
5945
5951
|
}
|
|
@@ -5966,8 +5972,8 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5966
5972
|
};
|
|
5967
5973
|
}
|
|
5968
5974
|
}, xe = async () => {
|
|
5969
|
-
L.value = !1,
|
|
5970
|
-
let { tableColumns: t, search: n, subTableIds: r, tableWidth: i } = await
|
|
5975
|
+
L.value = !1, _p();
|
|
5976
|
+
let { tableColumns: t, search: n, subTableIds: r, tableWidth: i } = await Dp(A.value, e.child, 0, () => ({}), re), s = i;
|
|
5971
5977
|
!c.value && F.value.index && (t.unshift({
|
|
5972
5978
|
title: "#",
|
|
5973
5979
|
key: "index",
|
|
@@ -6009,7 +6015,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6009
6015
|
show: !0,
|
|
6010
6016
|
hide: !0,
|
|
6011
6017
|
render(t) {
|
|
6012
|
-
return
|
|
6018
|
+
return jd({
|
|
6013
6019
|
buttons: e,
|
|
6014
6020
|
rowData: t,
|
|
6015
6021
|
callback: z,
|
|
@@ -6041,7 +6047,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6041
6047
|
i = e.formFetch ? e.formFetch({
|
|
6042
6048
|
tableId: o,
|
|
6043
6049
|
...t
|
|
6044
|
-
}) :
|
|
6050
|
+
}) : Cd({
|
|
6045
6051
|
tableId: o,
|
|
6046
6052
|
...t
|
|
6047
6053
|
}), i.then(() => {
|
|
@@ -6054,12 +6060,12 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6054
6060
|
fetch: null,
|
|
6055
6061
|
when_drawer_open: "",
|
|
6056
6062
|
when_before_save: ""
|
|
6057
|
-
}, F.value =
|
|
6063
|
+
}, F.value = Tp();
|
|
6058
6064
|
}, De = (t) => {
|
|
6059
6065
|
let n = nt.parse(t.viewJson);
|
|
6060
|
-
v.value = t.tableTitle, A.value =
|
|
6061
|
-
let r =
|
|
6062
|
-
t.tableTitle && r.title &&
|
|
6066
|
+
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);
|
|
6067
|
+
let r = Tp(e.options ?? n.option);
|
|
6068
|
+
t.tableTitle && r.title && ad(t.tableTitle), F.value = r;
|
|
6063
6069
|
}, Oe = async () => {
|
|
6064
6070
|
_.value = !1, Ee();
|
|
6065
6071
|
let t = e.id || a.params.id;
|
|
@@ -6076,7 +6082,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6076
6082
|
I.value = o("Notice.network"), L.value = !0;
|
|
6077
6083
|
return;
|
|
6078
6084
|
}
|
|
6079
|
-
Ce(), e.columns ? (A.value = e.columns || [], M.value = e.actions || [], N.value = e.suffixes || [], F.value =
|
|
6085
|
+
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
6086
|
De(e), await xe();
|
|
6081
6087
|
}).catch((e) => {
|
|
6082
6088
|
I.value = e.message, L.value = !0;
|
|
@@ -6105,7 +6111,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6105
6111
|
let e = Function("POST", "fnNotification", t);
|
|
6106
6112
|
await e(Z, s, e), z();
|
|
6107
6113
|
} catch (e) {
|
|
6108
|
-
|
|
6114
|
+
q(e);
|
|
6109
6115
|
}
|
|
6110
6116
|
return;
|
|
6111
6117
|
}
|
|
@@ -6128,7 +6134,7 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6128
6134
|
}, { deep: !0 }), j(() => e.height, () => {
|
|
6129
6135
|
Ce();
|
|
6130
6136
|
}), j([() => a.params.id, () => e.id], async () => {
|
|
6131
|
-
|
|
6137
|
+
nd(), await Oe();
|
|
6132
6138
|
}), j(() => e.defaultCheckedRowKeys, (e) => {
|
|
6133
6139
|
let t = e || [], n = R.value.filter((e) => t.includes(e.id));
|
|
6134
6140
|
ne.value = t, R.value = n;
|
|
@@ -6170,23 +6176,23 @@ var kp = /* @__PURE__ */ U(Dp, [["render", Op]]), Ap = d({
|
|
|
6170
6176
|
isTypeofNumber: Se
|
|
6171
6177
|
};
|
|
6172
6178
|
}
|
|
6173
|
-
}),
|
|
6179
|
+
}), 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
6180
|
ref: "mRef",
|
|
6175
6181
|
class: "uz-table-m-content"
|
|
6176
|
-
},
|
|
6182
|
+
}, Lp = {
|
|
6177
6183
|
key: 1,
|
|
6178
6184
|
class: "uz-transform-fade-in"
|
|
6179
|
-
},
|
|
6180
|
-
function
|
|
6185
|
+
}, Rp = { class: "uz-com-title" };
|
|
6186
|
+
function zp(e, t, s, u, d, f) {
|
|
6181
6187
|
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
6188
|
return S(), i("div", {
|
|
6183
6189
|
class: "uz-table",
|
|
6184
6190
|
style: v({ width: e.isTypeofNumber(e.width) })
|
|
6185
6191
|
}, [
|
|
6186
|
-
P(a("div",
|
|
6192
|
+
P(a("div", Mp, [a("div", Np, [l(p, {
|
|
6187
6193
|
width: 120,
|
|
6188
6194
|
size: "medium"
|
|
6189
|
-
}), a("div",
|
|
6195
|
+
}), a("div", Pp, [
|
|
6190
6196
|
l(p, {
|
|
6191
6197
|
width: 180,
|
|
6192
6198
|
size: "medium"
|
|
@@ -6274,7 +6280,7 @@ function Rp(e, t, s, u, d, f) {
|
|
|
6274
6280
|
key: "0"
|
|
6275
6281
|
} : {
|
|
6276
6282
|
name: "header",
|
|
6277
|
-
fn: N(() => [a("div",
|
|
6283
|
+
fn: N(() => [a("div", Fp, k(e.title), 1)]),
|
|
6278
6284
|
key: "1"
|
|
6279
6285
|
}]), 1032, [
|
|
6280
6286
|
"data",
|
|
@@ -6282,7 +6288,7 @@ function Rp(e, t, s, u, d, f) {
|
|
|
6282
6288
|
"cache",
|
|
6283
6289
|
"loading",
|
|
6284
6290
|
"onOnUpdate:value"
|
|
6285
|
-
]), a("div",
|
|
6291
|
+
]), a("div", Ip, [l(C, {
|
|
6286
6292
|
tableColumns: e.tableColumns,
|
|
6287
6293
|
tableData: e.tableData,
|
|
6288
6294
|
tableQueries: e.tableQueries,
|
|
@@ -6300,7 +6306,7 @@ function Rp(e, t, s, u, d, f) {
|
|
|
6300
6306
|
"minH",
|
|
6301
6307
|
"maxH",
|
|
6302
6308
|
"onUpdate:rowKeys"
|
|
6303
|
-
])], 512)], 2)) : (S(), i("div",
|
|
6309
|
+
])], 512)], 2)) : (S(), i("div", Lp, [l(j, {
|
|
6304
6310
|
data: e.searchData,
|
|
6305
6311
|
id: e.id || e.route.params.id,
|
|
6306
6312
|
cache: e.tableOption.cache,
|
|
@@ -6388,7 +6394,7 @@ function Rp(e, t, s, u, d, f) {
|
|
|
6388
6394
|
key: "0"
|
|
6389
6395
|
} : {
|
|
6390
6396
|
name: "header",
|
|
6391
|
-
fn: N(() => [a("div",
|
|
6397
|
+
fn: N(() => [a("div", Rp, k(e.title), 1)]),
|
|
6392
6398
|
key: "1"
|
|
6393
6399
|
}]), 1032, [
|
|
6394
6400
|
"data",
|
|
@@ -6445,7 +6451,7 @@ function Rp(e, t, s, u, d, f) {
|
|
|
6445
6451
|
l(I, { ref: "drawerRef" }, null, 512)
|
|
6446
6452
|
], 4);
|
|
6447
6453
|
}
|
|
6448
|
-
var
|
|
6454
|
+
var Bp = /* @__PURE__ */ U(jp, [["render", zp]]), Vp = d({
|
|
6449
6455
|
name: "UzTableChild",
|
|
6450
6456
|
components: {
|
|
6451
6457
|
NButton: L,
|
|
@@ -6474,7 +6480,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6474
6480
|
emits: ["update:value"],
|
|
6475
6481
|
setup(e, { emit: t, expose: n }) {
|
|
6476
6482
|
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
|
|
6483
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await Ep(H(n ?? e.item.params.columns), t);
|
|
6478
6484
|
return v.value = r, i;
|
|
6479
6485
|
}, C = async (t) => {
|
|
6480
6486
|
if (u.value) return;
|
|
@@ -6495,7 +6501,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6495
6501
|
let t = e.item.params.merge;
|
|
6496
6502
|
r = await Function("formValue", "mainFormValue", "POST", t)(r, a, Z);
|
|
6497
6503
|
} catch (e) {
|
|
6498
|
-
|
|
6504
|
+
q(e);
|
|
6499
6505
|
}
|
|
6500
6506
|
h.value.child = r, u.value = !1, g(() => {
|
|
6501
6507
|
A();
|
|
@@ -6505,7 +6511,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6505
6511
|
});
|
|
6506
6512
|
}, w = (e) => e.delete ? "uz-table-child-delete" : "", E = async (t) => {
|
|
6507
6513
|
e.item._suffix && (b.value = e.item._suffix.filter((e) => e.sub)), await S(e.value, t);
|
|
6508
|
-
let { tableColumns: n, tableWidth: r } = await
|
|
6514
|
+
let { tableColumns: n, tableWidth: r } = await Dp(H(t ?? e.item.params.columns), !0, e.status, () => h.value.child, i), s = r;
|
|
6509
6515
|
n.unshift({
|
|
6510
6516
|
title: " ",
|
|
6511
6517
|
key: "index",
|
|
@@ -6538,7 +6544,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6538
6544
|
width: 60,
|
|
6539
6545
|
render(t, n) {
|
|
6540
6546
|
let r = [];
|
|
6541
|
-
return e.item.params.childActions && e.item.params.actions &&
|
|
6547
|
+
return e.item.params.childActions && e.item.params.actions && zd(e.item.params.actions).forEach((e) => {
|
|
6542
6548
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
6543
6549
|
}), 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
6550
|
type: "normal",
|
|
@@ -6550,7 +6556,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6550
6556
|
let n = e.item.params.deleteFn;
|
|
6551
6557
|
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, a) : t.delete = !0;
|
|
6552
6558
|
}
|
|
6553
|
-
}),
|
|
6559
|
+
}), jd({
|
|
6554
6560
|
buttons: r,
|
|
6555
6561
|
rowData: t
|
|
6556
6562
|
});
|
|
@@ -6567,7 +6573,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6567
6573
|
let n = e.item.params.summary;
|
|
6568
6574
|
return Function("pageData", "h", n)(t, f);
|
|
6569
6575
|
} catch (e) {
|
|
6570
|
-
|
|
6576
|
+
q(e);
|
|
6571
6577
|
}
|
|
6572
6578
|
}
|
|
6573
6579
|
return [];
|
|
@@ -6603,7 +6609,7 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6603
6609
|
}
|
|
6604
6610
|
});
|
|
6605
6611
|
} catch (e) {
|
|
6606
|
-
|
|
6612
|
+
q(e);
|
|
6607
6613
|
}
|
|
6608
6614
|
}, te = () => {
|
|
6609
6615
|
l.value?.restoreValidation();
|
|
@@ -6679,14 +6685,14 @@ var zp = /* @__PURE__ */ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6679
6685
|
}
|
|
6680
6686
|
};
|
|
6681
6687
|
}
|
|
6682
|
-
}),
|
|
6688
|
+
}), Hp = { class: "uz-flex-1 uz-w-full" }, Up = { class: "uz-flex uz-justify-between" }, Wp = { class: "uz-com-title" }, Gp = {
|
|
6683
6689
|
key: 0,
|
|
6684
6690
|
class: "uz-table-asterisk"
|
|
6685
|
-
},
|
|
6686
|
-
function
|
|
6691
|
+
}, Kp = { class: "uz-flex uz-gap-2" }, qp = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
6692
|
+
function Jp(t, s, u, d, f, p) {
|
|
6687
6693
|
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",
|
|
6694
|
+
return S(), i("div", Hp, [
|
|
6695
|
+
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
6696
|
t.status === 2 ? r("", !0) : (S(!0), i(e, { key: 0 }, E(t.suffixes, (e) => (S(), n(g, {
|
|
6691
6697
|
key: e.key,
|
|
6692
6698
|
type: e.color,
|
|
@@ -6762,7 +6768,7 @@ function qp(t, s, u, d, f, p) {
|
|
|
6762
6768
|
"scroll-x",
|
|
6763
6769
|
"class",
|
|
6764
6770
|
"row-class-name"
|
|
6765
|
-
])) : r("", !0), a("div",
|
|
6771
|
+
])) : 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
6772
|
key: 0,
|
|
6767
6773
|
type: "success",
|
|
6768
6774
|
secondary: "",
|
|
@@ -6791,7 +6797,7 @@ function qp(t, s, u, d, f, p) {
|
|
|
6791
6797
|
}, 8, ["model"])
|
|
6792
6798
|
]);
|
|
6793
6799
|
}
|
|
6794
|
-
var
|
|
6800
|
+
var Yp = /* @__PURE__ */ U(Vp, [["render", Jp]]), Xp = d({
|
|
6795
6801
|
name: "UzTableQuestChild",
|
|
6796
6802
|
components: { NDataTable: se },
|
|
6797
6803
|
props: {
|
|
@@ -6819,7 +6825,7 @@ var Jp = /* @__PURE__ */ U(Bp, [["render", qp]]), Yp = d({
|
|
|
6819
6825
|
}), o.value = t, i.value = !1;
|
|
6820
6826
|
}
|
|
6821
6827
|
}, l = async (i) => {
|
|
6822
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
6828
|
+
let { tableColumns: c, tableWidth: l } = await Dp(H(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
6823
6829
|
c.unshift({
|
|
6824
6830
|
title: " ",
|
|
6825
6831
|
key: "index",
|
|
@@ -6838,7 +6844,7 @@ var Jp = /* @__PURE__ */ U(Bp, [["render", qp]]), Yp = d({
|
|
|
6838
6844
|
hide: !0,
|
|
6839
6845
|
width: 60,
|
|
6840
6846
|
render(t) {
|
|
6841
|
-
return
|
|
6847
|
+
return jd({ buttons: [{
|
|
6842
6848
|
type: "normal",
|
|
6843
6849
|
color: "primary",
|
|
6844
6850
|
key: "detail",
|
|
@@ -6858,7 +6864,7 @@ var Jp = /* @__PURE__ */ U(Bp, [["render", qp]]), Yp = d({
|
|
|
6858
6864
|
l();
|
|
6859
6865
|
}), M(async () => {
|
|
6860
6866
|
try {
|
|
6861
|
-
e.formValue && e.formValue.id && e.item.params.searchKey && c(await
|
|
6867
|
+
e.formValue && e.formValue.id && e.item.params.searchKey && c(await Sd({
|
|
6862
6868
|
tableId: e.item.params.link,
|
|
6863
6869
|
params: [{
|
|
6864
6870
|
key: e.item.params.searchKey,
|
|
@@ -6882,7 +6888,7 @@ var Jp = /* @__PURE__ */ U(Bp, [["render", qp]]), Yp = d({
|
|
|
6882
6888
|
let n = e.item.params.summary;
|
|
6883
6889
|
return Function("pageData", "h", n)(t, f);
|
|
6884
6890
|
} catch (e) {
|
|
6885
|
-
|
|
6891
|
+
q(e);
|
|
6886
6892
|
}
|
|
6887
6893
|
}
|
|
6888
6894
|
return [];
|
|
@@ -6890,11 +6896,11 @@ var Jp = /* @__PURE__ */ U(Bp, [["render", qp]]), Yp = d({
|
|
|
6890
6896
|
tableScrollX: s
|
|
6891
6897
|
};
|
|
6892
6898
|
}
|
|
6893
|
-
}),
|
|
6894
|
-
function
|
|
6899
|
+
}), Zp = { class: "uz-flex-1 uz-w-full" }, Qp = { class: "uz-flex uz-justify-between" }, $p = { class: "uz-com-title" };
|
|
6900
|
+
function em(e, t, n, r, o, s) {
|
|
6895
6901
|
let c = O("NDataTable"), u = O("UzTableDrawer");
|
|
6896
|
-
return S(), i("div",
|
|
6897
|
-
a("div",
|
|
6902
|
+
return S(), i("div", Zp, [
|
|
6903
|
+
a("div", Qp, [a("div", $p, k(e.item.label), 1)]),
|
|
6898
6904
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
6899
6905
|
l(c, {
|
|
6900
6906
|
columns: e.columns,
|
|
@@ -6919,7 +6925,7 @@ function $p(e, t, n, r, o, s) {
|
|
|
6919
6925
|
l(u, { ref: "drawerRef" }, null, 512)
|
|
6920
6926
|
]);
|
|
6921
6927
|
}
|
|
6922
|
-
var
|
|
6928
|
+
var tm = /* @__PURE__ */ U(Xp, [["render", em]]), nm = d({
|
|
6923
6929
|
name: "UzTableDrawer",
|
|
6924
6930
|
components: {
|
|
6925
6931
|
NButton: L,
|
|
@@ -6930,7 +6936,7 @@ var em = /* @__PURE__ */ U(Yp, [["render", $p]]), tm = d({
|
|
|
6930
6936
|
},
|
|
6931
6937
|
emits: ["update:show", "on-submit"],
|
|
6932
6938
|
setup(e, { emit: n, expose: r }) {
|
|
6933
|
-
let i = t(() =>
|
|
6939
|
+
let i = t(() => K.isMobile), a = T(), o = T(0), s = T({}), c = T({
|
|
6934
6940
|
link: "",
|
|
6935
6941
|
linkFn: ""
|
|
6936
6942
|
}), l = T(!1), u = T({
|
|
@@ -6955,7 +6961,7 @@ var em = /* @__PURE__ */ U(Yp, [["render", $p]]), tm = d({
|
|
|
6955
6961
|
}), y = T(!1), b = T(), x = () => {
|
|
6956
6962
|
a.value?.restoreValidation(), s.value = {}, f.value = !1, d.value = !1, l.value = !1, n("update:show", !1);
|
|
6957
6963
|
}, S = () => {
|
|
6958
|
-
o.value === 2 ? x() :
|
|
6964
|
+
o.value === 2 ? x() : Qu.info({
|
|
6959
6965
|
title: "提示",
|
|
6960
6966
|
content: "关闭后修改的数据将不保留,确定关闭?",
|
|
6961
6967
|
positiveText: "确定",
|
|
@@ -6971,10 +6977,10 @@ var em = /* @__PURE__ */ U(Yp, [["render", $p]]), tm = d({
|
|
|
6971
6977
|
Function("formValues", "POST", t)(e, Z).then((e) => {
|
|
6972
6978
|
s.value = e;
|
|
6973
6979
|
}).catch((e) => {
|
|
6974
|
-
|
|
6980
|
+
q(e);
|
|
6975
6981
|
});
|
|
6976
6982
|
} catch (e) {
|
|
6977
|
-
|
|
6983
|
+
q(e);
|
|
6978
6984
|
}
|
|
6979
6985
|
else s.value = e;
|
|
6980
6986
|
};
|
|
@@ -6986,11 +6992,11 @@ var em = /* @__PURE__ */ U(Yp, [["render", $p]]), tm = d({
|
|
|
6986
6992
|
linkFn: t
|
|
6987
6993
|
};
|
|
6988
6994
|
let r = e.split(".")[0];
|
|
6989
|
-
|
|
6995
|
+
yp(r).then((e) => {
|
|
6990
6996
|
g(async () => {
|
|
6991
6997
|
let t = nt.parse(e.viewJson);
|
|
6992
|
-
u.value =
|
|
6993
|
-
let { form: r } = await
|
|
6998
|
+
u.value = Tp(t.option), l.value = !0;
|
|
6999
|
+
let { form: r } = await Ep(xp(t.table));
|
|
6994
7000
|
v.value = t.trigger, n && C(n), g(() => {
|
|
6995
7001
|
_.value = r, p.value = !1;
|
|
6996
7002
|
});
|
|
@@ -7044,11 +7050,11 @@ var em = /* @__PURE__ */ U(Yp, [["render", $p]]), tm = d({
|
|
|
7044
7050
|
return;
|
|
7045
7051
|
} else {
|
|
7046
7052
|
let t = c.value.link.split(".")[0];
|
|
7047
|
-
|
|
7053
|
+
Cd({
|
|
7048
7054
|
tableId: t,
|
|
7049
7055
|
...e
|
|
7050
7056
|
}).then(() => {
|
|
7051
|
-
|
|
7057
|
+
_p(), Sd({ tableId: t }).then((e) => {
|
|
7052
7058
|
let t = c.value.link.split("."), r;
|
|
7053
7059
|
if (c.value.linkFn) {
|
|
7054
7060
|
let t = c.value.linkFn;
|
|
@@ -7071,11 +7077,11 @@ var em = /* @__PURE__ */ U(Yp, [["render", $p]]), tm = d({
|
|
|
7071
7077
|
}
|
|
7072
7078
|
};
|
|
7073
7079
|
}
|
|
7074
|
-
}),
|
|
7080
|
+
}), rm = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, im = {
|
|
7075
7081
|
key: 0,
|
|
7076
7082
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
7077
|
-
},
|
|
7078
|
-
function
|
|
7083
|
+
}, am = { class: "uz-flex uz-gap-2" };
|
|
7084
|
+
function om(e, t, r, s, u, d) {
|
|
7079
7085
|
let f = O("NSkeleton"), p = O("UzForm"), m = O("UzSpin"), h = O("NSpin"), g = O("NButton"), _ = O("NDrawerContent"), v = O("NDrawer");
|
|
7080
7086
|
return S(), n(v, {
|
|
7081
7087
|
show: e.drawer,
|
|
@@ -7101,7 +7107,7 @@ function am(e, t, r, s, u, d) {
|
|
|
7101
7107
|
message: e.spinMsg,
|
|
7102
7108
|
status: e.spinStatus
|
|
7103
7109
|
}, {
|
|
7104
|
-
default: N(() => [a("div",
|
|
7110
|
+
default: N(() => [a("div", rm, [e.skeletonShow ? (S(), i("div", im, [
|
|
7105
7111
|
l(f, {
|
|
7106
7112
|
size: "large",
|
|
7107
7113
|
style: { height: "156px" }
|
|
@@ -7164,7 +7170,7 @@ function am(e, t, r, s, u, d) {
|
|
|
7164
7170
|
_: 2
|
|
7165
7171
|
}, [e.formStatus === 2 ? void 0 : {
|
|
7166
7172
|
name: "footer",
|
|
7167
|
-
fn: N(() => [a("div",
|
|
7173
|
+
fn: N(() => [a("div", am, [l(g, {
|
|
7168
7174
|
loading: e.spinShow,
|
|
7169
7175
|
secondary: "",
|
|
7170
7176
|
onClick: e.drawerCheck
|
|
@@ -7191,7 +7197,7 @@ function am(e, t, r, s, u, d) {
|
|
|
7191
7197
|
"on-after-leave"
|
|
7192
7198
|
]);
|
|
7193
7199
|
}
|
|
7194
|
-
var
|
|
7200
|
+
var sm = /* @__PURE__ */ U(nm, [["render", om]]), cm = d({
|
|
7195
7201
|
name: "UzTableMobileList",
|
|
7196
7202
|
props: {
|
|
7197
7203
|
tableData: {
|
|
@@ -7209,12 +7215,12 @@ var om = /* @__PURE__ */ U(tm, [["render", am]]), sm = d({
|
|
|
7209
7215
|
},
|
|
7210
7216
|
emits: ["update:row-keys"],
|
|
7211
7217
|
setup() {}
|
|
7212
|
-
}),
|
|
7218
|
+
}), lm = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, um = {
|
|
7213
7219
|
key: 1,
|
|
7214
7220
|
class: "uz-table-mobile-group-txt"
|
|
7215
7221
|
};
|
|
7216
|
-
function
|
|
7217
|
-
return S(), i("div",
|
|
7222
|
+
function dm(t, o, s, c, l, u) {
|
|
7223
|
+
return S(), i("div", lm, [(S(!0), i(e, null, E(t.tableColumns, (o) => (S(), i("div", {
|
|
7218
7224
|
key: o.key,
|
|
7219
7225
|
class: _(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
|
|
7220
7226
|
style: v(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
|
|
@@ -7225,11 +7231,11 @@ function um(t, o, s, c, l, u) {
|
|
|
7225
7231
|
class: "mobile"
|
|
7226
7232
|
})) : 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
7233
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7228
|
-
}), { key: 0 })) : (S(), i("div",
|
|
7234
|
+
}), { key: 0 })) : (S(), i("div", um, k(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
7229
7235
|
}
|
|
7230
7236
|
//#endregion
|
|
7231
7237
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
7232
|
-
var
|
|
7238
|
+
var fm = d({
|
|
7233
7239
|
name: "UzTableMobile",
|
|
7234
7240
|
components: {
|
|
7235
7241
|
NCheckbox: re,
|
|
@@ -7237,7 +7243,7 @@ var dm = d({
|
|
|
7237
7243
|
NPagination: Te,
|
|
7238
7244
|
NCheckboxGroup: ie,
|
|
7239
7245
|
NRadioGroup: ke,
|
|
7240
|
-
UzTableMobileList: /* @__PURE__ */ U(
|
|
7246
|
+
UzTableMobileList: /* @__PURE__ */ U(cm, [["render", dm], ["__scopeId", "data-v-84c394fe"]])
|
|
7241
7247
|
},
|
|
7242
7248
|
props: {
|
|
7243
7249
|
tableData: {
|
|
@@ -7284,17 +7290,17 @@ var dm = d({
|
|
|
7284
7290
|
}
|
|
7285
7291
|
};
|
|
7286
7292
|
}
|
|
7287
|
-
}),
|
|
7293
|
+
}), pm = {
|
|
7288
7294
|
key: 0,
|
|
7289
7295
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7290
|
-
},
|
|
7296
|
+
}, mm = {
|
|
7291
7297
|
key: 0,
|
|
7292
7298
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7293
|
-
},
|
|
7299
|
+
}, hm = {
|
|
7294
7300
|
key: 0,
|
|
7295
7301
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7296
7302
|
};
|
|
7297
|
-
function
|
|
7303
|
+
function gm(t, a, o, s, c, u) {
|
|
7298
7304
|
let d = O("UzTableMobileList"), f = O("NCheckbox"), p = O("NPagination"), m = O("NCheckboxGroup"), h = O("NRadio"), g = O("NRadioGroup");
|
|
7299
7305
|
return t.selection === 2 ? (S(), n(m, {
|
|
7300
7306
|
key: 0,
|
|
@@ -7321,7 +7327,7 @@ function hm(t, a, o, s, c, u) {
|
|
|
7321
7327
|
"tableColumns"
|
|
7322
7328
|
])]),
|
|
7323
7329
|
_: 2
|
|
7324
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), i("div",
|
|
7330
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), i("div", pm, [l(p, {
|
|
7325
7331
|
page: t.tableQueries.query.page,
|
|
7326
7332
|
"onUpdate:page": [a[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7327
7333
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7363,7 +7369,7 @@ function hm(t, a, o, s, c, u) {
|
|
|
7363
7369
|
"tableColumns"
|
|
7364
7370
|
])]),
|
|
7365
7371
|
_: 2
|
|
7366
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), i("div",
|
|
7372
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), i("div", mm, [l(p, {
|
|
7367
7373
|
page: t.tableQueries.query.page,
|
|
7368
7374
|
"onUpdate:page": [a[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7369
7375
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7398,7 +7404,7 @@ function hm(t, a, o, s, c, u) {
|
|
|
7398
7404
|
"tableData",
|
|
7399
7405
|
"tableIndex",
|
|
7400
7406
|
"tableColumns"
|
|
7401
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), i("div",
|
|
7407
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), i("div", hm, [l(p, {
|
|
7402
7408
|
page: t.tableQueries.query.page,
|
|
7403
7409
|
"onUpdate:page": [a[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7404
7410
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7411,7 +7417,7 @@ function hm(t, a, o, s, c, u) {
|
|
|
7411
7417
|
"onUpdate:page"
|
|
7412
7418
|
])])) : r("", !0)], 4));
|
|
7413
7419
|
}
|
|
7414
|
-
var
|
|
7420
|
+
var _m = /* @__PURE__ */ U(fm, [["render", gm], ["__scopeId", "data-v-70b54e3b"]]), Q = w({
|
|
7415
7421
|
page: {
|
|
7416
7422
|
label: "首页",
|
|
7417
7423
|
key: "/",
|
|
@@ -7422,14 +7428,14 @@ var gm = /* @__PURE__ */ U(dm, [["render", hm], ["__scopeId", "data-v-70b54e3b"]
|
|
|
7422
7428
|
active: "/",
|
|
7423
7429
|
thumbnail: []
|
|
7424
7430
|
});
|
|
7425
|
-
function
|
|
7431
|
+
function vm(e) {
|
|
7426
7432
|
Q.cache = e.cache, Q.page = {
|
|
7427
7433
|
label: e.label,
|
|
7428
7434
|
key: e.key,
|
|
7429
7435
|
path: e.key,
|
|
7430
7436
|
closable: !1
|
|
7431
7437
|
};
|
|
7432
|
-
let t =
|
|
7438
|
+
let t = Y(Q.cache, !1);
|
|
7433
7439
|
t ? (Q.active = t.active, t.thumbnail && (Q.thumbnail = t.thumbnail)) : Q.thumbnail = [{
|
|
7434
7440
|
label: e.label,
|
|
7435
7441
|
key: e.key,
|
|
@@ -7437,35 +7443,35 @@ function _m(e) {
|
|
|
7437
7443
|
closable: !1
|
|
7438
7444
|
}];
|
|
7439
7445
|
}
|
|
7440
|
-
function
|
|
7441
|
-
Q.active = e, W.push(e),
|
|
7446
|
+
function ym(e) {
|
|
7447
|
+
Q.active = e, W.push(e), J(Q.cache, Q, 0);
|
|
7442
7448
|
}
|
|
7443
|
-
function
|
|
7449
|
+
function bm(e, t) {
|
|
7444
7450
|
let n = Q.thumbnail.find((t) => t.key === e);
|
|
7445
|
-
n && (n.key = t, Q.active = t,
|
|
7451
|
+
n && (n.key = t, Q.active = t, J(Q.cache, Q, 0));
|
|
7446
7452
|
}
|
|
7447
|
-
function
|
|
7453
|
+
function xm(e) {
|
|
7448
7454
|
let t = Q.thumbnail.find((t) => t.path === e.key);
|
|
7449
|
-
t ? (Q.active = t.key,
|
|
7455
|
+
t ? (Q.active = t.key, J(Q.cache, Q, 0), W.push(t.key)) : (Q.active = e.key, Q.thumbnail.push({
|
|
7450
7456
|
...e,
|
|
7451
7457
|
path: e.key,
|
|
7452
7458
|
closable: !0
|
|
7453
7459
|
}), W.push(e.key));
|
|
7454
7460
|
}
|
|
7455
|
-
function
|
|
7461
|
+
function Sm(e) {
|
|
7456
7462
|
let t = Q.thumbnail.findIndex((t) => t.key === e);
|
|
7457
7463
|
if (Q.thumbnail.splice(t, 1), Q.active === e) {
|
|
7458
7464
|
let e = Q.thumbnail[t - 1]?.key || "";
|
|
7459
7465
|
Q.active = e, W.push(e);
|
|
7460
7466
|
}
|
|
7461
|
-
|
|
7467
|
+
J(Q.cache, Q, 0);
|
|
7462
7468
|
}
|
|
7463
|
-
function
|
|
7464
|
-
Q.active = Q.page.path, Q.thumbnail = [Q.page], W.push(Q.page.path),
|
|
7469
|
+
function Cm() {
|
|
7470
|
+
Q.active = Q.page.path, Q.thumbnail = [Q.page], W.push(Q.page.path), J(Q.cache, Q, 0);
|
|
7465
7471
|
}
|
|
7466
7472
|
//#endregion
|
|
7467
7473
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
7468
|
-
var
|
|
7474
|
+
var wm = d({
|
|
7469
7475
|
name: "UzThumbnail",
|
|
7470
7476
|
components: {
|
|
7471
7477
|
NTabs: Fe,
|
|
@@ -7487,29 +7493,29 @@ var Cm = d({
|
|
|
7487
7493
|
setup(e, { slots: t }) {
|
|
7488
7494
|
let n = T(!!t.prefix), r = qe();
|
|
7489
7495
|
return b(() => {
|
|
7490
|
-
|
|
7496
|
+
vm(e.option), Q.active !== r.path && bm(r.path, r.fullPath);
|
|
7491
7497
|
}), j(() => r, (e) => {
|
|
7492
|
-
Q.active === r.path &&
|
|
7498
|
+
Q.active === r.path && bm(e.path, e.fullPath);
|
|
7493
7499
|
}, { deep: !0 }), j(() => e.option, (e) => {
|
|
7494
|
-
|
|
7500
|
+
vm(e);
|
|
7495
7501
|
}, { deep: !0 }), {
|
|
7496
7502
|
thumbnailStore: Q,
|
|
7497
7503
|
isSlotPrefix: n,
|
|
7498
7504
|
handleClose: (e) => {
|
|
7499
|
-
|
|
7505
|
+
Sm(e);
|
|
7500
7506
|
},
|
|
7501
7507
|
handleChange: (e) => {
|
|
7502
|
-
|
|
7508
|
+
ym(e);
|
|
7503
7509
|
},
|
|
7504
7510
|
handleClear: () => {
|
|
7505
|
-
|
|
7511
|
+
Cm();
|
|
7506
7512
|
}
|
|
7507
7513
|
};
|
|
7508
7514
|
}
|
|
7509
7515
|
});
|
|
7510
7516
|
//#endregion
|
|
7511
7517
|
//#region components/thumbnail/index.vue
|
|
7512
|
-
function
|
|
7518
|
+
function Tm(t, r, a, s, u, d) {
|
|
7513
7519
|
let f = O("NTabPane"), p = O("Trash"), m = O("NIcon"), h = O("NButton"), g = O("NPopconfirm"), _ = O("NFlex"), v = O("NTabs");
|
|
7514
7520
|
return S(), n(v, {
|
|
7515
7521
|
value: t.thumbnailStore.active,
|
|
@@ -7555,33 +7561,33 @@ function wm(t, r, a, s, u, d) {
|
|
|
7555
7561
|
"on-update:value"
|
|
7556
7562
|
]);
|
|
7557
7563
|
}
|
|
7558
|
-
var
|
|
7559
|
-
V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover =
|
|
7560
|
-
var
|
|
7564
|
+
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";
|
|
7565
|
+
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";
|
|
7566
|
+
var Lm = {
|
|
7561
7567
|
common: {
|
|
7562
7568
|
inputColor: "rgba(var(--input))",
|
|
7563
7569
|
borderColor: "rgba(var(--border), 0.7)",
|
|
7564
7570
|
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:
|
|
7571
|
+
primaryColor: Dm,
|
|
7572
|
+
primaryColorHover: Om,
|
|
7573
|
+
primaryColorPressed: Dm,
|
|
7574
|
+
primaryColorSuppl: Dm,
|
|
7575
|
+
infoColor: km,
|
|
7576
|
+
infoColorHover: Am,
|
|
7577
|
+
infoColorPressed: km,
|
|
7578
|
+
infoColorSuppl: km,
|
|
7579
|
+
successColor: jm,
|
|
7580
|
+
successColorHover: Mm,
|
|
7581
|
+
successColorPressed: jm,
|
|
7582
|
+
successColorSuppl: jm,
|
|
7583
|
+
warningColor: Nm,
|
|
7584
|
+
warningColorHover: Pm,
|
|
7585
|
+
warningColorPressed: Nm,
|
|
7586
|
+
warningColorSuppl: Nm,
|
|
7587
|
+
errorColor: Fm,
|
|
7588
|
+
errorColorHover: Im,
|
|
7589
|
+
errorColorPressed: Fm,
|
|
7590
|
+
errorColorSuppl: Fm,
|
|
7585
7591
|
cardColor: "#fff"
|
|
7586
7592
|
},
|
|
7587
7593
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -7589,22 +7595,22 @@ var Im = {
|
|
|
7589
7595
|
DatePicker: { itemBorderRadius: "var(--borderRadius)" },
|
|
7590
7596
|
Notification: { borderRadius: "var(--borderRadius)" },
|
|
7591
7597
|
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
|
|
7592
|
-
},
|
|
7598
|
+
}, Rm = V, zm = d({
|
|
7593
7599
|
name: "UzWrap",
|
|
7594
7600
|
components: { NConfigProvider: oe },
|
|
7595
7601
|
setup() {
|
|
7596
7602
|
return {
|
|
7597
7603
|
zhCN: Ue,
|
|
7598
7604
|
dateZhCN: Ve,
|
|
7599
|
-
commonStore:
|
|
7600
|
-
lightTheme:
|
|
7601
|
-
darkTheme:
|
|
7605
|
+
commonStore: K,
|
|
7606
|
+
lightTheme: Lm,
|
|
7607
|
+
darkTheme: Rm
|
|
7602
7608
|
};
|
|
7603
7609
|
}
|
|
7604
7610
|
});
|
|
7605
7611
|
//#endregion
|
|
7606
7612
|
//#region components/wrap/index.vue
|
|
7607
|
-
function
|
|
7613
|
+
function Bm(e, t, r, i, a, o) {
|
|
7608
7614
|
let s = O("NConfigProvider");
|
|
7609
7615
|
return S(), n(s, {
|
|
7610
7616
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -7623,7 +7629,7 @@ function zm(e, t, r, i, a, o) {
|
|
|
7623
7629
|
"date-locale"
|
|
7624
7630
|
]);
|
|
7625
7631
|
}
|
|
7626
|
-
var
|
|
7632
|
+
var Vm = /* @__PURE__ */ U(zm, [["render", Bm]]), Hm = /* @__PURE__ */ ot({
|
|
7627
7633
|
AccessPoint: () => dt,
|
|
7628
7634
|
Activity: () => ht,
|
|
7629
7635
|
Adjustments: () => yt,
|
|
@@ -7752,53 +7758,53 @@ var Bm = /* @__PURE__ */ U(Rm, [["render", zm]]), Vm = /* @__PURE__ */ ot({
|
|
|
7752
7758
|
UserPlus: () => kl,
|
|
7753
7759
|
Users: () => Nl,
|
|
7754
7760
|
UzActionButton: () => st,
|
|
7755
|
-
UzBack: () =>
|
|
7756
|
-
UzCamera: () =>
|
|
7757
|
-
UzCircle: () =>
|
|
7758
|
-
UzDraggableForm: () =>
|
|
7759
|
-
UzForm: () =>
|
|
7760
|
-
UzFormItem: () =>
|
|
7761
|
-
UzFormItemImage: () =>
|
|
7762
|
-
UzFormItemTimesPicker: () =>
|
|
7763
|
-
UzFormItemUpload: () =>
|
|
7761
|
+
UzBack: () => Hd,
|
|
7762
|
+
UzCamera: () => Zf,
|
|
7763
|
+
UzCircle: () => _f,
|
|
7764
|
+
UzDraggableForm: () => Af,
|
|
7765
|
+
UzForm: () => Tf,
|
|
7766
|
+
UzFormItem: () => xf,
|
|
7767
|
+
UzFormItemImage: () => Bf,
|
|
7768
|
+
UzFormItemTimesPicker: () => Wf,
|
|
7769
|
+
UzFormItemUpload: () => If,
|
|
7764
7770
|
UzIcon: () => Nu,
|
|
7765
|
-
UzSearchBar: () =>
|
|
7766
|
-
UzSearchMobileBar: () =>
|
|
7767
|
-
UzSpin: () =>
|
|
7768
|
-
UzTable: () =>
|
|
7769
|
-
UzTableChild: () =>
|
|
7770
|
-
UzTableDrawer: () =>
|
|
7771
|
-
UzTableMobile: () =>
|
|
7772
|
-
UzTableQuestChild: () =>
|
|
7773
|
-
UzThumbnail: () =>
|
|
7774
|
-
UzWrap: () =>
|
|
7771
|
+
UzSearchBar: () => rp,
|
|
7772
|
+
UzSearchMobileBar: () => lp,
|
|
7773
|
+
UzSpin: () => Ap,
|
|
7774
|
+
UzTable: () => Bp,
|
|
7775
|
+
UzTableChild: () => Yp,
|
|
7776
|
+
UzTableDrawer: () => sm,
|
|
7777
|
+
UzTableMobile: () => _m,
|
|
7778
|
+
UzTableQuestChild: () => tm,
|
|
7779
|
+
UzThumbnail: () => Em,
|
|
7780
|
+
UzWrap: () => Vm,
|
|
7775
7781
|
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 =
|
|
7782
|
+
commonStore: () => K,
|
|
7783
|
+
fnActionReduction: () => zd,
|
|
7784
|
+
fnActionSimplify: () => Rd,
|
|
7785
|
+
fnAddThumbnail: () => xm,
|
|
7786
|
+
fnClearAllThumbnail: () => Cm,
|
|
7787
|
+
fnDeleteThumbnail: () => Sm,
|
|
7788
|
+
fnGetTableData: () => yp,
|
|
7789
|
+
fnOptionReduction: () => Tp,
|
|
7790
|
+
fnOptionSimplify: () => wp,
|
|
7791
|
+
fnPrepareFormData: () => Ep,
|
|
7792
|
+
fnPrepareTableData: () => Dp,
|
|
7793
|
+
fnRenderAction: () => jd,
|
|
7794
|
+
fnSetLang: () => Lu,
|
|
7795
|
+
fnSetTheme: () => Ru,
|
|
7796
|
+
fnSetThumbnail: () => ym,
|
|
7797
|
+
fnTableReduction: () => xp,
|
|
7798
|
+
fnTableSimplify: () => bp,
|
|
7799
|
+
fnTriggersReduction: () => Cp,
|
|
7800
|
+
fnTriggersSimplify: () => Sp,
|
|
7801
|
+
i18n: () => G
|
|
7802
|
+
}), Um = 3840, Wm = 2160, Gm = w({ scale: 1 });
|
|
7803
|
+
function Km(e, t) {
|
|
7804
|
+
Um = e, Wm = t;
|
|
7805
|
+
}
|
|
7806
|
+
function qm() {
|
|
7807
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = Um, i = Wm, a = parseFloat((r / i).toFixed(5));
|
|
7802
7808
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
7803
7809
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
7804
7810
|
e = t > 1 ? 1 : t;
|
|
@@ -7806,17 +7812,17 @@ function Km() {
|
|
|
7806
7812
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
7807
7813
|
e = n > 1 ? 1 : n;
|
|
7808
7814
|
}
|
|
7809
|
-
|
|
7815
|
+
Gm.scale = e;
|
|
7810
7816
|
}
|
|
7811
|
-
function
|
|
7812
|
-
let e = Qe(
|
|
7817
|
+
function Jm() {
|
|
7818
|
+
let e = Qe(qm, 200);
|
|
7813
7819
|
return e(), window.addEventListener("resize", e), () => {
|
|
7814
|
-
|
|
7820
|
+
Um = 3840, Wm = 2160, window.removeEventListener("resize", e);
|
|
7815
7821
|
};
|
|
7816
7822
|
}
|
|
7817
7823
|
//#endregion
|
|
7818
7824
|
//#region components/hooks/useDebounceFn.ts
|
|
7819
|
-
function
|
|
7825
|
+
function Ym(e, t = 1e3) {
|
|
7820
7826
|
let n = Qe(e, t);
|
|
7821
7827
|
return {
|
|
7822
7828
|
run: n,
|
|
@@ -7826,7 +7832,7 @@ function Jm(e, t = 1e3) {
|
|
|
7826
7832
|
}
|
|
7827
7833
|
//#endregion
|
|
7828
7834
|
//#region components/hooks/useThrottleFn.ts
|
|
7829
|
-
function
|
|
7835
|
+
function Xm(e, n = 1e3) {
|
|
7830
7836
|
let r = T(e), i = t(() => $e((...e) => r.value([...e]), n));
|
|
7831
7837
|
return x(() => {
|
|
7832
7838
|
i.value.cancel();
|
|
@@ -7838,16 +7844,16 @@ function Ym(e, n = 1e3) {
|
|
|
7838
7844
|
}
|
|
7839
7845
|
//#endregion
|
|
7840
7846
|
//#region components/hooks/useLocalStorage.ts
|
|
7841
|
-
function
|
|
7842
|
-
return [T(
|
|
7843
|
-
n === void 0 ?
|
|
7847
|
+
function Zm(e, t) {
|
|
7848
|
+
return [T(Y(e, t?.defaultValue)), (n) => {
|
|
7849
|
+
n === void 0 ? $u(e) : J(e, n, t?.expired || "1 Day");
|
|
7844
7850
|
}];
|
|
7845
7851
|
}
|
|
7846
7852
|
//#endregion
|
|
7847
7853
|
//#region components/hooks/useQuery.ts
|
|
7848
|
-
function
|
|
7854
|
+
function Qm(e, t, n) {
|
|
7849
7855
|
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
|
-
|
|
7856
|
+
hd(), clearInterval(o.value), o.value = null;
|
|
7851
7857
|
}, p = async () => {
|
|
7852
7858
|
if (!s.value) {
|
|
7853
7859
|
h(!0, "loading");
|
|
@@ -7866,7 +7872,7 @@ function Zm(e, t, n) {
|
|
|
7866
7872
|
});
|
|
7867
7873
|
e = await Promise.race([n, t()]);
|
|
7868
7874
|
}
|
|
7869
|
-
h(!1, "success"), m(e),
|
|
7875
|
+
h(!1, "success"), m(e), J(r, e, 0);
|
|
7870
7876
|
} catch (e) {
|
|
7871
7877
|
g(e), h(!1, "error"), u.value > 0 && (--u.value, setTimeout(() => {
|
|
7872
7878
|
p();
|
|
@@ -7883,14 +7889,14 @@ function Zm(e, t, n) {
|
|
|
7883
7889
|
}, g = (e) => {
|
|
7884
7890
|
l.value = e;
|
|
7885
7891
|
}, _ = () => {
|
|
7886
|
-
|
|
7892
|
+
hd(), i.value && i.value();
|
|
7887
7893
|
}, v = () => {
|
|
7888
7894
|
_(), p(), n?.pollingInterval && (f(), o.value = setInterval(() => {
|
|
7889
7895
|
p();
|
|
7890
7896
|
}, n?.pollingInterval));
|
|
7891
7897
|
};
|
|
7892
7898
|
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 =
|
|
7899
|
+
let e = Y(r, !1);
|
|
7894
7900
|
e && m(e);
|
|
7895
7901
|
} catch {
|
|
7896
7902
|
m(!1);
|
|
@@ -7911,26 +7917,26 @@ function Zm(e, t, n) {
|
|
|
7911
7917
|
}
|
|
7912
7918
|
//#endregion
|
|
7913
7919
|
//#region package.json
|
|
7914
|
-
var
|
|
7915
|
-
async function
|
|
7920
|
+
var $m = "0.1.18", eh;
|
|
7921
|
+
async function th() {
|
|
7916
7922
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7917
7923
|
method: "HEAD",
|
|
7918
7924
|
cache: "no-cache"
|
|
7919
7925
|
});
|
|
7920
7926
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
7921
7927
|
}
|
|
7922
|
-
async function th() {
|
|
7923
|
-
let e = await eh();
|
|
7924
|
-
$m !== e && od(!0);
|
|
7925
|
-
}
|
|
7926
7928
|
async function nh() {
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
+
let e = await th();
|
|
7930
|
+
eh !== e && zu(!0);
|
|
7931
|
+
}
|
|
7932
|
+
async function rh() {
|
|
7933
|
+
eh = await th(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
7934
|
+
nh();
|
|
7929
7935
|
}, 60 * 1e3);
|
|
7930
7936
|
}
|
|
7931
7937
|
//#endregion
|
|
7932
7938
|
//#region components/monitor.ts
|
|
7933
|
-
var
|
|
7939
|
+
var ih = "", ah, $ = navigator.userAgent.toLocaleUpperCase(), oh = () => {
|
|
7934
7940
|
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
7941
|
if (e.test($)) return "Windows XP";
|
|
7936
7942
|
if (t.test($)) return "Windows 7";
|
|
@@ -7954,7 +7960,7 @@ var rh = "", ih, $ = navigator.userAgent.toLocaleUpperCase(), ah = () => {
|
|
|
7954
7960
|
return `MAC ${e ? e[0].replace(/_/g, ".").replace(/ /g, "") : ""}`;
|
|
7955
7961
|
}
|
|
7956
7962
|
return "Other Platform";
|
|
7957
|
-
},
|
|
7963
|
+
}, sh = () => {
|
|
7958
7964
|
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
7965
|
if (e.test($) && o.test($)) return "SogouIE";
|
|
7960
7966
|
if (o.test($)) return "SogouFast";
|
|
@@ -7983,64 +7989,64 @@ var rh = "", ih, $ = navigator.userAgent.toLocaleUpperCase(), ah = () => {
|
|
|
7983
7989
|
}
|
|
7984
7990
|
return "Others";
|
|
7985
7991
|
};
|
|
7986
|
-
function
|
|
7992
|
+
function ch(e, t, n, r = !1) {
|
|
7987
7993
|
if (e !== void 0 && (t in e || r)) {
|
|
7988
7994
|
let r = e[t], i = n(r);
|
|
7989
7995
|
typeof i == "function" && (e[t] = i);
|
|
7990
7996
|
}
|
|
7991
7997
|
}
|
|
7992
|
-
function
|
|
7998
|
+
function lh(e, t, n, r = !1) {
|
|
7993
7999
|
e.addEventListener(t, n, r);
|
|
7994
8000
|
}
|
|
7995
|
-
function
|
|
8001
|
+
function uh() {
|
|
7996
8002
|
if (!("XMLHttpRequest" in window)) return;
|
|
7997
8003
|
let e = XMLHttpRequest.prototype;
|
|
7998
|
-
|
|
8004
|
+
ch(e, "open", (e) => function(...t) {
|
|
7999
8005
|
this.xhr = {
|
|
8000
8006
|
method: t[0].toUpperCase(),
|
|
8001
8007
|
url: t[1],
|
|
8002
8008
|
startTime: Date.now(),
|
|
8003
8009
|
type: "xhr"
|
|
8004
|
-
},
|
|
8005
|
-
this.xhr.url.indexOf("log/submit") === -1 &&
|
|
8010
|
+
}, lh(this, "error", function() {
|
|
8011
|
+
this.xhr.url.indexOf("log/submit") === -1 && fh(3, this.xhr.url, `Request-${this.status}`);
|
|
8006
8012
|
}), e.apply(this, t);
|
|
8007
|
-
}),
|
|
8013
|
+
}), ch(e, "send", (e) => function(...t) {
|
|
8008
8014
|
let { url: n } = this.xhr;
|
|
8009
8015
|
this.ontimeout = function() {
|
|
8010
|
-
|
|
8011
|
-
},
|
|
8012
|
-
(this.status === 500 || this.status === 405) &&
|
|
8016
|
+
fh(3, n, "Network Timeout");
|
|
8017
|
+
}, lh(this, "loadend", function() {
|
|
8018
|
+
(this.status === 500 || this.status === 405) && fh(3, n, `${t[0]}-${this.status}-${this.response}`);
|
|
8013
8019
|
}), e.apply(this, t);
|
|
8014
8020
|
});
|
|
8015
8021
|
}
|
|
8016
|
-
function
|
|
8017
|
-
t && (
|
|
8018
|
-
|
|
8022
|
+
function dh(e, t, n) {
|
|
8023
|
+
t && (ih = t, ah = n, uh(), e.config.errorHandler = (e) => {
|
|
8024
|
+
fh(2, window.location.href, e.message);
|
|
8019
8025
|
}, window.addEventListener("unhandledrejection", function(e) {
|
|
8020
8026
|
e.preventDefault();
|
|
8021
8027
|
}));
|
|
8022
8028
|
}
|
|
8023
|
-
var
|
|
8024
|
-
let r =
|
|
8029
|
+
var fh = (e, t, n) => {
|
|
8030
|
+
let r = ah ? JSON.stringify(ah()) : "", i = {
|
|
8025
8031
|
type: e,
|
|
8026
8032
|
time: Date.now(),
|
|
8027
8033
|
url: encodeURIComponent(t || location.href),
|
|
8028
|
-
browser:
|
|
8029
|
-
platform:
|
|
8034
|
+
browser: sh(),
|
|
8035
|
+
platform: oh(),
|
|
8030
8036
|
message: n,
|
|
8031
8037
|
info: r
|
|
8032
8038
|
}, a = window.btoa(JSON.stringify(i));
|
|
8033
|
-
if (window.navigator.sendBeacon) window.navigator.sendBeacon(
|
|
8039
|
+
if (window.navigator.sendBeacon) window.navigator.sendBeacon(ih, a);
|
|
8034
8040
|
else {
|
|
8035
8041
|
let e = document.body, t = new Image();
|
|
8036
|
-
t.src =
|
|
8042
|
+
t.src = ih + "?data=" + a, t.onload = t.onerror = function() {
|
|
8037
8043
|
e.removeChild(t), t = null;
|
|
8038
8044
|
}, e.append(t);
|
|
8039
8045
|
}
|
|
8040
8046
|
};
|
|
8041
8047
|
//#endregion
|
|
8042
8048
|
//#region components/create.ts
|
|
8043
|
-
function
|
|
8049
|
+
function ph({ components: e = [] } = {}) {
|
|
8044
8050
|
let t = [];
|
|
8045
8051
|
function n(e, t, n) {
|
|
8046
8052
|
e.component(t) || e.component(t, n);
|
|
@@ -8052,17 +8058,17 @@ function fh({ components: e = [] } = {}) {
|
|
|
8052
8058
|
n(r, t, e);
|
|
8053
8059
|
});
|
|
8054
8060
|
}), i)) {
|
|
8055
|
-
let {
|
|
8056
|
-
|
|
8061
|
+
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);
|
|
8062
|
+
Bu(e), Iu(o), Lu(l), Ru(c), G.global.locale.value = l, a && rh(), t && dh(r, t, n);
|
|
8057
8063
|
}
|
|
8058
8064
|
}
|
|
8059
8065
|
return {
|
|
8060
|
-
version:
|
|
8066
|
+
version: $m,
|
|
8061
8067
|
install: r
|
|
8062
8068
|
};
|
|
8063
8069
|
}
|
|
8064
8070
|
//#endregion
|
|
8065
8071
|
//#region components/preset.ts
|
|
8066
|
-
var
|
|
8072
|
+
var mh = ph({ components: Object.keys(Hm).map((e) => Hm[e]) }), hh = mh.install;
|
|
8067
8073
|
//#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,
|
|
8074
|
+
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 };
|