|
|
|
@ -52,47 +52,47 @@ class Contentpart extends Component {
|
|
|
|
|
this.props.callback(defaultActiveKeys);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
xinzenw = (e) => {
|
|
|
|
|
var urls = "?";
|
|
|
|
|
if (this.props.discipline_id) {
|
|
|
|
|
if (urls === "?") {
|
|
|
|
|
urls = urls + `discipline_id=${this.props.discipline_id}`
|
|
|
|
|
} else {
|
|
|
|
|
urls = urls + `&discipline_id=${this.props.discipline_id}`
|
|
|
|
|
}
|
|
|
|
|
xinzenw=(e)=>{
|
|
|
|
|
var urls="";
|
|
|
|
|
if(this.props.discipline_id){
|
|
|
|
|
// if(urls==="?"){
|
|
|
|
|
// urls=urls+`discipline_id=${this.props.discipline_id}`
|
|
|
|
|
// }else {
|
|
|
|
|
urls=urls+`&discipline_id=${this.props.discipline_id}`
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
if(this.props.sub_discipline_id){
|
|
|
|
|
// if(urls==="?"){
|
|
|
|
|
// urls=urls+`sub_discipline_id=${this.props.sub_discipline_id}`
|
|
|
|
|
// }else {
|
|
|
|
|
urls=urls+`&sub_discipline_id=${this.props.sub_discipline_id}`
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
if (this.props.sub_discipline_id) {
|
|
|
|
|
if (urls === "?") {
|
|
|
|
|
urls = urls + `sub_discipline_id=${this.props.sub_discipline_id}`
|
|
|
|
|
} else {
|
|
|
|
|
urls = urls + `&sub_discipline_id=${this.props.sub_discipline_id}`
|
|
|
|
|
}
|
|
|
|
|
if(this.props.tag_discipline_id){
|
|
|
|
|
// if(urls==="?"){
|
|
|
|
|
// urls=urls+`sub_discipline_id=${this.props.tag_discipline_id}`
|
|
|
|
|
// }else {
|
|
|
|
|
urls=urls+`&sub_discipline_id=${this.props.tag_discipline_id}`
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
if (this.props.tag_discipline_id) {
|
|
|
|
|
if (urls === "?") {
|
|
|
|
|
urls = urls + `sub_discipline_id=${this.props.tag_discipline_id}`
|
|
|
|
|
} else {
|
|
|
|
|
urls = urls + `&sub_discipline_id=${this.props.tag_discipline_id}`
|
|
|
|
|
}
|
|
|
|
|
if(this.props.difficulty){
|
|
|
|
|
// if(urls==="?"){
|
|
|
|
|
// urls=urls+`difficulty=${this.props.difficulty}&`
|
|
|
|
|
// }else {
|
|
|
|
|
urls=urls+`&difficulty=${this.props.difficulty}`
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
if (this.props.difficulty) {
|
|
|
|
|
if (urls === "?") {
|
|
|
|
|
urls = urls + `difficulty=${this.props.difficulty}&`
|
|
|
|
|
} else {
|
|
|
|
|
urls = urls + `&difficulty=${this.props.difficulty}`
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (this.props.item_type) {
|
|
|
|
|
if (urls === "?") {
|
|
|
|
|
urls = urls + `item_type=${this.props.item_type}`
|
|
|
|
|
} else {
|
|
|
|
|
urls = urls + `&item_type=${this.props.item_type}`
|
|
|
|
|
}
|
|
|
|
|
if(this.props.item_type){
|
|
|
|
|
// if(urls==="?"){
|
|
|
|
|
// urls=urls+`item_type=${this.props.item_type}`
|
|
|
|
|
// }else {
|
|
|
|
|
urls=urls+`&item_type=${this.props.item_type}`
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.props.history.push("/question/newitem?pages="+this.props.pages+urls);
|
|
|
|
|
|
|
|
|
|
this.props.history.push("/question/newitem" + urls);
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let { page } = this.state;
|
|
|
|
@ -316,12 +316,13 @@ class Contentpart extends Component {
|
|
|
|
|
keindex={index}
|
|
|
|
|
items={object}
|
|
|
|
|
key={index}
|
|
|
|
|
getitem_basketss={(id) => this.props.getitem_basketss(id)}
|
|
|
|
|
getitem_baskets={(e) => this.props.getitem_baskets(e)}
|
|
|
|
|
showmodels={(e) => this.props.showmodels(e)}
|
|
|
|
|
showmodelysl={(e) => this.props.showmodelysl(e)}
|
|
|
|
|
showmodelsInaudit={(e) => this.props.showmodelsInaudit(e)}
|
|
|
|
|
>
|
|
|
|
|
pages={this.props.pages}
|
|
|
|
|
getitem_basketss={(id)=>this.props.getitem_basketss(id)}
|
|
|
|
|
getitem_baskets={(e)=>this.props.getitem_baskets(e)}
|
|
|
|
|
showmodels={(e)=>this.props.showmodels(e)}
|
|
|
|
|
showmodelysl={(e)=>this.props.showmodelysl(e)}
|
|
|
|
|
showmodelsInaudit={(e)=>this.props.showmodelsInaudit(e)}
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
</Listjihe>
|
|
|
|
|
)
|
|
|
|
|