|
@@ -177,17 +177,17 @@ class ScaleItem extends Component {
|
|
|
{scaleRes&&scaleRes.result?(' 【'+it.content.name+'】 结果:'+scaleRes.result.value+" "+(scaleRes.result.text||'')):'【'+it.content.name+'】'}
|
|
|
</span>;
|
|
|
}else if(its.type==2){ //计算公式
|
|
|
- const showRes = calcuResult&&calcuResult[item.id]||it.content.result;
|
|
|
- const details = calcuValues&&calcuValues[item.id]||it.content.details;
|
|
|
+ const showRes = calcuResult&&calcuResult[item.conceptId]||it.content.result;
|
|
|
+ const details = calcuValues&&calcuValues[item.conceptId]||it.content.details;
|
|
|
const cresult = showRes&&showRes[1]&&showRes[1].text;
|
|
|
temp = <div className={style['results']}>
|
|
|
<span>计算公式结果:</span>
|
|
|
- <span className={style["blue"]} onClick={this.showFormula.bind(this,item.id,it)}>{cresult?cresult:'请选择'}</span>
|
|
|
+ <span className={style["blue"]} onClick={this.showFormula.bind(this,item.conceptId,it)}>{cresult?cresult:'请选择'}</span>
|
|
|
<img src={level1} />
|
|
|
<MiniToast title={it.content.name}
|
|
|
confirmText='关闭'
|
|
|
icon={allTableIcon}
|
|
|
- show={formulaId&&formulaId==item.id?true:false}
|
|
|
+ show={formulaId&&formulaId==item.conceptId?true:false}
|
|
|
close={this.closeFormula}
|
|
|
confirm={this.closeFormula}
|
|
|
footer="true">
|
|
@@ -204,7 +204,7 @@ class ScaleItem extends Component {
|
|
|
<Radio label={ii.detailName}
|
|
|
isSelect={ii.state == 1}
|
|
|
disabled={disabled}
|
|
|
- handleClick={this.handleForRadio.bind(this,item.id,details,idd,ind)}>
|
|
|
+ handleClick={this.handleForRadio.bind(this,item.conceptId,details,idd,ind)}>
|
|
|
>
|
|
|
</Radio>
|
|
|
</div>
|
|
@@ -217,7 +217,7 @@ class ScaleItem extends Component {
|
|
|
<span>{'请输入'+item1.name+':'}</span>
|
|
|
</td>
|
|
|
<td>
|
|
|
- {disabled?item1.value:<input type="text" placeholder="请输入" value={item1.value} onInput={(e)=>this.handleInputformula(item.id,details,idd,e)}/>}
|
|
|
+ {disabled?item1.value:<input type="text" placeholder="请输入" value={item1.value} onInput={(e)=>this.handleInputformula(item.conceptId,details,idd,e)}/>}
|
|
|
</td>
|
|
|
<td>
|
|
|
<span>{item1.uint}</span>
|
|
@@ -245,13 +245,13 @@ class ScaleItem extends Component {
|
|
|
}else if(its.type==3){
|
|
|
temp = <div className={style['results']}>
|
|
|
<span>可能结果:</span>
|
|
|
- <span onClick={this.showOption.bind(this,item.id)} className={style["blue"]}>{possible&&possible[item.id]?possible[item.id]:'请选择'}</span>
|
|
|
+ <span onClick={this.showOption.bind(this,item.conceptId)} className={style["blue"]}>{possible&&possible[item.conceptId]?possible[item.conceptId]:'请选择'}</span>
|
|
|
<img src={level1} />
|
|
|
<MiniToast title='结果选择'
|
|
|
icon={checkIcon}
|
|
|
- show={optionId&&optionId==item.id?true:false}
|
|
|
+ show={optionId&&optionId==item.conceptId?true:false}
|
|
|
close={this.closeOption}
|
|
|
- confirm={this.confirmOption.bind(this,item.id)}
|
|
|
+ confirm={this.confirmOption.bind(this,item.conceptId)}
|
|
|
footer="true">
|
|
|
<div className={style["infoOption"]}>
|
|
|
<span>{it.content.name?it.content.name+':':''}</span>
|
|
@@ -259,7 +259,7 @@ class ScaleItem extends Component {
|
|
|
return <div className={style["chooseItem"]}>
|
|
|
<Radio label={lis.detailName}
|
|
|
disabled={disabled}
|
|
|
- isSelect={radioVal&&radioVal[item.id]==lis.detailName}
|
|
|
+ isSelect={radioVal&&radioVal[item.conceptId]==lis.detailName}
|
|
|
handleClick={this.handleRadio.bind(this,lis,item,i)}>
|
|
|
</Radio>
|
|
|
{lis.state==1?<span className={style['recomand']}>(智能推荐)</span>:''}
|