|
@@ -23,7 +23,7 @@ const iconUp = require('./../resources/images/iconUp.png');
|
|
const iconDown = require('./../resources/images/iconDown.png');
|
|
const iconDown = require('./../resources/images/iconDown.png');
|
|
const { post, api } = require('./api.js');
|
|
const { post, api } = require('./api.js');
|
|
const { mapData, zTreeData,mapData3,zTreeData3 } = require('./data.js');
|
|
const { mapData, zTreeData,mapData3,zTreeData3 } = require('./data.js');
|
|
-const { drawGraph,updateTree,getGraph,getTree,getNode,getTab,renderTab,setTabBottomHei,setSelectName,hideHideTab} = require('./graphMap.js');
|
|
|
|
|
|
+const { drawGraph,updateTree,getGraph,getTree,getNode,getTab,renderTab,setTabBottomHei,setSelectName,hideHideTab,hideSlide} = require('./graphMap.js');
|
|
|
|
|
|
window.select_type="疾病";
|
|
window.select_type="疾病";
|
|
window.select_type_noSearch="疾病";
|
|
window.select_type_noSearch="疾病";
|
|
@@ -55,6 +55,7 @@ $('#searchInp').val("高血压3级")
|
|
//选择类型
|
|
//选择类型
|
|
$('.select').click(function(e){
|
|
$('.select').click(function(e){
|
|
e.stopPropagation();
|
|
e.stopPropagation();
|
|
|
|
+ hideSlide('selectList')
|
|
const selectListShow = $('.selectList').css('display')
|
|
const selectListShow = $('.selectList').css('display')
|
|
if(selectListShow == 'none'){
|
|
if(selectListShow == 'none'){
|
|
$('.iconSlide').attr('src','./images/iconSlideUp.png')
|
|
$('.iconSlide').attr('src','./images/iconSlideUp.png')
|
|
@@ -103,6 +104,7 @@ $('.radioItem').click(function(e){
|
|
//搜索
|
|
//搜索
|
|
$('#searchBtn').click(function(e){
|
|
$('#searchBtn').click(function(e){
|
|
e.stopPropagation()
|
|
e.stopPropagation()
|
|
|
|
+ hideSlide()
|
|
const val = $('#searchInp').val().trim()
|
|
const val = $('#searchInp').val().trim()
|
|
if(val){
|
|
if(val){
|
|
const clientHei = $(window).height()
|
|
const clientHei = $(window).height()
|
|
@@ -157,28 +159,35 @@ $('#searchBtn').click(function(e){
|
|
let renderTabInfo = getTab("疾病")
|
|
let renderTabInfo = getTab("疾病")
|
|
renderTab(renderTabInfo)
|
|
renderTab(renderTabInfo)
|
|
|
|
|
|
-
|
|
|
|
|
|
+$(".tabList").click(function(e){
|
|
|
|
+ e.stopPropagation()
|
|
|
|
+})
|
|
|
|
+$(".hideTabList").click(function(e){
|
|
|
|
+ e.stopPropagation()
|
|
|
|
+})
|
|
//点击页面其他地方关闭下拉
|
|
//点击页面其他地方关闭下拉
|
|
$('html').click(function(){
|
|
$('html').click(function(){
|
|
- const selectListShow = $('.selectList').css('display')
|
|
|
|
- const tabNameListShow = $('.tabNameList').css('display')
|
|
|
|
- const tabNameListNoSearchShow = $('.tabNameListNoSearch').css('display')
|
|
|
|
- const hideTabListShow = $('.hideTabList').css('display')
|
|
|
|
- if(selectListShow == 'block'){
|
|
|
|
- $('.selectList').hide()
|
|
|
|
- $('.iconSlide').attr('src','./images/iconSlideDown.png')
|
|
|
|
- }
|
|
|
|
- if(tabNameListShow == 'block'){
|
|
|
|
- $('.tabNameList').hide()
|
|
|
|
- }
|
|
|
|
- if(tabNameListNoSearchShow == 'block'){
|
|
|
|
- $('.tabNameListNoSearch').hide()
|
|
|
|
- }
|
|
|
|
- if(hideTabListShow == 'block'){
|
|
|
|
- hideHideTab()
|
|
|
|
- }
|
|
|
|
|
|
+ hideSlide()
|
|
|
|
+ // const selectListShow = $('.selectList').css('display')
|
|
|
|
+ // const tabNameListShow = $('.tabNameList').css('display')
|
|
|
|
+ // const tabNameListNoSearchShow = $('.tabNameListNoSearch').css('display')
|
|
|
|
+ // const hideTabListShow = $('.hideTabList').css('display')
|
|
|
|
+ // if(selectListShow == 'block'){
|
|
|
|
+ // $('.selectList').hide()
|
|
|
|
+ // $('.iconSlide').attr('src','./images/iconSlideDown.png')
|
|
|
|
+ // }
|
|
|
|
+ // if(tabNameListShow == 'block'){
|
|
|
|
+ // $('.tabNameList').hide()
|
|
|
|
+ // }
|
|
|
|
+ // if(tabNameListNoSearchShow == 'block'){
|
|
|
|
+ // $('.tabNameListNoSearch').hide()
|
|
|
|
+ // }
|
|
|
|
+ // if(hideTabListShow == 'block'){
|
|
|
|
+ // hideHideTab()
|
|
|
|
+ // }
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+
|
|
module.exports ={
|
|
module.exports ={
|
|
getTab,
|
|
getTab,
|
|
renderTab
|
|
renderTab
|