|
|
@ -244,7 +244,10 @@ class CaseNew extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
// 选择标签
|
|
|
|
// 选择标签
|
|
|
|
changeType=(type)=>{
|
|
|
|
changeType=(type)=>{
|
|
|
|
|
|
|
|
// console.log(this.state.casesTags);
|
|
|
|
|
|
|
|
// debugger
|
|
|
|
let tags = [];
|
|
|
|
let tags = [];
|
|
|
|
|
|
|
|
|
|
|
|
if(this.state.casesTags.indexOf(type) > -1){
|
|
|
|
if(this.state.casesTags.indexOf(type) > -1){
|
|
|
|
tags = this.state.casesTags.filter(item => item != type);
|
|
|
|
tags = this.state.casesTags.filter(item => item != type);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
@ -379,7 +382,7 @@ class CaseNew extends Component{
|
|
|
|
<ul className="fl libraries_tab">
|
|
|
|
<ul className="fl libraries_tab">
|
|
|
|
<li className={ casesTags.indexOf(1) > -1 ? "active" :"" } onClick={()=>this.changeType(1)}>获奖案例</li>
|
|
|
|
<li className={ casesTags.indexOf(1) > -1 ? "active" :"" } onClick={()=>this.changeType(1)}>获奖案例</li>
|
|
|
|
<li className={ casesTags.indexOf(2) > -1 ? "active" :"" } onClick={()=>this.changeType(2)}>入库案例</li>
|
|
|
|
<li className={ casesTags.indexOf(2) > -1 ? "active" :"" } onClick={()=>this.changeType(2)}>入库案例</li>
|
|
|
|
{/*<li className={casesTags.indexOf(3) > -1 ? "active" : ""} onclick={() => this.changeType(3)}>企业案例</li>*/}
|
|
|
|
<li className={ casesTags.indexOf(3) > -1 ? "active" :"" } onClick={()=>this.changeType(3)}>企业案例</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
checkTag && <div class="ant-form-explain">请选择标签</div>
|
|
|
|
checkTag && <div class="ant-form-explain">请选择标签</div>
|
|
|
|