yangdr 1 dzień temu
rodzic
commit
5e63825515
3 zmienionych plików z 8 dodań i 8 usunięć
  1. 4 4
      src/js/graphMap.js
  2. 1 1
      src/js/index.js
  3. 3 3
      src/js/selfgraphMap.js

+ 4 - 4
src/js/graphMap.js

@@ -1166,7 +1166,7 @@ function drawTree(data, showNodeName) {
 }
 // 定位到当前疾病
 function selectedZTreeNode(nodeName) {
-     console.log("selectedZTreeNode", nodeName)
+    console.log("selectedZTreeNode", nodeName)
     const zTreeObj = $.fn.zTree.getZTreeObj("tree")
     // zTreeObj.expandAll()
     // console.log("zTreeObj", zTreeObj)
@@ -1482,9 +1482,9 @@ function bindTabClick() {
                 getGraph(disease || "艾滋病", select_type);
 
             } else if (id == "药品") {
-                $('#searchInp').val("过氧化氢溶液")
-                getTree(0, 2, "过氧化氢溶液");
-                getGraph("过氧化氢溶液", select_type);
+                $('#searchInp').val("二甲双胍")
+                getTree(0, 2, "二甲双胍");
+                getGraph("二甲双胍", select_type);
             } else if (id == "症状") {
                 $('#searchInp').val("背痛")
                 getTree(0, 3, "背痛");

+ 1 - 1
src/js/index.js

@@ -166,7 +166,7 @@ $('.radioItem').click(function (e) {
     $('.radioItem').css('color', '#333333')
     $(this).css("color", '#409EF1')
     const dataId = $(".showTabList .tab.activeTab").attr("data-id")
-    const initDiag = dataId == "疾病" ? "艾滋病" : "过氧化氢溶液"
+    const initDiag = dataId == "疾病" ? "艾滋病" : "二甲双胍"
     const type = +$(this).attr('data-type')
     const subType = +$(this).attr('sub-type')
     // $(this).children('img').attr('src')

+ 3 - 3
src/js/selfgraphMap.js

@@ -1396,9 +1396,9 @@ function bindTabClick() {
                 getGraph(disease, select_type);
 
             } else if (id == "药品") {
-                $('#searchInp').val("过氧化氢溶液")
-                getTree(0, 2, "过氧化氢溶液");
-                getGraph("过氧化氢溶液", select_type);
+                $('#searchInp').val("二甲双胍")
+                getTree(0, 2, "二甲双胍");
+                getGraph("二甲双胍", select_type);
             } else if (id == "症状") {
                 $('#searchInp').val("背痛")
                 getTree(0, 3, "背痛");