Jelajahi Sumber

取消范文范围默认选项

hurugang 2 tahun lalu
induk
melakukan
562594e5f4

+ 3 - 3
src/main/java/cn/hnthyy/thmz/controller/mz/TemplateController.java

@@ -146,13 +146,13 @@ public class TemplateController {
     /**
      * 查询医生自己的,科室和全院的医疗范文  ,不查询内容
      * @param templateKindType 范文类型
-     * @param $templateType 范围范围
+     * @param templateType 范围范围
      * @param httpServletRequest
      * @return
      */
     @UserLoginToken
     @RequestMapping(value = "/getTemplate", method = {RequestMethod.GET})
-    public Map<String, Object> getTemplate(@RequestParam("templateKindType") String templateKindType,@RequestParam("templateType") String $templateType, HttpServletRequest httpServletRequest) {
+    public Map<String, Object> getTemplate(@RequestParam("templateKindType") String templateKindType,@RequestParam("templateType") String templateType, HttpServletRequest httpServletRequest) {
         Map<String, Object> resultMap = new HashMap<>();
         try {
             User tokenUser = TokenUtil.getUser(httpServletRequest);
@@ -163,7 +163,7 @@ public class TemplateController {
             }
             resultMap.put("code", 0);
             resultMap.put("message", "查询医疗范文成功");
-            resultMap.put("data", templateService.queryTemplate(tokenUser.getUserIdCode(), deptNo, ("null".equals(templateKindType) || StringUtils.isBlank(templateKindType)) ? null : Integer.valueOf(templateKindType),("null".equals($templateType) || StringUtils.isBlank($templateType)) ? null : Integer.valueOf($templateType)));
+            resultMap.put("data", templateService.queryTemplate(tokenUser.getUserIdCode(), deptNo, ("null".equals(templateKindType) || StringUtils.isBlank(templateKindType)) ? null : Integer.valueOf(templateKindType),("null".equals(templateType) || StringUtils.isBlank(templateType)) ? null : Integer.valueOf(templateType)));
             return resultMap;
         } catch (MzException e) {
             resultMap.put("code", -1);

+ 2 - 2
src/main/resources/static/js/mz/clinic.js

@@ -3282,8 +3282,8 @@ function initTemplateTypeSelect(templateTypeId) {
                     $('#'+templateTypeId).append(html);
                 });
                 $('#'+templateTypeId).selectpicker('refresh');
-                $('#'+templateTypeId).selectpicker('val', "0");
-                $('#'+templateTypeId).selectpicker('refresh');
+                // $('#'+templateTypeId).selectpicker('val', "0");
+                // $('#'+templateTypeId).selectpicker('refresh');
             } else {
                 errorMesage(res);
             }