ztxkui 4.1.3 → 4.1.4
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.
|
@@ -401,10 +401,19 @@ var PrintContainer = function (_a) {
|
|
|
401
401
|
}); };
|
|
402
402
|
// EC打印
|
|
403
403
|
var onECPrintHandle = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
404
|
-
var result, err_2, isOkSure_2;
|
|
404
|
+
var LODOP, result, err_2, isOkSure_2;
|
|
405
405
|
return __generator(this, function (_a) {
|
|
406
406
|
switch (_a.label) {
|
|
407
407
|
case 0:
|
|
408
|
+
LODOP = createTask({
|
|
409
|
+
taskName: '测试',
|
|
410
|
+
width: '1',
|
|
411
|
+
height: '1',
|
|
412
|
+
});
|
|
413
|
+
if (!LODOP) {
|
|
414
|
+
message.info('请先按提示安装或启动打印插件!');
|
|
415
|
+
return [2 /*return*/];
|
|
416
|
+
}
|
|
408
417
|
result = true;
|
|
409
418
|
if (!onPrintBeforeCallback) return [3 /*break*/, 4];
|
|
410
419
|
_a.label = 1;
|
|
@@ -196,12 +196,10 @@ function getLodop() {
|
|
|
196
196
|
if (strAlertMessage) {
|
|
197
197
|
strAlertMessage = strAlertMessage + strInstallOK;
|
|
198
198
|
console.log('提示更新对应版本!', strAlertMessage);
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
// ),
|
|
204
|
-
// });
|
|
199
|
+
Modal.confirm({
|
|
200
|
+
title: '提示更新对应版本',
|
|
201
|
+
content: (React.createElement("div", { dangerouslySetInnerHTML: { __html: strAlertMessage } })),
|
|
202
|
+
});
|
|
205
203
|
}
|
|
206
204
|
}
|
|
207
205
|
}
|
|
@@ -240,10 +238,10 @@ function getLodop() {
|
|
|
240
238
|
if (LODOP.VERSION < '6.2.2.6') {
|
|
241
239
|
var updateStr = (isWinIE64 ? strLodop64Update : strLodopUpdate) + strInstallOK;
|
|
242
240
|
console.log('需要更新对应版本', updateStr);
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
241
|
+
Modal.confirm({
|
|
242
|
+
title: '需要更新对应版本',
|
|
243
|
+
content: React.createElement("div", { dangerouslySetInnerHTML: { __html: updateStr } }),
|
|
244
|
+
});
|
|
247
245
|
}
|
|
248
246
|
}
|
|
249
247
|
//===如下空白位置适合调用统一功能(如注册语句、语言选择等):=======================
|