浏览代码

知识搜索查看样式修改

zhouna 6 年之前
父节点
当前提交
ae909cb724

+ 4 - 2
src/components/MedicalInfo/index.jsx

@@ -22,10 +22,12 @@ class MedicalInfo extends Component {
     getSearchList() {
         const { getAllConceptDetail,searchResult } = this.props;
         return searchResult && searchResult.map((item) => {
-                return <li key={item.conceptId} onClick={() =>getAllConceptDetail({name: item.name, type: item.type})}>
+                return <li key={item.conceptId}
+                           title='点击查看详情'
+                           onClick={() =>getAllConceptDetail({name: item.name, type: item.type})}>
                             <span>{item.name}</span>
                             <i>( {item.libTypeName} )</i>
-                            <button>查看</button>
+                            {/*<button>查看</button>*/}
                         </li>;
             });
     }

+ 3 - 0
src/components/MedicalInfo/index.less

@@ -81,6 +81,9 @@
                 margin-top: 8px;
                 outline: none;
             }
+            &:hover{
+                border-bottom:2px solid #3B9ED0;
+            }
         }
     }
     .no-data{

+ 4 - 2
src/components/ScaleSearch/index.jsx

@@ -38,9 +38,11 @@ class ScaleSearch extends Component {
   getSearchList() {
     const { searchResult } = this.props;
     return searchResult && searchResult.map((item) => {
-      return <li key={item.conceptId} onClick={this.showScale.bind(this,{conceptId:item.conceptId,name:item.name})}>
+      return <li key={item.conceptId}
+                 title='点击查看详情'
+                 onClick={this.showScale.bind(this,{conceptId:item.conceptId,name:item.name})}>
         <span className={style['scale-name']}>{item.name}{this.getResult(item.conceptId)}</span>
-        <button>查看</button>
+        {/*<button>查看</button>*/}
       </li>;
     });
   }

+ 3 - 0
src/components/ScaleSearch/index.less

@@ -86,6 +86,9 @@
         margin-top: 8px;
         outline: none;
       }
+      &:hover{
+        border-bottom:2px solid #3B9ED0;
+      }
     }
   }
   .no-data{