Browse Source

添加Lodop打印插件下载

lighter 2 years ago
parent
commit
22ea89df63
2 changed files with 10 additions and 6 deletions
  1. 4 0
      src/layout/HeaderV2/function-list/Download.vue
  2. 6 6
      src/utils/c-lodop.js

+ 4 - 0
src/layout/HeaderV2/function-list/Download.vue

@@ -7,6 +7,7 @@
           <el-dropdown-item command="thcardreader">读卡插件安装包</el-dropdown-item>
           <el-dropdown-item command="framework" divided>.Net Framework</el-dropdown-item>
           <el-dropdown-item command="chrome90" divided>高版本Chrome浏览器</el-dropdown-item>
+          <el-dropdown-item command="lodop" divided>LODOP打印插件</el-dropdown-item>
         </el-dropdown-menu>
       </template>
     </el-dropdown>
@@ -37,6 +38,9 @@ function downloadReadCard(command) {
     case 'chrome90':
       filename = 'chrome90.exe'
       break
+    case 'lodop':
+      filename = 'LODOP/CLodop_Setup_for_Win32NT.exe'
+      break
   }
   window.open(`http://webhis.thyy.cn:8080/download/${filename}`, '_blank')
 }

+ 6 - 6
src/utils/c-lodop.js

@@ -65,20 +65,20 @@ export function initLodop() {
 //==获取LODOP对象主过程,判断是否安装、需否升级:==
 export function getLodop(oOBJECT, oEMBED) {
   var strHtmInstall =
-    "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='http://webhis.thyy.cn:8888/LODOP/install_lodop32.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"
+    "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='http://webhis.thyy.cn:8080/download/LODOP/install_lodop32.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"
   var strHtmUpdate =
-    "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='http://webhis.thyy.cn:8888/LODOP/install_lodop32.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>"
+    "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='http://webhis.thyy.cn:8080/download/LODOP/install_lodop32.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>"
   var strHtm64_Install =
-    "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='http://webhis.thyy.cn:8888/LODOP/install_lodop64.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"
+    "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='http://webhis.thyy.cn:8080/download/LODOP/install_lodop64.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"
   var strHtm64_Update =
-    "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='http://webhis.thyy.cn:8888/LODOP/install_lodop64.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>"
+    "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='http://webhis.thyy.cn:8080/download/LODOP/install_lodop64.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>"
   var strHtmChrome = "<br><br><font color='#FF00FF'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>"
   var strCLodopInstall_1 =
-    "<br><font color='#FF00FF'>Web打印服务CLodop未安装启动,点击这里<a href='http://webhis.thyy.cn:8888/LODOP/CLodop_Setup_for_Win32NT.exe' target='_self'>下载执行安装</a>"
+    "<br><font color='#FF00FF'>Web打印服务CLodop未安装启动,点击这里<a href='http://webhis.thyy.cn:8080/download/LODOP/CLodop_Setup_for_Win32NT.exe' target='_self'>下载执行安装</a>"
   var strCLodopInstall_2 = "<br>(若此前已安装过,可<a href='CLodop.protocol:setup' target='_self'>点这里直接再次启动</a>)"
   var strCLodopInstall_3 = ',成功后请刷新本页面。</font>'
   var strCLodopUpdate =
-    "<br><font color='#FF00FF'>Web打印服务CLodop需升级!点击这里<a href='http://webhis.thyy.cn:8888/LODOP/CLodop_Setup_for_Win32NT.exe' target='_self'>执行升级</a>,升级后请刷新页面。</font>"
+    "<br><font color='#FF00FF'>Web打印服务CLodop需升级!点击这里<a href='http://webhis.thyy.cn:8080/download/LODOP/CLodop_Setup_for_Win32NT.exe' target='_self'>执行升级</a>,升级后请刷新页面。</font>"
   var LODOP
   try {
     var ua = navigator.userAgent