Browse Source

化验异常值

luolei 4 years ago
parent
commit
eb0c568b46
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/AddInspect/SlidePic/index.jsx

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

@@ -110,7 +110,7 @@ class SlideSelect extends Component {
     const tempTimer = this.state.timer
     const {setTipValue} = this.props
     setTipValue(item,e.target.value,sign,tip)
-    if(sign == 2){
+    if(tip == 2){
       let type = getArrow(item.minValue,item.maxValue,e.target.value||null)
       this.setState({
         style:type
@@ -203,7 +203,7 @@ class SlideSelect extends Component {
               placeholder='(填写)'
               autoComplete="off"
               value={item.value||item.otherValue}
-              onInput={(e)=>{this.handleInput(e,item,idx)}}
+              onInput={(e)=>{this.handleInput(e,item,idx,2)}}
               // onBlur={()=>{this.handleBlur()}}
               onFocus={()=>{this.handleFocus()}}
               /><img style={{display:style==1||style==2?'inline-block':'none'}} src={style==1?down:style==2?up:''} />{item.units}