qk-pc-ui 3.6.6 → 3.6.8
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/dist/qk-pc-ui.mjs +11 -9
- package/dist/qk-pc-ui.umd.js +15 -15
- package/package.json +1 -1
package/dist/qk-pc-ui.mjs
CHANGED
|
@@ -16354,23 +16354,25 @@ const _hoisted_1$g = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16354
16354
|
let currentLoding = null;
|
|
16355
16355
|
const SafeCall$1 = async (e, r) => {
|
|
16356
16356
|
if (currentLoding == null) {
|
|
16357
|
-
r = r || "数据加载中", r += "...",
|
|
16357
|
+
r = r || "数据加载中", r += "...", currentLoding = ElLoading.service({
|
|
16358
16358
|
lock: !0,
|
|
16359
16359
|
text: r,
|
|
16360
16360
|
body: !0,
|
|
16361
16361
|
fullscreen: !0,
|
|
16362
16362
|
background: "rgba(0, 0, 0, 0.7)"
|
|
16363
|
-
});
|
|
16363
|
+
}), currentLoding.setText = (n) => r = n;
|
|
16364
|
+
let t = 0, a = setInterval(() => {
|
|
16365
|
+
t += 1, currentLoding.text.value = `${r}(${t})`;
|
|
16366
|
+
}, 1e3);
|
|
16364
16367
|
try {
|
|
16365
|
-
await e();
|
|
16366
|
-
} catch (
|
|
16367
|
-
|
|
16368
|
-
|
|
16369
|
-
ElMessageBox.alert(a, "错误提示");
|
|
16368
|
+
await e(currentLoding);
|
|
16369
|
+
} catch (n) {
|
|
16370
|
+
let i = n.message || n.resultcontent;
|
|
16371
|
+
ElMessageBox.alert(i, "错误提示");
|
|
16370
16372
|
}
|
|
16371
|
-
|
|
16373
|
+
clearInterval(a), currentLoding.close(), currentLoding = null;
|
|
16372
16374
|
} else
|
|
16373
|
-
await e()
|
|
16375
|
+
await e(currentLoding);
|
|
16374
16376
|
}, SendPrintToDevice = (dataId, printName, result) => new Promise((resolve, reject) => {
|
|
16375
16377
|
try {
|
|
16376
16378
|
let LODOP = getLodop();
|