|
@@ -43,9 +43,13 @@ class ScaleItem extends Component {
|
|
|
})
|
|
|
}
|
|
|
closeOption(){
|
|
|
+ const {result} = this.props;
|
|
|
+ const possible=result&&result.possible;
|
|
|
+ let {radioVal} = this.state;
|
|
|
this.setState({
|
|
|
- optionId:null
|
|
|
- })
|
|
|
+ radioVal:Object.assign({},radioVal,possible),
|
|
|
+ optionId:null,
|
|
|
+ });
|
|
|
}
|
|
|
confirmOption(){
|
|
|
const {handleRes} = this.props;
|
|
@@ -54,7 +58,9 @@ class ScaleItem extends Component {
|
|
|
possible:Object.assign({},radioVal),
|
|
|
radioVal:Object.assign({},radioVal),//不设置radioVal只有最近一次选中的值
|
|
|
});
|
|
|
- this.closeOption();
|
|
|
+ this.setState({
|
|
|
+ optionId:null,
|
|
|
+ });
|
|
|
}
|
|
|
handleShowScale(item,parentId,pIndex){
|
|
|
const {showScaleFn,closeAssess,showListScale} = this.props;
|