import React, { Component } from 'react'; import style from './index.less'; import delIcon from '@common/images/del_nor.png'; import {windowEventHandler,getCurrentDate,getWindowInnerHeight} from '@utils/tools' class ScaleSearch extends Component { constructor(props) { super(props); this.$inp = React.createRef(); this.$cont = React.createRef(); this.state={ val:'' }; this.search = this.search.bind(this); this.handleChange = this.handleChange.bind(this); this.clear = this.clear.bind(this); this.handleEnter = this.handleEnter.bind(this); } getResult(id){ const {formulaResult} = this.props; const scale=formulaResult&&formulaResult[id]; let result = scale&&scale.calcalculate?scale.calcalculate.result:null; if(result){ return ( 结果:{result.value} {result.text} ); } return ''; } showScale(item){ const {scaleInfo,getScale,showScaleFn} = this.props; if(scaleInfo&&scaleInfo[item.id]){ showScaleFn&&showScaleFn(item); }else{ getScale(item); } } getSearchList() { const { searchResult } = this.props; return searchResult && searchResult.map((item) => { return
量表搜索
{val?:''}
查询内容
暂无搜索结果!
}