|
@@ -138,7 +138,7 @@ class MainSuit extends Component{
|
|
|
|
|
|
handleChange(e){
|
|
handleChange(e){
|
|
const ev = e || window.event;
|
|
const ev = e || window.event;
|
|
- const data = ev.target.innerText || ev.target.innerHTML;
|
|
|
|
|
|
+ const data = ev.target.innerText || ev.target.innerHTML.replace(/ /g,' ');
|
|
const {getSearchData,searchData,datas,pushMessage,reTotalHide,saveText,clearSearch,CommonSymptoms,getCommonSymptoms} = this.props;
|
|
const {getSearchData,searchData,datas,pushMessage,reTotalHide,saveText,clearSearch,CommonSymptoms,getCommonSymptoms} = this.props;
|
|
const {overFlag,inpText} = this.state;
|
|
const {overFlag,inpText} = this.state;
|
|
reTotalHide && reTotalHide();//重置homePage中的控制项
|
|
reTotalHide && reTotalHide();//重置homePage中的控制项
|
|
@@ -225,7 +225,7 @@ class MainSuit extends Component{
|
|
const {freeText,saveText,datas,clearSearch,getSymptomFeature,currentData,saveChronic} = this.props;
|
|
const {freeText,saveText,datas,clearSearch,getSymptomFeature,currentData,saveChronic} = this.props;
|
|
const that = this;
|
|
const that = this;
|
|
let data = this.state.inpText;
|
|
let data = this.state.inpText;
|
|
- const inner = e.target.innerText || e.target.innerHTML ;
|
|
|
|
|
|
+ const inner = e.target.innerText || e.target.innerHTML;
|
|
//分词-现病史没有模板的时候才去获取
|
|
//分词-现病史没有模板的时候才去获取
|
|
if(inner.trim() && currentData&¤tData.length==0){
|
|
if(inner.trim() && currentData&¤tData.length==0){
|
|
getFeature(inner.replace('<br>','')).then((res)=>{
|
|
getFeature(inner.replace('<br>','')).then((res)=>{
|