Sfoglia il codice sorgente

无选中项体温输入bug修改

zhouna 6 anni fa
parent
commit
d2c86efb89

+ 1 - 0
src/components/NumberDrop/index.jsx

@@ -83,6 +83,7 @@ class NumberDrop extends Component{
     });
     const {handleSelect,ikey,suffix,prefix,mainSaveText,placeholder} = this.props;
     const text = e.target.innerText===placeholder?'':e.target.innerText;
+    e.target.innerText = '';      //避免出现重复输入值
     handleSelect&&handleSelect({ikey,text,suffix,prefix,mainSaveText});
   }
   handleSpanInp(e){    //数字框输入事件

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

@@ -61,7 +61,7 @@ class SpreadDrop extends Component{
       boxTop:boxTop
     })
     // window.event? window.event.cancelBubble = true : e.stopPropagation();
-    // this.setStateInit();      //恢复初始选中状态
+     this.setStateInit();      //恢复初始选中状态
     const {ikey,handleShow,placeholder,flag,id,value,tagType,type} = this.props;
     const that = this;
     this.btnClickFlag = false;

+ 1 - 1
src/containers/OtherHistory.js

@@ -8,7 +8,7 @@ import {billing} from '@store/async-actions/pushMessage';
 import {fullfillText} from '@common/js/func';
 import {didPushParamChange} from '@utils/tools.js';
 
-function mapStateToProps(state){ console.log(state)
+function mapStateToProps(state){
   const {otherHistory,homePage,typeConfig,mainSuit} = state;
   const hasMain = mainSuit.saveText.join('');//||mainSuit.data.length;
   return {

+ 1 - 1
src/store/actions/checkBody.js

@@ -193,8 +193,8 @@ export const changeNumLabelVal = (state,action)=>{
   if(newVal.trim()){
     if(item){
       item.value = newVal;
-      res.saveText[index] = totalVal;
     }
+    res.saveText[index] = newVal;
   }else{//删除完标签内容则删除该标签
     res.data.splice(index,1);
     res.saveText = fullfillText(res.data).saveText;