医保版 |
${tmpPart.name} |
${tmpPart.code}
|
`:'';
var gnameDom = tmpPart.guoname||tmpPart.guocode?`
国临版 |
${tmpPart.guoname} |
${tmpPart.guocode}
|
`:'';
var codeDom = ynameDom+gnameDom?``:"";
var codeIcon = ynameDom+gnameDom?``:"";
var tmpLi = `
${tmpPart.name}${tmpPart.typeName?(' ( '+tmpPart.typeName+' )'):''}
${codeIcon}
${tmpPart.retrievalName?('• '+tmpPart.retrievalName+''):''}
${codeDom}
`
lisStr += tmpLi
}
$(".searchKnowledge .staticSearchB .empty").css({display:'none'})
$(".searchKnowledge .staticSearchB .tip").css({display:'block'})
$(".searchKnowledge .staticSearchB ul").html(lisStr)
}else{
$(".searchKnowledge .staticSearchB .empty").css({display:'block'})
$(".searchKnowledge .staticSearchB .tip").css({display:'none'})
$(".searchKnowledge .staticSearchB ul").html('')
}
}else{
console.log(res)
}
})
}
function adjustHeight() {
var ht = window.innerHeight;
var containerHt = $(".medicalKonwledgeWrap .container").height()
var ht2 = $(".searchTypeBox").outerHeight(true)
$(".staticSearchB ul").height(ht - 120-10-40 +20- ht2 + "px");
}
$(window).on('resize', function(){
adjustHeight()
})
$(".staticSearchB ul").on("click","li .diag-name",function(){
const infoMsgName = $(this).parents("li").attr('data-name')
const infoMsgUName = $(this).parents("li").attr('data-uname')
const type = $(this).parents("li").attr('data-type')
const sign = $(this).parents("li").attr('data-sign')
if(type != 48){
openNewWin(`staticInfo.html?type=${encodeURIComponent(sign)}&position=0&name=${encodeURIComponent(infoMsgName)}`)
// openNewWin(`information.html?type=${encodeURIComponent(sign)}&position=0&name=${encodeURIComponent(infoMsgName)}&uname=${encodeURIComponent(infoMsgUName)}`)
}else{
let msg = JSON.parse(getUrlArgObject("msg"));
const msg1 = JSON.parse(JSON.stringify(msg))
// console.log('scaleName', msg,infoMsgName)
msg1.scaleName = infoMsgName
msg1.featureType = 21
openNewWin(`scale.html?msg=${encodeURIComponent(JSON.stringify(msg1))}`)
}
})
$(".staticSearchB ul").on("click","li .code-slide",function(){
$(this).parents("li").toggleClass("hide-codes");
});
$(".staticSearchT").on('click','#clearKnowledge',function() {
$(".staticSearchT input").val("")
$(".searchKnowledge .staticSearchB ul").html('')
$(".searchKnowledge .staticSearchB .tip").css({display:'none'})
$(".searchKnowledge .staticSearchB .empty").css({display:'none'})
$(this).prev('.ipt').find('input').focus()
$(this).css({display:"none"})
})
$(function(){
$(".staticSearchT .ipt").find("input").focus()
})