Ver código fonte

高度调整

1178232204@qq.com 3 anos atrás
pai
commit
cd44417328
5 arquivos alterados com 8 adições e 10 exclusões
  1. 1 1
      src/css/qaPage.less
  2. 2 3
      src/js/graphMap.js
  3. 1 1
      src/js/index.js
  4. 1 1
      src/js/knowledgeTree.js
  5. 3 4
      src/js/schemaMap.js

+ 1 - 1
src/css/qaPage.less

@@ -117,7 +117,7 @@ input::-webkit-input-placeholder{
   position: relative;
   font-size: 14px;
   color: #fff;
-  height: calc(100vh - 700px);
+  height: 170px;
   overflow-y: auto;
   // css保留换行符
   // white-space: pre-line;

+ 2 - 3
src/js/graphMap.js

@@ -308,7 +308,6 @@ function drawTree(data, showNodeName){
             expandSpeed: "normal",//设置展开的速度  fast normal  slow 
             nameIsHTML: true,//名字是否是HTML
             selectedMulti: true,
-            
         },
         //设置事件回调
         callback:{
@@ -350,7 +349,7 @@ function drawTree(data, showNodeName){
     // var zNodes = zTreeData.nodes; 
     $.fn.zTree.init($("#tree"), setting, zNodes);
     if(showNodeName) {
-        updateTree(showNodeName)
+        // updateTree(showNodeName)
 
     }
 }
@@ -626,7 +625,7 @@ function bindTabClick(){
 
 function setTabBottomHei(type){
     const clientHei = $(window).height()
-    const contentHei = clientHei - 80
+    const contentHei = 700
     if(type==1){
         $(".tabBottom").css({
             'margin': '0px 0px 0px 0px'

+ 1 - 1
src/js/index.js

@@ -33,7 +33,7 @@ window.refreshTree = true
 ifHideLogo();
  function setHei(){
     const clientHei = $(window).height()
-    const contentHei = clientHei - 220+19
+    const contentHei =580
     $(".left").css("height",contentHei+'px')
     $(".right").css("height",contentHei+'px')
     if(select_type=="疾病"){

+ 1 - 1
src/js/knowledgeTree.js

@@ -33,7 +33,7 @@ window.refreshTree = true
 ifHideLogo()
  function setHei(){
     const clientHei = $(window).height()
-    const contentHei = clientHei - 220+19
+    const contentHei = 580
     $(".left").css("height",contentHei+'px')
     $(".right").css("height",contentHei+'px')
     console.log('select_type',select_type)

+ 3 - 4
src/js/schemaMap.js

@@ -52,7 +52,7 @@ function drawTree(data, showNodeName){
             expandSpeed: "normal",//设置展开的速度  fast normal  slow 
             nameIsHTML: true,//名字是否是HTML
             selectedMulti: true,
-            
+            isParent:false
         },
         //设置事件回调
         callback:{
@@ -93,8 +93,7 @@ function drawTree(data, showNodeName){
     // var zNodes = zTreeData.nodes; 
     $.fn.zTree.init($("#tree"), setting, zNodes);
     if(showNodeName) {
-        updateTree(showNodeName)
-
+        // updateTree(showNodeName)
     }
 }
 
@@ -479,7 +478,7 @@ function bindTabClick(){
 }
 function setTabBottomHei(type){
     const clientHei = $(window).height()
-    const contentHei = clientHei - 220
+    const contentHei = 560
     if(type==1){
         $(".tabBottom").css({
             'margin': '0px 0px 0px 0px'