|
|
@ -1,306 +1,306 @@
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
|
|
|
|
import { Select, Input } from 'antd';
|
|
|
|
import { Select, Input } from 'antd';
|
|
|
|
|
|
|
|
|
|
|
|
import 'antd/lib/style/index.css';
|
|
|
|
import 'antd/lib/style/index.css';
|
|
|
|
|
|
|
|
|
|
|
|
import 'antd/lib/select/style/index.css';
|
|
|
|
import 'antd/lib/select/style/index.css';
|
|
|
|
|
|
|
|
|
|
|
|
import 'antd/lib/input/style/index.css';
|
|
|
|
import 'antd/lib/input/style/index.css';
|
|
|
|
|
|
|
|
|
|
|
|
import './shixunCss/ShixunSearchBar.css';
|
|
|
|
import './shixunCss/ShixunSearchBar.css';
|
|
|
|
|
|
|
|
|
|
|
|
import axios from 'axios';
|
|
|
|
import axios from 'axios';
|
|
|
|
|
|
|
|
|
|
|
|
const $ = window.$;
|
|
|
|
const $ = window.$;
|
|
|
|
|
|
|
|
|
|
|
|
const Option = Select.Option;
|
|
|
|
const Option = Select.Option;
|
|
|
|
|
|
|
|
|
|
|
|
const Search = Input.Search;
|
|
|
|
const Search = Input.Search;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ShixunSearchBar extends Component {
|
|
|
|
class ShixunSearchBar extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
constructor(props) {
|
|
|
|
constructor(props) {
|
|
|
|
super(props)
|
|
|
|
super(props)
|
|
|
|
this.state = {
|
|
|
|
this.state = {
|
|
|
|
status: undefined,
|
|
|
|
status: undefined,
|
|
|
|
diff: undefined,
|
|
|
|
diff: undefined,
|
|
|
|
InputValue: undefined,
|
|
|
|
InputValue: undefined,
|
|
|
|
shixunhoverData: [],
|
|
|
|
shixunhoverData: [],
|
|
|
|
shixunchildValues:'',
|
|
|
|
shixunchildValues:'',
|
|
|
|
shixunsearchAllvalue:"a",
|
|
|
|
shixunsearchAllvalue:"a",
|
|
|
|
openStatus:false,
|
|
|
|
openStatus:false,
|
|
|
|
openLevel:false
|
|
|
|
openLevel:false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//状态筛选
|
|
|
|
//状态筛选
|
|
|
|
status_search = (value) => {
|
|
|
|
status_search = (value) => {
|
|
|
|
let newvalue = value;
|
|
|
|
let newvalue = value;
|
|
|
|
if (newvalue === "0") {
|
|
|
|
if (newvalue === "0") {
|
|
|
|
newvalue = " "
|
|
|
|
newvalue = " "
|
|
|
|
} else if (newvalue === "1") {
|
|
|
|
} else if (newvalue === "1") {
|
|
|
|
newvalue = 2
|
|
|
|
newvalue = 2
|
|
|
|
} else if (newvalue === "2") {
|
|
|
|
} else if (newvalue === "2") {
|
|
|
|
newvalue = 1
|
|
|
|
newvalue = 1
|
|
|
|
} else if (newvalue === "3") {
|
|
|
|
} else if (newvalue === "3") {
|
|
|
|
newvalue = 3
|
|
|
|
newvalue = 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
status: newvalue,
|
|
|
|
status: newvalue,
|
|
|
|
openStatus:false
|
|
|
|
openStatus:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
let list = [{'type': 1}, {'value': newvalue}];
|
|
|
|
let list = [{'type': 1}, {'value': newvalue}];
|
|
|
|
this.props.StatusEnquiry(list);
|
|
|
|
this.props.StatusEnquiry(list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//难度筛选
|
|
|
|
//难度筛选
|
|
|
|
diff_search = (value) => {
|
|
|
|
diff_search = (value) => {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
diff: value,
|
|
|
|
diff: value,
|
|
|
|
openLevel:false
|
|
|
|
openLevel:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
let list=[{'type':2},{'value':value}];
|
|
|
|
let list=[{'type':2},{'value':value}];
|
|
|
|
this.props.StatusEnquiry(list);
|
|
|
|
this.props.StatusEnquiry(list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//输入框搜索
|
|
|
|
//输入框搜索
|
|
|
|
Input_search = (value) => {
|
|
|
|
Input_search = (value) => {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
InputValue: value
|
|
|
|
InputValue: value
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.props.OnSearchInput(value);
|
|
|
|
this.props.OnSearchInput(value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//查询
|
|
|
|
//查询
|
|
|
|
shixunsearchAll = (e) => {
|
|
|
|
shixunsearchAll = (e) => {
|
|
|
|
let{shixunsearchAllvalue}=this.state;
|
|
|
|
let{shixunsearchAllvalue}=this.state;
|
|
|
|
let id = e.target.value;
|
|
|
|
let id = e.target.value;
|
|
|
|
|
|
|
|
|
|
|
|
if(shixunsearchAllvalue===id){
|
|
|
|
if(shixunsearchAllvalue===id){
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(id===0){
|
|
|
|
if(id===0){
|
|
|
|
id=" "
|
|
|
|
id=" "
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
InputValue: " "
|
|
|
|
InputValue: " "
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.props.OnSearchInput("");
|
|
|
|
this.props.OnSearchInput("");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let list=[{'tag_level':1},{'tag_id':id}];
|
|
|
|
let list=[{'tag_level':1},{'tag_id':id}];
|
|
|
|
if(id!=undefined){
|
|
|
|
if(id!=undefined){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
shixunsearchAllvalue:id,
|
|
|
|
shixunsearchAllvalue:id,
|
|
|
|
shixunchildValues:""
|
|
|
|
shixunchildValues:""
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.props.Updatasearchlist(list);
|
|
|
|
this.props.Updatasearchlist(list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
shixunsearchall=(e)=>{
|
|
|
|
shixunsearchall=(e)=>{
|
|
|
|
let{shixunsearchAllvalue}=this.state;
|
|
|
|
let{shixunsearchAllvalue}=this.state;
|
|
|
|
let id = "a";
|
|
|
|
let id = "a";
|
|
|
|
|
|
|
|
|
|
|
|
if(shixunsearchAllvalue===id){
|
|
|
|
if(shixunsearchAllvalue===id){
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
shixunsearchAllvalue:"a",
|
|
|
|
shixunsearchAllvalue:"a",
|
|
|
|
shixunchildValues:""
|
|
|
|
shixunchildValues:""
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.props.allUpdatashixunlist();
|
|
|
|
this.props.allUpdatashixunlist();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//选择Tab页详情
|
|
|
|
//选择Tab页详情
|
|
|
|
getshixunchildValue = (e) => {
|
|
|
|
getshixunchildValue = (e) => {
|
|
|
|
let id = e.target.name;
|
|
|
|
let id = e.target.name;
|
|
|
|
let newid=e.target.id;
|
|
|
|
let newid=e.target.id;
|
|
|
|
let list=[{'tag_level':2},{'tag_id':id}];
|
|
|
|
let list=[{'tag_level':2},{'tag_id':id}];
|
|
|
|
if(id!=undefined||newid!=undefined){
|
|
|
|
if(id!=undefined||newid!=undefined){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
shixunsearchAllvalue:newid
|
|
|
|
shixunsearchAllvalue:newid
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.props.Updatasearchlist(list);
|
|
|
|
this.props.Updatasearchlist(list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
getshixunchildValues = (e) => {
|
|
|
|
getshixunchildValues = (e) => {
|
|
|
|
let id = e.target.id;
|
|
|
|
let id = e.target.id;
|
|
|
|
let newid=e.target.name;
|
|
|
|
let newid=e.target.name;
|
|
|
|
let list=[{'tag_level':3},{'tag_id':id}];
|
|
|
|
let list=[{'tag_level':3},{'tag_id':id}];
|
|
|
|
if(id!=undefined||newid!=undefined){
|
|
|
|
if(id!=undefined||newid!=undefined){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
shixunchildValues:id,
|
|
|
|
shixunchildValues:id,
|
|
|
|
shixunsearchAllvalue:newid
|
|
|
|
shixunsearchAllvalue:newid
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.props.Updatasearchlist(list);
|
|
|
|
this.props.Updatasearchlist(list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
componentDidMount() {
|
|
|
|
componentDidMount() {
|
|
|
|
let hoverUrlArr = [];
|
|
|
|
let hoverUrlArr = [];
|
|
|
|
let hoverUrl = `/shixuns/menus.json`;
|
|
|
|
let hoverUrl = `/shixuns/menus.json`;
|
|
|
|
axios.get(hoverUrl
|
|
|
|
axios.get(hoverUrl
|
|
|
|
).then((response) => {
|
|
|
|
).then((response) => {
|
|
|
|
hoverUrlArr = response.data;
|
|
|
|
hoverUrlArr = response.data;
|
|
|
|
hoverUrlArr.reverse();
|
|
|
|
hoverUrlArr.reverse();
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
shixunhoverData: hoverUrlArr
|
|
|
|
shixunhoverData: hoverUrlArr
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}).catch((error) => {
|
|
|
|
}).catch((error) => {
|
|
|
|
console.log(error)
|
|
|
|
console.log(error)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// componentWillReceiveProps(nextProps) {
|
|
|
|
// componentWillReceiveProps(nextProps) {
|
|
|
|
// console.log(nextProps.parsedid)
|
|
|
|
// console.log(nextProps.parsedid)
|
|
|
|
// if(nextProps.newtag_level===1){
|
|
|
|
// if(nextProps.newtag_level===1){
|
|
|
|
// this.setState({
|
|
|
|
// this.setState({
|
|
|
|
// InputValue: this.props.keyword,
|
|
|
|
// InputValue: this.props.keyword,
|
|
|
|
// shixunsearchAllvalue:nextProps.parsedid
|
|
|
|
// shixunsearchAllvalue:nextProps.parsedid
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// }else if(nextProps.newtag_level===2){
|
|
|
|
// }else if(nextProps.newtag_level===2){
|
|
|
|
// this.setState({
|
|
|
|
// this.setState({
|
|
|
|
// InputValue: this.props.keyword,
|
|
|
|
// InputValue: this.props.keyword,
|
|
|
|
// shixunsearchAllvalue:nextProps.newpalce,
|
|
|
|
// shixunsearchAllvalue:nextProps.newpalce,
|
|
|
|
// shixunchildValues:nextProps.parsedid
|
|
|
|
// shixunchildValues:nextProps.parsedid
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// }else if(nextProps.newtag_level===3){
|
|
|
|
// }else if(nextProps.newtag_level===3){
|
|
|
|
// this.setState({
|
|
|
|
// this.setState({
|
|
|
|
// InputValue: this.props.keyword,
|
|
|
|
// InputValue: this.props.keyword,
|
|
|
|
// shixunsearchAllvalue:nextProps.newpalce,
|
|
|
|
// shixunsearchAllvalue:nextProps.newpalce,
|
|
|
|
// shixunchildValues:nextProps.parsedid
|
|
|
|
// shixunchildValues:nextProps.parsedid
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
openStatusOption=()=>{
|
|
|
|
openStatusOption=()=>{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
openLevel:false,
|
|
|
|
openLevel:false,
|
|
|
|
openStatus:true
|
|
|
|
openStatus:true
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
openLevelOption=()=>{
|
|
|
|
openLevelOption=()=>{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
openLevel:true,
|
|
|
|
openLevel:true,
|
|
|
|
openStatus:false
|
|
|
|
openStatus:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
openStatusOptions=()=>{
|
|
|
|
openStatusOptions=()=>{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
openLevel:false,
|
|
|
|
openLevel:false,
|
|
|
|
openStatus:false
|
|
|
|
openStatus:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Input_searchs = (e) => {
|
|
|
|
Input_searchs = (e) => {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
InputValue: e.target.value
|
|
|
|
InputValue: e.target.value
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
let {shixunhoverData, shixunchildValues, shixunsearchAllvalue, InputValue,openStatus,openLevel} = this.state;
|
|
|
|
let {shixunhoverData, shixunchildValues, shixunsearchAllvalue, InputValue,openStatus,openLevel} = this.state;
|
|
|
|
let {typepvisible} = this.props;
|
|
|
|
let {typepvisible} = this.props;
|
|
|
|
//实训首页筛选的移入和点击事件
|
|
|
|
//实训首页筛选的移入和点击事件
|
|
|
|
$(".shaiItem").hover(function(){
|
|
|
|
$(".shaiItem").hover(function(){
|
|
|
|
var hei=parseInt($(".shaiAllItem").height())-2;
|
|
|
|
var hei=parseInt($(".shaiAllItem").height())-2;
|
|
|
|
$(this).find(".subshaicontent").css("top", '34px');
|
|
|
|
$(this).find(".subshaicontent").css("top", '34px');
|
|
|
|
$(this).find(".subshaicontent").show();
|
|
|
|
$(this).find(".subshaicontent").show();
|
|
|
|
},function(){
|
|
|
|
},function(){
|
|
|
|
$(this).find(".subshaicontent").hide();
|
|
|
|
$(this).find(".subshaicontent").hide();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$(".shaiItem").live("click",function(){
|
|
|
|
$(".shaiItem").live("click",function(){
|
|
|
|
$(".shaiItem").removeClass("active");
|
|
|
|
$(".shaiItem").removeClass("active");
|
|
|
|
$(this).addClass("active");
|
|
|
|
$(this).addClass("active");
|
|
|
|
$(".subshaicontent").hide();
|
|
|
|
$(".subshaicontent").hide();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$(".subshaicontent").live("click", function(event){
|
|
|
|
$(".subshaicontent").live("click", function(event){
|
|
|
|
$(".subshaicontent").hide();
|
|
|
|
$(".subshaicontent").hide();
|
|
|
|
event.stopPropagation();
|
|
|
|
event.stopPropagation();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="edu-back-white" >
|
|
|
|
<div className="edu-back-white" >
|
|
|
|
<div className="educontent">
|
|
|
|
<div className="educontent">
|
|
|
|
<div className="pt40 pb40">
|
|
|
|
<div className="pt40 pb40">
|
|
|
|
<div className="clearfix mb30 shaiContent">
|
|
|
|
<div className="clearfix mb30 shaiContent">
|
|
|
|
<span className="shaiTitle fl mt3">方向:</span>
|
|
|
|
<span className="shaiTitle fl mt3">方向:</span>
|
|
|
|
<div className="fl pr shaiAllItem">
|
|
|
|
<div className="fl pr shaiAllItem">
|
|
|
|
<li className={shixunsearchAllvalue==="a"?"shaiItem shixun_repertoire active":"shaiItem shixun_repertoire"} value= "a" onClick={this.shixunsearchall}>全部</li>
|
|
|
|
<li className={shixunsearchAllvalue==="a"?"shaiItem shixun_repertoire active":"shaiItem shixun_repertoire"} value= "a" onClick={this.shixunsearchall}>全部</li>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
shixunhoverData.map((item,key)=>{
|
|
|
|
shixunhoverData.map((item,key)=>{
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<li key={key} className={parseInt(shixunsearchAllvalue)===item.id?"shaiItem shixun_repertoire active":"shaiItem shixun_repertoire"} value={item.id} onClick={this.shixunsearchAll}>
|
|
|
|
<li key={key} className={parseInt(shixunsearchAllvalue)===item.id?"shaiItem shixun_repertoire active":"shaiItem shixun_repertoire"} value={item.id} onClick={this.shixunsearchAll}>
|
|
|
|
{item.name}
|
|
|
|
{item.name}
|
|
|
|
<div className="subshaicontent" id={item.id+"show"} style={{ top: '33px', display: 'none',maxHeight: '400px' }}>
|
|
|
|
<div className="subshaicontent" id={item.id+"show"} style={{ top: '33px', display: 'none',maxHeight: '400px' }}>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
item.sub_repertoires.map((list,k)=>{
|
|
|
|
item.sub_repertoires.map((list,k)=>{
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div className="mt20 pb10 subshaicontent-part" key={k}>
|
|
|
|
<div className="mt20 pb10 subshaicontent-part" key={k}>
|
|
|
|
<a style={{ height: '20px' }} className={ "mb15 shixun_repertoire color-dark"} name={list.id} id={item.id} onClick={this.getshixunchildValue}>{list.name}</a>
|
|
|
|
<a style={{ height: '20px' }} className={ "mb15 shixun_repertoire color-dark"} name={list.id} id={item.id} onClick={this.getshixunchildValue}>{list.name}</a>
|
|
|
|
<div className="sub-Item clearfix">
|
|
|
|
<div className="sub-Item clearfix">
|
|
|
|
{
|
|
|
|
{
|
|
|
|
list.tags.map((tag,e)=>{
|
|
|
|
list.tags.map((tag,e)=>{
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<a className={parseInt(shixunchildValues)===tag.id?"shixun_repertoire active":"shixun_repertoire"} key={e} id={tag.id} name={item.id} title="subshaicontentshow" rel="subshaicontent" onClick={this.getshixunchildValues}>{tag.name}</a>
|
|
|
|
<a className={parseInt(shixunchildValues)===tag.id?"shixun_repertoire active":"shixun_repertoire"} key={e} id={tag.id} name={item.id} title="subshaicontentshow" rel="subshaicontent" onClick={this.getshixunchildValues}>{tag.name}</a>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="clearfix">
|
|
|
|
<div className="clearfix">
|
|
|
|
<span className="shaiTitle fl mt6">筛选:</span>
|
|
|
|
<span className="shaiTitle fl mt6">筛选:</span>
|
|
|
|
<div className="fl" onMouseLeave={this.openStatusOptions} id={"area"}>
|
|
|
|
<div className="fl" onMouseLeave={this.openStatusOptions} id={"area"}>
|
|
|
|
{/*<Select className="statusSelect" defaultValue="0" style={{ width: 120 }} onChange={this.status_search} onMouseEnter={this.openStatusOption} open={openStatus}>*/}
|
|
|
|
{/*<Select className="statusSelect" defaultValue="0" style={{ width: 120 }} onChange={this.status_search} onMouseEnter={this.openStatusOption} open={openStatus}>*/}
|
|
|
|
{/*<Option value="0" type="status">全部状态</Option>*/}
|
|
|
|
{/*<Option value="0" type="status">全部状态</Option>*/}
|
|
|
|
{/*<Option value="1" type="status">已发布</Option>*/}
|
|
|
|
{/*<Option value="1" type="status">已发布</Option>*/}
|
|
|
|
{/*<Option value="2" type="status">未发布</Option>*/}
|
|
|
|
{/*<Option value="2" type="status">未发布</Option>*/}
|
|
|
|
{/*<Option value="3" type="status">已关闭</Option>*/}
|
|
|
|
{/*<Option value="3" type="status">已关闭</Option>*/}
|
|
|
|
{/*</Select>*/}
|
|
|
|
{/*</Select>*/}
|
|
|
|
<Select defaultValue="0" style={{ width: 120 }} onChange={this.diff_search} onMouseEnter={this.openLevelOption} open={openLevel} getPopupContainer={() => document.getElementById("area")}>
|
|
|
|
<Select defaultValue="0" style={{ width: 120 }} onChange={this.diff_search} onMouseEnter={this.openLevelOption} open={openLevel} getPopupContainer={() => document.getElementById("area")}>
|
|
|
|
<Option value="0">全部难度</Option>
|
|
|
|
<Option value="0">全部难度</Option>
|
|
|
|
<Option value="1">初级学员</Option>
|
|
|
|
<Option value="1">初级学员</Option>
|
|
|
|
<Option value="2">中级学员</Option>
|
|
|
|
<Option value="2">中级学员</Option>
|
|
|
|
<Option value="3">高级学员</Option>
|
|
|
|
<Option value="3">高级学员</Option>
|
|
|
|
<Option value="4">顶级学员</Option>
|
|
|
|
<Option value="4">顶级学员</Option>
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/*<div className="fr mt3">*/}
|
|
|
|
{/*<div className="fr mt3">*/}
|
|
|
|
{/*<Search*/}
|
|
|
|
{/*<Search*/}
|
|
|
|
{/*style={{ width: 300 }}*/}
|
|
|
|
{/*style={{ width: 300 }}*/}
|
|
|
|
{/*class="search-new-input fl"*/}
|
|
|
|
{/*class="search-new-input fl"*/}
|
|
|
|
{/*placeholder="请输入创建者或名称进行搜索"*/}
|
|
|
|
{/*placeholder="请输入创建者或名称进行搜索"*/}
|
|
|
|
{/*value={InputValue}*/}
|
|
|
|
{/*value={InputValue}*/}
|
|
|
|
{/*onInput={this.Input_searchs}*/}
|
|
|
|
{/*onInput={this.Input_searchs}*/}
|
|
|
|
{/*onSearch={value => this.Input_search(value)}*/}
|
|
|
|
{/*onSearch={value => this.Input_search(value)}*/}
|
|
|
|
{/*enterButton*/}
|
|
|
|
{/*enterButton*/}
|
|
|
|
{/*/>*/}
|
|
|
|
{/*/>*/}
|
|
|
|
{/*</div>*/}
|
|
|
|
{/*</div>*/}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default ShixunSearchBar;
|
|
|
|
export default ShixunSearchBar;
|
|
|
|