|
|
|
@ -96,6 +96,7 @@ function checkOrTryHttp() { |
|
|
|
|
|
|
|
// 下载CLodop安装程序
|
|
|
|
function loadLodop() { |
|
|
|
console.log(window.SITE_CONFIG['baseUrl']) |
|
|
|
window.open(window.SITE_CONFIG['baseUrl'] + '/printer/download') |
|
|
|
} |
|
|
|
|
|
|
|
@ -116,11 +117,11 @@ function getLodop(oOBJECT, oEMBED) { |
|
|
|
if (!LODOP) { |
|
|
|
logger.info("LodopFuncs.js getLodop no CLodop"); |
|
|
|
MessageBox({ |
|
|
|
title: 'Information', |
|
|
|
title: '打印组件', |
|
|
|
type: 'warning', |
|
|
|
showCancelButton: true, |
|
|
|
confirmButtonText: 'Download', |
|
|
|
cancelButtonText: 'Cancel', |
|
|
|
confirmButtonText: '下载', |
|
|
|
cancelButtonText: '取消', |
|
|
|
zIndex: 3000, |
|
|
|
message: "您没有安装打印组件或者您安装的版本不是最新版本,请下载并安装或升级,同时请检查相关服务是否已启动,最后请关闭并重新打开浏览器。", |
|
|
|
callback: res => { |
|
|
|
@ -141,11 +142,11 @@ function getLodop(oOBJECT, oEMBED) { |
|
|
|
|
|
|
|
if (needUpgrade) { |
|
|
|
MessageBox({ |
|
|
|
title: 'Information', |
|
|
|
title: '打印组件', |
|
|
|
type: 'warning', |
|
|
|
showCancelButton: true, |
|
|
|
confirmButtonText: 'Download', |
|
|
|
cancelButtonText: 'Cancel', |
|
|
|
confirmButtonText: '下载', |
|
|
|
cancelButtonText: '取消', |
|
|
|
zIndex: 3000, |
|
|
|
message: "您没有安装打印组件或者您安装的版本不是最新版本,请下载并安装或升级,同时请检查相关服务是否已启动,最后请关闭并重新打开浏览器。", |
|
|
|
callback: res => { |
|
|
|
@ -188,11 +189,11 @@ function getLodop(oOBJECT, oEMBED) { |
|
|
|
//==Lodop插件未安装时提示下载:==
|
|
|
|
if ((!LODOP) || (!LODOP.VERSION)) { |
|
|
|
MessageBox({ |
|
|
|
title: 'Information', |
|
|
|
title: '打印组件', |
|
|
|
type: 'warning', |
|
|
|
showCancelButton: true, |
|
|
|
confirmButtonText: 'Download', |
|
|
|
cancelButtonText: 'Cancel', |
|
|
|
confirmButtonText: '下载', |
|
|
|
cancelButtonText: '取消', |
|
|
|
zIndex: 3000, |
|
|
|
message: "您没有安装打印组件或者您安装的版本不是最新版本,请下载并安装或升级,同时请检查相关服务是否已启动,最后请关闭并重新打开浏览器。", |
|
|
|
callback: res => { |
|
|
|
@ -206,11 +207,11 @@ function getLodop(oOBJECT, oEMBED) { |
|
|
|
|
|
|
|
if (LODOP.VERSION < "6.2.2.6") { |
|
|
|
MessageBox({ |
|
|
|
title: 'Information', |
|
|
|
title: '打印组件', |
|
|
|
type: 'warning', |
|
|
|
showCancelButton: true, |
|
|
|
confirmButtonText: 'Download', |
|
|
|
cancelButtonText: 'Cancel', |
|
|
|
confirmButtonText: '下载', |
|
|
|
cancelButtonText: '取消', |
|
|
|
zIndex: 3000, |
|
|
|
message: "您没有安装打印组件或者您安装的版本不是最新版本,请下载并安装或升级,同时请检查相关服务是否已启动,最后请关闭并重新打开浏览器。", |
|
|
|
callback: res => { |
|
|
|
@ -231,11 +232,11 @@ function getLodop(oOBJECT, oEMBED) { |
|
|
|
return LODOP; |
|
|
|
} catch (err) { |
|
|
|
MessageBox({ |
|
|
|
title: 'Information', |
|
|
|
title: '打印组件', |
|
|
|
type: 'warning', |
|
|
|
showCancelButton: true, |
|
|
|
confirmButtonText: 'Download', |
|
|
|
cancelButtonText: 'Cancel', |
|
|
|
confirmButtonText: '下载', |
|
|
|
cancelButtonText: '取消', |
|
|
|
zIndex: 3000, |
|
|
|
message: "您没有安装打印组件或者您安装的版本不是最新版本,请下载并安装或升级,同时请检查相关服务是否已启动,最后请关闭并重新打开浏览器。", |
|
|
|
callback: res => { |
|
|
|
|