morphone1995 4 年之前
父节点
当前提交
3a80c90e72

+ 2 - 1
src/common/components/SearchOption/index.jsx

@@ -98,7 +98,7 @@ class SearchOption extends React.Component {
         });
     }
     handleFocus(){
-        console.log(1223);
+        console.log('获取焦点');
       this.setState({showInsp:false})
       if(this.state.val.trim() != ''){
         return;
@@ -107,6 +107,7 @@ class SearchOption extends React.Component {
       }
     }
     handleBlur(){
+      console.log('失去焦点');
       this.setState({border:false,val:''})
     }
     render() {

+ 1 - 1
src/components/AddInspect/SlidePic/index.jsx

@@ -182,7 +182,7 @@ class SlideSelect extends Component {
             <input disabled="disabled" type="text" 
               class="canEdit"
               onDoubleClick={(e)=>this.setEdit(e)}
-              style={{color:style==2||style==4?'red':style==1?'#D949FF':'#333'}}
+              style={{ color: style == 2 || style == 4 ? 'red' : style == 1 ? '#D949FF' : '#333', backgroundColor: item.value && item.value.length>0 ? '#eeeeee' : ''}}
               placeholder='(填写)'
               autoComplete="off"
               value={item.value||item.otherValue}

+ 1 - 1
src/components/DiagResultSearch/index.jsx

@@ -45,7 +45,7 @@ class DiagResultSearch extends Component {
     // console.log(searchResult,'searchResult');
     // console.log(isShowNoDataInfo,'isShowNoDataInfo');
     if (isShowNoDataInfo === true && searchResult.length === 0 ){
-      return <div className={style['search-result-noItem']}>暂无筛选项</div>
+      return <div className={style['search-result-noItem']}><span>暂无筛选项</span></div>
     }
     return <div className={style['search-result']} style={{'min-height':'120px',width:'412px',overflow:'auto'}}>
       {

+ 9 - 3
src/components/DiagResultSearch/index.less

@@ -58,9 +58,15 @@
 }
 
 .search-result-noItem{
-    position: relative;
+   span{
+        // position: relative;
     color: #bfbfbf;
-    top: 8px;
-    left: 27px;
+    margin-top: -8px;
+    margin-left: 30px;
+    // top: 8px;
+    // left: 27px;
     height: 50px;
+    display: inline-block;
+    line-height: 50px;
+   }
 }