Procházet zdrojové kódy

火狐主诉搜索bug

liucf před 6 roky
rodič
revize
385b9de4a4

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

@@ -112,7 +112,7 @@ class MainSuit extends Component{
   }
 
 
-  handleSearchSelect(item){
+  handleSearchSelect(item){console.log("触发选中点击");
     const {clearSearch,insertSearch,datas,span,saveText} = this.props;
     let mainText = filterDataArr(saveText);//主诉字数
     const itemL = item.name.length;

+ 2 - 2
src/components/Operation/index.jsx

@@ -336,8 +336,8 @@ class Operation extends Component {
       <span className={style['button']} onClick={showPrint}><img src={printImg} /> 打印病历</span>
       <span className={style['preButton']} onClick={showPreview}><img src={preview} /> 预览</span>
       <span className={style['preButton']} onClick={() => { this.saveHis(3) }}><img src={saveHistory} /> 保存病历模板</span>
-      <span className={winWidth<=1082?`${style['saveButton']} ${style['b1024']}`: style['saveButton']} onClick={() => { this.saveAll(1) }}>保存</span>
-      <span className={winWidth<=1082?`${style['clearButton']} ${style['saveButton']} ${style['b1024']}`:`${style['clearButton']} ${style['saveButton']}`} onClick={() => { this.clearAll(2) }}>清除</span>
+      <span className={winWidth<=1082?`${style['saveButton']} ${style['minstyle']}`: style['saveButton']} onClick={() => { this.saveAll(1) }}>保存</span>
+      <span className={winWidth<=1082?`${style['clearButton']} ${style['saveButton']} ${style['minstyle']}`:`${style['clearButton']} ${style['saveButton']}`} onClick={() => { this.clearAll(2) }}>清除</span>
       <PrintPreviewContainer visible={visible} onClose={closePrint} />
       <PreviewContainer visible={preVisible} onClose={closePreview} />
       <ConfirmModal

+ 1 - 1
src/components/Operation/index.less

@@ -67,7 +67,7 @@
         background-color: #fff;
         color: #000;
     }
-    .b1024{
+    .minstyle{
         width: 60px;
         margin-left: 15px;
         margin-right: 10px;

+ 1 - 1
src/containers/SpreadDrop.js

@@ -55,7 +55,7 @@ function mainSuitModule(dispatch,store,params){
   }else{
     names = existsName + withsName;
   }  
-  let lengths = text.length + names.length;
+  let lengths = text.length + names.length;console.log(5656,mainSaveText,text,text.length,names.length,lengths);
   if(lengths > config.limited){
     Notify.info(config.limitText);
     return

+ 2 - 2
src/store/async-actions/fetchModules.js

@@ -45,8 +45,8 @@ export const getSearch = (param)=>{
     const params = {
       "age": patInfo.message.patientAge,
       "inputIds":mainIds&&mainIds.length>0?mainIds:[],//主诉去重
-      // "inputStr": inpStr.trim(),
-      "inputStr": inpStr,
+      "inputStr": inpStr.trim(),
+      // "inputStr": inpStr,
       "sexType": patInfo.message.sex,
       "type": boxMark //1为搜症状
     };