|
@@ -325,6 +325,14 @@ class ScaleItem extends Component {
|
|
|
text
|
|
|
});
|
|
|
}
|
|
|
+ componentWillReceiveProps(next){ //修复bug1329,第二次保存值不显示
|
|
|
+ if(next.text!=this.state.text){
|
|
|
+ this.setState({
|
|
|
+ text:next.text
|
|
|
+ });
|
|
|
+ this.$area.current.value=next.text;
|
|
|
+ }
|
|
|
+ }
|
|
|
render() {
|
|
|
const {title,handleInp,disabled,isRecommend} = this.props;
|
|
|
return <div className={style['assess-item']}>
|