|
@@ -185,7 +185,7 @@ function dataClick(param){
|
|
if(data.type == "疾病"){
|
|
if(data.type == "疾病"){
|
|
getTree(1,1,data.label);
|
|
getTree(1,1,data.label);
|
|
getGraph(data.label,select_type);
|
|
getGraph(data.label,select_type);
|
|
- }else if(data.type == "药品名及编码"){
|
|
|
|
|
|
+ }else if(data.type == "药品通用名"){
|
|
getTree(0,2,data.label);
|
|
getTree(0,2,data.label);
|
|
getGraph(data.label,select_type);
|
|
getGraph(data.label,select_type);
|
|
}else if(data.type == "症状"){
|
|
}else if(data.type == "症状"){
|
|
@@ -340,7 +340,7 @@ function getNode(val, type){
|
|
if(select_type == '疾病'){
|
|
if(select_type == '疾病'){
|
|
// $('#searchInp').val("高血压3级")
|
|
// $('#searchInp').val("高血压3级")
|
|
getTree(1,1,txt);
|
|
getTree(1,1,txt);
|
|
- }else if(select_type == '药品名及编码'){
|
|
|
|
|
|
+ }else if(select_type == '药品通用名'){
|
|
getTree(0,2,txt);
|
|
getTree(0,2,txt);
|
|
}else if(select_type == '症状'){
|
|
}else if(select_type == '症状'){
|
|
getTree(0,3,txt);
|
|
getTree(0,3,txt);
|
|
@@ -431,7 +431,7 @@ function getKeyEvent(evt) {
|
|
|
|
|
|
function getTab(tabName){
|
|
function getTab(tabName){
|
|
console.log('tabName', tabName)
|
|
console.log('tabName', tabName)
|
|
- let tabList = ["疾病","药品名及编码","症状","手术和操作","实验室检查","辅助检查"]
|
|
|
|
|
|
+ let tabList = ["疾病","药品通用名","症状","手术和操作","实验室检查","辅助检查"]
|
|
let tabListCopy = tabList.slice()
|
|
let tabListCopy = tabList.slice()
|
|
const index = tabList.findIndex(item => item == tabName)
|
|
const index = tabList.findIndex(item => item == tabName)
|
|
|
|
|
|
@@ -460,9 +460,9 @@ function renderTab(data){
|
|
let showtabStr = ``
|
|
let showtabStr = ``
|
|
let hidetabStr = ``
|
|
let hidetabStr = ``
|
|
for(let i = 0; i < showList.length; i++){
|
|
for(let i = 0; i < showList.length; i++){
|
|
- showtabStr +=` <span class="tab ${i === activeIndex ? 'activeTab':''}" data-id="${showList[i]}">${showList[i] =="药品名及编码" ?"药品":showList[i]}</span>`
|
|
|
|
|
|
+ showtabStr +=` <span class="tab ${i === activeIndex ? 'activeTab':''}" data-id="${showList[i]}">${showList[i] =="药品通用名" ?"药品":showList[i]}</span>`
|
|
if(i === activeIndex){
|
|
if(i === activeIndex){
|
|
- if(showList[i] =="药品名及编码"){
|
|
|
|
|
|
+ if(showList[i] =="药品通用名"){
|
|
$("#searchInp").attr("placeholder",`请输入药品名称`)
|
|
$("#searchInp").attr("placeholder",`请输入药品名称`)
|
|
}else{
|
|
}else{
|
|
$("#searchInp").attr("placeholder",`请输入${showList[i]}名称`)
|
|
$("#searchInp").attr("placeholder",`请输入${showList[i]}名称`)
|
|
@@ -544,7 +544,7 @@ function bindTabClick(){
|
|
getTree(1,1,"急性胰腺炎");
|
|
getTree(1,1,"急性胰腺炎");
|
|
getGraph("急性胰腺炎",select_type);
|
|
getGraph("急性胰腺炎",select_type);
|
|
|
|
|
|
- }else if(id=="药品名及编码"){
|
|
|
|
|
|
+ }else if(id=="药品通用名"){
|
|
$('#searchInp').val("地高辛(XC01AAD072A001010100372)")
|
|
$('#searchInp').val("地高辛(XC01AAD072A001010100372)")
|
|
getTree(0,2,"地高辛(XC01AAD072A001010100372)");
|
|
getTree(0,2,"地高辛(XC01AAD072A001010100372)");
|
|
getGraph("地高辛(XC01AAD072A001010100372)",select_type);
|
|
getGraph("地高辛(XC01AAD072A001010100372)",select_type);
|
|
@@ -593,7 +593,7 @@ function setTabBottomHei(type){
|
|
}
|
|
}
|
|
|
|
|
|
function setSelectName(name){
|
|
function setSelectName(name){
|
|
- if(name=="药品名及编码"){
|
|
|
|
|
|
+ if(name=="药品通用名"){
|
|
$('.selectedName').html("药品")
|
|
$('.selectedName').html("药品")
|
|
$('.selectedName').attr("title","药品")
|
|
$('.selectedName').attr("title","药品")
|
|
$("#searchInp").attr("placeholder",`请输入药品名称`)
|
|
$("#searchInp").attr("placeholder",`请输入药品名称`)
|