|
@@ -156,7 +156,7 @@ class SpreadDrop extends Component{
|
|
|
|
|
|
}
|
|
|
setStateInit(){
|
|
|
- const {nones,noneOn,noneIds,withOn,exists,nowOn,withs,exclusion,excluName} = deepClone(this.props.selecteds||[]);
|
|
|
+ const {nones,noneOn,noneIds,withOn,exists,nowOn,withs,exclusion,excluName,ban} = deepClone(this.props.selecteds||[]);
|
|
|
this.setState({
|
|
|
nones:nones||'',
|
|
|
exists:exists||[],
|
|
@@ -167,7 +167,7 @@ class SpreadDrop extends Component{
|
|
|
withOn:withOn||false,
|
|
|
nowOn:nowOn||'',
|
|
|
exclusion:exclusion||'',
|
|
|
- ban:{},
|
|
|
+ ban:ban||{},
|
|
|
});
|
|
|
}
|
|
|
clearState(){
|
|
@@ -224,7 +224,7 @@ class SpreadDrop extends Component{
|
|
|
return;
|
|
|
}
|
|
|
//操作单选项
|
|
|
- if(!noneOn&&selected){
|
|
|
+ if(selected){
|
|
|
const tIndex= exists.findIndex((it)=>it.questionId===item.questionId);
|
|
|
const bIndex= withs.findIndex((it)=>it.questionId===item.questionId);
|
|
|
if(tIndex!=-1){
|