zhangxc 5 anos atrás
pai
commit
70c87418d7
2 arquivos alterados com 5 adições e 2 exclusões
  1. 3 2
      src/js/graphMap.js
  2. 2 0
      src/js/schemaMap.js

+ 3 - 2
src/js/graphMap.js

@@ -273,9 +273,8 @@ function drawTree(data, showNodeName){
                     if(select_type != select_type_noSearch){
                         select_type_noSearch = select_type
                         setSelectName(select_type)
-                       
                     }
-                   
+                    console.log('aaaaaaaaaaaa', select_type)
                     getGraph(name,select_type)
                     const selectPId = $('.curSelectedNode').attr('id')
                     if(selectPId){
@@ -574,8 +573,10 @@ function setTabBottomHei(type){
     if(name=="药品通用名"){
         $('.selectedName').html("药品")
         $('.selectedName').attr("title","药品")
+        $("#searchInp").attr("placeholder",`请输入药品名称`)
     }else{
         $('.selectedName').attr('title', name)
+        $("#searchInp").attr("placeholder",`请输入${name}名称`)
         if(name.length > 3){
             $('.selectedName').html(name.slice(0,2)+'...')
         }else{

+ 2 - 0
src/js/schemaMap.js

@@ -463,8 +463,10 @@ function setTabBottomHei(type){
     if(name=="药品通用名"){
         $('.selectedName').html("药品")
         $('.selectedName').attr("title","药品")
+        $("#searchInp").attr("placeholder",`请输入药品名称`)
     }else{
         $('.selectedName').attr('title', name)
+        $("#searchInp").attr("placeholder",`请输入${name}名称`)
         if(name.length > 3){
             $('.selectedName').html(name.slice(0,2)+'...')
         }else{