Browse Source

2025-12-16

CLODOP下载
master
fengyuan_yang 4 weeks ago
parent
commit
97086a0525
  1. 31
      src/utils/LodopFuncs.js
  2. 2
      static/config/index.js

31
src/utils/LodopFuncs.js

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

2
static/config/index.js

@ -5,7 +5,7 @@
window.SITE_CONFIG = {}; window.SITE_CONFIG = {};
// api接口请求地址 // api接口请求地址
window.SITE_CONFIG['baseUrl'] = 'http://127.0.0.1:9090/xujie-fast';
window.SITE_CONFIG['baseUrl'] = 'http://127.0.0.1:9090';
// cdn地址 = 域名 + 版本号 // cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './'; // 域名 window.SITE_CONFIG['domain'] = './'; // 域名

Loading…
Cancel
Save