|
@@ -37,31 +37,6 @@ class ListItem extends Component{
|
|
|
}
|
|
|
handleClick&&handleClick(item,isExclu,joint,index);
|
|
|
}
|
|
|
- getClass(id){ //无之后显示黑色,之前显示蓝色
|
|
|
- const {exclusion,nones,noneIds,exists,withs,isExclu,ban} = this.props;
|
|
|
- if(exclusion!=''){
|
|
|
- if(+id===+exclusion){
|
|
|
- return style['selected'];
|
|
|
- }else{
|
|
|
- return style['exclusion'];
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(isExclu&&([...noneIds,...exists,...withs].length>0||ban.id)){
|
|
|
- return style['exclusion'];
|
|
|
- }
|
|
|
- if(noneIds.includes(id)){
|
|
|
- return style['none-selected'];
|
|
|
- }
|
|
|
- let existsIds = getIds(exists);
|
|
|
- let withsIds = getIds(withs);
|
|
|
- // if(existsIds.includes(id)||withsIds.includes(id)){
|
|
|
- if(existsIds.includes(id)||withsIds.includes(id)||ban.id && ban.id==id){
|
|
|
- return style['selected'];
|
|
|
- }
|
|
|
-
|
|
|
- return '';
|
|
|
- }
|
|
|
- }
|
|
|
getLis(){
|
|
|
const {exclusion,noneIds,exists,withs,ban,isSpecialPos,datas} = this.props;
|
|
|
let type=''; //选中样式类型
|