瀏覽代碼

下砸插件优化

lihong 11 月之前
父節點
當前提交
1a4b72b4aa

+ 41 - 9
src/main/java/cn/hnthyy/thmz/controller/CommonController.java

@@ -1,32 +1,56 @@
 package cn.hnthyy.thmz.controller;
 
 import cn.hnthyy.thmz.Utils.AddressResolutionUtil;
-import cn.hnthyy.thmz.Utils.AssertUtil;
 import cn.hnthyy.thmz.Utils.R;
-import cn.hnthyy.thmz.Utils.TokenUtil;
 import cn.hnthyy.thmz.Utils.Tools;
 import cn.hnthyy.thmz.comment.UserLoginToken;
 import cn.hnthyy.thmz.entity.his.mz.CodeNameEntity;
 import cn.hnthyy.thmz.entity.his.mz.MzOrderFrequency;
-import cn.hnthyy.thmz.enums.*;
+import cn.hnthyy.thmz.enums.CertificateTypeEnum;
+import cn.hnthyy.thmz.enums.ClassCodeEnum;
+import cn.hnthyy.thmz.enums.NumberEnum;
+import cn.hnthyy.thmz.enums.OrderFrequencyEnum;
+import cn.hnthyy.thmz.enums.TemplateKindTypeEnum;
+import cn.hnthyy.thmz.enums.TemplateTypeEnum;
 import cn.hnthyy.thmz.service.his.RegionService;
-import cn.hnthyy.thmz.service.his.mz.*;
-import cn.hnthyy.thmz.service.his.zd.*;
+import cn.hnthyy.thmz.service.his.mz.MzBillItemService;
+import cn.hnthyy.thmz.service.his.mz.MzOrderFrequencyService;
+import cn.hnthyy.thmz.service.his.mz.MzZdCommonService;
+import cn.hnthyy.thmz.service.his.mz.MzZdDeptNoService;
+import cn.hnthyy.thmz.service.his.mz.MzZdSupplyTypeService;
+import cn.hnthyy.thmz.service.his.mz.MzZdWorkTimeService;
+import cn.hnthyy.thmz.service.his.mz.ZdChargeBaClassService;
+import cn.hnthyy.thmz.service.his.zd.DictDataService;
+import cn.hnthyy.thmz.service.his.zd.JcZdClassService;
+import cn.hnthyy.thmz.service.his.zd.MzYshZdFysmService;
+import cn.hnthyy.thmz.service.his.zd.YshZdPartCodeService;
+import cn.hnthyy.thmz.service.his.zd.ZdChargeItemService;
+import cn.hnthyy.thmz.service.his.zd.ZdIcdCodeService;
+import cn.hnthyy.thmz.service.his.zd.ZdMaritalStatusService;
+import cn.hnthyy.thmz.service.his.zd.ZdMzClassService;
 import cn.hnthyy.thmz.service.thmz.UserService;
 import cn.hutool.core.convert.Convert;
 import cn.hutool.core.util.StrUtil;
 import cn.hutool.http.HttpRequest;
 import cn.hutool.http.HttpStatus;
-import cn.hutool.http.HttpUtil;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
-import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
 
 import javax.annotation.Resource;
-import javax.servlet.http.HttpServletRequest;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
 
 @Slf4j
 @RestController
@@ -101,6 +125,14 @@ public class CommonController {
     }
 
 
+    @UserLoginToken
+    @RequestMapping(value = "/getDownFilePlus", method = {RequestMethod.GET})
+    public R getDownFilePlus() {
+        String dictVlaue = dictDataService.queryDictVlaue("2.9", "down_file_puls", null);
+        return R.ok().put("data", dictVlaue);
+    }
+
+
     /**
      * 查询门诊分类码
      *

+ 48 - 0
src/main/resources/static/js/menu.js

@@ -108,11 +108,59 @@ $(function () {
         }
 
     });
+    getDownFilePlus()
     //建立消息webSocket连接
     openNoticeWebSocket();
 });
 
 
+function getDownFilePlus() {
+    let fileObj =  [{
+        name: '读卡插件安装包',
+        url: 'http://webhis.thyy.cn:8080/download/readcard/读卡插件.msi'
+    },
+        {
+            name: '.Net Framework',
+            url: 'http://webhis.thyy.cn:8080/download/readcard/.NET Framework 4.8.exe'
+        },
+        {
+            name: '高版本Chrome浏览器',
+            url: 'http://webhis.thyy.cn:8080/download/chrome90.exe'
+        },
+        {
+            name: 'Chrome浏览器免安装',
+            url: 'http://webhis.thyy.cn:8080/download/google.rar'
+        },
+        {
+            name: 'LODOP打印插件',
+            url: 'http://webhis.thyy.cn:8080/download/LODOP/CLodop_Setup_for_Win32NT.exe'
+        }, {
+            name: '7zip解压缩32位',
+            url: 'http://webhis.thyy.cn:8080/download/7zip/7z2201-x32.exe'
+        }, {
+            name: '7zip解压缩64位',
+            url: 'http://webhis.thyy.cn:8080/download/7zip/7z2201-x64.exe'
+        }, {
+            name: '临床调阅',
+            url: 'http://webhis.thyy.cn:8080/download/ReportViewerSetup.exe'
+        }, {
+            name: '远程软件',
+            url: 'http://webhis.thyy.cn:8080/download/rustdesk.zip'
+        }
+    ]
+    getAjaxRequst("/thmz/getDownFilePlus",{},true,function (res) {
+        if(res.data != null && res.data !='undefined'){
+            fileObj = JSON.parse(res.data)
+        }
+        let aHtml = "";
+        for (let i = 0; i < fileObj.length; i++) {
+            aHtml += ` <li><a href="${fileObj[i].url}">${fileObj[i].name}</a></li>`
+        }
+        $("#fileMenu").html(aHtml)
+    })
+
+}
+
 /**
  * 构造当前用户的菜单树
  */

+ 0 - 5
src/main/resources/templates/menu.html

@@ -168,11 +168,6 @@
                                 <i class="fa fa-cloud-download"></i>
                             </a>
                             <ul id="fileMenu" class="dropdown-menu dropdown-usermenu" role="menu">
-                                <li><a href="javascript:;" onclick="downFile('/thmz/downloadByName?name=CLodop_Setup_for_Win32NT.zip')">打印控件驱动</a></li>
-                                <li><a href="javascript:;" onclick="downFile('/thmz/downloadByName?name=SFZ100.zip')">身份证读卡器驱动</a></li>
-                                <li><a href="javascript:;" onclick="downFile('/thmz/downloadByName?name=readCardDrive.msi')">医保读卡插件安装包</a></li>
-                                <li><a href="javascript:;" onclick="downFile('/thmz/downloadByName?name=NET Framework 4.6.1.exe')">.Net Framework</a></li>
-                                <li><a href="javascript:;" onclick="downFile('/thmz/downloadByName?name=chrome90.exe')">高版本Chrome浏览器</a></li>
                             </ul>
                         </li>
                         <li role="presentation" class="dropdown">