|
|
|
@ -3,8 +3,10 @@ import { MessageBox } from 'element-ui' |
|
|
|
|
|
|
|
//用双端口加载主JS文件Lodop.js(或CLodopfuncs.js兼容老版本)以防其中某端口被占:
|
|
|
|
var MainJS = "CLodopfuncs.js", |
|
|
|
URL_WS1 = "ws://192.168.1.147:8000/" + MainJS, //ws用8000/18000
|
|
|
|
URL_WS2 = "ws://192.168.1.147:18000/" + MainJS, |
|
|
|
URL_WS1 = "ws://10.1.15.53:8000/" + MainJS, //ws用8000/18000
|
|
|
|
URL_WS2 = "ws://10.1.15.53:18000/" + MainJS, |
|
|
|
// URL_WS1= "ws://192.168.1.147:8000/" + MainJS, //ws用8000/18000
|
|
|
|
// URL_WS2= "ws://192.168.1.147:18000/" + MainJS,
|
|
|
|
URL_HTTP1 = "http://localhost:8000/" + MainJS, //http用8000/18000
|
|
|
|
URL_HTTP2 = "http://localhost:18000/" + MainJS, |
|
|
|
URL_HTTP3 = "https://localhost.lodop.net:8443/" + MainJS; //https用8000/8443
|
|
|
|
@ -116,11 +118,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 +143,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 +190,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 +208,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 +233,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 => { |
|
|
|
|