qk-pc-ui 3.6.7 → 3.6.9
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 +14 -8
- package/dist/qk-pc-ui.umd.js +15 -15
- package/package.json +1 -1
package/dist/qk-pc-ui.mjs
CHANGED
|
@@ -16354,23 +16354,29 @@ 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 || "数据加载中"
|
|
16357
|
+
r = r || "数据加载中";
|
|
16358
|
+
let t = 0;
|
|
16359
|
+
r += "...", currentLoding = ElLoading.service({
|
|
16358
16360
|
lock: !0,
|
|
16359
16361
|
text: r,
|
|
16360
16362
|
body: !0,
|
|
16361
16363
|
fullscreen: !0,
|
|
16362
16364
|
background: "rgba(0, 0, 0, 0.7)"
|
|
16363
|
-
})
|
|
16365
|
+
}), currentLoding.setText = (n) => {
|
|
16366
|
+
r = n, currentLoding.text.value = `${r}(${t})`;
|
|
16367
|
+
};
|
|
16368
|
+
let a = setInterval(() => {
|
|
16369
|
+
t += 1, currentLoding.text.value = `${r}(${t})`;
|
|
16370
|
+
}, 1e3);
|
|
16364
16371
|
try {
|
|
16365
16372
|
await e(currentLoding);
|
|
16366
|
-
} catch (
|
|
16367
|
-
|
|
16368
|
-
|
|
16369
|
-
ElMessageBox.alert(a, "错误提示");
|
|
16373
|
+
} catch (n) {
|
|
16374
|
+
let i = n.message || n.resultcontent;
|
|
16375
|
+
ElMessageBox.alert(i, "错误提示");
|
|
16370
16376
|
}
|
|
16371
|
-
currentLoding.close(), currentLoding = null;
|
|
16377
|
+
clearInterval(a), currentLoding.close(), currentLoding = null;
|
|
16372
16378
|
} else
|
|
16373
|
-
await e();
|
|
16379
|
+
await e(currentLoding);
|
|
16374
16380
|
}, SendPrintToDevice = (dataId, printName, result) => new Promise((resolve, reject) => {
|
|
16375
16381
|
try {
|
|
16376
16382
|
let LODOP = getLodop();
|